<?php get_header(); ?>

    <div class="main-slider-top <?php if(get_theme_mod('vine_themes_slider_full')=='full') : ?>  <?php endif; ?> ">


        <div class="<?php if(get_theme_mod('vine_themes_slider_full')=='full') : ?> <?php else: ?> <?php endif; ?> ">
            <?php if(get_theme_mod( 'vine_themes_slider' ) == true) : ?>
                <?php get_template_part('inc/slider/slider'); ?>
            <?php endif; ?>

        </div>
    </div>



<div class="container">

<?php if(get_theme_mod( 'below_slider_area' ) == true) : ?>
    <div id="below-slider-area">

    <?php	/* Widget Area */	if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar('Below Slider Area') ) ?>

        </div>
<?php endif; ?>

<?php if(get_theme_mod( 'vine_themes_featured_box' ) == true) : ?>
    <div class="container">
        <?php get_template_part('inc/Featured-Box/featured_box'); ?>
    </div>
<?php endif; ?>



    <div id="content-area">


    <div id="mainpage" <?php if(get_theme_mod('home_sidebar') == true) : ?>class="fullwidth"<?php endif; ?>>
    <div class='theiaStickySidebar'>
<div class="ct_simple_view">

<?php if ( have_posts() ) : ?>

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

        <!-- Loop Here-->
            <?php get_template_part('simple-content-area'); ?>

    <?php endwhile; ?>
    </div>
        <?php my_pagination(); ?>
    </div>



<?php else : ?>

    <?php get_template_part( 'content-area', 'none' ); ?>

<?php endif; ?>


    </div>


<?php if(get_theme_mod('home_sidebar')) : else : ?><?php get_sidebar(); ?><?php endif; ?>
<?php get_footer(); ?>