<div class="singlePost">
                    	<?php if(have_posts()) : while(have_posts()) : the_post('');?>
                        <?php setPostViews($post->ID); ?>	
                    	<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>
                        	
                        	<div class="articleDetails">
                            	
                            	<?php $format = get_post_meta($post->ID, 'lioit_postformat', true); ?>
                   				<?php get_template_part( 'Lioit/templates/post-format/format', $format ); ?>
                            	<div class="articleTitle">
                                    <?php if ( in_category( 'Arabic' )) { ?><div id="content-ur"><?php }; ?>   <h1>
                                        <?php 
											$badge_text = get_post_meta($post->ID, 'lioit_post_badge_text', true);
											$badge_color = get_post_meta($post->ID, 'lioit_post_badge_color', true);
										?>
                                        <?php if ($badge_text) { ?>
                                        <div class="articleType" style="background-color:<?php echo $badge_color; ?>;"><?php echo $badge_text; ?></div>
                                        <?php } ?><?php the_title(); ?></h1><?php if ( in_category( 'Arabic' )) { ?></div><?php }; ?>
                                </div><!--End articleTitle-->
                                <?php require Lioit_TM . '/post.meta.php';?>
                                <?php $feature_image = get_post_meta($post->ID, 'lioit_feature_image', true); if($feature_image) { ?>
                                  <div class="feature_image">
                                        <?php the_post_thumbnail('fullsize'); ?>
                                  </div>
                                <?php } ?>
                            </div><!--End Article Details-->
                            
                            <div class="articleContent"><?php if ( in_category( 'Arabic' )) { ?><div id="content-ur"><?php }; ?>
                            	
                              <!-- Review -->
                        <?php  
							$lioit_review_enable = get_post_meta($post->ID, 'lioit_review_enable', true);
							$lioit_review_skin = get_post_meta($post->ID, 'lioit_review_skin', true);
							$lioit_review_position = get_post_meta($post->ID, 'lioit_criteria_position', true);
							if($lioit_review_enable == 'enable'){
							if($lioit_review_position == 'bottom'){ ?>
								<?php 
										global $post , $smof_data;
										$postads = get_post_meta($post->ID, 'lioit_postads', true);
										$postadscode300 = get_post_meta($post->ID, 'lioit_postadscode300', true);
										$postadscode728 = get_post_meta($post->ID, 'lioit_postadscode728', true);
										$postadscode468 = get_post_meta($post->ID, 'lioit_postadscode468', true);
										echo $postads;
									
										?>
										<?php if($postads == "left300") { ?>
                                        	<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
											
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } elseif($postads =="right300") { ?>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } elseif($postads =="top468") { ?>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } elseif($postads =="bottom468") { ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
										<?php } elseif($postads =="top728") { ?>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } elseif($postads =="bottom728") { ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
										
                                        <?php } elseif($postads =="nobanner") { ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } else { ?>
                                            <div class="mainpostconntents"> <?php the_content(''); ?></div>
                                        <?php } ?>
								
									<?php }?>
                                
                                
                     
                                    <?php require Lioit_TM . '/review.php';?>
                  
                                    
                                    <?php
                                    if($lioit_review_position == 'top' || $lioit_review_position == 'topright'){?>
                                       <?php 
										global $post , $smof_data;
										$postads = get_post_meta($post->ID, 'lioit_postads', true);
										$postadscode300 = get_post_meta($post->ID, 'lioit_postadscode300', true);
										$postadscode728 = get_post_meta($post->ID, 'lioit_postadscode728', true);
										$postadscode468 = get_post_meta($post->ID, 'lioit_postadscode468', true);
										echo $postads;
									
										?>
										<?php if($postads == "left300") { ?>
                                        	<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
											
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } elseif($postads =="right300") { ?>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } elseif($postads =="top468") { ?>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } elseif($postads =="bottom468") { ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
										<?php } elseif($postads =="top728") { ?>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } elseif($postads =="bottom728") { ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
										
                                        <?php } elseif($postads =="nobanner") { ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } else { ?>
                                            <div class="mainpostconntents"><?php the_content(''); ?></div>
                                        <?php } ?>
                                        
                                   <?php  }?>
                                    
                                <?php 
                                }else{ ?>
                                    <?php 
										global $post , $smof_data;
										$postads = get_post_meta($post->ID, 'lioit_postads', true);
										$postadscode300 = get_post_meta($post->ID, 'lioit_postadscode300', true);
										$postadscode728 = get_post_meta($post->ID, 'lioit_postadscode728', true);
										$postadscode468 = get_post_meta($post->ID, 'lioit_postadscode468', true);
										echo $postads;
									
										?>
										<?php if($postads == "left300") { ?>
                                        	<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
											
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } elseif($postads =="right300") { ?>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } elseif($postads =="top468") { ?>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } elseif($postads =="bottom468") { ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
										<?php } elseif($postads =="top728") { ?>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } elseif($postads =="bottom728") { ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
											<?php if(!empty($smof_data['banner_box'])) { ?>
												 <div class="singlePostBanner <?php echo $postads;?>"><?php echo $postadscode300;?></div><!--Sing Post Banner-->
                                            <?php } ?>
										
                                        <?php } elseif($postads =="nobanner") { ?>
											<div class="mainpostconntents"><?php the_content(''); ?></div>
										<?php } else { ?>
                                            <div class="mainpostconntents"><?php the_content(''); ?></div><i>Short link:</i> <input tyle="text" value="<?php echo wp_get_shortlink(); ?>" />
                                        <?php } ?>
                                    
                                <?php }?>
                            	
                                
                            </div><!--End ArticleContent-->    <?php if ( in_category( 'Arabic' )) { ?></div><?php }; ?>
                            <?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?>
                            <?php if(!empty($smof_data['show_posttags'])) { ?>
                             <div class="articleTags">
                            	<?php the_tags('<div class="postTags"><div class="title">Tags</div>','','</div>'); ?>
                            </div><!--End ArticleTags-->
                            <?php } ?>
							
                            <?php if(!empty($smof_data['show_postsocial'])) { ?>
                                 <?php require Lioit_TM . '/single.share.php';?>
                            <?php } ?>
                            <?php require Lioit_TM . '/post.nav.php';?>
                            <?php if(!empty($smof_data['show_authorinfo'])) { ?>
                                 <?php require Lioit_TM . '/single.author.php';?>
                            <?php } ?>
							
                        </div><!--End article-->
                        
                        <?php if(!empty($smof_data['show_related'])) { ?>
							 <?php require Lioit_TM . '/related.php';?>
                        <?php } ?>
                        <?php endwhile; ?>
						<?php  else:  ?>
                        <?php  endif; ?>
                        <?php comments_template('', true); ?>
                        <div class="disqusContainer"></div>