<?php
/**
 * The template for displaying archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Encrypted Lite
 */

get_header(); ?>
<div class="el-container">
	<div id="primary" class="content-area">
		<main id="main" class="site-main x-bottom" role="main">

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

			<header class="page-header">
				<?php
					encrypted_lite_archive_title( '<h1 class="page-title">', '</h1>' );
					encrypted_lite_archive_description( '<div class="taxonomy-description">', '</div>' );
				?>
			</header><!-- .page-header -->

			<?php /* Start the Loop */ ?>
			<?php while ( have_posts() ) : the_post(); ?>

				<?php
					/* Include the Post-Format-specific template for the content.
					 * If you want to override this in a child theme, then include a file
					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
					 */
					get_template_part( 'content', get_post_format() );
				?>

			<?php endwhile; ?>
            <div class="clearfix"></div>
			<?php encrypted_lite_paging_nav(); ?>

		<?php else : ?>

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

		<?php endif; ?>

		</main><!-- #main -->
	</div><!-- #primary -->

<?php 
$et_to =  encrypted_lite_get_options_values();
    $portfolio_cat = $et_to['select_portfolio_category'];
    if(!is_category( $portfolio_cat ) )
        {
            get_sidebar('right');
        }
     ?>
</div>
<?php get_footer(); ?>
