<?php
$class = array();
if (jwOpt::get_option('menu_bar_border', 'on') == 'on') {
    $class[] = ' row-menu-border';
}
if (jwOpt::get_option('menu_bar_fix', '0') == '1') {
    $class[] = ' row-menu-bar-fixed';
    $class[] = ' row-menu-bar-fixed-on';
}
?>

<div class="fullwidth-block row big-menu main-menu <?php echo implode($class); ?>">
    <?php if (jwOpt::get_option('leader_banner_show', '0') == '1') { ?>
        <div class="col-lg-12 header_banner">
            <?php echo jaw_get_template_part('banner_leader', 'header'); ?>
        </div>
    <?php } ?>
    <?php $img_src = get_header_image(); ?>
    <?php if (isset($img_src) && $img_src != '') { ?>
        <div class="col-lg-12 custom_header_img">
            <img src="<?php echo $img_src ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="header-image" />
        </div>
    <?php } ?>
    <div class="col-lg-12">

        <div class="header-logo">
            <?php
            $template_logo = jwOpt::get_option('custom_logo', THEME_URI . '/images/logo/logo.png');
            if (strlen($template_logo) == 0) {
                $template_logo = THEME_URI . '/images/logo/logo.png';
            }
            ?>
            <?php if (jwOpt::get_option('use_jaw_seo_logo', '1') == '1') { ?>
                <h1>
                <?php } else { ?>
                    <p>
                    <?php } ?>
                    <a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?>">
                        <img class="template-logo" src="<?php echo $template_logo; ?>" alt="<?php bloginfo('name'); ?>">
                    </a>
                    <?php if (jwOpt::get_option('use_jaw_seo_logo', '1') == '1') { ?>
                </h1>
            <?php } else { ?>
                </p>
            <?php } ?>
        </div>

        <nav class="top-bar top-bar-jw" role="navigation">
            <section>
                <?php
                wp_nav_menu(
                        array(
                            'theme_location' => 'primary_navigation'
                        )
                );
                ?>
                <div class="clear"></div>
            </section>
        </nav>

        <nav class="mobile-menu-selectbox" role="navigation">
            <?php
            wp_nav_menu(array(
                'theme_location' => 'primary_navigation', // your theme location here
                'mobile-menu' => '1'
            ));
            ?>
        </nav>
    </div>
</div>