| @@ -1,25 +1,25 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Template for displaying user socials | |
| 4 | - * | |
| 5 | - * @author ThimPress | |
| 6 | - * @package LearnPress/Templates | |
| 7 | - * @version 4.0.0 | |
| 8 | - */ | |
| 9 | - | |
| 10 | -defined( 'ABSPATH' ) || exit; | |
| 11 | -$user = LP_Profile::instance()->get_user(); | |
| 12 | - | |
| 13 | -if ( ! $user ) { | |
| 14 | - return; | |
| 15 | -} | |
| 16 | - | |
| 17 | -$socials = $user->get_profile_social( $user->get_id() ); | |
| 18 | -if ( empty( $socials ) ) { | |
| 19 | - return; | |
| 20 | -} | |
| 21 | -?> | |
| 22 | - | |
| 23 | -<div class="lp-user-profile-socials"> | |
| 24 | - <?php echo implode( "\n", $socials ); ?> | |
| 25 | -</div> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Template for displaying user socials | |
| 4 | + * | |
| 5 | + * @author ThimPress | |
| 6 | + * @package LearnPress/Templates | |
| 7 | + * @version 4.0.0 | |
| 8 | + */ | |
| 9 | + | |
| 10 | +defined( 'ABSPATH' ) || exit; | |
| 11 | +$user = LP_Profile::instance()->get_user(); | |
| 12 | + | |
| 13 | +if ( ! $user ) { | |
| 14 | + return; | |
| 15 | +} | |
| 16 | + | |
| 17 | +$socials = $user->get_profile_social( $user->get_id() ); | |
| 18 | +if ( empty( $socials ) ) { | |
| 19 | + return; | |
| 20 | +} | |
| 21 | +?> | |
| 22 | + | |
| 23 | +<div class="lp-user-profile-socials"> | |
| 24 | + <?php echo implode( "\n", $socials ); ?> | |
| 25 | +</div> | |