<!DOCTYPE HTML>
<html>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<title><?php wp_title( '|', true, 'right' ); ?><?php bloginfo('name'); ?></title>
<meta name="description" content="<?php echo get_post_meta($post->ID, "mhgoz_description",true); ?> , <?php if ( is_single() ) {single_post_title('', true); } else {bloginfo('name'); echo " - "; bloginfo('description');} ?><?php echo get_post_meta($post->ID, "mhgoz_description",true); ?>" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/PRtheme/css/<?php echo of_get_option('css_style_mhgoz', 'blue.css'); ?>"/>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/PRtheme/js/lightbox/themes/<?php echo of_get_option('gallery_select','evolution-dark'); ?>/jquery.lightbox.css" />
<!--[if IE]>
<link href="<?php echo get_template_directory_uri(); ?>/PRtheme/js/lightbox/themes/<?php echo of_get_option('gallery_select','evolution-dark'); ?>/jquery.lightbox.ie6.css" rel="stylesheet" type="text/css" media="all">
<![endif]-->
<?php wp_head(); ?>
<style>
<?php echo of_get_option('mhgoz_css_code_text'); ?>
<?php if( of_get_option( 'mhgoz_showhidden_fullbg' ) ) : ?>

          <?php $background = of_get_option('mhgoz_fullbackground');
            if ($background) {
                if ($background['image']) {
                    echo 'body{
					background: '.$background['color']. ' url('.$background['image']. ') !important;
					'. of_get_option('mhgoz_bgpostion') .'
					'. of_get_option('mhgoz_bgreap') .'
					'. of_get_option('mhgoz_bgatta') .'					
					}
					html { margin-top: 0px !important; }
                  * html body { margin-top: 0px !important; } 
					';
                } 	
            } else {
                echo " ";
            }; ?>

          
<?php else : ?>
body{background-image:url(<?php echo get_template_directory_uri(); ?>/PRtheme/img/bgs/<?php echo of_get_option('mhgoz_bg_imagesa','mhgoz_bg_imagesa'); ?>) !important;}
<?php endif ?>
</style> 

<script><?php echo of_get_option('mhgoz_js_code_text'); ?></script>

</head>
<body>


<div id="mhgozdiv"></div>
<div id="main" role="main">
<div id="mainwarp">
<div id="head-section">
<div id="head-section-top-right"></div>
<div id="head-section-top-center"></div>
<div id="head-section-top-left"></div>
</div>
<div id="maincontect-section">
<div id="maincontect-right">
<div id="maincontect-left" class="min-400px">
<div id="maincontect-center">
<div id="maincontect-center-right">
    <div id="userphoto">
    <?php if( of_get_option( 'mhgoz_personal_photo_uploader' ) ) : ?>
     <img src="<?php echo of_get_option('mhgoz_personal_photo_uploader'); ?>" width="98" height="98" class="userphotoimg" alt="<?php bloginfo('name'); ?>">
    <?php else : ?>
     <img  src="<?php echo get_template_directory_uri(); ?>/PRtheme/img/mhgoz-general/no-img/no-avater.png" width="98" height="98" class="userphotoimg" alt="<?php bloginfo('name'); ?>"></a>
    <?php endif ?>
      </div>
    <div id="site-name">
    <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('description'); ?>" class="site-name margin10right"><?php bloginfo('name'); ?></a>
    <br>
    <span class="site-desc margin10right"><?php bloginfo('description'); ?></span> 
    </div>
    <div id="user-information">
    <div id="user-info-main">
    <?php if( of_get_option( 'mhgoz_showhidden_proinfo' ) ) : ?>
     <ul class="userinfo-icons">
      <div class="userinfo-border"><li><a href="#" class="name" title="<?php echo of_get_option('mhgoz_my_name_title', 'اسمى' ); ?>"></a></li><span class="userinfo-tit"><?php echo of_get_option('mhgoz_my_name_title', 'اسمى ..' ); ?></span><span class="userinfo-info"> <?php echo of_get_option('mhgoz_name_text', 'غير محدث'); ?></span><br></div>
      <div class="userinfo-border"><li><a href="#" class="pdate" title="<?php echo of_get_option('mhgoz_my_pr_title', 'مواليد' ); ?>"></a></li><span class="userinfo-tit"><?php echo of_get_option('mhgoz_my_pr_title', 'مواليد ..' ); ?></span><span class="userinfo-info"> <?php echo of_get_option('mhgoz_pdate_text', 'غير محدث'); ?></span><br></div>
      <div class="userinfo-border"><li><a href="#" class="livein" title="<?php echo of_get_option('mhgoz_my_home_title', 'سكنى' ); ?>"></a></li><span class="userinfo-tit"><?php echo of_get_option('mhgoz_my_home_title', 'اسكن ..' ); ?></span><span class="userinfo-info"> <?php echo of_get_option('mhgoz_live_text', 'غير محدث'); ?></span><br></div>
      <div class="userinfo-border"><li><a href="#" class="mywork" title="<?php echo of_get_option('mhgoz_my_work_title', 'عملى' ); ?>"></a></li><span class="userinfo-tit"><?php echo of_get_option('mhgoz_my_work_title', 'عملى ..' ); ?></span><span class="userinfo-info"> <?php echo of_get_option('mhgoz_work_text', 'غير محدث'); ?></span><br></div>
      <div class="userinfo-border"><li><a href="#" class="mytec" title="<?php echo of_get_option('mhgoz_my_stud_title', 'دراستى' ); ?>"></a></li><span class="userinfo-tit"><?php echo of_get_option('mhgoz_my_stud_title', 'دراستى ..' ); ?></span><span class="userinfo-info"> <?php echo of_get_option('mhgoz_stud_text', 'غير محدث'); ?></span><br></div>
      <div class="userinfo-border"><li><a href="#" class="myhop" title="<?php echo of_get_option('mhgoz_my_stud_title', 'دراستى' ); ?>"></a></li><span class="userinfo-tit"><?php echo of_get_option('mhgoz_my_hopp_title', 'دراستى ..' ); ?></span><span class="userinfo-info"> .. <?php echo of_get_option('mhgoz_hobi_text', 'غير محدث'); ?></span><br></div>
     </ul>
   <?php else : ?>
   <div class="myinfohtml">
<?php echo of_get_option('mhgoz_htmyinfo', 'برجاء مراجعه لوحه تحكم القالب من اجل ادخال معلوماتك' ); ?>
   </div>
<?php endif ?>    
    </div>
    <a href="<?php bloginfo('url'); ?>/?p=<?php echo of_get_option('personalpage_select_pages', '#' ); ?>" title="معلومات اكثر" class="bt-hover user-more-info"></a>
    </div>    
    <div id="follow-me">
               <ul id="social-icons">
                <li><a href="<?php echo of_get_option('mhgoz_rss_text', '#' ); ?>" target="_blank" class="social-rss"  title="تابع اجدد الاضافات"></a></li>
                <li><a href="<?php echo of_get_option('mhgoz_youtube_text', '#' ); ?>" class="youtube" target="_blank" title="تابع يوتيوب"></a></li>
                <li><a href="<?php echo of_get_option('mhgoz_facebook_text', '#' ); ?>"  target="_blank" class="facebook" title="تابع فيسبوك"></a></li>
                <li><a href="<?php echo of_get_option('mhgoz_twitter_text', '#' ); ?>" class="twitter" target="_blank" title="تابع تويتر"></a></li>
               </ul>
    </div> 
</div>
<div id="maincontect-center-left">
<div id="navbar">
<ul class="main-menu">
  <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
</ul>
</div>
