} else { ?> <li class="grid-item post format-standard"> <div class="grid-item-inner"> <div class="grid-content"> <h3 class="post-title"><?php echo esc_attr_e('No Posts to display', 'framework'); ?> </h3> </div> </div> </li> <?php } } imic_pagination($post_listing->max_num_pages); wp_reset_postdata(); ?> </div> <?php if (is_active_sidebar($pageSidebar)) { ?> <!-- Sidebar --> <div class="col-md-<?php echo esc_attr($sidebar_column); ?> "> <?php dynamic_sidebar($pageSidebar); ?> </div>
if (have_posts()) { while (have_posts()) { the_post(); $post_format = get_post_format(); $post_format = $post_format == "" ? "image" : $post_format; get_template_part('gallery', $post_format); ?> <?php } } ?> </ul> </div> <?php imic_pagination(); wp_reset_query(); ?> </div> <?php if (is_active_sidebar($pageSidebar)) { ?> <!-- Sidebar --> <div class="col-md-<?php echo $sidebar_column; ?> " id="sidebar-col"> <?php dynamic_sidebar($pageSidebar); ?> </div>
$post_format = get_post_format(); $post_format = $post_format == "" ? "image" : $post_format; get_template_part('gallery', $post_format); ?> <?php } } else { get_template_part('gallery', 'none'); } ?> </ul> </div> <?php if ($gallery_pagination == 1) { imic_pagination($gallery_listing->max_num_pages); } wp_reset_postdata(); ?> </div> <?php if (is_active_sidebar($pageSidebar)) { ?> <!-- Sidebar --> <div class="col-md-<?php echo esc_attr($sidebar_column); ?> "> <?php dynamic_sidebar($pageSidebar); ?>