<?php
/**
 * @package WordPress
 * @subpackage Deep
 */
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	
	<meta name="format-detection" content="telephone=no">
	<?php wp_head(); ?>
</head>

<?php
	if (get_option('deep_enable_under_construction') === "on" && get_option('deep_under_construction_page') != "0" && !is_user_logged_in()){
		add_action('template_redirect', deep_under_construction());
	}
?>

<body <?php body_class(); 
if (get_option("deep_body_type") == "body_boxed" && get_option('deep_header_style_type')!='style9') echo esc_attr(' id=boxed_layout');
if (get_option("deep_gradient_button_enable") == "on") echo esc_attr(' id=use_gradient');?>>
	<?php if (function_exists('wp_body_open')) wp_body_open(); ?>
	<?php
		if (get_option("deep_sliding_panel") == "on" && !is_page_template( 'template-under-construction.php') && 
			(function_exists('dynamic_sidebar') && is_active_sidebar( 'sliding_panel_sidebar' )) && get_option('deep_header_style_type')!='style9'){
			?>
			<div class="deep-push-sidebar deep-push-sidebar-right">
			    <?php
				if (get_option("deep_sliding_panel") == "on" && (function_exists('dynamic_sidebar') && is_active_sidebar( 'sliding_panel_sidebar' ))){
					?>					
						<div class="menu-controls sliderbar-menu-controller" title="Sidebar Menu Controller">
                            <div class="font-icon custom-font-icon">
	                            <span class="hamburguer-trigger-menu-icon">   
									<span class="hamburguer-line hamburger-line-1"></span>
									<span class="hamburguer-line hamburger-line-2"></span>
									<span class="hamburguer-line hamburger-line-3"></span>
								</span>
                            </div>
                        </div>
					<?php
				}
				
			?>
			    <div class="display-table">
			        <div id="deep-push-sidebar-content" class="deep-push-sidebar-content ajaxable">
				        <?php
					        if (function_exists('dynamic_sidebar') && is_active_sidebar( 'sliding_panel_sidebar' )){
						        dynamic_sidebar('sliding_panel_sidebar');
					        }
				        ?>
			        </div>
			    </div>
			</div>
			<?php
		}

		//the search input
		if (get_option("deep_enable_search") == "on"){
			if ( function_exists('wp_nonce_field') ){
				wp_nonce_field('deep-theme-search','deep-theme-search');
			}
			?>
			<form autocomplete="off" role="search" method="get" class="search_input deep_search_input not-ready <?php echo esc_attr(get_option("deep_search_open_effect","fade")); ?> <?php echo esc_attr(get_option("deep_header_style_type")); if (get_option("deep_header_full_width")=="on") echo " full-width-header"; ?> <?php if (get_option("deep_search_input_enable_underline","on") == "on") echo esc_attr( "with-underline" ); ?> <?php if (get_option("deep_search_input_enable_animations","on") == "on") echo esc_attr( "with-animations" ); ?>" action="<?php echo esc_url(home_url("/")); ?>">
				<div class="search_close">
					<i class="ion-android-close"></i>
				</div>
				<div class="form_bearer container">
					<div class="searchinput <?php if (get_option("deep_header_full_width") == "off") echo "container"; ?>">
						<input value="" name="s" class="search_input_value" type="text" placeholder="<?php
							if (function_exists('icl_t')){
								printf(esc_html__("%s","deep"), icl_t( 'deep', 'Type your search and hit enter...', get_option('deep_search_box_text')));
							} else {
								printf(esc_html__("%s","deep"), get_option("deep_search_box_text"));
							}
						?>" />
						<input class="hidden" type="submit" id="searchsubmit" value="Search" />
						<div class="ajax_search_results"><ul></ul></div>
					</div>
				</div>
				<?php
					if (function_exists('icl_t')){
						?>
						<input class="hidden" name="lang" type="text" value="<?php echo ICL_LANGUAGE_CODE; ?>" />
						<?php
					}
				?>
			</form>	
			<?php
		}
	?>

	
	<?php
			$loader = ((is_page_template() && get_post_meta(get_the_ID(), 'deep_enable_custom_header_options_value', true) == "yes") || (is_single() && get_post_meta(get_the_ID(), 'deep_enable_custom_header_options_value', true) == "yes")) ? get_post_meta(get_the_ID(), 'deep_enable_website_loading_value', true) : get_option("deep_enable_website_loader");
			if ($loader == "on"){
				?>
				<div id="deep_website_load">
			  	 <div class="loader-container">
			    	<div class="loading-css"></div>
			        <div class="loader-logo"></div>
			    </div>
				
				<?php if (get_option("deep_header_menu_itens_style") == "rounded") echo " menu-rounded"; ?>
				
				<div class="introloading_logo">
					<?php
						
						if (get_option("deep_enable_website_loader_logo") == "on"){
							?>
							
							<img class="logo_normal" style="position: relative;" src="<?php echo esc_url( get_option('deep_logo_intro_image_url') ); ?>" alt="<?php esc_attr_e( 'Intro Logo', 'deep' ); ?>" title="<?php esc_attr_e( 'Intro Logo', 'deep' ); ?>">
		    					
	    				<?php 
	    				if (get_option("deep_logo_intro_retina_image_url") != ""){
	    				?>
		    				<img class="logo_retina" style="display:none; position: relative;"	src="<?php echo esc_url(get_option("deep_logo_intro_retina_image_url")); ?>" alt="<?php esc_attr_e("Intro Retina Logo", "deep"); ?>" title="<?php esc_attr_e("Intro Retina Logo", "deep"); ?>">
		    			<?php 	
						}
						?>
			  	
					<?php
					}
				?>
				</div>
			
				<?php
					if (get_option("deep_enable_website_loader_percentage") == "on"){
						?>
						<div class="percentage">0%</div>
						<?php
					}
				?>
				
				
			</div>
				<?php
			}
		?>

	<div id="main" class="
	
	<?php if (get_option('demo_style') == "main_design") echo esc_attr(' main_design');
		  if (get_option('demo_style') == "brutalist_design") echo esc_attr(' brutalist_design');
		  if (get_option('demo_style') == "bold_design") echo esc_attr(' bold_design');
		  if (get_option('demo_style') == "strong_design") echo esc_attr(' strong_design');
		  if (get_option('demo_style') == "modern_design") echo esc_attr(' modern_design');
		  if (get_option('demo_style') == "elegant_design") echo esc_attr(' elegant_design');
		  if (get_option('demo_style') == "fancy_design") echo esc_attr(' fancy_design');
		  if (get_option('demo_style') == "slick_design") echo esc_attr(' slick_design');
		  if (get_option('demo_style') == "gradient_design") echo esc_attr(' gradient_design');
	      if (get_option('demo_style') == "corporate_design") echo esc_attr(' corporate_design');
		  if (get_option('demo_style') == "dark_design") echo esc_attr(' dark_design');
		  
		  if (get_option('deep_dark_mode_enable') != "off") echo esc_attr(' dark-mode');
		  
		  if (get_option('deep_mobile_animations') == "on") echo esc_attr(' disable_animations');
			  
		  if (get_option('deep_apply_newfonts_addons') == "on") echo esc_attr(' apply_newfonts_addons'); 
			 
	?>
	"	  
	>

		
		

		
		
		<?php
			if (get_option("deep_body_type") == "body_boxed" && get_option('deep_header_style_type')!='style9'){
				?>
				<div class="boxed_layout">
				<?php
			}
		?>