<?php
/**
 * The Header for our theme
 *
 * Displays all of the <head> section and everything up till <div class="wrapper">
 *
 * @package Krown
 * @subpackage Krown
 * @since Krown 1.0
 */
?><!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) & !(IE 8)]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<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 rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
	<link rel="canonical" href="http://www.mokamelhaa.ir" />
	<!--[if lt IE 9]>
	<script src="<?php echo get_template_directory_uri(); ?>/assets/js/html5.js"></script>
	<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
	<![endif]-->
	<!-- fav -->
	<link rel="shortcut icon" href="<?php
		global $tlazya_krwn;
		if (isset($tlazya_krwn['fav_url']['url']) && $tlazya_krwn['fav_url']['url'] != '') {
			echo esc_url($tlazya_krwn['fav_url']['url']);
		}
	?>">
	<script type="text/javascript">
		var theme_url = '<?php get_template_directory_uri(); ?>';
		var home_url = '<?php home_url('/'); ?>';
		var nav_url = '<?php echo esc_url(home_url('/')); ?>'
	</script>
	<?php 
		global $tlazya_krwn;
		if(isset($tlazya_krwn['custom_css']) && $tlazya_krwn['custom_css'] != '' ) {
			echo '<style>'.esc_attr($tlazya_krwn['custom_css']).'</style>';
		} 
	?>    
	<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
		<!-- #wrap -->
		<div id="wrap">
			<?php 	
			global $tlazya_krwn; 
			if (isset($tlazya_krwn['preloader_switch']) && $tlazya_krwn['preloader_switch'] == 1 ) { 
			?>
			<!-- #Preloader -->
			<div id="preloader"></div>
			<!-- / #Preloader -->
			<?php 
			} 
			elseif (isset($tlazya_krwn['preloader_switch']) && $tlazya_krwn['preloader_switch'] == 0 ) 
			{
			?>
			<!-- Empty -->
			<?php } else { ?>
			<!-- #Preloader -->
			<div id="preloader"></div>
			<!-- / #Preloader -->
			<?php } ?>