[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Users Profile
   4   *
   5   * @since 3.0.0
   6   * @version 3.0.0
   7   */
   8  ?>
   9  
  10  <nav class="<?php bp_nouveau_single_item_subnav_classes(); ?>" id="subnav" role="navigation" aria-label="<?php esc_attr_e( 'Profile menu', 'buddypress' ); ?>">
  11      <ul class="subnav">
  12  
  13          <?php bp_get_template_part( 'members/single/parts/item-subnav' ); ?>
  14  
  15      </ul>
  16  </nav><!-- .item-list-tabs -->
  17  
  18  <?php bp_nouveau_member_hook( 'before', 'profile_content' ); ?>
  19  
  20  <div class="profile <?php echo bp_current_action(); ?>">
  21  
  22  <?php
  23  switch ( bp_current_action() ) :
  24  
  25      // Edit
  26      case 'edit':
  27          bp_get_template_part( 'members/single/profile/edit' );
  28          break;
  29  
  30      // Change Avatar
  31      case 'change-avatar':
  32          bp_get_template_part( 'members/single/profile/change-avatar' );
  33          break;
  34  
  35      // Change Cover Image
  36      case 'change-cover-image':
  37          bp_get_template_part( 'members/single/profile/change-cover-image' );
  38          break;
  39  
  40      // Compose
  41      case 'public':
  42          // Display XProfile
  43          if ( bp_is_active( 'xprofile' ) ) {
  44              bp_get_template_part( 'members/single/profile/profile-loop' );
  45  
  46          // Display WordPress profile (fallback)
  47          } else {
  48              bp_get_template_part( 'members/single/profile/profile-wp' );
  49          }
  50  
  51          break;
  52  
  53      // Any other
  54      default:
  55          bp_get_template_part( 'members/single/plugins' );
  56          break;
  57  endswitch;
  58  ?>
  59  </div><!-- .profile -->
  60  
  61  <?php
  62  bp_nouveau_member_hook( 'after', 'profile_content' );


Generated: Tue Dec 10 01:01:39 2019 Cross-referenced by PHPXref 0.7.1