<!doctype html>
<html lang="fa">
<head>
<meta charset="utf-8" />
<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' | '; } ?> <?php bloginfo('name'); ?></title>
<link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" />
<!--[if lt IE 9]>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/html5.js"></script>
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> خوراک فید" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> اشتراک در نوشته ها" href="<?php bloginfo('atom_url'); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); wp_head(); ?>
<?php
/* Make Options Work */
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
</head>
<body>
<div id="container">
<header>
<nav>
<ul>
<li><a href="<?php bloginfo('url'); ?>" title="صفحه اصلی">خانه</a></li>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
</nav>
<a id="search-btn" href="javascript:void(0)">جستجو</a>
<div id="search">
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
<input type="text" value="جستجو..." name="s" id="s" onblur="if (this.value == ''){this.value = 'جستجو...';}" onfocus="if (this.value == 'جستجو...'){this.value = '';}" />
<input class="searchbutton" type="submit" value="بجو" />
</form>
</div>
<a class="logo" href="<?php bloginfo('url'); ?>" title="صفحه اصلي">
<img src="<?php if($mb_logo == null) echo bloginfo('template_url'),"/img/logo.png"; else echo $mb_logo; ?>" alt="">
</a>
</header>