| @@ -1,24 +1,24 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * HTML View for displaying courses user enrolled in wp profile. | |
| 4 | - * | |
| 5 | - * @author ThimPress | |
| 6 | - * @package LearnPress/Views | |
| 7 | - * @version 4.0.2 | |
| 8 | - */ | |
| 9 | - | |
| 10 | -defined( 'ABSPATH' ) || die; | |
| 11 | - | |
| 12 | -if ( ! isset( $user_id ) ) { | |
| 13 | - return; | |
| 14 | -} | |
| 15 | - | |
| 16 | -$profile = LP_Profile::instance( $user_id ); | |
| 17 | -$user = $profile->get_user(); | |
| 18 | -$slug_profile_courses = LP_Settings::instance()->get( 'profile_endpoints.my-courses', 'my-courses' ); | |
| 19 | -$link_user_profile = $profile->get_tab_link( $slug_profile_courses ); | |
| 20 | -?> | |
| 21 | -<p> | |
| 22 | - <b><?php _e( 'The course list of enrolled users', 'learnpress' ); ?></b> | |
| 23 | - <a href="<?php echo esc_url_raw( $link_user_profile ); ?>" target="_blank"><?php _e( 'View', 'learnpress' ); ?></a> | |
| 24 | -</p> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * HTML View for displaying courses user enrolled in wp profile. | |
| 4 | + * | |
| 5 | + * @author ThimPress | |
| 6 | + * @package LearnPress/Views | |
| 7 | + * @version 4.0.2 | |
| 8 | + */ | |
| 9 | + | |
| 10 | +defined( 'ABSPATH' ) || die; | |
| 11 | + | |
| 12 | +if ( ! isset( $user_id ) ) { | |
| 13 | + return; | |
| 14 | +} | |
| 15 | + | |
| 16 | +$profile = LP_Profile::instance( $user_id ); | |
| 17 | +$user = $profile->get_user(); | |
| 18 | +$slug_profile_courses = LP_Settings::instance()->get( 'profile_endpoints.my-courses', 'my-courses' ); | |
| 19 | +$link_user_profile = $profile->get_tab_link( $slug_profile_courses ); | |
| 20 | +?> | |
| 21 | +<p> | |
| 22 | + <b><?php _e( 'The course list of enrolled users', 'learnpress' ); ?></b> | |
| 23 | + <a href="<?php echo esc_url_raw( $link_user_profile ); ?>" target="_blank"><?php _e( 'View', 'learnpress' ); ?></a> | |
| 24 | +</p> | |