1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* LifterLMS Course Meta Information Shortcode
*
* [lifterlms_course_meta_info]
*
* @package LifterLMS/Shortcodes/Classes
*
* @since 3.6.0
* @version 3.6.0
*/
defined( 'ABSPATH' ) || exit;
/**
* LLMS_Shortcode_Course_Meta_Info
*
* @since 3.6.0
*/
class LLMS_Shortcode_Course_Meta_Info extends LLMS_Shortcode_Course_Element {
/**
* Shortcode tag
*
* @var string
*/
public $tag = 'lifterlms_course_meta_info';
/**
* Call the template function for the course element
*
* @since 3.6.0
*
* @return void
*/
protected function template_function() {
echo '<div class="llms-meta-info">';
lifterlms_template_single_length();
lifterlms_template_single_difficulty();
lifterlms_template_single_course_tracks();
lifterlms_template_single_course_categories();
lifterlms_template_single_course_tags();
echo '</div><!-- .llms-meta-info -->';
}
}
return LLMS_Shortcode_Course_Meta_Info::instance();