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/profile/header.php +37 -37 4.3.94.4.8 View file →
@@ -1,37 +1,37 @@
1 -<?php
2 -use LearnPress\Helpers\Template;
3 -
4 -/**
5 - * Template for displaying profile header.
6 - *
7 - * @author ThimPress
8 - * @package LearnPress/Templates
9 - * @version 4.0.0
10 - */
11 -
12 -defined( 'ABSPATH' ) || exit;
13 -
14 -$profile = LP_Profile::instance();
15 -$user = $profile->get_user();
16 -
17 -if ( ! isset( $user ) ) {
18 - return;
19 -}
20 -
21 -$bio = $user->get_description();
22 -?>
23 -<div class="lp-profile-right">
24 - <?php
25 - $sections = apply_filters(
26 - 'learn-press/profile/header/sections',
27 - array(
28 - 'profile/header/user-name.php',
29 - 'profile/socials.php',
30 - 'profile/header/user-bio.php',
31 - ),
32 - $user
33 - );
34 -
35 - Template::instance()->get_frontend_templates( $sections );
36 - ?>
37 -</div>
1 +<?php
2 +use LearnPress\Helpers\Template;
3 +
4 +/**
5 + * Template for displaying profile header.
6 + *
7 + * @author ThimPress
8 + * @package LearnPress/Templates
9 + * @version 4.0.0
10 + */
11 +
12 +defined( 'ABSPATH' ) || exit;
13 +
14 +$profile = LP_Profile::instance();
15 +$user = $profile->get_user();
16 +
17 +if ( ! isset( $user ) ) {
18 + return;
19 +}
20 +
21 +$bio = $user->get_description();
22 +?>
23 +<div class="lp-profile-right">
24 + <?php
25 + $sections = apply_filters(
26 + 'learn-press/profile/header/sections',
27 + array(
28 + 'profile/header/user-name.php',
29 + 'profile/socials.php',
30 + 'profile/header/user-bio.php',
31 + ),
32 + $user
33 + );
34 +
35 + Template::instance()->get_frontend_templates( $sections );
36 + ?>
37 +</div>