<?php get_header();?>
            <div id="main" class="container">
           	 <div class="row">
            	<?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") { ?>
                    <?php } elseif($side_layout =="nosidebar") { ?>
                    	<div id="mainContentRight" class="span12">
							<?php require Lioit_TM . '/page.php';?>
                        </div><!--End Main Content-->
                    <?php } elseif($side_layout =="doublesidebarright") { ?>
                        <div id="mainContentRight" class="span7">
                            <?php require Lioit_TM . '/page.php';?>
                        </div><!--End Main Content-->
                         <div class="sidebar smallSidebar span2">
                                <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Page sidebar Small')){ }else { ?>
                                <?php } ?>
                        </div><!--End smallSidebar-->
                        <div id="sidebar" class="span3 sidebar">
                        <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Pages Sidebar')){ }else { ?>
                        <?php } ?>
                    </div><!--End Sidebar-->
                    <?php } elseif($side_layout =="doublesidebarleft") { ?>
                    	
                         
                        <div id="sidebar" class="span3 sidebar">
                        <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Pages Sidebar')){ }else { ?>
                        <?php } ?>
                    </div><!--End Sidebar-->
                        <div class="sidebar smallSidebar span2">
                                <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Page sidebar Small')){ }else { ?>
                                <?php } ?>
                        </div><!--End smallSidebar-->
                    	<div id="mainContentRight" class="span7">
							<?php require Lioit_TM . '/page.php';?>
                        </div><!--End Main Content-->
                    <?php } elseif($side_layout =="singlesidebarright") { ?>
                        <div id="mainContentRight" class="span9">
                            <?php require Lioit_TM . '/page.php';?>
                        </div><!--End Main Content-->
                    	<div id="sidebar" class="span3 sidebar">
                        <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Pages Sidebar')){ }else { ?>
                        <?php } ?>
                    </div><!--End Sidebar-->	
                    <?php } elseif($side_layout =="singlesidebarleft") { ?>	
                    	<div id="sidebar" class="span3 sidebar">
                        <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Pages Sidebar')){ }else { ?>
                        <?php } ?>
                    </div><!--End Sidebar-->
                        <div id="mainContentRight" class="span9">
                            <?php require Lioit_TM . '/page.php';?>
                        </div><!--End Main Content-->
                    	
                    <?php } ?>
                <?php } else { ?>
                	<div id="mainContentRight" class="span9">
						<?php require Lioit_TM . '/page.php';?>
                    </div><!--End Main Content-->
                	<div id="sidebar" class="span3 sidebar">
                        <?php if  (function_exists('dynamic_sidebar') && dynamic_sidebar('Pages Sidebar')){ }else { ?>
                        <?php } ?>
                    </div><!--End Sidebar-->
                <?php } ?>
            </div><!--End row-->
            	
   
            </div><!--End Main-->
         
        </div><!--End Content-->
<?php get_footer();?>
