<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
/**
 * Content-lesson.php template file
 *
 * responsible for content on archive like pages. Only shows the lesson excerpt.
 *
 * For single lesson content please see single-lesson.php
 *
 * @author      Automattic
 * @package     Sensei
 * @category    Templates
 * @version     1.9.0
 */
?>

<article <?php post_class( get_the_ID() ); ?> >

	<section class="lesson-content">

		<?php
		/**
		 * sensei_content_lesson_before
		 * action that runs before the sensei {post_type} content. It runs inside the sensei
		 * content.php template. This applies to the specific post type that you've targeted.
		 *
		 * @since 1.9.0
		 * @param string $lesson_id
		 */
		do_action( 'sensei_content_lesson_before', get_the_ID() );
		?>

		<section class="entry">

			<?php
			/**
			 * Fires just before the post content in the content-lesson.php file.
			 *
			 * @since 1.9.0
			 *
			 * @hooked Sensei()->modules->module_archive_description -  11
			 * @hooked Sensei_Lesson::the_lesson_meta                -  20
			 *
			 * @param string $lesson_id
			 */
			do_action( 'sensei_content_lesson_inside_before', get_the_ID() );
			?>

			<p class="lesson-excerpt">

				<?php sensei_the_lesson_excerpt(); ?>

			</p>

			<?php
			/**
			 * Fires just after the post content in the lesson-content.php file.
			 *
			 * @since 1.9.0
			 *
			 * @param string $lesson_id
			 */
			do_action( 'sensei_content_lesson_inside_after', get_the_ID() );
			?>

		</section> <!-- section .entry -->

		<?php
		/**
		 * This action runs after the sensei lesson content. It runs inside the sensei
		 * lesson-content.php template.
		 *
		 * @since 1.9.0
		 * @param string $lesson_id
		 */
		do_action( 'sensei_content_lesson_after', get_the_ID() );
		?>

	</section> <!-- article .lesson-content -->

</article> <!-- article .(<?php echo esc_attr( join( ' ', get_post_class( array( 'lesson', 'post' ) ) ) ); ?>  -->
