<?php
/**
 * @name : Default
 * @package : CMSSuperHeroes
 * @author : Fox
 */
?>
<?php global $smof_data, $wp_yellow_hats_meta; ?>
<div id="cshero-header-inner" class="header-19 h-style bg-trans m-style">
    <div id="cshero-header-wrapper">
        <div id="cshero-header">
            <div class="container">
                <div class="row">
                    <div id="cshero-header-logo" class="col-xs-6 col-sm-6 col-md-3 col-lg-3">
                        <?php 
                            if(is_page() && isset($wp_yellow_hats_meta->_cms_custom_logo) && $wp_yellow_hats_meta->_cms_custom_logo) {
                                if (is_page() && isset($wp_yellow_hats_meta->_cms_header_logo_page) && $wp_yellow_hats_meta->_cms_header_logo_page) {
                                    $smof_data['main_logo']['url'] = wp_get_attachment_url($wp_yellow_hats_meta->_cms_header_logo_page);
                                }
                            }
                            if(is_page() && isset($wp_yellow_hats_meta->_cms_custom_logo) && $wp_yellow_hats_meta->_cms_custom_logo) {
                                if (is_page() && isset($wp_yellow_hats_meta->_cms_header_logo_page_sticky) && $wp_yellow_hats_meta->_cms_header_logo_page_sticky) {
                                    $smof_data['sticky_logo']['url'] = wp_get_attachment_url($wp_yellow_hats_meta->_cms_header_logo_page_sticky);
                                }
                            }
                        ?>
                        <a class="logo-main" href="<?php echo esc_url(home_url('/')); ?>">
                            <img alt="" src="<?php echo esc_url($smof_data['main_logo']['url']); ?>">
                        </a>
                        <a class="logo-sticky" href="<?php echo esc_url(home_url('/')); ?>">
                            <img alt="" src="<?php echo esc_url($smof_data['sticky_logo']['url']); ?>">
                        </a>
                    </div><!-- #site-logo -->
                    <div id="cshero-header-navigation" class="col-xs-6 col-sm-6 col-md-9 col-lg-9">
                        <div class="cshero-header-navigation-inner clearfix">
                            <div id="cshero-header-navigation-primary" class="cshero-header-navigation">
                                <div class="cshero-navigation-right">
                                    <div class="h-nav-menu h-icon">
                                        <span class="h-text-menu"><?php echo esc_html__('MENU', 'wp-yellow-hats'); ?></span>
                                        <span class="h-button-menu"><span></span></span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>