<?php get_header();?>
            <div id="main" class="container singleContent">
           	 <div class="row">
            
            	<?php
				$sideoption = get_post_meta($post->ID, 'lioit_sideoption', true);
				$side_layout = get_post_meta($post->ID, 'lioit_side_layout', true);
				?>
            	<div id="mainContentRight" class="span9">
					<div class="singlePost">
                    	<?php if(have_posts()) : while(have_posts()) : the_post('');?>
                        
                    	<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                        	<?php
                                    $video_type = get_post_meta($post->ID, 'lioit_video_type', true);
                                    $video_id = get_post_meta($post->ID, 'lioit_video_id', true);
                                    $video_thumb = get_post_meta($post->ID, 'lioit_video_thumb', true);
                                    $featured_image = get_post_meta($post->ID, 'featured_image', true);
                                    $video = get_post_meta($post->ID, 'video', true);
                                    ?> 
									<?php if($video_type == 'youtube') { ?>
									<iframe width="636" height="400" src="http://www.youtube.com/embed/<?php echo $video_id; ?>?rel=0" frameborder="0" allowfullscreen></iframe>
									<?php } elseif($video_type == 'vimeo') { ?>
									<iframe src="http://player.vimeo.com/video/<?php echo $video_id; ?>?title=0&amp;byline=0&amp;portrait=0&amp;color=ba0d16" width="636" height="400" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
									<?php } elseif($video_type == 'dialymotion') { ?>
									<iframe frameborder="0" width="636" height="400" src="http://www.dailymotion.com/embed/video/<?php echo $video_id ?>?logo=0"></iframe>
									<?php } ?>
                        	<div class="articleDetails">
                            	<div class="articleTitle">
                                    <h1><?php the_title(); ?></h1>
                                </div><!--End articleTitle-->
                                <?php require Lioit_TM . '/video.meta.php';?>
                                
                            </div><!--End Article Details-->
                            <div class="articleContent">
                               <?php
							$show_review = get_post_meta($post->ID, 'lioit_review_setting_show', true);	
							if ( $show_review  == 1 ){ ?>
								<div class="review-container">
									<?php lioit_show_review();	?>
								</div>
						<?php } ?>
                            	<div class="mainpostconntents"><?php the_content('<span class="postMore btn darkBtn buttonShadow">'. __("Read More", 'lioit') . '</span>'); ?></div>
                                
                            </div><!--End ArticleContent-->
                            
                            <?php if(!empty($smof_data['show_posttags'])) { ?>
                             <div class="articleTags">
                            	<?php the_tags('<div class="postTags">','','</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>
                    </div><!--End ContentBox-->
                </div><!--End Main Content-->
                <div id="sidebar" class="span3 sidebar">
                    <?php require Lioit_TM . '/post.sidebar.php';?>
                </div><!--End Sidebar-->
                </div><!--End row-->
            
            </div><!--End Main-->
        </div><!--End Content-->
<?php get_footer();?>
