PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 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 All 140 releases
← All changes | inc/admin/views/meta-boxes/course/assigned.php +32 -32 4.3.8 → 4.4.9 View file →
@@ -1,32 +1,32 @@
1 -<?php
2 -/**
3 - * Admin View: Lesson, Quiz assigned Meta box
4 - */
5 -
6 -/**
7 - * Prevent loading this file directly
8 - */
9 -defined( 'ABSPATH' ) || exit();
10 -
11 -global $post;
12 -$courses = learn_press_get_item_courses( $post->ID );
13 -?>
14 -
15 -<div class="lp-item-assigned">
16 - <?php if ( $courses ) : ?>
17 - <ul>
18 - <?php foreach ( $courses as $course ) : ?>
19 - <li>
20 - <strong><a href="<?php echo get_edit_post_link( $course->ID ); ?>" target="_blank"><?php echo get_the_title( $course->ID ); ?></a></strong>
21 -
22 - &#8212;
23 - <a href="<?php echo learn_press_get_course_permalink( $course->ID ); ?>" target="_blank"><?php esc_html_e( 'View', 'learnpress' ); ?></a>
24 - </li>
25 - <?php endforeach; ?>
26 - </ul>
27 - <?php
28 - else :
29 - esc_html_e( 'Not assigned yet', 'learnpress' );
30 - endif;
31 - ?>
32 -</div>
1 +<?php
2 +/**
3 + * Admin View: Lesson, Quiz assigned Meta box
4 + */
5 +
6 +/**
7 + * Prevent loading this file directly
8 + */
9 +defined( 'ABSPATH' ) || exit();
10 +
11 +global $post;
12 +$courses = learn_press_get_item_courses( $post->ID );
13 +?>
14 +
15 +<div class="lp-item-assigned">
16 + <?php if ( $courses ) : ?>
17 + <ul>
18 + <?php foreach ( $courses as $course ) : ?>
19 + <li>
20 + <strong><a href="<?php echo get_edit_post_link( $course->ID ); ?>" target="_blank"><?php echo get_the_title( $course->ID ); ?></a></strong>
21 +
22 + &#8212;
23 + <a href="<?php echo learn_press_get_course_permalink( $course->ID ); ?>" target="_blank"><?php esc_html_e( 'View', 'learnpress' ); ?></a>
24 + </li>
25 + <?php endforeach; ?>
26 + </ul>
27 + <?php
28 + else :
29 + esc_html_e( 'Not assigned yet', 'learnpress' );
30 + endif;
31 + ?>
32 +</div>