'; }
// masonry container open
echo '
'; }
/////////////////////
// Pagination //
/////////////////////
presscore_complex_pagination( $page_query );
// restore config
$config->reset( $config_backup );
}
do_action( 'presscore_after_loop' );
endwhile; endif; ?>
';
//////////////////////
// Custom loop //
//////////////////////
$page_query = presscore_get_blog_query();
if ( $page_query->have_posts() ): while( $page_query->have_posts() ): $page_query->the_post();
// populate config with current post settings
presscore_populate_post_config();
presscore_get_template_part( 'theme', 'blog/masonry/blog-masonry-post' );
endwhile; wp_reset_postdata(); endif;
// masonry container close
echo '
';
// fullwidth wrap close
if ( $config->get( 'full_width' ) ) { echo '