'; }
// 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 //
//////////////////////
if ( $page_query->have_posts() ):
add_filter( 'presscore_get_images_gallery_hoovered-title_img_args', 'presscore_gallery_post_exclude_featured_image_from_gallery', 15, 3 );
while( $page_query->have_posts() ): $page_query->the_post();
// populate post config
presscore_populate_album_post_config();
presscore_get_template_part( 'mod_albums', 'album-masonry/album' );
endwhile;
wp_reset_postdata();
remove_filter( 'presscore_get_images_gallery_hoovered-title_img_args', 'presscore_gallery_post_exclude_featured_image_from_gallery', 15, 3 );
endif;
// masonry container close
echo '
';
// fullwidth wrap close
if ( $config->get( 'full_width' ) ) { echo '