| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying content of single course. |
| 4 |
* |
| 5 |
* @author ThimPress |
| 6 |
* @package LearnPress/Templates |
| 7 |
* @version 4.0.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
defined( 'ABSPATH' ) || exit; |
| 11 |
|
| 12 |
/** |
| 13 |
* Header for page |
| 14 |
*/ |
| 15 |
if ( empty( $is_block_theme ) ) { |
| 16 |
get_header( 'course' ); |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* @since 3.0.0 |
| 21 |
*/ |
| 22 |
do_action( 'learn-press/before-main-content' ); |
| 23 |
do_action( 'learn-press/before-main-content-single-course' ); |
| 24 |
|
| 25 |
while ( have_posts() ) { |
| 26 |
the_post(); |
| 27 |
learn_press_get_template( 'content-single-course' ); |
| 28 |
} |
| 29 |
|
| 30 |
/** |
| 31 |
* @since 3.0.0 |
| 32 |
*/ |
| 33 |
do_action( 'learn-press/after-main-content-single-course' ); |
| 34 |
do_action( 'learn-press/after-main-content' ); |
| 35 |
|
| 36 |
/** |
| 37 |
* LP sidebar |
| 38 |
*/ |
| 39 |
do_action( 'learn-press/sidebar' ); |
| 40 |
|
| 41 |
/** |
| 42 |
* Footer for page |
| 43 |
*/ |
| 44 |
if ( empty( $is_block_theme ) ) { |
| 45 |
get_footer( 'course' ); |
| 46 |
} |
| 47 |
|