PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
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
← All changes | templates/single-course/meta-primary.php +55 -55 4.3.94.4.8 View file →
@@ -1,55 +1,55 @@
1 -<?php
2 -/**
3 - * Template for displaying primary course meta data such as: Instructor, Categories, Reviews (addons)...
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-primary-left' );
13 -$has_meta_right = LearnPress::instance()->template()->has_content( 'learn-press/course-meta-primary-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-primary<?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-primary-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-primary-right' );
49 - ?>
50 -
51 - </div>
52 -
53 - <?php } ?>
54 -
55 -</div>
1 +<?php
2 +/**
3 + * Template for displaying primary course meta data such as: Instructor, Categories, Reviews (addons)...
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-primary-left' );
13 +$has_meta_right = LearnPress::instance()->template()->has_content( 'learn-press/course-meta-primary-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-primary<?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-primary-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-primary-right' );
49 + ?>
50 +
51 + </div>
52 +
53 + <?php } ?>
54 +
55 +</div>