Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-theme
view
frontend
templates
html
header.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
12
$welcomeMessage
=
$block
->getWelcome();
13
?>
14
<?php
switch
(
$block
->getShowPart()):
15
case
'welcome'
: ?>
16
<li
class
=
"greet welcome"
data-bind=
"scope: 'customer'"
>
17
<!-- ko
if
: customer().fullname -->
18
<span data-bind=
"text: new String('<?= $block->escapeHtml(__('Welcome, %1!', '%1')) ?>').replace('%1', customer().fullname)"
>
19
</span>
20
<!-- /ko -->
21
<!-- ko ifnot: customer().fullname -->
22
<span data-bind=
'html:"<?= $block->escapeHtml($welcomeMessage) ?>"'
></span>
23
<?=
$block
->getBlockHtml(
'header.additional'
) ?>
24
<!-- /ko -->
25
</li>
26
<script type=
"text/x-magento-init"
>
27
{
28
"*"
: {
29
"Magento_Ui/js/core/app"
: {
30
"components"
: {
31
"customer"
: {
32
"component"
:
"Magento_Customer/js/view/customer"
33
}
34
}
35
}
36
}
37
}
38
</script>
39
<?php
break
; ?>
40
41
<?php
case
'other'
: ?>
42
<?=
$block
->getChildHtml() ?>
43
<?php
break
; ?>
44
45
<?php
endswitch
; ?>
endswitch
endswitch
Definition:
header.phtml:68
$welcomeMessage
$welcomeMessage
Definition:
header.phtml:12
$block
$block
Definition:
block.php:8