<?php
/**
 * Header Layout
 * @package Air Ticket Booking
 */

$air_ticket_booking_defaults = air_ticket_booking_get_default_theme_options();

$air_ticket_booking_sticky = get_theme_mod('air_ticket_booking_sticky');
    $air_ticket_booking_data_sticky = "false";
    if ($air_ticket_booking_sticky) {
    $air_ticket_booking_data_sticky = "true";
    }
    global $wp_customize;

$air_ticket_booking_header_layout_button_text = esc_html( get_theme_mod( 'air_ticket_booking_header_layout_button_text',
$air_ticket_booking_defaults['air_ticket_booking_header_layout_button_text'] ) );

$air_ticket_booking_header_layout_button_url = esc_html( get_theme_mod( 'air_ticket_booking_header_layout_button_url',
$air_ticket_booking_defaults['air_ticket_booking_header_layout_button_url'] ) );

?>
<header id="site-header" class="site-header-layout header-layout" role="banner">
    <div class="header-navbar <?php if( is_user_logged_in() && !isset( $wp_customize ) ){ echo "login-user";} ?>" data-sticky="<?php echo esc_attr($air_ticket_booking_data_sticky); ?>">
        <div class="wrapper header-wrapper">
            <div class="theme-header-areas header-areas-left aa">
                <div class="header-titles">
                    <?php
                    air_ticket_booking_site_logo();
                    air_ticket_booking_site_description();
                    ?>
                </div>
            </div>
            <div class="header-right-box">
                <div class="theme-header-areas header-areas-right bb">
                    <div class="site-navigation">
                        <nav class="primary-menu-wrapper" aria-label="<?php esc_attr_e('Horizontal', 'air-ticket-booking'); ?>" role="navigation">
                            <ul class="primary-menu theme-menu">
                                <?php
                                if (has_nav_menu('air-ticket-booking-primary-menu')) {
                                    wp_nav_menu(
                                        array(
                                            'container' => '',
                                            'items_wrap' => '%3$s',
                                            'theme_location' => 'air-ticket-booking-primary-menu',
                                        )
                                    );
                                } else {
                                    wp_list_pages(
                                        array(
                                            'match_menu_classes' => true,
                                            'show_sub_menu_icons' => true,
                                            'title_li' => false,
                                            'walker' => new Air_Ticket_Booking_Walker_Page(),
                                        )
                                    );
                                } ?>
                            </ul>
                        </nav>
                    </div>
                    <div class="navbar-controls twp-hide-js">
                        <button type="button" class="navbar-control navbar-control-offcanvas">
                            <span class="navbar-control-trigger" tabindex="-1">
                                <?php air_ticket_booking_the_theme_svg('menu'); ?>
                            </span>
                        </button>
                    </div>
                </div>
                <div class="theme-header-areas header-areas-right header-contact cc">
                    <div class="header-btn">
                        <a href="<?php echo esc_url( $air_ticket_booking_header_layout_button_url ); ?>"><?php echo esc_html( $air_ticket_booking_header_layout_button_text ); ?></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</header>