
<?php
/*
Template Name: Home page with Video Slider
*/
?>


<?php get_header(); ?>

<div id="main_content" class="home_page"> 

<div class="inner">

<?php if (get_option('op_featured_area') == 'on') { ?>
<?php get_template_part('includes/home_video_slider'); ?>
<?php } ?>	

<div class="clear"></div>

<?php $r_home_with_small_sidebar = get_post_meta($post->ID, "r_home_with_small_sidebar", $single = true); ?>
<?php $r_home_small_sidebar_position = get_post_meta($post->ID, "r_home_small_sidebar_position", $single = true); ?>

<?php $r_home_content_layout = get_post_meta($post->ID, "r_home_content_layout", $single = true); ?>


<?php if($r_home_content_layout == 'With sidebars') { ?>

<?php if($r_home_with_small_sidebar == 'on') { ?>

<?php if($r_home_small_sidebar_position == 'Left') { ?>
<div class="small_sidebar_left">
<?php get_sidebar('small'); ?>
</div>
<?php } ?> 

<?php } ?> 

<?php } else {} ?> 


<div id="home_content" class="<?php if($r_home_content_layout == 'Full width') { ?> home_full_width <?php } ?><?php if($r_home_with_small_sidebar == 'on') { ?> home_with_small_sidebar <?php } ?>">	

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

	<?php the_content(''); ?>

<?php endwhile; ?>
<?php endif; ?> 	
	
</div>

<?php if($r_home_content_layout == 'With sidebars') { ?>

<?php if($r_home_with_small_sidebar == 'on') { ?>

<?php if($r_home_small_sidebar_position == 'Right') { ?>
<?php get_sidebar('small'); ?>	
<?php } ?> 

<?php } ?> 
	
<?php get_sidebar('right'); ?>	
	
<?php } else {} ?> 
	
</div>
</div>	

<div class="clear"></div>
	
<?php get_footer(); ?>