';
}
/* Start the Loop */
while ( have_posts() ) :
the_post();
/*
* Include the Post-Type-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 Type name) and that will be used instead.
*/
// Post Display Layout
if( !empty( $layout ) && $layout == 'list-rsidebar' ){
get_template_part( 'template-parts/layout/content', 'list' );
}else if( !empty( $layout ) && $layout == 'gridcol2-rsidebar' ){
get_template_part( 'template-parts/layout/content', 'twogrid' );
}else if( !empty( $layout ) && $layout == 'masonry2-rsidebar' ){
get_template_part( 'template-parts/layout/content', 'masonry' );
}else {
get_template_part( 'template-parts/content', get_post_format() );
}
endwhile;
if( !empty( $layout ) && $layout == 'masonry2-rsidebar'){
echo '
';
}
the_posts_pagination(
array(
'prev_text' => esc_html__( 'Prev', 'craft-blog' ),
'next_text' => esc_html__( 'Next', 'craft-blog' ),
)
);
else :
get_template_part( 'template-parts/content', 'none' );
endif;
?>