| @@ -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> | |