| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying overview tab of single course. |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/learnpress/single-course/tabs/overview.php. |
| 6 |
* |
| 7 |
* @author ThimPress |
| 8 |
* @package Learnpress/Templates |
| 9 |
* @version 3.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
/** |
| 13 |
* Prevent loading this file directly |
| 14 |
*/ |
| 15 |
defined( 'ABSPATH' ) || exit(); |
| 16 |
|
| 17 |
/** |
| 18 |
* @var LP_Course $course |
| 19 |
*/ |
| 20 |
$course = learn_press_get_course(); |
| 21 |
if ( ! $course ) { |
| 22 |
return; |
| 23 |
} |
| 24 |
?> |
| 25 |
|
| 26 |
<div class="course-description" id="learn-press-course-description"> |
| 27 |
|
| 28 |
<?php |
| 29 |
/** |
| 30 |
* @deprecated |
| 31 |
*/ |
| 32 |
do_action( 'learn_press_begin_single_course_description' ); |
| 33 |
|
| 34 |
/** |
| 35 |
* @since 3.0.0 |
| 36 |
*/ |
| 37 |
do_action( 'learn-press/before-single-course-description' ); |
| 38 |
|
| 39 |
/*$content = apply_filters( 'the_content', $course->get_content() ); |
| 40 |
echo str_replace( ']]>', ']]>', $content );*/ |
| 41 |
learn_press_echo_vuejs_write_on_php( $course->get_content() ); |
| 42 |
|
| 43 |
/** |
| 44 |
* @since 3.0.0 |
| 45 |
*/ |
| 46 |
do_action( 'learn-press/after-single-course-description' ); |
| 47 |
|
| 48 |
/** |
| 49 |
* @deprecated |
| 50 |
*/ |
| 51 |
do_action( 'learn_press_end_single_course_description' ); |
| 52 |
?> |
| 53 |
|
| 54 |
</div> |
| 55 |
|