<?php get_header();?>
        <div id="content">
        	<?php require Lioit_TM . '/tips.php';?>
            <div id="mainContent">
            	<div id="posts">
                	<?php if(have_posts()) : while(have_posts()) : the_post('');?>
                    <div class="page">
                        <div class="postContent">
                        	<div class="postTitle">
                            	<a href="<?php the_permalink();?>"><h1><?php the_title();?></h1></a>
                            </div><!--End PostTitle-->
                            
                            <div class="postMainContent">
                            	<?php the_content(); ?>
                            </div><!--End PostMainContent-->
                            <div class="postShare">
								<?php include TEMPLATEPATH .'/templates/post.social.php';?>
                            </div><!--End Post Share-->
                            <?php include TEMPLATEPATH .'/templates/author.php';?>
                        </div><!--End PostContent-->
                    </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 Posts-->
                <?php get_sidebar();?>
            </div><!--End Main Content-->
        </div><!--End Content-->
<?php get_footer();?>
