<?php
/**
 * The template for displaying the header
 *
 * Displays all of the head element and everything up until the "site-content" div.
 *
 * @package WordPress
 * @subpackage menda
 * @since menda Theme 1.0.1
 */

?>
<!DOCTYPE html>
<html <?php echo of_get_option( 'ebid_header_layout' ) == 'rtl_header' ? 'lang="ar"' :language_attributes(); ?> class="no-js" dir="<?php echo of_get_option( 'ebid_header_layout' ) == 'rtl_header' ? 'rtl' :''; ?>">
    <head>
     	<meta charset="<?php bloginfo( 'charset' ); ?>">
    	<meta name="viewport" content="width=device-width, initial-scale=1">
    	<link rel="profile" href="http://gmpg.org/xfn/11">
        <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400&family=Open+Sans&family=Roboto+Condensed:wght@700&family=Roboto:wght@500&display=swap" rel="stylesheet">
        <link rel="preconnect" href="https://fonts.googleapis.com">
    	<?php 	
    		if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ){
                ?>
                    <link rel="shortcut icon" href="<?php echo esc_url( of_get_option( 'site_favicon' ) ); ?>" />
                <?php
            }
            wp_head();
        ?>
    </head>

    <!-- container Width style  -->
    <?php $container_width = of_get_option('ebid_theme_layout')=="page_boxstyle"? "container ebid-conatiner" : ""; ?>
    <?php wp_body_open(); ?>
    <body <?php body_class( $container_width ); ?>>
        
        <?php 

            if ( of_get_option( 'ebid_header_layout' ) == 'content_center' ){
                get_template_part( 'header/content-center' );
            }
            elseif ( of_get_option( 'ebid_header_layout' ) == 'rtl_header' ){
                get_template_part( 'header/rtl-header' );
            }
            else{
            	get_template_part( 'header/logo-left' );
            }
        ?>
        <div class="error_msg_top"></div>