Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
customer.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
9 ?>
10 <?php if($block->customerLoggedIn()): ?>
11  <li class="customer-welcome">
12  <span class="customer-name"
13  role="link"
14  tabindex="0"
15  data-mage-init='{"dropdown":{}}'
16  data-toggle="dropdown"
17  data-trigger-keypress-button="true"
18  data-bind="scope: 'customer'">
19  <span data-bind="text: customer().fullname"></span>
20  <button type="button"
21  class="action switch"
22  tabindex="-1"
23  data-action="customer-menu-toggle">
24  <span><?= $block->escapeHtml(__('Change')) ?></span>
25  </button>
26  </span>
27  <script type="text/x-magento-init">
28  {
29  "*": {
30  "Magento_Ui/js/core/app": {
31  "components": {
32  "customer": {
33  "component": "Magento_Customer/js/view/customer"
34  }
35  }
36  }
37  }
38  }
39  </script>
40  <?php if($block->getChildHtml()):?>
41  <div class="customer-menu" data-target="dropdown">
42  <?= $block->getChildHtml() ?>
43  </div>
44  <?php endif; ?>
45  </li>
46 <?php endif; ?>
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
__()
Definition: __.php:13
endif
Definition: customer.phtml:46
$block
Definition: block.php:8