| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying profile header. |
| 4 |
* |
| 5 |
* @author ThimPress |
| 6 |
* @package LearnPress/Templates |
| 7 |
* @version 4.0.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
defined( 'ABSPATH' ) || exit; |
| 11 |
|
| 12 |
$profile = LP_Profile::instance(); |
| 13 |
$user = $profile->get_user(); |
| 14 |
|
| 15 |
if ( ! isset( $user ) ) { |
| 16 |
return; |
| 17 |
} |
| 18 |
|
| 19 |
$bio = $user->get_description(); |
| 20 |
?> |
| 21 |
<div class="lp-profile-right"> |
| 22 |
|
| 23 |
<div class="lp-profile-username"> |
| 24 |
<?php echo wp_kses_post( $user->get_display_name() ); ?> |
| 25 |
</div> |
| 26 |
<?php if ( $bio ) : ?> |
| 27 |
<div class="lp-profile-user-bio"> |
| 28 |
<?php echo wpautop( $bio ); ?> |
| 29 |
</div> |
| 30 |
|
| 31 |
<?php endif; ?> |
| 32 |
</div> |
| 33 |
|