<?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 <?php post_class(); ?>>
                    	<div class="postDetails">
                        	<div class="postFormat">
                            	<span class="postType"></span>
                            </div><!--End PostFormat-->
                            <div class="postCalender">
                            	<span class="month"><?php the_time('M'); ?></span>
                                <span class="day"><?php the_time('d'); ?></span>
                            </div><!--End PostrCalender-->
                            <div class="postComments">
                            	<a href="<?php comments_link();?>"><?php comments_number('0','1','%');?></a>
                            </div><!--End PostComments-->
                        </div><!--End PostDetails-->
                        <div class="postContent">
                        	<div class="postTitle">
                            	<a href="<?php the_permalink();?>"><h1><?php the_title();?></h1></a>
                            </div><!--End PostTitle-->
                            <div class="postMeta">
                            	<ul>
                                	<li class="postAuthor"><?php the_author(); ?></li>
                                    <li class="postCat"><?php the_category(', ') ?></li>
                                    <li class="postVisits">الزيارات : <?php if(function_exists('the_views')) { the_views(); } ?></li>
                                </ul>
                            </div><!--End PostMeta-->
                            <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';?>
                            <?php include TEMPLATEPATH .'/templates/related.php';?>
                        </div><!--End PostContent-->
                    </div><!--End Post-->
                    <div <?php post_class(); ?>>
                    	<div class="postDetails">
                        	<div class="scndpostComments">
                            	<span class="scnComIcon"></span>
                            </div><!--End PostComments-->
                        </div><!--End PostDetails-->
                        <div class="postContent">
                            <div class="comments-div">
                                <?php comments_template(); ?>
                            </div>
                        </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();?>
