You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
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\Customer $block */
  7. ?>
  8. <?php if ($block->customerLoggedIn()) : ?>
  9. <li class="customer-welcome">
  10. <span class="customer-name"
  11. role="link"
  12. tabindex="0"
  13. data-mage-init='{"dropdown":{}}'
  14. data-toggle="dropdown"
  15. data-trigger-keypress-button="true"
  16. data-bind="scope: 'customer'">
  17. <button type="button"
  18. class="action switch"
  19. tabindex="-1"
  20. data-action="customer-menu-toggle">
  21. <span><?= $block->escapeHtml(__('Change')) ?></span>
  22. </button>
  23. </span>
  24. <script type="text/x-magento-init">
  25. {
  26. "*": {
  27. "Magento_Ui/js/core/app": {
  28. "components": {
  29. "customer": {
  30. "component": "Magento_Customer/js/view/customer"
  31. }
  32. }
  33. }
  34. }
  35. }
  36. </script>
  37. <?php if ($block->getChildHtml()) :?>
  38. <div class="customer-menu" data-target="dropdown">
  39. <?= $block->getChildHtml() ?>
  40. </div>
  41. <?php endif; ?>
  42. </li>
  43. <?php endif; ?>