<?php
/**
* The Template for outputting Lesson Archive items
*
* Override this template by copying it to yourtheme/sensei/loop-lesson.php
*
* @author Automattic
* @package Sensei
* @category Templates
* @version 1.9.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* This runs before the post type items in the loop-lesson.php template.
*
* @since 1.9
*
* @hook sensei_loop_lesson_before
*/
do_action( 'sensei_loop_lesson_before' );
?>
<section class="lesson-container" >
<?php
/**
* This runs before the lesson items in the loop-lesson.php template.
*
* @since 1.9.0
*
* @hook sensei_loop_lesson_inside_before
*
* @hooked Sensei()->lesson->lesson_tag_archive_description - 11
* @hooked Sensei()->lesson->the_archive_header - 20
*/
do_action( 'sensei_loop_lesson_inside_before' );
?>
<?php
// Loop through all lessons
while ( have_posts() ) {
the_post();
sensei_load_template_part( 'content', 'lesson' );
}
?>
<?php
/**
* This runs inside the <ul> after the lesson items in the loop-lesson.php template.
*
* @since 1.9.0
*
* @hook sensei_loop_lesson_inside_after
*/
do_action( 'sensei_loop_lesson_inside_after' );
?>
</section>
<?php
/**
* This runs after the lesson items <ul> in the loop-lesson.php template.
*
* @since 1.9.0
*
* @hook sensei_loop_lesson_after
*/
do_action( 'sensei_loop_lesson_after' );