PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.2.0
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.2.0
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
learnpress / templates / single-course / meta-secondary.php

meta-secondary.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.2.0, at templates/single-course/meta-secondary.php

56 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for displaying secondary course meta data such as: duration, level, lessons, quizzes, students, etc...
4 *
5 * @author ThimPress
6 * @package LearnPress/Templates
7 * @version 4.0.0
8 */
9
10 defined( 'ABSPATH' ) or die;
11
12 $has_meta_left = LearnPress::instance()->template()->has_content( 'learn-press/course-meta-secondary-left' );
13 $has_meta_right = LearnPress::instance()->template()->has_content( 'learn-press/course-meta-secondary-right' );
14
15 // Do not echo anything if there is no content hooked
16 if ( ! $has_meta_left && ! $has_meta_right ) {
17 return;
18 }
19 ?>
20
21 <div class="course-meta course-meta-secondary<?php echo esc_attr( $has_meta_right && $has_meta_left ? ' two-columns' : '' ); ?>">
22
23 <?php if ( $has_meta_left ) { ?>
24
25 <div class="course-meta__pull-left">
26
27 <?php
28 /**
29 * LP Hook
30 */
31
32 do_action( 'learn-press/course-meta-secondary-left' );
33 ?>
34
35 </div>
36
37 <?php } ?>
38
39 <?php if ( $has_meta_right ) { ?>
40
41 <div class="course-meta__pull-right">
42
43 <?php
44 /**
45 * LP Hook
46 */
47
48 do_action( 'learn-press/course-meta-secondary-right' );
49 ?>
50
51 </div>
52
53 <?php } ?>
54
55 </div>
56