<?php
/**
 * @author  RadiusTheme
 * @since   1.0
 * @version 1.0
 */

// Layout class
if ( RDTheme::$layout == 'full-width' ) {
	$rdtheme_layout_class = 'col-sm-12 col-xs-12';
}
else{
	$rdtheme_layout_class = 'col-sm-8 col-md-9 col-xs-12';
}
?>
<?php get_header(); ?>
<div id="primary" class="content-area">
	<div class="container">
		<div class="row">
			<?php if ( RDTheme::$layout == 'left-sidebar' ) {
				get_sidebar(); 
			} ?>
			<div class="<?php echo esc_attr( $rdtheme_layout_class );?>">
				<main id="main" class="site-main">
				<?php while ( have_posts() ) : the_post(); ?>
					<?php get_template_part( 'template-parts/content', 'single-portfolio' );?>
				<?php endwhile; ?>
				</main>
			</div>
			<?php if ( RDTheme::$layout == 'right-sidebar' ) {
				get_sidebar(); 
			} ?>
		</div>
	</div>
</div>
<?php get_footer(); ?>