HEX
Server: Apache
System: Linux vps.rockyroadprinting.net 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: rockyroadprintin (1011)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/rockyroadprintin/www/wp-content/themes/consulting/partials/headers/main.php
<div id="fullpage" class="content_wrapper">
<?php if( !is_404() ) :
    $consulting_config = consulting_config();
    $logo_tmp_src = '';
    if( !empty( $consulting_config[ 'layout' ] ) && $consulting_config[ 'layout' ] != 'layout_1' && $consulting_config[ 'layout' ] != 'layout_12' ) {
        $logo_tmp_src = $consulting_config[ 'layout' ] . '/';
    }
    $pearl_header_builder = consulting_theme_option( 'header_builder' );
    $wc_cart_hide = consulting_theme_option( 'wc_cart_hide', false );
    $wc_topbar_cart_hide = consulting_theme_option( 'wc_topbar_cart_hide', false );
    ?>
    <header id="header">
        <?php
        if( defined( 'STM_HB_VER' ) &&  $pearl_header_builder == 'pear_builder' ): ?>
            <?php do_action( 'stm_hb', array( 'header' => 'stm_hb_settings' ) ); ?>
        <?php else: ?>
            <?php if( empty( $_GET[ 'hide_top_bar' ] ) ): ?>
                <?php if( consulting_theme_option( 'top_bar', false ) ): ?>
                    <div class="top_bar">
                        <div class="container">
                            <?php if( consulting_get_header_style() == 'header_style_6' ) : ?>
                                <?php if( class_exists( 'WooCommerce' ) && empty( $wc_topbar_cart_hide ) ): ?>
                                    <div class="cart_count_wrapper">
                                        <a href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="cart_count"><i
                                                    class="stm-shopping-cart8"></i><?php get_template_part( 'partials/mini', 'cart' ); ?>
                                        </a>
                                    </div>
                                <?php endif; ?>
                                <?php if( $consulting_config[ 'layout' ] == 'layout_19' || $consulting_config[ 'layout' ] == 'layout_zurich' ): ?>
                                    <?php if( $socials = consulting_get_socials() ): ?>
                                        <div class="header_socials">
                                            <?php foreach ( $socials as $key => $val ): ?>
                                                <a target="_blank" href="<?php echo esc_attr( $val ); ?>">
                                                    <i class="fa fa-<?php echo esc_attr( $key ); ?>"></i>
                                                </a>
                                            <?php endforeach; ?>
                                        </div>
                                    <?php endif; ?>
                                <?php endif; ?>
                                <?php
                                if( consulting_theme_option( 'wpml_switcher', true ) ) {
                                    if( function_exists( 'icl_object_id' ) ) {
                                        if( consulting_theme_option( 'wpml_switcher_style', true ) == 'wpml_default' ) {
                                            do_action( 'wpml_add_language_selector' );
                                        } else {
                                            consulting_topbar_lang();
                                        }
                                    }
                                }

                                if( stm_check_layout( 'layout_16' ) ) {
                                    $top_bar_soc_hebrew = consulting_get_socials( 'top_bar_socials_l13' ); ?>
                                    <div class="stm_top_bar_middle">
                                <?php } ?>
                                <?php $top_bar_info = consulting_theme_option( 'offices_contact', array() );
                                if( $top_bar_info ): ?>
                                    <?php foreach ( $top_bar_info as $key => $val ): ?>
                                        <ul class="top_bar_contacts"
                                            id="top_bar_info_<?php echo esc_attr( $key ); ?>"<?php if( $key == 0 ) {
                                            echo ' style="display: block;"';
                                        } ?>>
                                            <?php if( !empty( $val[ 'top_bar_contact_phone' ] ) ): ?>
                                                <li>
                                                    <?php if( !empty( $val[ 'top_bar_contact_phone_icon' ] ) ) : ?>
                                                        <i class="<?php echo esc_attr( $val[ 'top_bar_contact_phone_icon' ][ 'icon' ] ); ?>"
                                                           style="font-size: <?php echo esc_attr( $val[ 'top_bar_contact_phone_icon' ][ 'size' ] ); ?>px; color: <?php echo esc_attr( $val[ 'top_bar_contact_phone_icon' ][ 'color' ] ); ?>;"></i>
                                                    <?php endif; ?>
                                                    <span><?php printf( _x( '%s', 'Call free', 'consulting' ), $val[ 'top_bar_contact_phone' ] ); ?></span>
                                                </li>
                                            <?php endif; ?>
                                            <?php if( !empty( $val[ 'top_bar_contact_email' ] ) ): ?>
                                                <li>
                                                    <?php if( !empty( $val[ 'top_bar_contact_email_icon' ] ) ) : ?>
                                                        <i class="<?php echo esc_attr( $val[ 'top_bar_contact_email_icon' ][ 'icon' ] ); ?>"
                                                           style="font-size: <?php echo esc_attr( $val[ 'top_bar_contact_email_icon' ][ 'size' ] ); ?>px; color: <?php echo esc_attr( $val[ 'top_bar_contact_email_icon' ][ 'color' ] ); ?>;"></i>
                                                    <?php endif; ?>
                                                    <span><?php printf( _x( '%s', 'Top bar hours', 'consulting' ), $val[ 'top_bar_contact_email' ] ); ?></span>
                                                </li>
                                            <?php endif; ?>
                                            <?php if( !empty( $val[ 'top_bar_contact_hours' ] ) ): ?>
                                                <li>
                                                    <?php if( !empty( $val[ 'top_bar_contact_hours' ] ) ) : ?>
                                                        <i class="<?php echo esc_attr( $val[ 'top_bar_contact_hours_icon' ][ 'icon' ] ); ?>"
                                                           style="font-size: <?php echo esc_attr( $val[ 'top_bar_contact_hours_icon' ][ 'size' ] ); ?>px; color: <?php echo esc_attr( $val[ 'top_bar_contact_hours_icon' ][ 'color' ] ); ?>;"></i>
                                                    <?php endif; ?>
                                                    <span><?php printf( _x( '%s', 'Top bar hours', 'consulting' ), $val[ 'top_bar_contact_hours' ] ); ?></span>
                                                </li>
                                            <?php endif; ?>
                                            <?php if( !empty( $val[ 'top_bar_contact_address' ] ) ): ?>
                                                <li>
                                                    <?php if( !empty( $val[ 'top_bar_contact_address_icon' ] ) ) : ?>
                                                        <i class="<?php echo esc_attr( $val[ 'top_bar_contact_address_icon' ][ 'icon' ] ); ?>"
                                                           style="font-size: <?php echo esc_attr( $val[ 'top_bar_contact_address_icon' ][ 'size' ] ); ?>px; color: <?php echo esc_attr( $val[ 'top_bar_contact_address_icon' ][ 'color' ] ); ?>;"></i>
                                                    <?php endif; ?>
                                                    <span><?php printf( _x( '%s', 'Top bar address', 'consulting' ), $val[ 'top_bar_contact_address' ] ); ?></span>
                                                </li>
                                            <?php endif; ?>
                                        </ul>
                                    <?php endforeach; ?>
                                <?php endif; ?>
                                <?php if( !empty( $top_bar_soc_hebrew ) ): ?>
                                    <ul class="stm_l16_top_socials">
                                        <?php foreach ( $top_bar_soc_hebrew as $soc => $soc_link ): ?>
                                            <li>
                                                <a href="<?php echo esc_url( $soc_link ) ?>">
                                                    <i class="fa fa-<?php echo esc_attr( $soc ); ?>"></i>
                                                </a>
                                            </li>
                                        <?php endforeach; ?>
                                    </ul>
                                <?php endif; ?>

                                <?php if( stm_check_layout( 'layout_16' ) ) { ?>
                                    </div>
                                <?php } ?>
                            <?php elseif( consulting_get_header_style() == 'header_style_8' ) : ?>
                                <div class="logo media-left media-middle">
                                    <?php if( $logo = consulting_get_logo_url( 'logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_default.svg' ) ): ?>
                                        <?php if( stm_check_layout( 'layout_16' ) ) {
                                            $page_ID = consulting_page_id();
                                            $header_inverse = get_post_meta( $page_ID, 'header_inverse', true );
                                            if( $header_inverse && $logo = consulting_get_logo_url( 'logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_default.svg' ) ): ?>
                                                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                            src="<?php echo esc_url( $logo ); ?>"
                                                            style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                            alt="<?php bloginfo( 'name' ); ?>"/></a>
                                            <?php elseif( $logo = consulting_get_logo_url( 'dark_logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_dark.svg' ) ): ?>
                                                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                            src="<?php echo esc_url( $logo ); ?>"
                                                            style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                            alt="<?php bloginfo( 'name' ); ?>"/></a>
                                            <?php else: ?>
                                                <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
                                            <?php endif;
                                        } else { ?>
                                            <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                        src="<?php echo esc_url( $logo ); ?>"
                                                        style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                        alt="<?php bloginfo( 'name' ); ?>"/></a>
                                        <?php } ?>
                                    <?php else: ?>
                                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
                                    <?php endif; ?>
                                </div>
                                <?php $top_bar_info = consulting_theme_option( 'offices_contact', array() );
                                if( $top_bar_info ): ?>
                                    <?php foreach ( $top_bar_info as $key => $val ): ?>
                                        <ul class="top_bar_contacts"
                                            id="top_bar_info_<?php echo esc_attr( $key ); ?>"<?php if( $key == 0 ) {
                                            echo ' style="display: block;"';
                                        } ?>>
                                            <?php if( !empty( $val[ 'top_bar_contact_phone' ] ) ): ?>
                                                <li>
                                                    <?php if( !empty( $val[ 'top_bar_contact_phone_icon' ] ) ) : ?>
                                                        <i class="<?php echo esc_attr( $val[ 'top_bar_contact_phone_icon' ][ 'icon' ] ); ?>"
                                                           style="font-size: <?php echo esc_attr( $val[ 'top_bar_contact_phone_icon' ][ 'size' ] ); ?>px; color: <?php echo esc_attr( $val[ 'top_bar_contact_phone_icon' ][ 'color' ] ); ?>;"></i>
                                                    <?php endif; ?>
                                                    <span><?php printf( _x( '%s', 'Call free', 'consulting' ), $val[ 'top_bar_contact_phone' ] ); ?></span>
                                                </li>
                                            <?php endif; ?>
                                            <?php if( !empty( $val[ 'top_bar_contact_email' ] ) ): ?>
                                                <li>
                                                    <?php if( !empty( $val[ 'top_bar_contact_email_icon' ] ) ) : ?>
                                                        <i class="<?php echo esc_attr( $val[ 'top_bar_contact_email_icon' ][ 'icon' ] ); ?>"
                                                           style="font-size: <?php echo esc_attr( $val[ 'top_bar_contact_hours_icon' ][ 'size' ] ); ?>px; color: <?php echo esc_attr( $val[ 'top_bar_contact_hours_icon' ][ 'color' ] ); ?>;"></i>
                                                    <?php endif; ?>
                                                    <span><?php printf( _x( '%s', 'Top bar hours', 'consulting' ), $val[ 'top_bar_contact_email' ] ); ?></span>
                                                </li>
                                            <?php endif; ?>
                                            <?php if( !empty( $val[ 'top_bar_contact_address' ] ) ): ?>
                                                <li>
                                                    <?php if( !empty( $val[ 'top_bar_contact_address_icon' ] ) ) : ?>
                                                        <i class="<?php echo esc_attr( $val[ 'top_bar_contact_address_icon' ][ 'icon' ] ); ?>"
                                                           style="font-size: <?php echo esc_attr( $val[ 'top_bar_contact_address_icon' ][ 'size' ] ); ?>px; color: <?php echo esc_attr( $val[ 'top_bar_contact_address_icon' ][ 'color' ] ); ?>;"></i>
                                                    <?php endif; ?>
                                                    <span><?php printf( _x( '%s', 'Top bar address', 'consulting' ), $val[ 'top_bar_contact_address' ] ); ?></span>
                                                </li>
                                            <?php endif; ?>
                                        </ul>
                                    <?php endforeach; ?>
                                <?php endif; ?>
                            <?php else : ?>
                                <?php
                                if( consulting_theme_option( 'wpml_switcher', false ) ) {
                                    if( function_exists( 'icl_object_id' ) ) {
                                        if( consulting_theme_option( 'wpml_switcher_style', false ) == 'wpml_default' ) {
                                            do_action( 'wpml_add_language_selector' );
                                        } else {
                                            consulting_topbar_lang();
                                        }
                                    }
                                }
                                $top_bar_info = consulting_theme_option( 'offices_contact', array() );
                                ?>
                                <div class="top_bar_info_wr">
                                    <?php if( consulting_get_header_style() == 'header_style_4' && ( $consulting_config[ 'layout' ] == 'layout_13' || $consulting_config[ 'layout' ] == 'layout_barcelona' ) ): ?>
                                        <?php
                                        $stm_work_hours_l13 = consulting_theme_option( 'stm_work_hours_l13', esc_html__( 'Mon - Sat 8.00 - 18.00. Sunday CLOSED', 'consulting' ) );
                                        $top_bar_search_l13 = consulting_theme_option( 'top_bar_search_l13', false );
                                        $top_bar_soc = consulting_get_socials( 'top_bar_socials_l13' );
                                        ?>
                                        <?php if( $top_bar_search_l13 ): ?>
                                            <div class="stm_top_bar_l13-search">
                                                <?php get_search_form( true ); ?>
                                            </div>
                                        <?php endif; ?>
                                        <div class="stm_top_bar_l13-center">
                                            <?php if( !empty( $stm_work_hours_l13 ) ): ?>
                                                <div class="stm_top_bar_unit_l13">
                                                    <?php echo consulting_get_icon( 'stm_work_hours_l13_icon', '' ); ?>
                                                    <span class="top_bar_contacts_text">
                                                        <?php printf( _x( '%s', 'Top bar working hours', 'consulting' ), $stm_work_hours_l13 ); ?>
                                                    </span>
                                                </div>
                                            <?php endif; ?>
                                            <?php if( !empty( $top_bar_soc ) ): ?>
                                                <div class="header_socials">
                                                    <?php foreach ( $top_bar_soc as $key => $val ): ?>
                                                        <a target="_blank" href="<?php echo esc_attr( $val ); ?>"><i
                                                                    class="fa fa-<?php echo esc_attr( $key ); ?>"></i></a>
                                                    <?php endforeach; ?>
                                                </div>
                                            <?php endif; ?>
                                        </div>
                                    <?php else: ?>
                                        <?php if( stm_check_layout( 'layout_18' ) ): ?>
                                            <?php
                                            $header_l18_btn_text = consulting_theme_option( 'header_l18_btn_text', '' );
                                            $header_l18_btn_link = consulting_theme_option( 'header_l18_btn_link', '' );
                                            if( !empty( $header_l18_btn_link ) and !empty( $header_l18_btn_text ) ):
                                                ?>
                                                <a class="vc_general vc_btn3 vc_btn3-size-md vc_btn3-shape-rounded vc_btn3-style-outline vc_btn3-block vc_btn3-icon-left vc_btn3-color-theme_style_1"
                                                   href="<?php printf( _x( '%s', 'Header button link - ' . $header_l18_btn_link, 'consulting' ), $header_l18_btn_link ); ?>"
                                                   title="<?php printf( _x( '%s', 'Header button label - ' . $header_l18_btn_text, 'consulting' ), $header_l18_btn_text ); ?>">
                                                    <i class="fa fa-chevron-left vc_btn3-icon"></i>
                                                    <?php printf( _x( '%s', 'Header button label - ' . $header_l18_btn_text, 'consulting' ), $header_l18_btn_text ); ?>
                                                </a>
                                            <?php endif; ?>
                                        <?php else: ?>
                                            <?php if( count( $top_bar_info ) > 1 ): ?>
                                                <div class="top_bar_info_switcher">
                                                    <div class="active">
                                                        <span>
                                                            <?php printf( _x( '%s', 'Top bar Active Office', 'consulting' ), $top_bar_info[ 0 ][ 'top_bar_contact_office' ] ); ?>
                                                        </span>
                                                    </div>
                                                    <ul>

                                                        <?php foreach ( $top_bar_info as $key => $val ): ?>
                                                            <li>
                                                                <a href="top_bar_info_<?php echo esc_attr( $key ); ?>">
                                                                    <?php printf( _x( '%s', 'Top bar Office', 'consulting' ), $val[ 'top_bar_contact_office' ] ); ?>
                                                                </a>
                                                            </li>
                                                        <?php endforeach; ?>
                                                    </ul>
                                                </div>
                                            <?php endif; ?>
                                        <?php endif; ?>
                                        <?php if( $top_bar_info ): ?>
                                            <?php foreach ( $top_bar_info as $key => $val ): ?>
                                                <ul class="top_bar_info"
                                                    id="top_bar_info_<?php echo esc_attr( $key ); ?>"<?php if( $key == 0 ) {
                                                    echo ' style="display: block;"';
                                                } ?>>
                                                    <?php if( !empty( $val[ 'top_bar_contact_address' ] ) ): ?>
                                                        <li>
                                                            <?php if( !empty( $val[ 'top_bar_contact_address_icon' ] ) ) : ?>
                                                                <i class="<?php echo esc_attr( $val[ 'top_bar_contact_address_icon' ][ 'icon' ] ); ?>"
                                                                   style="font-size: <?php echo esc_attr( $val[ 'top_bar_contact_address_icon' ][ 'size' ] ); ?>px; color: <?php echo esc_attr( $val[ 'top_bar_contact_address_icon' ][ 'color' ] ); ?>;"></i>
                                                            <?php endif; ?>
                                                            <span>
                                                                <?php printf( _x( '%s', 'Top bar address', 'consulting' ), $val[ 'top_bar_contact_address' ] ); ?>
                                                            </span>
                                                        </li>
                                                    <?php endif; ?>
                                                    <?php if( !empty( $val[ 'top_bar_contact_hours' ] ) ): ?>
                                                        <li>
                                                            <?php if( !empty( $val[ 'top_bar_contact_hours_icon' ] ) ) : ?>
                                                                <i class="<?php echo esc_attr( $val[ 'top_bar_contact_hours_icon' ][ 'icon' ] ); ?>"
                                                                   style="font-size: <?php echo esc_attr( $val[ 'top_bar_contact_hours_icon' ][ 'size' ] ); ?>px; color: <?php echo esc_attr( $val[ 'top_bar_contact_hours_icon' ][ 'color' ] ); ?>;"></i>
                                                            <?php endif; ?>
                                                            <span>
                                                                <?php printf( _x( '%s', 'Top bar hours', 'consulting' ), $val[ 'top_bar_contact_hours' ] ); ?>
                                                            </span>
                                                        </li>
                                                    <?php endif; ?>
                                                    <?php if( !empty( $val[ 'top_bar_contact_phone' ] ) ): ?>
                                                        <li>
                                                            <?php if( !empty( $val[ 'top_bar_contact_phone_icon' ] ) ) : ?>
                                                                <i class="<?php echo esc_attr( $val[ 'top_bar_contact_phone_icon' ][ 'icon' ] ); ?>"
                                                                   style="font-size: <?php echo esc_attr( $val[ 'top_bar_contact_phone_icon' ][ 'size' ] ); ?>px; color: <?php echo esc_attr( $val[ 'top_bar_contact_phone_icon' ][ 'color' ] ); ?>;"></i>
                                                            <?php endif; ?>
                                                            <span>
                                                                <?php printf( _x( '%s', 'Top bar phone', 'consulting' ), $val[ 'top_bar_contact_phone' ] ); ?>
                                                            </span>
                                                        </li>
                                                    <?php endif; ?>
                                                </ul>
                                            <?php endforeach; ?>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                <?php endif; ?>
            <?php endif; ?>
            <?php if( consulting_get_header_style() == 'header_style_5' and $consulting_config[ 'layout' ] == 'layout_14' ):
                get_template_part( 'partials/headers/l14', 'hs5' );
            else: ?>
                <?php if( consulting_get_header_style() == '' || consulting_get_header_style() == 'header_style_1' || consulting_get_header_style() == 'header_style_3' || consulting_get_header_style() == 'header_style_4' ): ?>

                    <div class="header_top clearfix">
                        <div class="container">
                            <?php if( consulting_get_header_style() != 'header_style_4' && $socials = consulting_get_socials() ): ?>
                                <div class="header_socials">
                                    <?php foreach ( $socials as $key => $val ): ?>
                                        <a target="_blank" href="<?php echo esc_attr( $val ); ?>"><i
                                                    class="fa fa-<?php echo esc_attr( $key ); ?>"></i></a>
                                    <?php endforeach; ?>
                                </div>
                            <?php endif; ?>
                            <div class="logo">
                                <?php if( consulting_get_header_style() != 'header_style_4' && $logo = consulting_get_logo_url( 'logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_default.svg' ) ): ?>
                                    <?php
                                    $page_ID = consulting_page_id();
                                    $header_inverse = get_post_meta( $page_ID, 'header_inverse', true );
                                    ?>
                                    <?php if( $header_inverse && $logo = consulting_get_logo_url( 'dark_logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_dark.svg' ) ): ?>
                                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                    src="<?php echo esc_url( $logo ); ?>"
                                                    style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                    alt="<?php bloginfo( 'name' ); ?>"/></a>
                                    <?php else: ?>
                                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                    src="<?php echo esc_url( $logo ); ?>"
                                                    style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                    alt="<?php bloginfo( 'name' ); ?>"/></a>
                                    <?php endif; ?>
                                <?php elseif( consulting_get_header_style() == 'header_style_4' && $logo = consulting_get_logo_url( 'dark_logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_dark.svg' ) ): ?>
                                    <?php
                                    $page_ID = consulting_page_id();
                                    $header_inverse = get_post_meta( $page_ID, 'header_inverse', true );
                                    $consulting_config = consulting_config();
                                    ?>
                                    <?php if( $consulting_config[ 'layout' ] == 'layout_6' ) : ?>
                                        <?php
                                        if( $header_inverse ) {
                                            $logo = consulting_get_logo_url( 'logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_default.svg' );
                                        }
                                        ?>
                                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                    src="<?php echo esc_url( $logo ); ?>"
                                                    style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                    alt="<?php bloginfo( 'name' ); ?>"/></a>
                                    <?php else : ?>
                                        <?php
                                        if( $header_inverse ) {
                                            $logo = consulting_get_logo_url( 'logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_default.svg' );
                                        }
                                        ?>
                                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img
                                                    src="<?php echo esc_url( $logo ); ?>"
                                                    style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                    alt="<?php bloginfo( 'name' ); ?>"/></a>
                                    <?php endif; ?>
                                <?php else: ?>
                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
                                <?php endif; ?>
                            </div>
                            <?php if( consulting_get_header_style() == 'header_style_4' and ( $consulting_config[ 'layout' ] == 'layout_13' || $consulting_config[ 'layout' ] == 'layout_barcelona' ) ): ?>
                                <?php if( $header_address = consulting_theme_option( 'header_address', '' ) ): ?>
                                    <div class="icon_text clearfix">
                                        <div class="icon"><?php echo consulting_get_icon( 'header_address_icon', 'stm-pin_13' ); ?></div>
                                        <div class="text">
                                            <?php printf( _x( '%s', 'Header address', 'consulting' ), $header_address ); ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <?php if( $header_hours = consulting_theme_option( 'header_working_hours', 'Write us <a href="mailto:info@consulting.com">info@consulting.com' ) ): ?>
                                    <div class="icon_text middle clearfix">
                                        <div class="icon"><?php echo consulting_get_icon( 'header_working_hours_icon', 'stm-mail_13' ); ?></div>
                                        <div class="text">
                                            <?php printf( _x( '%s', 'Header hours', 'consulting' ), $header_hours ); ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <?php if( consulting_get_header_style() == 'header_style_4' && $header_phone = consulting_theme_option( 'header_phone', '<strong>212 386 5575</strong><span data-scroll-to="request-call-back>Request call back</span>>Request call back</span>' ) ): ?>
                                    <div class="icon_text big last clearfix">
                                        <div class="icon"><?php echo consulting_get_icon( 'header_phone_icon', 'stm-phone_13' ); ?></div>
                                        <div class="text">
                                            <?php printf( _x( '%s', 'Header phone', 'consulting' ), $header_phone ); ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                            <?php else: ?>
                                <?php if( consulting_get_header_style() == 'header_style_4' && $header_phone = consulting_theme_option( 'header_phone', '' ) ): ?>
                                    <div class="icon_text big clearfix">
                                        <div class="icon"><?php echo consulting_get_icon( 'header_phone_icon', 'fa-phone' ); ?>
                                        </div>
                                        <div class="text">
                                            <?php printf( _x( '%s', 'Header phone', 'consulting' ), $header_phone ); ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <?php if( $header_hours = consulting_theme_option( 'header_working_hours', '' ) ): ?>
                                    <div class="icon_text clearfix">
                                        <div class="icon"><?php echo consulting_get_icon( 'header_working_hours_icon', 'fa-clock-o' ); ?></div>
                                        <div class="text">
                                            <?php printf( _x( '%s', 'Header hours', 'consulting' ), $header_hours ); ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <?php if( $header_address = consulting_theme_option( 'header_address', '' ) ): ?>
                                    <div class="icon_text clearfix">
                                        <div class="icon"><?php echo consulting_get_icon( 'header_address_icon', 'fa-map-marker' ); ?></div>
                                        <div class="text stm_st_address_1">
                                            <?php printf( _x( '%s', 'Header address', 'consulting' ), $header_address ); ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                            <?php endif; ?>
                        </div>
                    </div>
                    <div class="top_nav">
                        <div class="container">
                            <div class="top_nav_wrapper clearfix">
                                <?php
                                wp_nav_menu( array(
                                        'theme_location' => 'consulting-primary_menu',
                                        'container' => false,
                                        'depth' => 4,
                                        'menu_class' => 'main_menu_nav'
                                    )
                                );
                                ?>
                                <?php if( consulting_get_header_style() != 'header_style_4' && $header_phone = consulting_theme_option( 'header_phone', '' ) ): ?>
                                    <div class="icon_text clearfix">
                                        <div class="icon"><?php echo consulting_get_icon( 'header_phone_icon', 'fa-phone' ); ?></div>
                                        <div class="text">
                                            <?php printf( _x( '%s', 'Header phone', 'consulting' ), $header_phone ); ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <?php if( consulting_get_header_style() == 'header_style_4' ): ?>
                                    <?php if( $consulting_config[ 'layout' ] == 'layout_2' ) : ?>
                                        <div class="header_search">
                                            <a class="js-open-search-box" href="#"><i class="fa fa-search"></i></a>
                                            <div class="pop-search-box">
                                                <form method="get" class="pop-search-box_form"
                                                      action="<?php echo esc_url( home_url( '/' ) ); ?>">
                                                    <input type="search" class="form-control"
                                                           placeholder="<?php esc_attr_e( 'Search...', 'consulting' ); ?>"
                                                           value="<?php echo esc_attr( get_search_query() ); ?>"
                                                           name="s"/>
                                                    <button type="submit"><i class="fa fa-search"></i></button>
                                                </form>
                                            </div>
                                        </div>
                                    <?php endif; ?>
                                <?php endif; ?>
                                <?php if( consulting_get_header_style() == 'header_style_4' && ( $consulting_config[ 'layout' ] == 'layout_13' || $consulting_config[ 'layout' ] == 'layout_barcelona' ) && class_exists( 'WooCommerce' ) && $wc_cart_hide ): ?>
                                    <div class="header_socials">
                                        <a href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="cart_count"><i
                                                    class="stm-cart_13"></i><?php get_template_part( 'partials/mini', 'cart' ); ?>
                                        </a>
                                    </div>
                                <?php endif; ?>
                                <?php if( consulting_get_header_style() == 'header_style_4' and $socials = consulting_get_socials() ): ?>
                                    <div class="header_socials">
                                        <?php foreach ( $socials as $key => $val ): ?>
                                            <a target="_blank" href="<?php echo esc_attr( $val ); ?>"><i
                                                        class="fa fa-<?php echo esc_attr( $key ); ?>"></i></a>
                                        <?php endforeach; ?>
                                    </div>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                <?php elseif( consulting_get_header_style() == 'header_style_2' ): ?>
                    <div class="header_top clearfix">
                        <div class="container">
                            <div class="logo media-left media-middle">
                                <?php
                                $page_ID = consulting_page_id();
                                $header_inverse = get_post_meta( $page_ID, 'header_inverse', true );
                                ?>
                                <?php if( $header_inverse && $logo = consulting_get_logo_url( 'logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_default.svg' ) ): ?>
                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                src="<?php echo esc_url( $logo ); ?>"
                                                style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                alt="<?php bloginfo( 'name' ); ?>"/></a>
                                <?php elseif( $logo = consulting_get_logo_url( 'dark_logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_dark.svg' ) ): ?>
                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                src="<?php echo esc_url( $logo ); ?>"
                                                style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                alt="<?php bloginfo( 'name' ); ?>"/></a>
                                <?php else: ?>
                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
                                <?php endif; ?>
                            </div>
                            <div class="top_nav media-body media-middle">
                                <?php if( $socials = consulting_get_socials() ): ?>
                                    <div class="header_socials">
                                        <?php foreach ( $socials as $key => $val ): ?>
                                            <a target="_blank" href="<?php echo esc_attr( $val ); ?>"><i
                                                        class="fa fa-<?php echo esc_attr( $key ); ?>"></i></a>
                                        <?php endforeach; ?>
                                        <?php if( class_exists( 'WooCommerce' ) && $wc_cart_hide ): ?>
                                            <a href="<?php echo esc_url( wc_get_cart_url() ); ?>"
                                               class="cart_count"><i
                                                        class="stm-cart-2"></i><?php get_template_part( 'partials/mini', 'cart' ); ?>
                                            </a>
                                        <?php endif; ?>
                                    </div>
                                <?php else: ?>
                                    <?php if( class_exists( 'WooCommerce' ) && $wc_cart_hide ): ?>
                                        <div class="header_socials">
                                            <a href="<?php echo esc_url( wc_get_cart_url() ); ?>"
                                               class="cart_count"><i
                                                        class="stm-cart-2"></i><?php get_template_part( 'partials/mini', 'cart' ); ?>
                                            </a>
                                        </div>
                                    <?php endif; ?>
                                <?php endif; ?>
                                <div class="top_nav_wrapper clearfix">
                                    <?php
                                    wp_nav_menu( array(
                                            'theme_location' => 'consulting-primary_menu',
                                            'container' => false,
                                            'depth' => 4,
                                            'menu_class' => 'main_menu_nav'
                                        )
                                    );
                                    ?>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php elseif( consulting_get_header_style() == 'header_style_5' ) : ?>
                    <div class="header_top clearfix">
                        <div class="container">
                            <?php if( $header_phone = consulting_theme_option( 'header_phone', __( "<strong>212 714 0177</strong>\n<span>Free call</span>", 'consulting' ) ) ): ?>
                                <div class="info-text __phone-number">
                                    <?php printf( _x( '%s', 'Header Phone', 'consulting' ), $header_phone ); ?>
                                </div>
                            <?php endif; ?>
                            <?php
                            if( consulting_theme_option( 'wpml_switcher', true ) && $consulting_config[ 'layout' ] != 'layout_budapest' ) {
                                if( function_exists( 'icl_object_id' ) ) {
                                    if( consulting_theme_option( 'wpml_switcher_style', true ) == 'wpml_default' ) {
                                        do_action( 'wpml_add_language_selector' );
                                    } else {
                                        consulting_topbar_lang();
                                    }
                                }
                            }
                            ?>
                            <div class="logo">
                                <?php
                                $page_ID = consulting_page_id();
                                $header_inverse = get_post_meta( $page_ID, 'header_inverse', true );
                                ?>
                                <?php if( $header_inverse && $logo = consulting_get_logo_url( 'logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_default.svg' ) ): ?>
                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                src="<?php echo esc_url( $logo ); ?>"
                                                style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                alt="<?php bloginfo( 'name' ); ?>"/></a>
                                <?php elseif( $logo = consulting_get_logo_url( 'dark_logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_dark.svg' ) ): ?>
                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                src="<?php echo esc_url( $logo ); ?>"
                                                style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                alt="<?php bloginfo( 'name' ); ?>"/></a>
                                <?php else: ?>
                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <div class="top_nav">
                        <div class="container">
                            <div class="top_nav_wrapper clearfix">
                                <?php
                                wp_nav_menu( array(
                                        'theme_location' => 'consulting-primary_menu',
                                        'container' => false,
                                        'depth' => 4,
                                        'menu_class' => 'main_menu_nav'
                                    )
                                );
                                ?>
                            </div>
                        </div>
                    </div>

                <?php elseif( consulting_get_header_style() == 'header_style_6' ) : ?>

                    <div class="header_top clearfix">
                        <div class="container">
                            <div class="header_top_wrapper">
                                <?php if( stm_check_layout( 'layout_19' ) ): ?>
                                    <div class="logo media-left media-middle">
                                        <?php
                                        $page_ID = consulting_page_id();
                                        $header_inverse = get_post_meta( $page_ID, 'header_inverse', true );
                                        ?>
                                        <?php if( $header_inverse && $logo = consulting_get_logo_url( 'logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_default.svg' ) ): ?>
                                            <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                        src="<?php echo esc_url( $logo ); ?>"
                                                        style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                        alt="<?php bloginfo( 'name' ); ?>"/></a>
                                        <?php elseif( $logo = consulting_get_logo_url( 'dark_logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_dark.svg' ) ): ?>
                                            <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                        src="<?php echo esc_url( $logo ); ?>"
                                                        style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                        alt="<?php bloginfo( 'name' ); ?>"/></a>
                                        <?php else: ?>
                                            <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
                                        <?php endif; ?>
                                    </div>
                                <?php else: ?>
                                    <div class="logo media-left media-middle">
                                        <?php if( $logo = consulting_get_logo_url( 'logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_default.svg' ) ): ?>
                                            <?php if( stm_check_layout( 'layout_16' ) ) {
                                                $page_ID = consulting_page_id();
                                                $header_inverse = get_post_meta( $page_ID, 'header_inverse', true );
                                                if( $header_inverse && $logo = consulting_get_logo_url( 'logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_default.svg' ) ): ?>
                                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                                src="<?php echo esc_url( $logo ); ?>"
                                                                style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                                alt="<?php bloginfo( 'name' ); ?>"/></a>
                                                <?php elseif( $logo = consulting_get_logo_url( 'dark_logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_dark.svg' ) ): ?>
                                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                                src="<?php echo esc_url( $logo ); ?>"
                                                                style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                                alt="<?php bloginfo( 'name' ); ?>"/></a>
                                                <?php else: ?>
                                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
                                                <?php endif;
                                            } else { ?>
                                                <?php
                                                $page_ID = consulting_page_id();
                                                $header_inverse = get_post_meta( $page_ID, 'header_inverse', true );
                                                ?>
                                                <?php if( $header_inverse && $logo = consulting_get_logo_url( 'dark_logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_dark.svg' ) ) : ?>
                                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                                src="<?php echo esc_url( $logo ); ?>"
                                                                style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                                alt="<?php bloginfo( 'name' ); ?>"/></a>
                                                <?php else: ?>
                                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                                src="<?php echo esc_url( $logo ); ?>"
                                                                style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                                alt="<?php bloginfo( 'name' ); ?>"/></a>
                                                <?php endif; ?>
                                            <?php } ?>
                                        <?php else: ?>
                                            <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
                                        <?php endif; ?>
                                    </div>
                                <?php endif; ?>
                                <div class="top_nav media-body media-middle">
                                    <?php if( stm_check_layout( 'layout_16' ) ): ?>
                                        <?php
                                        $header_l16_btn_text = consulting_theme_option( 'header_l16_btn_text', '' );
                                        $header_l16_btn_link = consulting_theme_option( 'header_l16_btn_link', '' );
                                        if( !empty( $header_l16_btn_link ) and !empty( $header_l16_btn_text ) ):
                                            ?>
                                            <a class="vc_general vc_btn3 vc_btn3-size-md vc_btn3-shape-rounded vc_btn3-style-outline vc_btn3-block vc_btn3-icon-left vc_btn3-color-theme_style_2"
                                               href="<?php printf( _x( '%s', 'Header button link - ' . $header_l16_btn_link, 'consulting' ), $header_l16_btn_link ); ?>"
                                               title="<?php printf( _x( '%s', 'Header button text - ' . $header_l16_btn_text, 'consulting' ), $header_l16_btn_text ); ?>">
                                                <?php printf( _x( '%s', 'Header button text - ' . $header_l16_btn_text, 'consulting' ), $header_l16_btn_text ); ?>
                                            </a>
                                        <?php endif; ?>
                                    <?php endif; ?>
                                    <div class="top_nav_wrapper clearfix">
                                        <?php
                                        wp_nav_menu( array(
                                                'theme_location' => 'consulting-primary_menu',
                                                'container' => false,
                                                'depth' => 4,
                                                'menu_class' => 'main_menu_nav'
                                            )
                                        );
                                        ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                <?php elseif( consulting_get_header_style() == 'header_style_7' ) : ?>
                    <?php
                    $socials = consulting_get_socials();
                    $header_side_class = '';
                    if( !empty( $socials ) && is_array( $socials ) ) {
                        $header_side_class .= ' has-socials';
                    }
                    ?>
                    <div class="header_side clearfix <?php echo esc_attr( $header_side_class ); ?>">
                        <div class="container">
                            <div class="header_side_wrapper">
                                <div class="logo">
                                    <?php
                                    if( $consulting_config[ 'layout' ] == 'layout_9' ) {
                                        $logo = consulting_get_logo_url( 'logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_dark.svg' );
                                    } else {
                                        $logo = consulting_get_logo_url( 'logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_default.svg' );
                                    }
                                    ?>
                                    <?php if( $logo ): ?>
                                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                                    src="<?php echo esc_url( $logo ); ?>"
                                                    style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                                    alt="<?php bloginfo( 'name' ); ?>"/></a>
                                    <?php else: ?>
                                        <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
                                    <?php endif; ?>
                                </div>
                                <div class="side_nav">
                                    <div class="side_nav_wrapper clearfix">
                                        <?php
                                        wp_nav_menu( array(
                                                'theme_location' => 'consulting-primary_menu',
                                                'container' => false,
                                                'depth' => 4,
                                                'menu_class' => 'main_menu_nav'
                                            )
                                        );
                                        ?>
                                    </div>
                                </div>
                                <?php if( $socials = consulting_get_socials() ): ?>
                                    <div class="header_socials">
                                        <?php foreach ( $socials as $key => $val ): ?>
                                            <a target="_blank" href="<?php echo esc_attr( $val ); ?>"><i
                                                        class="fa fa-<?php echo esc_attr( $key ); ?>"></i></a>
                                        <?php endforeach; ?>
                                    </div>
                                <?php endif; ?>
                                <?php if( $copyright = html_entity_decode( consulting_theme_option( 'header_copyright', 'Theme by <a href=\'https://stylemixthemes.com/\' target=\'_blank\'>Stylemix Themes</a> <br>2021 &copy; All rights reserved.' ) ) ): ?>
                                    <div class="header_copyright">
                                        <?php printf( _x( '%s', 'Copyright', 'consulting' ), $copyright ); ?>
                                    </div>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>

                <?php elseif( consulting_get_header_style() == 'header_style_8' ) : ?>
                    <?php
                    $socials = consulting_get_socials();
                    $header_side_class = '';
                    if( !empty( $socials ) && is_array( $socials ) ) {
                        $header_side_class .= ' has-socials';
                    }
                    ?>

                    <div id="menu_toggle_button">
                        <button></button>
                    </div>
                    <div class="header_side clearfix <?php echo esc_attr( $header_side_class ); ?>">
                        <div class="container">
                            <div class="header_side_wrapper">
                                <div class="side_nav">
                                    <div class="side_nav_wrapper clearfix">
                                        <?php
                                        wp_nav_menu( array(
                                                'theme_location' => 'consulting-primary_menu',
                                                'container' => false,
                                                'depth' => 4,
                                                'menu_class' => 'main_menu_nav'
                                            )
                                        );
                                        ?>
                                    </div>
                                    <?php
                                    if( consulting_theme_option( 'wpml_switcher', true ) ) {
                                        if( function_exists( 'icl_object_id' ) ) {
                                            if( consulting_theme_option( 'wpml_switcher_style', true ) == 'wpml_default' ) {
                                                do_action( 'wpml_add_language_selector' );
                                            } else {
                                                consulting_topbar_lang();
                                            }
                                        }
                                    }
                                    ?>
                                </div>
                                <div class="header_bottom_info_box">
                                    <?php if( $socials = consulting_get_socials() ): ?>
                                        <div class="header_socials">
                                            <?php foreach ( $socials as $key => $val ): ?>
                                                <a target="_blank" href="<?php echo esc_attr( $val ); ?>"><i
                                                            class="fa fa-<?php echo esc_attr( $key ); ?>"></i></a>
                                            <?php endforeach; ?>
                                        </div>
                                    <?php endif; ?>
                                    <?php if( $copyright = html_entity_decode( consulting_theme_option( 'header_copyright', 'Theme by <a href=\'https://stylemixthemes.com/\' target=\'_blank\'>Stylemix Themes</a> <br>2016 &copy; All rights reserved.' ) ) ): ?>
                                        <div class="header_copyright">
                                            <?php printf( _x( '%s', 'Copyright', 'consulting' ), $copyright ); ?>
                                        </div>
                                    <?php endif; ?>
                                </div>
                            </div>
                        </div>
                    </div>

                <?php endif; ?>
                <div class="mobile_header">
                    <div class="logo_wrapper clearfix">
                        <div class="logo">
                            <?php if( $logo = consulting_get_logo_url( 'dark_logo', get_template_directory_uri() . '/assets/images/tmp/' . $logo_tmp_src . 'logo_dark.svg' ) ): ?>
                                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" <?php echo consulting_get_logo_indents(); ?>><img
                                            src="<?php echo esc_url( $logo ); ?>"
                                            style="width: <?php echo esc_attr( consulting_theme_option( 'logo_width' ) ) ?>px; height: <?php echo esc_attr( consulting_theme_option( 'logo_height' ) ) ?>px;"
                                            alt="<?php bloginfo( 'name' ); ?>"/></a>
                            <?php else: ?>
                                <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
                            <?php endif; ?>
                        </div>
                        <div id="menu_toggle">
                            <button></button>
                        </div>
                    </div>
                    <div class="header_info">
                        <div class="top_nav_mobile">
                            <?php
                            wp_nav_menu( array(
                                    'theme_location' => 'consulting-primary_menu',
                                    'container' => false,
                                    'depth' => 4,
                                    'menu_class' => 'main_menu_nav'
                                )
                            );
                            ?>
                        </div>
                        <?php
                        $header_phone = consulting_theme_option( 'header_phone', "" );
                        $header_hours = consulting_theme_option( 'header_working_hours', "" );
                        $header_address = consulting_theme_option( 'header_address', "" );
                        if( !empty( $header_phone ) || !empty( $header_hours ) || !empty( $header_address ) ) : ?>
                            <div class="icon_texts">
                                <?php if( $header_phone ): ?>
                                    <div class="icon_text clearfix">
                                        <div class="icon"><?php echo consulting_get_icon( 'header_phone_icon', 'fa-phone' ); ?></div>
                                        <div class="text">
                                            <?php printf( _x( '%s', 'Header phone', 'consulting' ), $header_phone ); ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <?php if( $header_hours ): ?>
                                    <div class="icon_text clearfix">
                                        <div class="icon"><?php echo consulting_get_icon( 'header_working_hours_icon', 'fa-phone' ); ?></div>
                                        <div class="text">
                                            <?php printf( _x( '%s', 'Header hours', 'consulting' ), $header_hours ); ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <?php if( $header_address ): ?>
                                    <div class="icon_text clearfix">
                                        <div class="icon"><?php echo consulting_get_icon( 'header_address_icon', 'fa-phone' ); ?></div>
                                        <div class="text">
                                            <?php printf( _x( '%s', 'Header address', 'consulting' ), $header_address ); ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                            </div>
                        <?php endif; ?>
                        <?php if( consulting_theme_option( 'mobile_socials_show_hide', false ) && $socials = consulting_get_socials() ): ?>
                            <div class="header_socials">
                                <?php foreach ( $socials as $key => $val ): ?>
                                    <a target="_blank" href="<?php echo esc_attr( $val ); ?>"><i
                                                class="fa fa-<?php echo esc_attr( $key ); ?>"></i></a>
                                <?php endforeach; ?>
                            </div>
                        <?php endif; ?>

                    </div>
                </div>
            <?php endif; ?>
        <?php endif; ?>
    </header>
    <div id="main"
        <?php if( consulting_theme_option( 'footer_show_hide', false ) ): ?>class="footer_hide"<?php endif; ?>>
        <?php get_template_part( 'partials/title_box' ); ?>
        <div class="<?php echo esc_attr( apply_filters( 'consulting_main_container_class', 'container' ) ); ?>">
<?php endif; ?>