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 / courses.php

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

55 lines 2.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 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.12
10 */
11
12 defined( 'ABSPATH' ) || exit();
13
14 if ( ! isset( $user ) || ! isset( $courses_created_tab ) || ! isset( $args_query_user_courses_created ) ||
15 ! isset( $args_query_user_courses_statistic ) ) {
16 return;
17 }
18 ?>
19
20 <div class="learn-press-subtab-content">
21 <div class="learn-press-profile-course__statistic">
22 <?php lp_skeleton_animation_html( 4, 'random', 'height: 30px;border-radius:4px;' ); ?>
23 <input type="hidden" name="args_query_user_courses_statistic"
24 value="<?php echo sanitize_text_field( htmlentities( wp_json_encode( $args_query_user_courses_statistic ) ) ); ?>">
25 </div>
26
27 <div class="learn-press-profile-course__tab">
28 <div class="learn-press-course-tab-created learn-press-course-tab-filters" data-tab="created">
29 <div class="learn-press-tabs">
30 <ul class="learn-press-filters">
31 <?php foreach ( $courses_created_tab as $key => $created ) : ?>
32 <li>
33 <a class="<?php echo esc_attr( $key === '' ? 'active' : '' ); ?>"
34 data-tab="<?php echo esc_attr( $key === '' ? 'all' : $key ); ?>">
35 <?php echo esc_html( $created ); ?>
36 </a>
37 </li>
38 <?php endforeach; ?>
39 </ul>
40 </div>
41 <div class="learn-press-profile-course__progress">
42 <?php foreach ( $courses_created_tab as $key => $created ) : ?>
43 <div class="learn-press-course-tab__filter__content"
44 data-tab="<?php echo esc_attr( $key === '' ? 'all' : $key ); ?>"
45 style="<?php echo esc_attr( $key !== '' ? 'display: none' : '' ); ?>">
46 <?php lp_skeleton_animation_html( 4, 'random', 'height: 30px;border-radius:4px;' ); ?>
47 </div>
48 <?php endforeach; ?>
49 <input class="lp_profile_tab_input_param" type="hidden" name="args_query_user_courses_created"
50 value="<?php echo sanitize_text_field( htmlentities( wp_json_encode( $args_query_user_courses_created ) ) ); ?>">
51 </div>
52 </div>
53 </div>
54 </div>
55