PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.3.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.3.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 4.2.1 All 138 releases
learnpress / templates / profile / tabs / my_courses.php

my_courses.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.3.8, at templates/profile/tabs/my_courses.php

57 lines 2.2 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 courses tab in user profile page.
4 *
5 * This template can be overridden by copying it to yourtheme/learnpress/tabs/courses.php.
6 *
7 * @author ThimPress
8 * @package Learnpress/Templates
9 * @version 4.0.11
10 */
11
12 defined( 'ABSPATH' ) || exit();
13
14 if ( ! isset( $user ) || ! isset( $courses_enrolled_tab ) ||
15 ! isset( $courses_enrolled_tab_active ) ||
16 ! isset( $args_query_user_courses_attend ) ||
17 ! isset( $args_query_user_courses_statistic ) ) {
18 return;
19 }
20 ?>
21
22 <div class="learn-press-subtab-content">
23 <div class="learn-press-profile-course__statistic">
24 <?php lp_skeleton_animation_html( 4, 'random', 'height: 30px;border-radius:4px;' ); ?>
25 <input type="hidden" name="args_query_user_courses_statistic"
26 value="<?php echo sanitize_text_field( htmlentities( wp_json_encode( $args_query_user_courses_statistic ) ) ); ?>">
27 </div>
28
29 <div class="learn-press-profile-course__tab">
30 <div class="learn-press-course-tab-enrolled learn-press-course-tab-filters" data-tab="enrolled">
31 <div class="learn-press-tabs">
32 <ul class="learn-press-filters">
33 <?php foreach ( $courses_enrolled_tab as $key => $enrolled ) : ?>
34 <li>
35 <a class="<?php echo esc_attr( $key === $courses_enrolled_tab_active ? 'active' : '' ); ?>"
36 data-tab="<?php echo esc_attr( $key === '' ? 'all' : $key ); ?>">
37 <?php echo esc_html( $enrolled ); ?>
38 </a>
39 </li>
40 <?php endforeach; ?>
41 </ul>
42 </div>
43 <div class="learn-press-profile-course__progress">
44 <?php foreach ( $courses_enrolled_tab as $key => $enrolled ) : ?>
45 <div class="learn-press-course-tab__filter__content"
46 data-tab="<?php echo esc_attr( $key === '' ? 'all' : $key ); ?>"
47 style="<?php echo esc_attr( $key !== $courses_enrolled_tab_active ? 'display: none' : '' ); ?>">
48 <?php lp_skeleton_animation_html( 4, 'random', 'height: 30px;border-radius:4px;' ); ?>
49 </div>
50 <?php endforeach; ?>
51 <input class="lp_profile_tab_input_param" type="hidden" name="args_query_user_courses_attend"
52 value="<?php echo sanitize_text_field( htmlentities( wp_json_encode( $args_query_user_courses_attend ) ) ); ?>">
53 </div>
54 </div>
55 </div>
56 </div>
57