Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: My Dashboard
- *
- * Description:
- * @package WordPress
- * @subpackage BuddyBoss
- * @since BuddyBoss 3.0
- */
- get_header(); ?>
- <div class="page-left-sidebar">
- <div id="primary" class="site-content">
- <div id="content" role="main">
- <div class="my-dashboard">Hi <?php echo bp_core_get_user_displayname( bp_loggedin_user_id() );?>!</div>
- <p>This is your dashboard. Below is your profile. We encourage you to review and update it regularly. To the left are some useful widgets and links.</p>
- <?php if ( bp_has_profile() ) : ?>
- <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
- <ul id="profile-groups">
- <li>
- <p style="color:#3BA3D6;font-size:24px;padding:14px"><?php bp_the_profile_group_name() ?></p>
- <table id="profile-fields">
- <tbody>
- <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
- <tr>
- <td width="100px"><?php bp_the_profile_field_name() ?></td>
- <td width="350px"><?php bp_the_profile_field_value() ?></td>
- </tr>
- <?php endwhile; ?>
- </tbody>
- </table>
- <li>
- </ul>
- <?php endwhile; ?>
- <?php else: ?>
- <div id="message" class="info">
- <p>This user does not have a profile.</p>
- </div>
- <?php endif;?>
- </div><!-- #content -->
- </div><!-- #primary -->
- <?php get_sidebar('left'); ?>
- </div><!-- .page-left-sidebar -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement