/** * This action before teacher courses loop. This hook fires within the archive-course.php * It fires even if the current archive has no posts. * * @since 1.9.0 * */ do_action('sensei_teacher_archive_course_loop_before'); ?> <?php if (have_posts()) { ?> <?php sensei_load_template('loop-course.php'); ?> <?php } else { ?> <p><?php _e('There are no courses for this teacher.', 'woothemes-sensei'); ?> </p> <?php } // End If Statement ?>
<?php /** * Action before lesson archive loop. This action runs within the archive-lesson.php. * * It will be executed even if there are no posts on the archive page. */ do_action('sensei_archive_before_lesson_loop'); ?> <?php if (have_posts()) { ?> <?php sensei_load_template('loop-lesson.php'); ?> <?php } else { ?> <p><?php _e('No lessons found that match your selection.', 'woothemes-sensei'); ?> </p> <?php } // End If Statement ?>
* * @since 1.9.0 * * @hooked Sensei_Messages::the_archive_header -20 */ do_action('sensei_archive_before_message_loop'); ?> <section id="main-sensei_message" class="sensei_message-container"> <?php if (have_posts()) { ?> <?php sensei_load_template('loop-message.php'); ?> <?php } else { ?> <p> <?php _e('You do not have any messages.', 'woothemes-sensei'); ?> </p> <?php } // End If Statement ?>