<?php get_header(); ?>
	
	<div class="container">
		
		<div id="content-area">
		
			<div id="mainpage" <?php if(get_theme_mod('archive_sidebar') == true) : ?>class="fullwidth"<?php endif; ?>>
			
				<div class="archive_container">
	
					<span><?php _e( 'Category -', 'vinethemes' ); ?></span>
					<h1><?php printf( __( '%s', 'vinethemes' ), single_cat_title( '', false ) ); ?></h1>
					
				</div>

                <div class="<?php if(get_theme_mod('home_style')=='grid-blog') : ?> ct_grid_view <?php elseif(get_theme_mod('home_style')=='simple-with-grid-blog') : ?> simple-with-grid-blog ct_grid_view <?php elseif(get_theme_mod('home_style')=='list-blog') : ?> list-blog <?php else: ?> ct_simple_view <?php endif; ?> ">

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

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

                        <!-- Loop Here-->

                        <?php if(get_theme_mod('home_style')=='grid-blog') : ?>
                            <?php get_template_part('content-area-grid'); ?>

                        <?php elseif(get_theme_mod('home_style')=='simple-with-grid-blog') : ?>
                            <?php get_template_part('content-area-simple-with-grid'); ?>

                        <?php elseif(get_theme_mod('home_style')=='list-blog') : ?>
                            <?php get_template_part('content-area-list'); ?>

                        <?php else : ?>
                            <?php get_template_part('simple-content-area'); ?>



                        <?php endif; ?>


                    <?php endwhile; ?>
                </div>

					<?php my_pagination(); ?>

				<?php else : ?>

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

				<?php endif; ?>
				
			</div>

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