[ 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_settings() ) :
  93              bp_get_template_part( 'members/single/settings' );
  94  
  95          // If nothing sticks, load a generic template
  96          else :
  97              bp_get_template_part( 'members/single/plugins'  );
  98  
  99          endif;
 100  
 101          /**
 102           * Fires after the display of member body content.
 103           *
 104           * @since 1.2.0
 105           */
 106          do_action( 'bp_after_member_body' ); ?>
 107  
 108      </div><!-- #item-body -->
 109  
 110      <?php
 111  
 112      /**
 113       * Fires after the display of member home content.
 114       *
 115       * @since 1.2.0
 116       */
 117      do_action( 'bp_after_member_home_content' ); ?>
 118  
 119  </div><!-- #buddypress -->


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