Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

34 wiersze
1.4 KiB

  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /** @var \Magento\Customer\Block\Account\AuthenticationPopup $block */
  7. /** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
  8. /** @var Magento\Customer\ViewModel\Customer\StoreConfig $viewModel */
  9. $viewModel = $block->getViewModel();
  10. ?>
  11. <div id="authenticationPopup" data-bind="scope:'authenticationPopup', style: {display: 'none'}">
  12. <?php $scriptString = 'window.authenticationPopup = ' . /* @noEscape */ $block->getSerializedConfig(); ?>
  13. <?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false); ?>
  14. <!-- ko template: getTemplate() --><!-- /ko -->
  15. <?php // phpcs:ignore Magento2.Legacy.PhtmlTemplate ?>
  16. <script type="text/x-magento-init">
  17. {
  18. "#authenticationPopup": {
  19. "Magento_Ui/js/core/app": <?= /* @noEscape */ $block->getJsLayout() ?>
  20. },
  21. "*": {
  22. "Magento_Ui/js/block-loader": "<?= $block->escapeJs($block->escapeUrl($block->getViewFileUrl(
  23. 'images/loader-1.gif'
  24. ))) ?>"
  25. <?php if ($viewModel->isGlobalScopeEnabled()): ?>
  26. ,
  27. "Magento_Customer/js/customer-global-session-loader": {}
  28. <?php endif; ?>
  29. }
  30. }
  31. </script>
  32. </div>