<?php
    $header_style = dexen_get_options('header_style');
    $header_type = get_query_var('header_type');
    if (!$header_type) {
        $header_type = $header_style;
    }
    $header_style_class = 'header-one';
    if($header_style == '2' || $header_type == 2) :
        $header_style_class = 'header-style-two';
    endif;
    $header_social_onoff = dexen_get_options('header_social_onoff');
    $header_social = dexen_get_options('header_social');
    $header_contact_onoff = dexen_get_options('header_contact_onoff');
    $header_contact = dexen_get_options('header_contact');
    $unittest_header = '';
    if($header_social_onoff == 0){
        $unittest_header = 'unittest_header';
    }
?>
    <header class="site-header <?php echo esc_attr($header_style_class); ?> <?php echo esc_attr($unittest_header);?>">
            <div class="top-bar">
                <div class="container">
                    <?php if($header_social_onoff === '1' ) : ?>
                    <div class="social-block social-font-wesome-problem">
                        <?php
                            if($header_social) : 
                                echo sprintf(__('%s', 'dexen'), $header_social);    
                            endif;
                        ?>
                    </div><!-- /.social-block -->
                    <?php endif; ?>
                    <?php get_template_part('components/header/logo'); ?>
                    <?php if($header_contact_onoff === '1' ) : ?>
                    <div class="right-block">
                        <?php
                            if($header_contact) : 
                                echo sprintf(__('%s', 'dexen'), $header_contact);    
                            endif;
                        ?>
                    </div><!-- /.right-block -->
                    <?php endif; ?>
                </div><!-- /.container -->
            </div><!-- /.top-bar -->
            <nav class="navbar navbar-expand-lg navbar-light header-navigation stricky">
                <div class="container clearfix">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="logo-box clearfix">
                        <button class="menu-toggler" data-target="#main-nav-bar">
                            <span class="fa fa-bars"></span>
                        </button>
                    </div><!-- /.logo-box -->
                    <?php get_template_part('components/header/main-menu'); ?>
                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <?php if($header_social_onoff === '1' ) : ?>
                    <div class="right-side-box">
                        <div class="header__social-block">
                            <?php
                                if($header_social) : 
                                    echo sprintf(__('%s', 'dexen'), $header_social);    
                                endif;
                            ?>
                        </div><!-- /.social-block -->
                    </div><!-- /.right-side-box -->
                    <?php endif; ?>
                </div>
                <!-- /.container -->
            </nav>
        </header><!-- /.site-header header-one -->