<?php get_header();?>
            <div id="main">
            	<?php
				$sideoption = get_post_meta($post->ID, 'lioit_sideoption', true);
				$side_layout = get_post_meta($post->ID, 'lioit_side_layout', true);
				?>
            	<?php if($sideoption) { ?>
				<?php if($side_layout == "leftside") { ?>
					<div id="mainContentRight">
					<div class="singlePost">
                    	<?php if(have_posts()) : while(have_posts()) : the_post('');?>
                        
                    	<div class="article mainBorder">
                        	<?php require Lioit_TM . '/post.slider.php';?>
                        	<div class="articleDetails">
                            	
                            	<div class="articleTitle">
                                    <h1><?php $type_badge = get_post_meta($post->ID, 'lioit_post_type', true);?>
                                        <div class="<?php echo $type_badge; ?> articleType"></div><?php the_title(); ?></h1>
                                </div><!--End articleTitle-->
                                <?php require Lioit_TM . '/post.meta.php';?>
                                
                            </div><!--End Article Details-->
                            <div class="articleContent">
                            	<?php require Lioit_TM . '/post.top.banner.php';?>
                            	<?php require Lioit_TM . '/post.feature.image.php';?>
                            	<?php the_content();?> 
                                <?php require Lioit_TM . '/post.btm.banner.php';?>
                            </div><!--End ArticleContent-->
                            
                            <?php if(!empty($data['show_posttags'])) { ?>
                             <div class="articleTags">
                            	<?php the_tags('<div class="postTags">','','</div>'); ?>
                            </div><!--End ArticleTags-->
                            <?php } ?>
							
                            <?php if(!empty($data['show_postsocial'])) { ?>
                                 <?php require Lioit_TM . '/single.share.php';?>
                            <?php } ?>
                            <?php if(!empty($data['show_authorinfo'])) { ?>
                                 <?php require Lioit_TM . '/single.author.php';?>
                            <?php } ?>
							
                        </div><!--End article-->
                        <?php require Lioit_TM . '/post.nav.php';?>
                        <?php if(!empty($data['show_related'])) { ?>
							 <?php require Lioit_TM . '/related.php';?>
                        <?php } ?>
                        
                        <?php endwhile; ?>
						<?php  else:  ?>
                        <?php  endif; ?>
                        <?php comments_template('', true); ?>
                    </div><!--End ContentBox-->
                </div><!--End Main Content-->
                <div id="sidebarLeft">
                    <?php require Lioit_TM . '/post.sidebar.php';?>
                </div><!--End Sidebar-->
                <?php } elseif($side_layout =="fullwidth") { ?>
					<div id="fullContent">
					<div class="singlePost">
                    	<?php if(have_posts()) : while(have_posts()) : the_post('');?>
                    	<div class="article mainBorder">
                        	<?php require Lioit_TM . '/post.slider.php';?>
                        	<div class="articleDetails">
                            	
                            	<div class="articleTitle">
                                    <h1><?php $type_badge = get_post_meta($post->ID, 'lioit_post_type', true);?>
                                        <div class="<?php echo $type_badge; ?> articleType"></div><?php the_title(); ?></h1>
                                </div><!--End articleTitle-->
                                <?php require Lioit_TM . '/post.meta.php';?>
                                
                            </div><!--End Article Details-->
                            <div class="articleContent">
                            	<?php require Lioit_TM . '/post.top.banner.php';?>
                                <?php require Lioit_TM . '/post.feature.image.php';?>
                            	<?php the_content();?> 
                                <?php require Lioit_TM . '/post.btm.banner.php';?>
                            </div><!--End ArticleContent-->
                            
                            <?php if(!empty($data['show_posttags'])) { ?>
                             <div class="articleTags">
                            	<?php the_tags('<div class="postTags">','','</div>'); ?>
                            </div><!--End ArticleTags-->
                            <?php } ?>
							
                            <?php if(!empty($data['show_postsocial'])) { ?>
                                 <?php require Lioit_TM . '/single.share.php';?>
                            <?php } ?>
                            <?php if(!empty($data['show_authorinfo'])) { ?>
                                 <?php require Lioit_TM . '/single.author.php';?>
                            <?php } ?>
							
                        </div><!--End article-->
                        <?php require Lioit_TM . '/post.nav.php';?>
                        <?php if(!empty($data['show_related'])) { ?>
							 <?php require Lioit_TM . '/related.php';?>
                        <?php } ?>
                        
                        <?php endwhile; ?>
						<?php  else:  ?>
                        <?php  endif; ?>
                        <?php comments_template('', true); ?>
                    </div><!--End ContentBox-->
                </div><!--End Main Content-->
                <?php } else { ?>
                	<div id="mainContent">
					<div class="singlePost">
                    	<?php if(have_posts()) : while(have_posts()) : the_post('');?>
                    	<div class="article mainBorder">
                        	<?php require Lioit_TM . '/post.slider.php';?>
                        	<div class="articleDetails">
                            	
                            	<div class="articleTitle">
                                    <h1><?php $type_badge = get_post_meta($post->ID, 'lioit_post_type', true);?>
                                        <div class="<?php echo $type_badge; ?> articleType"></div><?php the_title(); ?></h1>
                                </div><!--End articleTitle-->
                                <?php require Lioit_TM . '/post.meta.php';?>
                                
                            </div><!--End Article Details-->
                            <div class="articleContent">
                            	<?php require Lioit_TM . '/post.top.banner.php';?>
                                <?php require Lioit_TM . '/post.feature.image.php';?>
                            	<?php the_content();?> 
                                <?php require Lioit_TM . '/post.btm.banner.php';?>
                            </div><!--End ArticleContent-->
                            
                            <?php if(!empty($data['show_posttags'])) { ?>
                             <div class="articleTags">
                            	<?php the_tags('<div class="postTags">','','</div>'); ?>
                            </div><!--End ArticleTags-->
                            <?php } ?>
							
                            <?php if(!empty($data['show_postsocial'])) { ?>
                                 <?php require Lioit_TM . '/single.share.php';?>
                            <?php } ?>
                            <?php if(!empty($data['show_authorinfo'])) { ?>
                                 <?php require Lioit_TM . '/single.author.php';?>
                            <?php } ?>
							
                        </div><!--End article-->
                        <?php require Lioit_TM . '/post.nav.php';?>
                        <?php if(!empty($data['show_related'])) { ?>
							 <?php require Lioit_TM . '/related.php';?>
                        <?php } ?>
                        
                        <?php endwhile; ?>
						<?php  else:  ?>
                        <?php  endif; ?>
                        <?php comments_template('', true); ?>
                    </div><!--End ContentBox-->
                </div><!--End Main Content-->
                <div id="sidebar">
                    <?php require Lioit_TM . '/post.sidebar.php';?>
                </div><!--End Sidebar-->
                <?php } ?>
                <?php } else { ?>
					<div id="mainContent">
					<div class="singlePost">
                    	<?php if(have_posts()) : while(have_posts()) : the_post('');?>
                    	<div class="article mainBorder">
                        	<?php require Lioit_TM . '/post.slider.php';?>
                        	<div class="articleDetails">
                            	
                            	<div class="articleTitle">
                                    <h1><?php $type_badge = get_post_meta($post->ID, 'lioit_post_type', true);?>
                                        <div class="<?php echo $type_badge; ?> articleType"></div><?php the_title(); ?></h1>
                                </div><!--End articleTitle-->
                                <?php require Lioit_TM . '/post.meta.php';?>
                                
                            </div><!--End Article Details-->
                            <div class="articleContent">
                            	<?php require Lioit_TM . '/post.top.banner.php';?>
                                <?php require Lioit_TM . '/post.feature.image.php';?>
                            	<?php the_content();?> 
                                <?php require Lioit_TM . '/post.btm.banner.php';?>
                            </div><!--End ArticleContent-->
                            
                            <?php if(!empty($data['show_posttags'])) { ?>
                             <div class="articleTags">
                            	<?php the_tags('<div class="postTags">','','</div>'); ?>
                            </div><!--End ArticleTags-->
                            <?php } ?>
							
                            <?php if(!empty($data['show_postsocial'])) { ?>
                                 <?php require Lioit_TM . '/single.share.php';?>
                            <?php } ?>
                            <?php if(!empty($data['show_authorinfo'])) { ?>
                                 <?php require Lioit_TM . '/single.author.php';?>
                            <?php } ?>
							
                        </div><!--End article-->
                        <?php require Lioit_TM . '/post.nav.php';?>
                        <?php if(!empty($data['show_related'])) { ?>
							 <?php require Lioit_TM . '/related.php';?>
                        <?php } ?>
                        
                        <?php endwhile; ?>
						<?php  else:  ?>
                        <?php  endif; ?>
                        <?php comments_template('', true); ?>
                    </div><!--End ContentBox-->
                </div><!--End Main Content-->
                <div id="sidebar">
                    <?php require Lioit_TM . '/post.sidebar.php';?>
                </div><!--End Sidebar-->
                <?php } ?>
            	
            </div><!--End Main-->
        </div><!--End Content-->
<?php get_footer();?>
