} else { ?> <div class="main-content posts-list"> <?php if (have_posts()) { educator_page_title($page); while (have_posts()) { the_post(); get_template_part('content'); } } else { get_template_part('content', 'none'); } ?> <?php educator_paging_nav(); ?> </div> <?php get_sidebar(); ?> <?php } ?> </div> </section> <?php get_footer();
<?php if ($courses->have_posts()) { ?> <?php $columns = isset($atts['columns']) ? intval($atts['columns']) : 1; $classes = apply_filters('ib_educator_courses_list_classes', array('ib-edu-courses-list', 'ib-edu-courses-list-' . $columns)); ?> <div class="<?php echo esc_attr(implode(' ', $classes)); ?> "> <?php while ($courses->have_posts()) { $courses->the_post(); if ($columns > 1) { Edr_View::template_part('content', 'course'); } else { Edr_View::template_part('content', 'course-fw'); } } ?> </div> <?php wp_reset_postdata(); if (!isset($atts['nopaging']) || 1 != $atts['nopaging']) { educator_paging_nav($courses->max_num_pages); } }