[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Members Home
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  ?>
  11  
  12  <div id="buddypress">
  13  
  14      <?php
  15  
  16      /**
  17       * Fires before the display of member home content.
  18       *
  19       * @since 1.2.0
  20       */
  21      do_action( 'bp_before_member_home_content' ); ?>
  22  
  23      <div id="item-header" role="complementary">
  24  
  25          <?php
  26          /**
  27           * If the cover image feature is enabled, use a specific header
  28           */
  29          if ( bp_displayed_user_use_cover_image_header() ) :
  30              bp_get_template_part( 'members/single/cover-image-header' );
  31          else :
  32              bp_get_template_part( 'members/single/member-header' );
  33          endif;
  34          ?>
  35  
  36      </div><!-- #item-header -->
  37  
  38      <div id="item-nav">
  39          <div class="item-list-tabs no-ajax" id="object-nav" aria-label="<?php esc_attr_e( 'Member primary navigation', 'buddypress' ); ?>" role="navigation">
  40              <ul>
  41  
  42                  <?php bp_get_displayed_user_nav(); ?>
  43  
  44                  <?php
  45  
  46                  /**
  47                   * Fires after the display of member options navigation.
  48                   *
  49                   * @since 1.2.4
  50                   */
  51                  do_action( 'bp_member_options_nav' ); ?>
  52  
  53              </ul>
  54          </div>
  55      </div><!-- #item-nav -->
  56  
  57      <div id="item-body">
  58  
  59          <?php
  60  
  61          /**
  62           * Fires before the display of member body content.
  63           *
  64           * @since 1.2.0
  65           */
  66          do_action( 'bp_before_member_body' );
  67  
  68          if ( bp_is_user_front() ) :
  69              bp_displayed_user_front_template_part();
  70  
  71          elseif ( bp_is_user_activity() ) :
  72              bp_get_template_part( 'members/single/activity' );
  73  
  74          elseif ( bp_is_user_blogs() ) :
  75              bp_get_template_part( 'members/single/blogs'    );
  76  
  77          elseif ( bp_is_user_friends() ) :
  78              bp_get_template_part( 'members/single/friends'  );
  79  
  80          elseif ( bp_is_user_groups() ) :
  81              bp_get_template_part( 'members/single/groups'   );
  82  
  83          elseif ( bp_is_user_messages() ) :
  84              bp_get_template_part( 'members/single/messages' );
  85  
  86          elseif ( bp_is_user_profile() ) :
  87              bp_get_template_part( 'members/single/profile'  );
  88  
  89          elseif ( bp_is_user_notifications() ) :
  90              bp_get_template_part( 'members/single/notifications' );
  91  
  92          elseif ( bp_is_user_members_invitations() ) :
  93              bp_get_template_part( 'members/single/invitations' );
  94  
  95          elseif ( bp_is_user_settings() ) :
  96              bp_get_template_part( 'members/single/settings' );
  97  
  98          // If nothing sticks, load a generic template
  99          else :
 100              bp_get_template_part( 'members/single/plugins'  );
 101  
 102          endif;
 103  
 104          /**
 105           * Fires after the display of member body content.
 106           *
 107           * @since 1.2.0
 108           */
 109          do_action( 'bp_after_member_body' ); ?>
 110  
 111      </div><!-- #item-body -->
 112  
 113      <?php
 114  
 115      /**
 116       * Fires after the display of member home content.
 117       *
 118       * @since 1.2.0
 119       */
 120      do_action( 'bp_after_member_home_content' ); ?>
 121  
 122  </div><!-- #buddypress -->


Generated: Tue Jul 5 01:00:53 2022 Cross-referenced by PHPXref 0.7.1