<?php
/**
* Template part for displaying default header layout
*/
$h_topbar = consultio_get_opt( 'h_topbar', 'show' );
$sticky_on = consultio_get_opt( 'sticky_on', false );
$search_icon = consultio_get_opt( 'search_icon', false );
$cart_icon = consultio_get_opt( 'cart_icon', false );
$hidden_sidebar_icon = consultio_get_opt( 'hidden_sidebar_icon', false );
$logo_mobile = consultio_get_opt( 'logo_mobile', array( 'url' => get_template_directory_uri().'/assets/images/logo-dark.png', 'id' => '' ) );
$custom_header = consultio_get_page_opt('custom_header');
$p_logo_mobile = consultio_get_page_opt('p_logo_mobile');
if($custom_header && !empty($p_logo_mobile['url'])) {
$logo_mobile['url'] = $p_logo_mobile['url'];
}
$wellcome = consultio_get_opt( 'wellcome', '' );
$h_time = consultio_get_opt( 'h_time', '' );
$h_time_label = consultio_get_opt( 'h_time_label', '' );
$h_email = consultio_get_opt( 'h_email', '' );
$h_email_link = consultio_get_opt( 'h_email_link', '' );
$h_address = consultio_get_opt( 'h_address', '' );
$h_address_label = consultio_get_opt( 'h_address_label', '' );
$h_address_link = consultio_get_opt( 'h_address_link', '' );
$h_address_link_target = consultio_get_opt( 'h_address_link_target', '' );
?>
<header id="ct-masthead">
<div id="ct-header-wrap" class="ct-header-layout17 <?php if($sticky_on == 1) { echo 'is-sticky'; } ?>">
<?php if($h_topbar == 'show') : ?>
<div id="ct-header-top" class="ct-header-top8">
<div class="container">
<div class="row">
<ul class="ct-header-holder">
<?php if(!empty($h_email)) : ?>
<li><a href="mailto:<?php echo esc_attr($h_email_link); ?>"><i class="fac fac-envelope"></i><?php echo esc_attr($h_email); ?></a></li>
<?php endif; ?>
<?php if(!empty($h_time)) : ?>
<li><i class="fac fac-clock"></i><?php echo esc_attr($h_time_label); ?> <?php echo esc_attr($h_time); ?></li>
<?php endif; ?>
<?php if(!empty($h_address)) : ?>
<li><a href="<?php echo esc_url($h_address_link); ?>" target="<?php echo esc_attr($h_address_link_target); ?>"><i class="fac fac-map-marker-alt"></i><?php echo esc_attr($h_address_label); ?> <?php echo esc_attr($h_address); ?></a></li>
<?php endif; ?>
</ul>
</div>
</div>
</div>
<?php endif; ?>
<div id="ct-header" class="ct-header-main">
<div class="container">
<div class="row">
<div class="ct-header-branding">
<div class="ct-header-branding-inner">
<?php get_template_part( 'template-parts/header-branding' ); ?>
</div>
</div>
<div class="ct-header-navigation">
<nav class="ct-main-navigation">
<div class="ct-main-navigation-inner">
<?php if ($logo_mobile['url']) { ?>
<div class="ct-logo-mobile">
<a href="<?php esc_url( esc_url( home_url( '/' ) ) ); ?>" title="<?php esc_attr( get_bloginfo( 'name' ) ); ?>" rel="home"><img src="<?php echo esc_url( $logo_mobile['url'] ); ?>" alt="<?php esc_attr( get_bloginfo( 'name' ) ); ?>"/></a>
</div>
<?php } ?>
<?php consultio_header_mobile_search(); ?>
<?php get_template_part( 'template-parts/header-menu' ); ?>
</div>
</nav>
<div class="ct-header-meta">
<?php if($search_icon) : ?>
<div class="header-right-item h-btn-search"><i class="fac fac-search"></i></div>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div id="ct-menu-mobile">
<span class="btn-nav-mobile open-menu">
<span></span>
</span>
</div>
</div>
</div>
</header> |