You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.8 KiB
66 lines
1.8 KiB
<header class="component-header <?= $isHome ? 'is-home' : '';?>">
|
|
|
|
<div class="container header-wrapper">
|
|
|
|
<a href="/">
|
|
<img class="logo" src="/images/logoHeader.svg">
|
|
</a>
|
|
|
|
<div class="ctas">
|
|
<a href="/carrello" class="cart-cta icon-buy">
|
|
<span class="counter"><?= count($_SESSION['CART']);?></span>
|
|
<span class="label">Carrello</span>
|
|
</a>
|
|
|
|
<a href="/account" class="account-cta icon-user">
|
|
<span class="label">
|
|
<?php
|
|
if($_SESSION['AUTH']) {
|
|
echo $_SESSION['AUTH']['first_name'].' '.$_SESSION['AUTH']['last_name'];
|
|
} else {
|
|
echo "Log-in";
|
|
}
|
|
?>
|
|
</span>
|
|
</a>
|
|
</div>
|
|
|
|
<button class="hamburger hamburger--spring my-auto">
|
|
<span class="hamburger-box">
|
|
<span class="hamburger-inner"></span>
|
|
</span>
|
|
</button>
|
|
|
|
|
|
<nav class="menu-container">
|
|
<span class="menu-label">
|
|
<a href="/iolovolio" class="label">iolovolio</b></a>
|
|
</span>
|
|
|
|
<ul class="menu">
|
|
<li class="item <?php if($getQ[0] == 'conoscere') { echo "active";}?>">
|
|
<a href="/conoscere" class="label">conoscere</a>
|
|
</li>
|
|
<!--
|
|
<li class="item <?php if($getQ[0] == 'produrre') { echo "active";}?>">
|
|
<a href="/produrre" class="label">produrre</a>
|
|
</li>
|
|
-->
|
|
<li class="item <?php if($getQ[0] == 'acquistare') { echo "active";}?>">
|
|
<a href="/acquistare" class="label">acquistare</a>
|
|
</li>
|
|
<!--
|
|
<li class="item <?php if($getQ[0] == 'raccontare') { echo "active";}?>">
|
|
<a href="/raccontare" class="label">raccontare</a>
|
|
</li>
|
|
-->
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
|
|
<?php
|
|
if(!$isHome) {
|
|
@include('components/sectionHeader/sectionHeader.php');
|
|
}
|
|
?>
|
|
</header>
|