<?php
    $_helper = $this->helper('Smartwave\Porto\Helper\Data');
    $header_type = $this->getConfig('porto_settings/header/header_type');
    $header_new_skin = $this->getConfig('porto_settings/header/new_skin');
    $class = $header_type == 17 || $header_type == 19 || $header_type == 16 || $header_type == 20 || $header_type == 21 || $header_type == 22 || $header_type == 25 || $header_type == 26 || $header_type == 27 ? 'header-newskin':'';
    $show_notice = $this->getConfig('porto_settings/general/show_site_notice');

    if ($show_notice && $show_notice == 1)
        echo $this->getChildHtml("porto_custom_notice");
?>

<header class="page-header type<?php echo $header_type; ?> <?php echo $class;?>" >
    <?php echo $this->getChildHtml("header_customer_form_login"); ?>
    
        <div class="panel wrapper">
            <div class="panel header">
                <?php echo $this->getChildHtml("skip_to_content"); ?>
                <?php echo $this->getChildHtml("currency"); ?>
                <?php echo $this->getChildHtml("store_language"); ?>
                <?php echo $this->getChildHtml("header.links"); ?>
            </div>
        </div>
        
        <div class="header content">
            <?php echo $this->getChildHtml("logo"); ?>
            <?php echo $this->getChildHtml("minicart"); ?>
            <span data-action="toggle-nav" class="action nav-toggle"><span><?php echo __('Toggle Nav') ?></span></span>
            <span class="search-link-mobile show-mobile">
            	<a class="search-link" href="#"></a>
        	</span>
            <?php echo $this->getChildHtml("custom_block"); ?>
        </div>
        
        <div class="header menu">
        	<?php echo $this->getChildHtml("navigation.sections"); ?>
    		<?php //MNM ?>
        	<?php echo $this->getChildHtml("top.search"); ?>
			<?php //MNM ?>
        </div>

</header>

<?php
    if ($show_notice && $show_notice == 2)
        echo $this->getChildHtml("porto_custom_notice");
?>