<?php get_header();?>

            <?php require SalahElimam_TM . '/slider.php';?>
            <div id="mainContent">
              <div id="mainContentData">
                  <?php require TEMPLATEPATH . '/rightside.php';?>
                  <div id="centerFront">
                      <div id="mainFrontContents">
                      <?php require SalahElimam_TM . '/tabs.php';?>
                      
                      <div id="latestPosts">
                          <div id="latestTitle">
                              <a href="<?php bloginfo('rss_url'); ?>" class="latestTitleMain"><h2>أحدث المقالات</h2></a>
                              <a href="<?php bloginfo('rss_url'); ?>" class="latestTitleRss"></a>
                          </div><!--End LatestTitle-->
                          <div id="latestPostsContent">
                          	  <?php if(have_posts()) : while(have_posts()) : the_post('');?>
                              <div class="post">
                              	<div class="postTop">
                                	 <a href="<?php the_permalink();?>" class="latestPostTitle"><h1><?php the_title();?></h1></a>
                                </div><!--End PostTop-->
                                <div class="postContent">
                                	<div class="postThumb">
                                        <a href="<?php the_permalink();?>"><?php the_post_thumbnail(); ?></a>
                                    </div><!--End Post Thumb-->
                                    <?php the_excerpt(); ?>
                                </div><!--End PostContent-->
                                <div class="postBtm">
                                	<div class="postMeta">
                                        <ul>
                                            <li class="postCat"><?php the_category(', ') ?></li>
                                            <li class="postAuthor"><?php the_author_posts_link(); ?></li>
                                            <li class="postComments">التعليقات  : <a href="<?php comments_link();?>"><?php comments_number('0','1','%');?></a></li>
                                        </ul>
                                    </div><!--End LatestPost Meta-->
                                    <a href="<?php the_permalink();?>" class="readMore">أكمل القراءة ..</a>
                                </div><!--End PostBtm-->
                              </div><!--End Post-->
                              <?php endwhile; ?>
							  <?php  else:  ?>
                              <div class="no-res" >
                                  <p class="nop">المعذرة, ما تبحث عته غير متوفر هنا</p>
                                  <?php include TEMPLATEPATH .'/searchform.php';?>
                              </div>
                              <?php  endif; ?>
                              <div class="pagination">
                                      <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
                              <?php wp_reset_query(); ?>
                              </div><!--End Pagination-->
                          </div><!--End Latest Posts Content-->
                      </div><!--End Latest Posts-->
                      <?php require SalahElimam_TM . '/cats.php';?>
                     <?php require SalahElimam_TM . '/random.php';?>
                      </div><!--End mainFrontContents-->
                  </div><!--End Center-->
                  <?php get_sidebar();?>
              </div><!--End Main Content Data--> 
          </div><!--End Main Content-->
        </div><!--End Content-->
<?php get_footer();?>