[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Users Header
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  ?>
  11  
  12  <?php
  13  
  14  /**
  15   * Fires before the display of a member's header.
  16   *
  17   * @since 1.2.0
  18   */
  19  do_action( 'bp_before_member_header' ); ?>
  20  
  21  <div id="item-header-avatar">
  22      <a href="<?php bp_displayed_user_link(); ?>">
  23  
  24          <?php bp_displayed_user_avatar( 'type=full' ); ?>
  25  
  26      </a>
  27  </div><!-- #item-header-avatar -->
  28  
  29  <div id="item-header-content">
  30  
  31      <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
  32          <h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>
  33      <?php endif; ?>
  34  
  35      <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_user_last_activity( bp_displayed_user_id() ) ); ?>"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
  36  
  37      <?php
  38  
  39      /**
  40       * Fires before the display of the member's header meta.
  41       *
  42       * @since 1.2.0
  43       */
  44      do_action( 'bp_before_member_header_meta' ); ?>
  45  
  46      <div id="item-meta">
  47  
  48          <?php if ( bp_is_active( 'activity' ) ) : ?>
  49  
  50              <div id="latest-update">
  51  
  52                  <?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
  53  
  54              </div>
  55  
  56          <?php endif; ?>
  57  
  58          <div id="item-buttons">
  59  
  60              <?php
  61  
  62              /**
  63               * Fires in the member header actions section.
  64               *
  65               * @since 1.2.6
  66               */
  67              do_action( 'bp_member_header_actions' ); ?>
  68  
  69          </div><!-- #item-buttons -->
  70  
  71          <?php
  72  
  73           /**
  74            * Fires after the group header actions section.
  75            *
  76            * If you'd like to show specific profile fields here use:
  77            * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
  78            *
  79            * @since 1.2.0
  80            */
  81           do_action( 'bp_profile_header_meta' );
  82  
  83           ?>
  84  
  85      </div><!-- #item-meta -->
  86  
  87  </div><!-- #item-header-content -->
  88  
  89  <?php
  90  
  91  /**
  92   * Fires after the display of a member's header.
  93   *
  94   * @since 1.2.0
  95   */
  96  do_action( 'bp_after_member_header' ); ?>
  97  
  98  <div id="template-notices" role="alert" aria-atomic="true">
  99      <?php
 100  
 101      /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
 102      do_action( 'template_notices' ); ?>
 103  
 104  </div>


Generated: Fri Oct 4 01:00:58 2024 Cross-referenced by PHPXref 0.7.1