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/loop/single-course/loop-section.php +8 -13 4.1.7.3.24.4.8 View file →
@@ -3,9 +3,9 @@
3 3 * Template for displaying curriculum tab of single course.
4 4 *
5 5 * @author ThimPress
6 6 * @package Learnpress/Templates
7 - * @version 4.0.2
7 + * @version 4.0.3
8 8 */
9 9
10 10 defined( 'ABSPATH' ) || exit();
11 11
@@ -22,36 +22,31 @@
22 22
23 23 <li id="section-<?php echo esc_attr( $section['section_id'] ); ?>" class="section" data-section-id="<?php echo esc_attr( $section['section_id'] ); ?>">
24 24 <div class="section-header">
25 25 <div class="section-left">
26 - <h3 class="section-title">
27 - <?php echo ! empty( $section['section_name'] ) ? esc_html( $section['section_name'] ) : _x( 'Untitled', 'template title empty', 'learnpress' ); ?>
28 -
26 + <div class="wrapper-section-title">
27 + <h3 class="section-title">
28 + <?php echo ! empty( $section['section_name'] ) ? esc_html( $section['section_name'] ) : _x( 'Untitled', 'template title empty', 'learnpress' ); ?>
29 + </h3>
29 30 <?php if ( ! empty( $section['section_description'] ) ) : ?>
30 31 <p class="section-desc"><?php echo wp_kses_post( $section['section_description'] ); ?></p>
31 32 <?php endif; ?>
32 - </h3>
33 + </div>
33 34
34 35 <span class="section-toggle">
35 - <i class="fas fa-caret-down"></i>
36 - <i class="fas fa-caret-up"></i>
36 + <i class="lp-icon-caret-down"></i>
37 + <i class="lp-icon-caret-up"></i>
37 38 </span>
38 39 </div>
39 40 </div>
40 41
41 42 <?php
42 - try {
43 43 $controller = new LP_REST_Lazy_Load_Controller();
44 44 $request = new WP_REST_Request();
45 45 $request->set_param( 'sectionId', $section['section_id'] );
46 46 $response = $controller->course_curriculum_items( $request );
47 47 $object_data = $response->get_data();
48 - } catch ( Throwable $e ) {
49 - error_log( $e );
50 - return;
51 - }
52 48 ?>
53 -
54 49 <div class="section-item" data-section-id="<?php echo esc_attr( $section['section_id'] ); ?>">
55 50 <ul class="section-content">
56 51 <?php echo wp_kses_post( $object_data->data->content ?? $object_data->data ?? $object_data ? $object_data->data->content : '' ); ?>
57 52 </ul>