<?php
/**
 * Name:  Header style 08
 **/
?>
<?php
$header_sidebar = ocolus_theme_option_meta(
    '_custom_metabox_theme_options',
    'header_sidebar'
);
?>
<header id="header" class="header style-08 ocolus-dropdown overlay">
    <div class="header-top">
        <div class="container">
            <div class="header-inner megamenu-wrap">
                <div class="header-left">
                    <?php ocolus_get_header_menu( 'header_top_menu' ); ?>
                </div>
                <div class="header-center">
                    <div class="box-header-nav">
                        <?php
                        if ( has_nav_menu( 'primary' ) )
                            wp_nav_menu( array(
                                    'menu'            => 'primary',
                                    'theme_location'  => 'primary',
                                    'depth'           => 3,
                                    'container'       => '',
                                    'container_class' => '',
                                    'container_id'    => '',
                                    'menu_class'      => 'main-menu',
                                )
                            );
                        ?>
                    </div>
                </div>
                <div class="header-right">
                    <?php if ( function_exists( 'ocolus_header_mini_cart' ) ) ocolus_header_mini_cart(); ?>
                </div>
            </div>
        </div>
    </div>
    <div class="header-bot">
        <div class="container">
            <div class="header-inner">
                <?php if ( $header_sidebar ): ?>
                    <div class="block-canvas-bar">
                        <a href="javascript:void(0)" class="canvas-open" data-ocolus="ocolus-dropdown">
                            <span class="icon"><span></span><span></span><span></span></span>
                        </a>
                    </div>
                <?php endif; ?>
                <div class="mobile-block block-menu-bar">
                    <a href="javascript:void(0)" class="menu-bar menu-toggle">
                        <span class="icon"><span></span><span></span><span></span></span>
                    </a>
                </div>
                <div class="logo"><?php ocolus_get_logo(); ?></div>
                <div class="header-control">
                    <?php ocolus_header_search( 'style-02' ); ?>
                </div>
            </div>
        </div>
    </div>
    <?php
    if ( $header_sidebar )
        ocolus_header_canvas( $header_sidebar, false );
    ?>
</header>