<?php 
defined('ABSPATH') or die('I Don\'t allow You');

if(!defined("ajax_call")){
$fp_id = get_option( 'page_on_front' );
	?>
<!DOCTYPE HTML>
<html <?php language_attributes(); ?>>
	<head>
		<meta charset="<?php bloginfo( 'charset' ); ?>">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<link rel="profile" href="http://gmpg.org/xfn/11">
		<?php wp_head();?>
	</head>
	<body <?php body_class(); ?>>
		<header>
			<div class="container">
				<div class="row">
					<div class="col-xs-4 col-sm-3 col-md-2 col-lg-1 col-xl-1">
						<?php 
							$custom_logo_id = get_theme_mod( 'custom_logo' );
							$image = wp_get_attachment_image_src( $custom_logo_id , 'full' );
							
							
							ob_start();?>
							
							<a href="<?=get_site_url();?>" mainimg="1" >
								<img src="<?=$image[0];?>" width="100%">
							</a>
							<?php
							$menu=ob_get_clean();
							$menu=str_replace('href="'.site_url(),'data-action="ajax" href="',$menu);
							$menu=str_replace('href="/', 'href="', $menu);
							$menu=str_replace('/"', '"', $menu);
							echo $menu;
						?>
					</div>
				</div>
			</div>
		</header>
		<div class="side_menu" id="the_litle_one">
		<?php require_once(dirname(__FILE__).'/inc/Header/menus.php');?>
		</div>
		<?php require_once(dirname(__FILE__).'/inc/Header/preloader.php');?>
		<div class="main_background" style="background-image: url()" bgimg="<?=background();?>"></div>
		<div class="row">
			<div class="col-xs-12">
		<content>
<?php
}
?>