[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/members/single/profile/ -> profile-wp.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Members Single Profile WP
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  /**
  11   * Fires before the display of member profile loop content.
  12   *
  13   * @since 1.2.0
  14   */
  15  do_action( 'bp_before_profile_loop_content' ); ?>
  16  
  17  <?php $ud = get_userdata( bp_displayed_user_id() ); ?>
  18  
  19  <?php
  20  
  21      /**
  22       * Fires before the display of member profile field content.
  23       *
  24       * @since 1.1.0
  25       */
  26      do_action( 'bp_before_profile_field_content' ); ?>
  27  
  28      <div class="bp-widget wp-profile">
  29          <h2><?php bp_is_my_profile() ? _e( 'My Profile', 'buddypress' ) : printf( __( "%s's Profile", 'buddypress' ), bp_get_displayed_user_fullname() ); ?></h2>
  30  
  31          <table class="wp-profile-fields">
  32  
  33              <?php if ( $ud->display_name ) : ?>
  34  
  35                  <tr id="wp_displayname">
  36                      <td class="label"><?php _e( 'Name', 'buddypress' ); ?></td>
  37                      <td class="data"><?php echo $ud->display_name; ?></td>
  38                  </tr>
  39  
  40              <?php endif; ?>
  41  
  42              <?php if ( $ud->user_description ) : ?>
  43  
  44                  <tr id="wp_desc">
  45                      <td class="label"><?php _e( 'About Me', 'buddypress' ); ?></td>
  46                      <td class="data"><?php echo $ud->user_description; ?></td>
  47                  </tr>
  48  
  49              <?php endif; ?>
  50  
  51              <?php if ( $ud->user_url ) : ?>
  52  
  53                  <tr id="wp_website">
  54                      <td class="label"><?php _e( 'Website', 'buddypress' ); ?></td>
  55                      <td class="data"><?php echo make_clickable( $ud->user_url ); ?></td>
  56                  </tr>
  57  
  58              <?php endif; ?>
  59  
  60              <?php if ( $ud->jabber ) : ?>
  61  
  62                  <tr id="wp_jabber">
  63                      <td class="label"><?php _e( 'Jabber', 'buddypress' ); ?></td>
  64                      <td class="data"><?php echo $ud->jabber; ?></td>
  65                  </tr>
  66  
  67              <?php endif; ?>
  68  
  69              <?php if ( $ud->aim ) : ?>
  70  
  71                  <tr id="wp_aim">
  72                      <td class="label"><?php _e( 'AOL Messenger', 'buddypress' ); ?></td>
  73                      <td class="data"><?php echo $ud->aim; ?></td>
  74                  </tr>
  75  
  76              <?php endif; ?>
  77  
  78              <?php if ( $ud->yim ) : ?>
  79  
  80                  <tr id="wp_yim">
  81                      <td class="label"><?php _e( 'Yahoo Messenger', 'buddypress' ); ?></td>
  82                      <td class="data"><?php echo $ud->yim; ?></td>
  83                  </tr>
  84  
  85              <?php endif; ?>
  86  
  87          </table>
  88      </div>
  89  
  90  <?php
  91  
  92  /**
  93   * Fires after the display of member profile field content.
  94   *
  95   * @since 1.1.0
  96   */
  97  do_action( 'bp_after_profile_field_content' ); ?>
  98  
  99  <?php
 100  
 101  /**
 102   * Fires and displays the profile field buttons.
 103   *
 104   * @since 1.1.0
 105   */
 106  do_action( 'bp_profile_field_buttons' ); ?>
 107  
 108  <?php
 109  
 110  /**
 111   * Fires after the display of member profile loop content.
 112   *
 113   * @since 1.2.0
 114   */
 115  do_action( 'bp_after_profile_loop_content' );


Generated: Sun Oct 13 01:00:54 2024 Cross-referenced by PHPXref 0.7.1