<header id="gt-header" class="gt-header-section header_style_four" data-txstickyheader>
    <div class="gt-header-content position-relative d-flex justify-content-between align-items-center">
        <div class="brand-logo">
            <a href="<?php echo esc_url(home_url());?>">
                <img class="logo_site-size" src="<?php echo esc_url($settings['rzlogo']['url']);?>" alt="<?php if(!empty($settings['rzlogo']['alt'])){ echo esc_attr($settings['rzlogo']['alt']);}?>">
            </a>
        </div>
        <div class="gt-header-menu-cta-btn d-flex align-items-center">
            <nav class="main-navigation clearfix ul-li">
            <?php
                echo str_replace(['menu-item-has-children', 'sub-menu'], ['dropdown', 'dropdown-menu clearfix'], wp_nav_menu( array(
                    'echo'           => false,
                    'menu' => !empty($settings['choose-menu']) ? $settings['choose-menu'] : 'menu-1',
                    'menu_id'        =>'main-nav',
                    'menu_class'        =>'nav navbar-nav clearfix',
                    'container'=>false,
                    'fallback_cb'    => 'Navwalker_Class::fallback',
                    'walker'         => class_exists( 'Rs_Mega_Menu_Walker' ) ? new \Rs_Mega_Menu_Walker : '',
                )) );
            ?>
            </nav>
            <?php if(!empty($settings['btn_label'])):?>
                <div class="header-cta-btn">
                    <a <?php echo $this->get_render_attribute_string( 'btn_link' ); ?>>
                        <?php echo esc_html($settings['btn_label']);?>
                        <?php 
                            if($settings['btn_icon_enable'] === 'yes'){
                                \Elementor\Icons_Manager::render_icon( $settings['btn_icon'], [ 'aria-hidden' => 'true' ] ); 
                            }                    
                        ?>
                    </a>
                </div>
            <?php endif;?>
        </div>
        <div class="gt-header-action d-flex align-items-center">
            <div class="off-canvas-btn">
                <button class="mobile_menu_button open_mobile_menu"><i class="far fa-bars"></i></button>
            </div>

            <div class="header-search position-relative">
                <form action="<?php echo esc_url(home_url( '/' ));?>">
                    <input type="text" name="s" placeholder="<?php echo esc_attr_e('Search Here...', 'goyto-plugin');?>" value="<?php echo get_search_query();?>">
                    <button><i class="fal fa-search"></i></button>
                </form>
            </div>
        </div>
    </div>
</header>
<?php $this->__mobile_menu(); $this->___search_body();?>