<!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">
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title>
<?php
if (is_home()) {
echo bloginfo('name');
} elseif (is_404()) {
echo 'الصفحة المطلوبة غير موجودة';
} elseif (is_category()) {
echo 'التصنيف : '; wp_title('');
} elseif (is_search()) {
echo 'نتائج البحث';
} elseif ( is_day() || is_month() || is_year() ) {
echo 'الأرشيف : '; wp_title('');
} else {
echo wp_title('');
}
?>
</title>
<link rel="pingback" href="<?php bloginfo('pingback url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/font/font.css" type="text/css" charset="utf-8" />
<?php if ( of_get_option('custom_favicon') != 'false') { ?>
<link rel="shortcut icon" href="<?php echo of_get_option('custom_favicon'); ?>" />
<?php } ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
</head>

<body>
	<div id="container">
    	<div id="header">
        	<div id="topNav">
            	<div id="mainMenu">
                	<?php if ( has_nav_menu( 'mainmenu' ) ) { ?>
					   <?php  wp_nav_menu ( array( 'menu_id' => '','container'=> '', 'theme_location' => 'mainmenu' )); ?>
                       <?php } else { ?>
                          <ul>
                             <li class="active <?php if (is_home()) {echo "current_page_item";} ?>"><a href="<?php bloginfo('home') ?>" class="home">الرئيسية</a></li>
                             <?php wp_list_pages(array(
                            'title_li' => false
                          )); ?>
                          </ul>
    
                        <?php } ?>
                </div><!--End Main Menu-->
				<?php require Lioit_TM . '/social.php';?>
            </div><!--End TopNav-->
            <div id="mainHeader">
                <div id="logo">
                    <a href="<?php echo home_url(); ?>">
                    <?php if(of_get_option('logo_img') != 'false'){ ?>
                    <img src="<?php echo of_get_option('logo_img'); ?>" alt="<?php bloginfo('name'); ?>" />
                    <?php } else { ?>
                    <img src="<?php echo Lioit_IMG; ?>/logo.png" alt="<?php bloginfo('name'); ?>" />
                    <?php } ?>
                    </a>
                </div><!--End Logo-->
                <?php require Lioit_TM . '/banner.php';?>
				<?php require Lioit_TM . '/ticker.php';?>
            </div><!--End Main Header-->
        </div><!--End Header-->
        <div id="categories">
            <?php if ( has_nav_menu( 'mainnav' ) ) { ?>
		   <?php  wp_nav_menu ( array( 'menu_id' => 'dropmenu','container'=> 'ul', 'theme_location' => 'mainnav' )); ?>
           <?php } else { ?>
              <ul id="dropmenu">
                 <li class="<?php if (is_home()) {echo "current_page_item";} ?>"><a href="<?php bloginfo('home') ?>">الرئيسية</a></li>
                 <?php wp_list_categories('title_li=&hide_empty=0');?>
              </ul>
            <?php } ?>
        </div><!--End Categories-->
		<?php require Lioit_TM . '/slider.php';?>