Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. <?php
  2. // @codingStandardsIgnoreFile
  3.  
  4. ?>
  5. <?php if($block->customerLoggedIn()): ?>
  6. <li class="customer-welcome">
  7. <span class="customer-name"
  8. role="link"
  9. tabindex="0"
  10. data-mage-init='{"dropdown":{}}'
  11. data-toggle="dropdown"
  12. data-trigger-keypress-button="true"
  13. data-bind="scope: 'customer'">
  14. <span data-bind="text: customer().fullname"></span>
  15. <button type="button"
  16. class="action switch"
  17. tabindex="-1"
  18. data-action="customer-menu-toggle">
  19. <span><?php /* @escapeNotVerified */ echo __('Change')?></span>
  20. </button>
  21. </span>
  22. <script type="text/x-magento-init">
  23. {
  24. "*": {
  25. "Magento_Ui/js/core/app": {
  26. "components": {
  27. "customer": {
  28. "component": "Magento_Customer/js/view/customer"
  29. }
  30. }
  31. }
  32. }
  33. }
  34. </script>
  35. <?php if($block->getChildHtml()):?>
  36. <div class="customer-menu" data-target="dropdown">
  37. <?php echo **$block->getChildHtml()**;?>
  38. </div>
  39. <?php endif; ?>
  40. </li>
  41. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement