[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Users Cover Image 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="cover-image-container">
  22      <a id="header-cover-image" href="<?php bp_displayed_user_link(); ?>"></a>
  23  
  24      <div id="item-header-cover-image">
  25          <div id="item-header-avatar">
  26              <a href="<?php bp_displayed_user_link(); ?>">
  27  
  28                  <?php bp_displayed_user_avatar( 'type=full' ); ?>
  29  
  30              </a>
  31          </div><!-- #item-header-avatar -->
  32  
  33          <div id="item-header-content">
  34  
  35              <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
  36                  <h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>
  37              <?php endif; ?>
  38  
  39              <div id="item-buttons"><?php
  40  
  41                  /**
  42                   * Fires in the member header actions section.
  43                   *
  44                   * @since 1.2.6
  45                   */
  46                  do_action( 'bp_member_header_actions' ); ?></div><!-- #item-buttons -->
  47  
  48              <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>
  49  
  50              <?php
  51  
  52              /**
  53               * Fires before the display of the member's header meta.
  54               *
  55               * @since 1.2.0
  56               */
  57              do_action( 'bp_before_member_header_meta' ); ?>
  58  
  59              <div id="item-meta">
  60  
  61                  <?php if ( bp_is_active( 'activity' ) ) : ?>
  62  
  63                      <div id="latest-update">
  64  
  65                          <?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
  66  
  67                      </div>
  68  
  69                  <?php endif; ?>
  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      </div><!-- #item-header-cover-image -->
  90  </div><!-- #cover-image-container -->
  91  
  92  <?php
  93  
  94  /**
  95   * Fires after the display of a member's header.
  96   *
  97   * @since 1.2.0
  98   */
  99  do_action( 'bp_after_member_header' ); ?>
 100  
 101  <div id="template-notices" role="alert" aria-atomic="true">
 102      <?php
 103  
 104      /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
 105      do_action( 'template_notices' ); ?>
 106  
 107  </div>


Generated: Wed Oct 23 01:01:50 2019 Cross-referenced by PHPXref 0.7.1