<!DOCTYPE HTML 'www.MHGOZ.com.eg'>
<html>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<?php do_action( 'bp_head' ) ?>
<meta http-equiv="X-UA-Compatible" content="IE=9">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
<title><?php global $MHGOZ_Options; $MHGOZ_Options->show('index_title');?></title>
<meta name="description" content="<?php global $MHGOZ_Options; $MHGOZ_Options->show('index_desc');?>">
<meta name="keywords" content="<?php global $MHGOZ_Options; $MHGOZ_Options->show('index_tag');?>,<?php global $MHGOZ_Options; $MHGOZ_Options->show('g_kywords');?>">
<meta name="generator" content="MHGOZPRESS - 3.0. Delight">
<?php global $MHGOZ_Options; $MHGOZ_Options->show('meta_tags_add');?>
<meta name="revisit-after" content="1 hour">
<meta http-equiv="Refresh" content="3000">
<style>
@font-face {
	font-family: 'MhgozFontl';
	src: url('<?php echo get_template_directory_uri(); ?>/theme-files/css/webfonts/<?php global $MHGOZ_Options; $MHGOZ_Options->show('main_font_h');?>.eot') ;
	src: url('<?php echo get_template_directory_uri(); ?>/theme-files/css/webfonts/<?php global $MHGOZ_Options; $MHGOZ_Options->show('main_font_h');?>.eot?#iefix') format('embedded-opentype'), url('<?php echo get_template_directory_uri(); ?>/theme-files/css/webfonts/<?php global $MHGOZ_Options; $MHGOZ_Options->show('main_font_h');?>.woff') format('woff'), url('<?php echo get_template_directory_uri(); ?>/theme-files/css/webfonts/<?php global $MHGOZ_Options; $MHGOZ_Options->show('main_font_h');?>.ttf') format('truetype'), url('<?php echo get_template_directory_uri(); ?>/theme-files/css/webfonts/<?php global $MHGOZ_Options; $MHGOZ_Options->show('main_font_h');?>.svg#<?php global $MHGOZ_Options; $MHGOZ_Options->show('main_font_h');?>') format('svg') ;
	font-weight: normal;
	font-style: normal;
}

</style>
<meta name="author" content="<?PHP bloginfo('name'); ?>"/>
<link href="<?php echo get_template_directory_uri(); ?>/theme-files/css/inettuts.css" rel="stylesheet" type="text/css" media="all">
<link href="<?php echo get_template_directory_uri(); ?>/theme-files/css/home-slider.css" rel="stylesheet" type="text/css" media="all">
<?php wp_head() ?>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/theme-files/js/plugins.js"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/theme-files/js/indexjs.js"></script>
<meta name="Powered by" content="Mhgoz Community Legend V 3.0.1">
<style>
body{background-image:url(<?php echo get_template_directory_uri(); ?>/theme-files/img/bgs/<?php global $MHGOZ_Options; $MHGOZ_Options->show('site_background');?>) !important;}
</style> 
</head>



<body <?php body_class($class); ?>>



<!-- Top Menu -->
<div id="top-menu" class="mhgozfont">
   <div class="w960px">
   <div class="topmenutt">
        <?php wp_nav_menu( array( 'theme_location' => 'top-menu' ) ); ?>
   </div>
        <div class="sociallinks">
        <a href="<?php global $MHGOZ_Options; $MHGOZ_Options->show('youtube_link');?>" class="youtube" title="تابعنا عبر يوتيوب" target="_blank"></a>
        <a href="<?php global $MHGOZ_Options; $MHGOZ_Options->show('flicker_link');?>" class="flicker" title="تباعنا عبر فليكر" target="_blank"></a>
        <a href="<?php global $MHGOZ_Options; $MHGOZ_Options->show('facebook_link');?>" class="facebook" title="تباعنا عبر فيسبوك" target="_blank"></a>
        <a href="<?php global $MHGOZ_Options; $MHGOZ_Options->show('twitter_link');?>" class="twitter" title="تباعنا عبر تويتر" target="_blank"></a>
        </div>
   </div>

</div>

<!-- main Head -->
<div id="main-head">
<span class="he-shadw"></span>
<div class="w960px">


     <div id="head-content">
     <?php if( $MHGOZ_Options->get('site_logo')) : ?> 
     <a href="<?php bloginfo('url'); ?>" class="logo" title="<?php bloginfo('name'); ?>"><img  src="<?php global $MHGOZ_Options; $MHGOZ_Options->show('site_logo');?>" width="418" height="131" alt="<?php bloginfo('name'); ?>" ></a>
     <?php else : ?>
     <a href="<?php bloginfo('url'); ?>" class="logo" title="<?php bloginfo('name'); ?>"><img  src="<?php echo get_template_directory_uri(); ?>/theme-files/img/heads/logo.png" width="418" height="131" alt="<?php bloginfo('name'); ?>"></a>
     <?php endif ?>
     <span class="adv-top ads-site">
     <?php if( $MHGOZ_Options->get('checkbox_advanced_ad_header')) : ?> 
           <a href="<?php global $MHGOZ_Options; $MHGOZ_Options->show('ad_top_url');?>" target="_blank" title="<?php global $MHGOZ_Options; $MHGOZ_Options->show('ad_top_name');?>"><img src="<?php global $MHGOZ_Options; $MHGOZ_Options->show('ad_top_img');?>" width="468" height="60" alt="<?php global $MHGOZ_Options; $MHGOZ_Options->show('ad_top_name');?>"></a>
		<?php elseif($MHGOZ_Options->get('checkbox_normal_ad_header')) : ?>
 <?php global $MHGOZ_Options; $MHGOZ_Options->show('ads_header_top_code');?>
		<?php else : ?>
           <a href="mhgoz.com" target="_blank" title="محجوز . كوم"><img src="<?php echo get_template_directory_uri(); ?>/theme-files/img/no-img/mhgozadone.png" width="468" height="60" alt="مساحه اعلانيه"></a>
		<?php endif ?>
     </span>
          </div>


     

      <div id="main-menu">
        <span class="right"></span>
        <span class="center mhgozfont">
                <a href="<?php bloginfo('url'); ?>" class="home-page-icon" title="الرئيسيه"></a>
        <?php wp_nav_menu( array( 'theme_location' => 'main-menu' ) ); ?>
        <div class="mainop">   
                        	<?php if( is_user_logged_in() ) : ?>
							<?php
							global $current_user, $bp;
							get_currentuserinfo();
							?>
                            
							<span class="afterlogwelcome">
							<?php printf( __( 'مرحبا بك %s', 'MCL' ), '<a href="' . $bp->loggedin_user->domain . '" title="ملفى الشخصى" class="tooltip" >' . $bp->loggedin_user->fullname . '</a>' ) ?>. <a class="logoutptn" href="<?php echo wp_logout_url(); ?>" title="تسجيل الخروج"><?php _e( 'الخروج', 'MCL' ) ?></a>
                            
                            </span>
                       
                <a id="searchButton" href="#" class="tooltip" title="البحث المطور"><span></span></a>
						<?php else : ?> 
                <a id="loginButton" href="#" class="tooltip" title="تسجيل الدخول"><span></span></a>
                <a id="searchButton" href="#" class="tooltip" title="البحث المطور"><span></span></a>
                <a id="regButton" href="<?php bloginfo('url'); ?>/?p=<?php global $MHGOZ_Options; $MHGOZ_Options->show('register_page');?>" class="tooltip" title="انضم لنا"><span></span></a>


<?php endif ?>



        </div>
        </span>
        <span class="left"></span>
      </div>


</div>
        <div class="main-menushadow"></div>


</div>
 <div id="after_head_section">
   <div class="register">
     <h1>البحث المطور بالموقع</h1>

        <form class="searchform" method="get" action="<?php echo get_option('home'); ?>">
              <fieldset id="search">      
                    <input class="search" name="s" type="text" placeholder="عما تبحث ؟؟"/>
                <?php wp_dropdown_categories('show_option_all=الجميع&orderby=name&depth=1');?>
                <button value="submit" class="search_btn">البحث</button>
            </fieldset>
        </form>
   </div>
   
   <div class="login">
   <div class="right">
<h1 class="loginuser">مرحبا بعودتك مره اخرى ..</h1>
                    <form action="<?php echo site_url() ?>/wp-login.php" method="post">
                           <fieldset>
									<input type="text" class="user-login" name="log" placeholder="<?php _e( 'اسم المستخدم', 'MCL' ) ?>" />
									<input type="password" class="user-pass" name="pwd" placeholder="<?php _e( 'كلمه المرور', 'MCL' ) ?>" />
									<input type="submit" class="btn-submit" id="login" value="دخول" title="تسجيل الدخول" />
                                	<input type="hidden" name="redirect_to" value="<?php echo substr_count( $_SERVER['REQUEST_URI'], 'activate' ) ? home_url() : $_SERVER['REQUEST_URI'] ?>" />
                           </fieldset>
                                 <span>
هل نسيت كله المرور ؟؟ يمكنك استرجاعها عبر هذذا الرابط ..                                 <a href="<?php bloginfo('url'); ?>/wp-login.php?action=lostpassword" title="استعاده كلمه المرور">استرجاع كلمه المرور ..</a></span>
                    </form>
</div>
<div class="left">
<h1>ليس لديك عضويه حتى الان !!</h1>
<span>
<?php global $MHGOZ_Options; $MHGOZ_Options->show('login_er_reg');?>
 </span>
</div>

   </div>
   
 </div>
<div class="w960px" style="margin-top: 20px; text-align: center;">
<?php global $MHGOZ_Options; $MHGOZ_Options->show('headfull_adss');?>
</div>
<div class="clear" style="height:20px;"></div>

<!-- start of main body -->
<div class="w960px">
        <?php if (function_exists('dimox_breadcrumbs')) dimox_breadcrumbs();?>

<!-- start of colums erea -->
  <div id="columns">
  



   
<div class="w960px"> 
  
  <!-- start of colums erea -->
  
  <div id="columns">

<span class="top_news_tit"></span>
    <div id="mainsliders">


<!-- start of main body -->
  <ul id="article" class="jcarousel-skin-tango">
<?php query_posts("cat=".$MHGOZ_Options->get('tbslider_cat')."&showposts=8"); ?>
        <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
        <li>
<a href="<?php the_permalink(); ?>">

 <?php
$attachments = get_children(array
('post_parent' => get_the_ID(),
 'post_type' => 'attachment',
 'post_mime_type' => 'image',
 'orderby' => 'menu_order'));
if ( has_post_thumbnail() ) {
the_post_thumbnail( array(100,290) );
} elseif ($attachments) {
    if ( ! is_array($attachments) ) continue;
    $count = count($attachments);
    $first_attachment = array_shift($attachments);
    echo wp_get_attachment_image($first_attachment->ID);
} else {
	$table = "wp_posts";
	if($table_prefix !='' || $table_prefix != ''){
		$table = $table_prefix."posts ";
	}
	$row = mysql_fetch_assoc(mysql_query("SELECT * FROM " . $table . " WHERE id =".get_the_ID()));
	$row = explode('||',$row['post_excerpt']);
	if(preg_match('/(png|jpg|jpeg|gif|bmp)$/iUs',$row[1]) == true){
		echo '<img class="thumb" src="'.$row[1].'" alt=" " height="100" width="290" />';
	}elseif ( $MHGOZ_Options->get('checkbox_custom_no_photo')){
		echo '<img class="thumb" src="'.$MHGOZ_Options->get('site_no_photo').'" alt=" " height="100" width="290" />';
 	}else{
	    echo '<img class="thumb" src="'. get_template_directory_uri().'/theme-files/img/no-img/post-thumb.png" height="290" width="100" />';
	}
}
?>
</a>
                  <h1>
               <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo substr(strip_tags(get_the_content()),0,1000); ?>">
                <?php the_title(); ?>
                </a>
               </h1>  
               <p>
           <?php echo substr(strip_tags(get_the_content()),0,350); ?>          
               </p>
    
        </li>
                      <?php endwhile; endif; ?>

  </ul>





      <div class="sp-simy"></div>
      <div id="vedioslider">
        <div class="vediotitlast"></div>
        <div id="galleryvedios">
  <ul id="vediocoursal" class="jcarousel-skin-tango">

        <?php

// set the $paged variable

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

// query the posts of your custom post types

query_posts( array(

		'post_type' => array(

					'video',

				),

        'showposts' => '12',				

				'paged' => $paged ) // for paging links to work

			);



if (have_posts()) :

	while (have_posts()) : the_post(); ?>
    <li>

        <div class="image-slid"> 
        <span class="vedioprev">
          <div class="more"></div>         
           <img class="youtubeprevved" width="100" title="<?php the_title(); ?>" alt=" <?php the_title(); ?>" height="100" src="http://img.youtube.com/vi/<?php echo $meta = get_post_meta( get_the_ID(), 'MHGOZPRESS_post_mhgoz_video', true );?>/1.jpg"/>
        </span> 
          <a href="<?php the_permalink(); ?>" title=" <?php the_title(); ?>" class="hov-img"></a> 
        </div>
       </li>

        <?php endwhile; endif; ?>
  <ul>

 </div>
        <a href="<?php bloginfo('url'); ?>/?p=<?php global $MHGOZ_Options; $MHGOZ_Options->show('vedio_page');?>" class="more-vedios-show" title="تابع المزيد من الفيديوهات"></a> </div>
    </div>
    
     <span class="adv_vedio">
     <?php if( $MHGOZ_Options->get('checkbox_advanced_ad_gallery')) : ?> 

           <a href="<?php global $MHGOZ_Options; $MHGOZ_Options->show('ads_gallery_url');?>" target="_blank" title="<?php global $MHGOZ_Options; $MHGOZ_Options->show('ads_gallery_nam');?>"><img src="<?php global $MHGOZ_Options; $MHGOZ_Options->show('ads_gallery_img');?>" width="468" height="60" alt="<?php global $MHGOZ_Options; $MHGOZ_Options->show('ads_gallery_nam');?>"></a>
		<?php elseif($MHGOZ_Options->get('checkbox_normal_ad_gallery')) : ?>
 <?php global $MHGOZ_Options; $MHGOZ_Options->show('ads_gallery_top_code');?>
		<?php else : ?>
           <a href="mhgoz.com" target="_blank" title="محجوز . كوم"><img src="<?php echo get_template_directory_uri(); ?>/theme-files/img/no-img/mhgozadone.png" width="468" height="60" alt="مساحه اعلانيه"></a>
		<?php endif ?>
     </span>
     
    <ul id="column1" class="column">
      
      <!-- tb1 -->
      
      <li class="widget color-green" id="intro">
        <div class="widget-head"> <span class="icon"></span>
          <h3 class=" mhgozfont">
            <?php global $MHGOZ_Options; $MHGOZ_Options->show('tb1_tit');?>
          </h3>
          <span class="optt"> <a class="t-up" id="hidesidalltb1" title="اخفاء"></a> <a class="t-down" id="showsidalltb1" title="اظهار" style="display:none"></a> </span> </div>
        <div class="widget-content tb1">
          <div class="content" id="contentslidertttb1">
            <div id="main-slid-contentb1">
              <?php query_posts("cat=".$MHGOZ_Options->get('tb1_cats')."&showposts=14"); ?>
              <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
              <div class="index-post">
  <?php
$attachments = get_children(array
('post_parent' => get_the_ID(),
 'post_type' => 'attachment',
 'post_mime_type' => 'image',
 'orderby' => 'menu_order'));
if ( has_post_thumbnail() ) {
the_post_thumbnail( array(50,50) );
} elseif ($attachments) {
    if ( ! is_array($attachments) ) continue;
    $count = count($attachments);
    $first_attachment = array_shift($attachments);
    echo wp_get_attachment_image($first_attachment->ID);
} else {
	$table = "wp_posts";
	if($table_prefix !='' || $table_prefix != ''){
		$table = $table_prefix."posts ";
	}
	$row = mysql_fetch_assoc(mysql_query("SELECT * FROM " . $table . " WHERE id =".get_the_ID()));
	$row = explode('||',$row['post_excerpt']);
	if(preg_match('/(png|jpg|jpeg|gif|bmp)$/iUs',$row[1]) == true){
		echo '<img class="thumb" src="'.$row[1].'" alt=" " height="50" width="50" />';
	}elseif ( $MHGOZ_Options->get('checkbox_custom_no_photo')){
		echo '<img class="thumb" src="'.$MHGOZ_Options->get('site_no_photo').'" alt=" " height="50" width="50" />';
 	}else{
	    echo '<img class="thumb" src="'. get_template_directory_uri().'/theme-files/img/no-img/post-thumb.png" height="50" width="50" />';
	}
}
?>
               <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo substr(strip_tags(get_the_content()),0,1000); ?>">
                <?php the_title(); ?>
                </a></div>
              <?php endwhile; endif; ?>
              <a class="gotocatCLUM mhgozfont" href=" <?php bloginfo('url'); ?>/?cat=<?php global $MHGOZ_Options; $MHGOZ_Options->show('tb1_cats');?>">تابع كافه مواضيع القسم</a> </div>
          </div>
        </div>
        <div class="moreerrmcl"> <a  class="more mhgozfont" id="showmoretttb1"title="مشاهده المزيد"> مشاهده المزيد</a> <a  class="more mhgozfont" style="display:none" id="hidemoretttb1"title="تقليل المساحه">تقليل المساحه</a> </div>
      </li>
      
      <!-- tb3 -->
      
      <li class="widget color-red" id="widget2">
        <div class="widget-head">
          <h3 class=" mhgozfont">
            <?php global $MHGOZ_Options; $MHGOZ_Options->show('tb3_tit');?>
          </h3>
        <span class="optt"> <a class="t-up" id="hidesidalltb2" title="اخفاء"></a> <a class="t-down" id="showsidalltb2" title="اظهار" style="display:none"></a> </span> </div>
        <div class="widget-content tb2">
          <div class="content" id="contentslidertt">
            <div id="main-slid-contentb2">
              <?php query_posts("cat=".$MHGOZ_Options->get('tb3_cats')."&showposts=14"); ?>
              <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
              <div class="index-post">
  <?php
$attachments = get_children(array
('post_parent' => get_the_ID(),
 'post_type' => 'attachment',
 'post_mime_type' => 'image',
 'orderby' => 'menu_order'));
if ( has_post_thumbnail() ) {
the_post_thumbnail( array(50,50) );
} elseif ($attachments) {
    if ( ! is_array($attachments) ) continue;
    $count = count($attachments);
    $first_attachment = array_shift($attachments);
    echo wp_get_attachment_image($first_attachment->ID);
} else {
	$table = "wp_posts";
	if($table_prefix !='' || $table_prefix != ''){
		$table = $table_prefix."posts ";
	}
	$row = mysql_fetch_assoc(mysql_query("SELECT * FROM " . $table . " WHERE id =".get_the_ID()));
	$row = explode('||',$row['post_excerpt']);
	if(preg_match('/(png|jpg|jpeg|gif|bmp)$/iUs',$row[1]) == true){
		echo '<img class="thumb" src="'.$row[1].'" alt=" " height="50" width="50" />';
	}elseif ( $MHGOZ_Options->get('checkbox_custom_no_photo')){
		echo '<img class="thumb" src="'.$MHGOZ_Options->get('site_no_photo').'" alt=" " height="50" width="50" />';
 	}else{
	    echo '<img class="thumb" src="'. get_template_directory_uri().'/theme-files/img/no-img/post-thumb.png" height="50" width="50" />';
	}
}
?>
               <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo substr(strip_tags(get_the_content()),0,1000); ?>">
                <?php the_title(); ?>
                </a></div>
              <?php endwhile; endif; ?>
            </div>
            <a class="gotocatCLUM mhgozfont" href=" <?php bloginfo('url'); ?>/?cat=<?php global $MHGOZ_Options; $MHGOZ_Options->show('tb3_cats');?>">تابع كافه مواضيع القسم</a> </div>
        </div>
        <div class="moreerrmcl"> <a  class="more mhgozfont" id="showmoretttb2"title="مشاهده المزيد"> مشاهده المزيد</a> <a  class="more mhgozfont" style="display:none" id="hidemoretttb2"title="تقليل المساحه">تقليل المساحه</a> </div>
      </li>
      
      <!-- tb5 -->
      
      <li class="widget color-red" id="widget2">
        <div class="widget-head">
          <h3 class=" mhgozfont">
            <?php global $MHGOZ_Options; $MHGOZ_Options->show('tb5_tit');?>
          </h3>
          <span class="optt"> <a class="t-up" id="hidesidalltb3" title="اخفاء"></a> <a class="t-down" id="showsidalltb3" title="اظهار" style="display:none"></a> </span> </div>
        <div class="widget-content tb3">
          <div class="content" id="contentslidertt">
            <div id="main-slid-contentb3">
              <?php query_posts("cat=".$MHGOZ_Options->get('tb5_cats')."&showposts=14"); ?>
              <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
              <div class="index-post">
  <?php
$attachments = get_children(array
('post_parent' => get_the_ID(),
 'post_type' => 'attachment',
 'post_mime_type' => 'image',
 'orderby' => 'menu_order'));
if ( has_post_thumbnail() ) {
the_post_thumbnail( array(50,50) );
} elseif ($attachments) {
    if ( ! is_array($attachments) ) continue;
    $count = count($attachments);
    $first_attachment = array_shift($attachments);
    echo wp_get_attachment_image($first_attachment->ID);
} else {
	$table = "wp_posts";
	if($table_prefix !='' || $table_prefix != ''){
		$table = $table_prefix."posts ";
	}
	$row = mysql_fetch_assoc(mysql_query("SELECT * FROM " . $table . " WHERE id =".get_the_ID()));
	$row = explode('||',$row['post_excerpt']);
	if(preg_match('/(png|jpg|jpeg|gif|bmp)$/iUs',$row[1]) == true){
		echo '<img class="thumb" src="'.$row[1].'" alt=" " height="50" width="50" />';
	}elseif ( $MHGOZ_Options->get('checkbox_custom_no_photo')){
		echo '<img class="thumb" src="'.$MHGOZ_Options->get('site_no_photo').'" alt=" " height="50" width="50" />';
 	}else{
	    echo '<img class="thumb" src="'. get_template_directory_uri().'/theme-files/img/no-img/post-thumb.png" height="50" width="50" />';
	}
}
?>
               <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo substr(strip_tags(get_the_content()),0,1000); ?>">
                <?php the_title(); ?>
                </a></div>
              <?php endwhile; endif; ?>
              <a class="gotocatCLUM mhgozfont" href=" <?php bloginfo('url'); ?>/?cat=<?php global $MHGOZ_Options; $MHGOZ_Options->show('tb5_cats');?>">تابع كافه مواضيع القسم</a> </div>
          </div>
        </div>
        <div class="moreerrmcl"> <a  class="more mhgozfont" id="showmoretttb3"title="مشاهده المزيد"> مشاهده المزيد</a> <a  class="more mhgozfont" style="display:none" id="hidemoretttb3"title="تقليل المساحه">تقليل المساحه</a> </div>
      </li>
      
      <!-- tb7 -->
      
      <li class="widget color-red" id="widget2">
        <div class="widget-head">
          <h3 class=" mhgozfont">
            <?php global $MHGOZ_Options; $MHGOZ_Options->show('tb7_tit');?>
          </h3>
          <span class="optt"> <a class="t-up" id="hidesidalltb4" title="اخفاء"></a> <a class="t-down" id="showsidalltb4" title="اظهار" style="display:none"></a> </span> </div>
        <div class="widget-content tb4">
          <div class="content" id="contentslidertttb4">
            <div id="main-slid-conten">
              <?php query_posts("cat=".$MHGOZ_Options->get('tb7_cats')."&showposts=14"); ?>
               <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
              <div class="index-post">
  <?php
$attachments = get_children(array
('post_parent' => get_the_ID(),
 'post_type' => 'attachment',
 'post_mime_type' => 'image',
 'orderby' => 'menu_order'));
if ( has_post_thumbnail() ) {
the_post_thumbnail( array(50,50) );
} elseif ($attachments) {
    if ( ! is_array($attachments) ) continue;
    $count = count($attachments);
    $first_attachment = array_shift($attachments);
    echo wp_get_attachment_image($first_attachment->ID);
} else {
	$table = "wp_posts";
	if($table_prefix !='' || $table_prefix != ''){
		$table = $table_prefix."posts ";
	}
	$row = mysql_fetch_assoc(mysql_query("SELECT * FROM " . $table . " WHERE id =".get_the_ID()));
	$row = explode('||',$row['post_excerpt']);
	if(preg_match('/(png|jpg|jpeg|gif|bmp)$/iUs',$row[1]) == true){
		echo '<img class="thumb" src="'.$row[1].'" alt=" " height="50" width="50" />';
	}elseif ( $MHGOZ_Options->get('checkbox_custom_no_photo')){
		echo '<img class="thumb" src="'.$MHGOZ_Options->get('site_no_photo').'" alt=" " height="50" width="50" />';
 	}else{
	    echo '<img class="thumb" src="'. get_template_directory_uri().'/theme-files/img/no-img/post-thumb.png" height="50" width="50" />';
	}
}
?>
               <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo substr(strip_tags(get_the_content()),0,1000); ?>">
                <?php the_title(); ?>
                </a></div>
              <?php endwhile; endif; ?>
              <a class="gotocatCLUM mhgozfont" href=" <?php bloginfo('url'); ?>/?cat=<?php global $MHGOZ_Options; $MHGOZ_Options->show('tb7_cats');?>">تابع كافه مواضيع القسم</a> </div>
          </div>
        </div>
        <div class="moreerrmcl"> <a  class="more mhgozfont" id="showmoretttb4"title="مشاهده المزيد"> مشاهده المزيد</a> <a  class="more mhgozfont" style="display:none" id="hidemoretttb4"title="تقليل المساحه">تقليل المساحه</a> </div>
      </li>
    </ul>
    
    <!-- left --> 
    <!-- tb2 -->
    
    <ul id="column2" class="column">
      <li class="widget color-blue" id="widget3">
        <div class="widget-head">
          <h3 class=" mhgozfont">
		              <?php global $MHGOZ_Options; $MHGOZ_Options->show('tb2_tit');?>
          </h3>
          <span class="optt"> <a class="t-up" id="hidesidalltb5" title="اخفاء"></a> <a class="t-down" id="showsidalltb5" title="اظهار" style="display:none"></a> </span> </div>
        <div class="widget-content tb5">
          <div class="content" id="contentslidertttb5">
            <div id="main-slid-contentb5">
              <?php query_posts("cat=".$MHGOZ_Options->get('tb2_cats')."&showposts=14"); ?>
              <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
              <div class="index-post">
  <?php
$attachments = get_children(array
('post_parent' => get_the_ID(),
 'post_type' => 'attachment',
 'post_mime_type' => 'image',
 'orderby' => 'menu_order'));
if ( has_post_thumbnail() ) {
the_post_thumbnail( array(50,50) );
} elseif ($attachments) {
    if ( ! is_array($attachments) ) continue;
    $count = count($attachments);
    $first_attachment = array_shift($attachments);
    echo wp_get_attachment_image($first_attachment->ID);
} else {
	$table = "wp_posts";
	if($table_prefix !='' || $table_prefix != ''){
		$table = $table_prefix."posts ";
	}
	$row = mysql_fetch_assoc(mysql_query("SELECT * FROM " . $table . " WHERE id =".get_the_ID()));
	$row = explode('||',$row['post_excerpt']);
	if(preg_match('/(png|jpg|jpeg|gif|bmp)$/iUs',$row[1]) == true){
		echo '<img class="thumb" src="'.$row[1].'" alt=" " height="50" width="50" />';
	}elseif ( $MHGOZ_Options->get('checkbox_custom_no_photo')){
		echo '<img class="thumb" src="'.$MHGOZ_Options->get('site_no_photo').'" alt=" " height="50" width="50" />';
 	}else{
	    echo '<img class="thumb" src="'. get_template_directory_uri().'/theme-files/img/no-img/post-thumb.png" height="50" width="50" />';
	}
}
?>
               <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo substr(strip_tags(get_the_content()),0,1000); ?>">
                <?php the_title(); ?>
                </a></div>
              <?php endwhile; endif; ?>
              <a class="gotocatCLUM mhgozfont" href=" <?php bloginfo('url'); ?>/?cat=<?php global $MHGOZ_Options; $MHGOZ_Options->show('tb2_cats');?>">تابع كافه مواضيع القسم</a> </div>
          </div>
        </div>
        <div class="moreerrmcl"> <a  class="more mhgozfont" id="showmoretttb5"title="مشاهده المزيد"> مشاهده المزيد</a> <a  class="more mhgozfont" style="display:none" id="hidemoretttb5"title="تقليل المساحه">تقليل المساحه</a> </div>
      </li>
      <!-- tb4 -->
      
      <li class="widget color-yellow" id="widget4">
        <div class="widget-head">
          <h3 class=" mhgozfont">		              <?php global $MHGOZ_Options; $MHGOZ_Options->show('tb4_tit');?>
</h3>
          <span class="optt"> <a class="t-up" id="hidesidalltb6" title="اخفاء"></a> <a class="t-down" id="showsidalltb6" title="اظهار" style="display:none"></a> </span> </div>
        <div class="widget-content tb6">
          <div class="content" id="contentslidertttb6">
            <div id="main-slid-contentb6">
              <?php query_posts("cat=".$MHGOZ_Options->get('tb4_cats')."&showposts=14"); ?>
              <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
              <div class="index-post">
  <?php
$attachments = get_children(array
('post_parent' => get_the_ID(),
 'post_type' => 'attachment',
 'post_mime_type' => 'image',
 'orderby' => 'menu_order'));
if ( has_post_thumbnail() ) {
the_post_thumbnail( array(50,50) );
} elseif ($attachments) {
    if ( ! is_array($attachments) ) continue;
    $count = count($attachments);
    $first_attachment = array_shift($attachments);
    echo wp_get_attachment_image($first_attachment->ID);
} else {
	$table = "wp_posts";
	if($table_prefix !='' || $table_prefix != ''){
		$table = $table_prefix."posts ";
	}
	$row = mysql_fetch_assoc(mysql_query("SELECT * FROM " . $table . " WHERE id =".get_the_ID()));
	$row = explode('||',$row['post_excerpt']);
	if(preg_match('/(png|jpg|jpeg|gif|bmp)$/iUs',$row[1]) == true){
		echo '<img class="thumb" src="'.$row[1].'" alt=" " height="50" width="50" />';
	}elseif ( $MHGOZ_Options->get('checkbox_custom_no_photo')){
		echo '<img class="thumb" src="'.$MHGOZ_Options->get('site_no_photo').'" alt=" " height="50" width="50" />';
 	}else{
	    echo '<img class="thumb" src="'. get_template_directory_uri().'/theme-files/img/no-img/post-thumb.png" height="50" width="50" />';
	}
}
?>
               <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo substr(strip_tags(get_the_content()),0,1000); ?>">
                <?php the_title(); ?>
                </a></div>
              <?php endwhile; endif; ?>              <a class="gotocatCLUM mhgozfont" href=" <?php bloginfo('url'); ?>/?cat=<?php global $MHGOZ_Options; $MHGOZ_Options->show('tb4_cats');?>">تابع كافه مواضيع القسم</a> </div>
          </div>
        </div>
        <div class="moreerrmcl"> <a  class="more mhgozfont" id="showmoretttb6"title="مشاهده المزيد"> مشاهده المزيد</a> <a  class="more mhgozfont" style="display:none" id="hidemoretttb6"title="تقليل المساحه">تقليل المساحه</a> </div>
      </li>
      <!-- tb6 -->
      
      <li class="widget color-yellow" id="widget4">
        <div class="widget-head">
          <h3 class=" mhgozfont">		              <?php global $MHGOZ_Options; $MHGOZ_Options->show('tb6_tit');?>
</h3>
          <span class="optt"> <a class="t-up" id="hidesidalltb7" title="اخفاء"></a> <a class="t-down" id="showsidalltb7" title="اظهار" style="display:none"></a> </span> </div>
        <div class="widget-content tb7">
          <div class="content" id="contentslidertttb7">
            <div id="main-slid-conten">
              <?php query_posts("cat=".$MHGOZ_Options->get('tb6_cats')."&showposts=14"); ?>
              <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
              <div class="index-post">
  <?php
$attachments = get_children(array
('post_parent' => get_the_ID(),
 'post_type' => 'attachment',
 'post_mime_type' => 'image',
 'orderby' => 'menu_order'));
if ( has_post_thumbnail() ) {
the_post_thumbnail( array(50,50) );
} elseif ($attachments) {
    if ( ! is_array($attachments) ) continue;
    $count = count($attachments);
    $first_attachment = array_shift($attachments);
    echo wp_get_attachment_image($first_attachment->ID);
} else {
	$table = "wp_posts";
	if($table_prefix !='' || $table_prefix != ''){
		$table = $table_prefix."posts ";
	}
	$row = mysql_fetch_assoc(mysql_query("SELECT * FROM " . $table . " WHERE id =".get_the_ID()));
	$row = explode('||',$row['post_excerpt']);
	if(preg_match('/(png|jpg|jpeg|gif|bmp)$/iUs',$row[1]) == true){
		echo '<img class="thumb" src="'.$row[1].'" alt=" " height="50" width="50" />';
	}elseif ( $MHGOZ_Options->get('checkbox_custom_no_photo')){
		echo '<img class="thumb" src="'.$MHGOZ_Options->get('site_no_photo').'" alt=" " height="50" width="50" />';
 	}else{
	    echo '<img class="thumb" src="'. get_template_directory_uri().'/theme-files/img/no-img/post-thumb.png" height="50" width="50" />';
	}
}
?>
               <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo substr(strip_tags(get_the_content()),0,1000); ?>">
                <?php the_title(); ?>
                </a></div>
              <?php endwhile; endif; ?>
              <a class="gotocatCLUM mhgozfont" href=" <?php bloginfo('url'); ?>/?cat=<?php global $MHGOZ_Options; $MHGOZ_Options->show('tb6_cats');?>">تابع كافه مواضيع القسم</a> </div>
          </div>
        </div>
        <div class="moreerrmcl"> <a  class="more mhgozfont" id="showmoretttb7"title="مشاهده المزيد"> مشاهده المزيد</a> <a  class="more mhgozfont" style="display:none" id="hidemoretttb7"title="تقليل المساحه">تقليل المساحه</a> </div>
      </li>
      <!-- tb8 -->
      
      <li class="widget color-yellow" id="widget4">
        <div class="widget-head">
          <h3 class=" mhgozfont">		              <?php global $MHGOZ_Options; $MHGOZ_Options->show('tb8_tit');?>
</h3>
          <span class="optt"> <a class="t-up" id="hidesidalltb8" title="اخفاء"></a> <a class="t-down" id="showsidalltb8" title="اظهار" style="display:none"></a> </span> </div>
        <div class="widget-content tb8">
          <div class="content" id="contentslidertttb8">
            <div id="main-slid-conten">
              <?php query_posts("cat=".$MHGOZ_Options->get('tb8_cats')."&showposts=14"); ?>
              <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
              <div class="index-post">
  <?php
$attachments = get_children(array
('post_parent' => get_the_ID(),
 'post_type' => 'attachment',
 'post_mime_type' => 'image',
 'orderby' => 'menu_order'));
if ( has_post_thumbnail() ) {
the_post_thumbnail( array(50,50) );
} elseif ($attachments) {
    if ( ! is_array($attachments) ) continue;
    $count = count($attachments);
    $first_attachment = array_shift($attachments);
    echo wp_get_attachment_image($first_attachment->ID);
} else {
	$table = "wp_posts";
	if($table_prefix !='' || $table_prefix != ''){
		$table = $table_prefix."posts ";
	}
	$row = mysql_fetch_assoc(mysql_query("SELECT * FROM " . $table . " WHERE id =".get_the_ID()));
	$row = explode('||',$row['post_excerpt']);
	if(preg_match('/(png|jpg|jpeg|gif|bmp)$/iUs',$row[1]) == true){
		echo '<img class="thumb" src="'.$row[1].'" alt=" " height="50" width="50" />';
	}elseif ( $MHGOZ_Options->get('checkbox_custom_no_photo')){
		echo '<img class="thumb" src="'.$MHGOZ_Options->get('site_no_photo').'" alt=" " height="50" width="50" />';
 	}else{
	    echo '<img class="thumb" src="'. get_template_directory_uri().'/theme-files/img/no-img/post-thumb.png" height="50" width="50" />';
	}
}
?>
               <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo substr(strip_tags(get_the_content()),0,1000); ?>">
                <?php the_title(); ?>
                </a></div>
              <?php endwhile; endif; ?>
              <a class="gotocatCLUM mhgozfont" href=" <?php bloginfo('url'); ?>/?cat=<?php global $MHGOZ_Options; $MHGOZ_Options->show('tb8_cats');?> ">تابع كافه مواضيع القسم</a> </div>
          </div>
        </div>
        <div class="moreerrmcl"> <a  class="more mhgozfont" id="showmoretttb8"title="مشاهده المزيد"> مشاهده المزيد</a> <a  class="more mhgozfont" style="display:none" id="hidemoretttb8"title="تقليل المساحه">تقليل المساحه</a> </div>
      </li>
    </ul>
    <?php do_action( 'bp_after_blog_home' ) ?>
 
 <div class="clear"></div>
 <a class="site_last_art" title="متابعه المقالات"  href="<?php bloginfo('url'); ?>/?p=<?php global $MHGOZ_Options; $MHGOZ_Options->show('article_p_page');?>"></a>
  <ul id="articelcurs" class="jcarousel-skin-tango">

        <?php

// set the $paged variable

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

// query the posts of your custom post types

query_posts( array(

		'post_type' => array(

					'article',

				),

        'showposts' => '12',				

				'paged' => $paged ) // for paging links to work

			);



if (have_posts()) :

	while (have_posts()) : the_post(); ?>
    <li>

<div class="mainnewsss">
<a href="<?php the_permalink(); ?>">

 <?php
$attachments = get_children(array
('post_parent' => get_the_ID(),
 'post_type' => 'attachment',
 'post_mime_type' => 'image',
 'orderby' => 'menu_order'));
if ( has_post_thumbnail() ) {
the_post_thumbnail( array(100,290) );
} elseif ($attachments) {
    if ( ! is_array($attachments) ) continue;
    $count = count($attachments);
    $first_attachment = array_shift($attachments);
    echo wp_get_attachment_image($first_attachment->ID);
} else {
	$table = "wp_posts";
	if($table_prefix !='' || $table_prefix != ''){
		$table = $table_prefix."posts ";
	}
	$row = mysql_fetch_assoc(mysql_query("SELECT * FROM " . $table . " WHERE id =".get_the_ID()));
	$row = explode('||',$row['post_excerpt']);
	if(preg_match('/(png|jpg|jpeg|gif|bmp)$/iUs',$row[1]) == true){
		echo '<img class="thumb" src="'.$row[1].'" alt=" " height="100" width="290" />';
	}elseif ( $MHGOZ_Options->get('checkbox_custom_no_photo')){
		echo '<img class="thumb" src="'.$MHGOZ_Options->get('site_no_photo').'" alt=" " height="100" width="290" />';
 	}else{
	    echo '<img class="thumb" src="'. get_template_directory_uri().'/theme-files/img/no-img/post-thumb.png" height="290" width="100" />';
	}
}
?>
</a>
                  <h1>
               <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo substr(strip_tags(get_the_content()),0,1000); ?>">
                <?php the_title(); ?>
                </a>
               </h1>
<p>
<?php echo substr(strip_tags(get_the_content()),0,300); ?>
</p>
</div>
       </li>

        <?php endwhile; endif; ?>
  <ul>
    

  </div>

  <!-- End Of Colums erea --> 
  
  <!-- start of sidbar erea -->
  
  <div id="sidbar">
    <div class="tophash"></div>
    <div class="centerhash">
      <?php get_sidebar(); ?>
    </div>
    <div class="bottomhash"></div>
  </div>
</div>

<!--- end of sidbar erea -->

<div class="clear"></div>



<?php get_footer(); ?>