Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // @codingStandardsIgnoreFile
- ?>
- <?php if($block->customerLoggedIn()): ?>
- <li class="customer-welcome">
- <span class="customer-name"
- role="link"
- tabindex="0"
- data-mage-init='{"dropdown":{}}'
- data-toggle="dropdown"
- data-trigger-keypress-button="true"
- data-bind="scope: 'customer'">
- <span data-bind="text: customer().fullname"></span>
- <button type="button"
- class="action switch"
- tabindex="-1"
- data-action="customer-menu-toggle">
- <span><?php /* @escapeNotVerified */ echo __('Change')?></span>
- </button>
- </span>
- <script type="text/x-magento-init">
- {
- "*": {
- "Magento_Ui/js/core/app": {
- "components": {
- "customer": {
- "component": "Magento_Customer/js/view/customer"
- }
- }
- }
- }
- }
- </script>
- <?php if($block->getChildHtml()):?>
- <div class="customer-menu" data-target="dropdown">
- <?php echo **$block->getChildHtml()**;?>
- </div>
- <?php endif; ?>
- </li>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement