johnhorning

johnhorning

Feb 17th, 2017
167
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. * Template Name: My Dashboard
  4. *
  5. * Description:
  6. * @package WordPress
  7. * @subpackage BuddyBoss
  8. * @since BuddyBoss 3.0
  9. */
  10. get_header(); ?>
  11.  
  12. <div class="page-left-sidebar">
  13.  
  14. <div id="primary" class="site-content">
  15.  
  16. <div id="content" role="main">
  17.  
  18. <div class="my-dashboard">Hi <?php echo bp_core_get_user_displayname( bp_loggedin_user_id() );?>!</div>
  19. <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>
  20.  
  21.  
  22. <?php if ( bp_has_profile() ) : ?>
  23. <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
  24. <ul id="profile-groups">
  25. <li>
  26. <p style="color:#3BA3D6;font-size:24px;padding:14px"><?php bp_the_profile_group_name() ?></p>
  27.  
  28. <table id="profile-fields">
  29. <tbody>
  30. <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
  31.  
  32. <tr>
  33. <td width="100px"><?php bp_the_profile_field_name() ?></td>
  34. <td width="350px"><?php bp_the_profile_field_value() ?></td>
  35. </tr>
  36.  
  37. <?php endwhile; ?>
  38. </tbody>
  39. </table>
  40. <li>
  41.  
  42. </ul>
  43.  
  44. <?php endwhile; ?>
  45.  
  46. <?php else: ?>
  47.  
  48. <div id="message" class="info">
  49. <p>This user does not have a profile.</p>
  50. </div>
  51.  
  52. <?php endif;?>
  53.  
  54. </div><!-- #content -->
  55. </div><!-- #primary -->
  56.  
  57. <?php get_sidebar('left'); ?>
  58.  
  59. </div><!-- .page-left-sidebar -->
  60. <?php get_footer(); ?>
RAW Paste Data