This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
/
header.phtml
67 lines (56 loc) · 2.16 KB
/
header.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
$headerClass = $block->getClass();
$skipToContent = $block->getChildHtml('skip-to-content');
$marketingBar = $block->getChildHtml('marketing-bar');
$contactBar = $block->getChildHtml('contact-bar');
$menuMainMobile = $block->getChildHtml('menu-main-mobile');
$briefInfo = $block->getChildHtml('brief-info');
$wishListLink = $block->getChildHtml('wish-list-menu');
$cartLink = $block->getChildHtml('cart-link');
$minicart = $block->getChildHtml('minicart');
$search = $block->getChildHtml('search');
$menuMainDesktop = $block->getChildHtml('menu-main-desktop');
?>
<?php if ($skipToContent): ?>
<?= /* @noEscape */ $skipToContent ?>
<?php endif; ?>
<?php if ($marketingBar): ?>
<?= /* @noEscape */ $marketingBar ?>
<?php endif; ?>
<?php if ($contactBar): ?>
<?= /* @noEscape */ $contactBar ?>
<?php endif; ?>
<header class="header <?= $block->escapeHtmlAttr($headerClass) ?>">
<div class="container">
<div class="header__wrapper">
<?= $block->getChildHtml('logo') ?>
<?php if ($menuMainMobile): ?>
<?= /* @noEscape */ $menuMainMobile ?>
<?php endif; ?>
<?php if ($briefInfo): ?>
<?= /* @noEscape */ $briefInfo ?>
<?php endif; ?>
<?php if ($wishListLink || $minicart || $cartLink): ?>
<div class="header__buttons">
<?php if ($wishListLink): ?>
<?= /* @noEscape */ $wishListLink ?>
<?php endif; ?>
<?php if ($cartLink): ?>
<?= /* @noEscape */ $cartLink ?>
<?php endif; ?>
<?php if ($minicart): ?>
<?= /* @noEscape */ $minicart ?>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($search): ?>
<div class="header__search-wrapper">
<?= /* @noEscape */ $search ?>
</div>
<?php endif; ?>
</div>
</div>
</header>
<?php if ($menuMainDesktop): ?>
<?= /* @noEscape */ $menuMainDesktop ?>
<?php endif; ?>