<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" lang="fa-IR" dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php bloginfo('name');?> <?php wp_title();?></title>
<link rel="shortcut icon" href="<?php echo get_option('tsweb_favicon');?>" />
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="<?php bloginfo('url');?>/?feed=rss" />
<link rel="pingback" href="<?php bloginfo('url');?>/xmlrpc.php" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url');?>/style.css" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url');?>/<?php echo get_option('tsweb_title_font');?>-font.css" />
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url');?>/ie7.css">
<![endif]-->
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head();?>
<?php echo stripslashes(get_option('tsweb_analytics'));?>
<style type="text/css">
<?php echo get_option('tsweb_css');?>
</style>
</head>
<body>
<?php if (is_single()) { ?>
<div id="myModal1" class="reveal-modal">
<h4 class="reveal-title">گزارش انتشار نسخه جدید</h4>
<?php
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Report Broken') ) :
endif; ?>
<a class="close-reveal-modal">×<!--×--></a> </div>
<!--#myModal1-->
<?php } ?>
<div id="header-wrapper">
<div id="introbar-wrapper">
<div id="introbar">
<?php wp_nav_menu(array('menu'=>'menu-header'));?>
</div>
<!--#introbar-->
</div>
<!--#introbar-wrapper-->
<div id="header">
<div id="logo">
<?php if(is_home()){?>
<h1>
<?php } else { ?>
<h3>
<?php } ?>
<a href="<?php bloginfo('url');?>" <?php $logo=get_option('tsweb_logo'); if($logo) { ?>style="background:url(<?php echo $logo;?>) no-repeat center center;"<?php } ?>><?php bloginfo('name');?></a>
<?php if(is_home()) {?>
</h1>
<?php } else {?>
</h3>
<?php }?>
</div>
<!--#logo-->
<div class="fl">
<h2 id="slogan"><?php bloginfo('description');?></h2>
<form id="search-form" method="get" action="<?php bloginfo('url');?>">
<input type="submit" id="search-submit" value="" />
<input type="text" id="search-text" value="جستجو" name="s" onfocus="if(this.value=='جستجو') this.value=''" onblur="if(this.value=='') this.value='جستجو';" />
</form>
<!--#search-form-->
<?php
$banner_header=get_option('tsweb_ads_banner');
$type_header=get_option('tsweb_ads_type');
if($type_header=="flash"){
?>
<div id="ads-header"><object width="728" height="90" type="application/x-shockwave-flash" data="<?php echo $banner_header; ?>"> <param value="<?php echo $banner_header; ?>" name="movie"><param value="transparent" name="wmode"></object></div>
<?php } else { ?>
<a id="ads-header" href="<?php echo get_option('tsweb_ads_link');?>"><img src="<?php echo $banner_header; ?>" alt="بنر تبلیغاتی" /></a><!-- max width:728px -->
<?php } ?>
</div>
<!--.fl-->
</div>
<!--#header-->
<div id="menu-wrapper" dir="ltr">
<?php wp_nav_menu(array('menu'=>'main-menu', 'menu_id'=>'main-menu'));?>
</div>
<!--#menu-wrapper-->
</div>
<!--#header-wrapper-->