| @@ -1,69 +1,69 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Template for displaying content of single course with curriculum and | |
| 4 | - * item's content inside it | |
| 5 | - * | |
| 6 | - * @author ThimPress | |
| 7 | - * @package LearnPress/Templates | |
| 8 | - * @version 4.0.0 | |
| 9 | - */ | |
| 10 | - | |
| 11 | -defined( 'ABSPATH' ) || exit(); | |
| 12 | - | |
| 13 | -/** | |
| 14 | - * @since 4.0.0 | |
| 15 | - * | |
| 16 | - * @see LP_Template_General::template_header() | |
| 17 | - */ | |
| 18 | -if ( ! wp_is_block_theme() ) { | |
| 19 | - do_action( 'learn-press/template-header' ); | |
| 20 | -} | |
| 21 | - | |
| 22 | -/** | |
| 23 | - * LP Hook | |
| 24 | - */ | |
| 25 | -do_action( 'learn-press/before-main-content' ); | |
| 26 | - | |
| 27 | -/** | |
| 28 | - * LP Hook | |
| 29 | - */ | |
| 30 | -do_action( 'learn-press/before-single-item' ); | |
| 31 | -?> | |
| 32 | - <div id="popup-course" class="course-summary"> | |
| 33 | - <?php | |
| 34 | - /** | |
| 35 | - * Get content item's course | |
| 36 | - * | |
| 37 | - * @since 3.0.0 | |
| 38 | - * | |
| 39 | - * @see LP_Template_Course::popup_content() - 30 | |
| 40 | - */ | |
| 41 | - do_action( 'learn-press/single-item-summary' ); | |
| 42 | - ?> | |
| 43 | - </div> | |
| 44 | -<?php | |
| 45 | - | |
| 46 | -/** | |
| 47 | - * LP Hook | |
| 48 | - * | |
| 49 | - * @since 3.0.0 | |
| 50 | - */ | |
| 51 | -do_action( 'learn-press/after-main-content' ); | |
| 52 | - | |
| 53 | -/** | |
| 54 | - * LP Hook | |
| 55 | - * | |
| 56 | - * @since 3.0.0 | |
| 57 | - */ | |
| 58 | -do_action( 'learn-press/after-single-course' ); | |
| 59 | - | |
| 60 | -/** | |
| 61 | - * LP Hook | |
| 62 | - * | |
| 63 | - * @since 4.0.0 | |
| 64 | - * | |
| 65 | - * @see LP_Template_General::template_footer() | |
| 66 | - */ | |
| 67 | -if ( ! wp_is_block_theme() ) { | |
| 68 | - do_action( 'learn-press/template-footer' ); | |
| 69 | -} | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Template for displaying content of single course with curriculum and | |
| 4 | + * item's content inside it | |
| 5 | + * | |
| 6 | + * @author ThimPress | |
| 7 | + * @package LearnPress/Templates | |
| 8 | + * @version 4.0.0 | |
| 9 | + */ | |
| 10 | + | |
| 11 | +defined( 'ABSPATH' ) || exit(); | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * @since 4.0.0 | |
| 15 | + * | |
| 16 | + * @see LP_Template_General::template_header() | |
| 17 | + */ | |
| 18 | +if ( ! wp_is_block_theme() ) { | |
| 19 | + do_action( 'learn-press/template-header' ); | |
| 20 | +} | |
| 21 | + | |
| 22 | +/** | |
| 23 | + * LP Hook | |
| 24 | + */ | |
| 25 | +do_action( 'learn-press/before-main-content' ); | |
| 26 | + | |
| 27 | +/** | |
| 28 | + * LP Hook | |
| 29 | + */ | |
| 30 | +do_action( 'learn-press/before-single-item' ); | |
| 31 | +?> | |
| 32 | + <div id="popup-course" class="course-summary"> | |
| 33 | + <?php | |
| 34 | + /** | |
| 35 | + * Get content item's course | |
| 36 | + * | |
| 37 | + * @since 3.0.0 | |
| 38 | + * | |
| 39 | + * @see LP_Template_Course::popup_content() - 30 | |
| 40 | + */ | |
| 41 | + do_action( 'learn-press/single-item-summary' ); | |
| 42 | + ?> | |
| 43 | + </div> | |
| 44 | +<?php | |
| 45 | + | |
| 46 | +/** | |
| 47 | + * LP Hook | |
| 48 | + * | |
| 49 | + * @since 3.0.0 | |
| 50 | + */ | |
| 51 | +do_action( 'learn-press/after-main-content' ); | |
| 52 | + | |
| 53 | +/** | |
| 54 | + * LP Hook | |
| 55 | + * | |
| 56 | + * @since 3.0.0 | |
| 57 | + */ | |
| 58 | +do_action( 'learn-press/after-single-course' ); | |
| 59 | + | |
| 60 | +/** | |
| 61 | + * LP Hook | |
| 62 | + * | |
| 63 | + * @since 4.0.0 | |
| 64 | + * | |
| 65 | + * @see LP_Template_General::template_footer() | |
| 66 | + */ | |
| 67 | +if ( ! wp_is_block_theme() ) { | |
| 68 | + do_action( 'learn-press/template-footer' ); | |
| 69 | +} | |