[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/groups/single/ -> group-header.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Groups Header
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  /**
  11   * Fires before the display of a group's header.
  12   *
  13   * @since 1.2.0
  14   */
  15  do_action( 'bp_before_group_header' );
  16  
  17  ?>
  18  
  19  <div id="item-actions">
  20  
  21      <?php if ( bp_group_is_visible() ) : ?>
  22  
  23          <h2><?php _e( 'Group Admins', 'buddypress' ); ?></h2>
  24  
  25          <?php bp_group_list_admins();
  26  
  27          /**
  28           * Fires after the display of the group's administrators.
  29           *
  30           * @since 1.1.0
  31           */
  32          do_action( 'bp_after_group_menu_admins' );
  33  
  34          if ( bp_group_has_moderators() ) :
  35  
  36              /**
  37               * Fires before the display of the group's moderators, if there are any.
  38               *
  39               * @since 1.1.0
  40               */
  41              do_action( 'bp_before_group_menu_mods' ); ?>
  42  
  43              <h2><?php _e( 'Group Mods' , 'buddypress' ); ?></h2>
  44  
  45              <?php bp_group_list_mods();
  46  
  47              /**
  48               * Fires after the display of the group's moderators, if there are any.
  49               *
  50               * @since 1.1.0
  51               */
  52              do_action( 'bp_after_group_menu_mods' );
  53  
  54          endif;
  55  
  56      endif; ?>
  57  
  58  </div><!-- #item-actions -->
  59  
  60  <?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
  61      <div id="item-header-avatar">
  62          <a href="<?php echo esc_url( bp_get_group_permalink() ); ?>" class="bp-tooltip" data-bp-tooltip="<?php echo esc_attr( bp_get_group_name() ); ?>">
  63  
  64              <?php bp_group_avatar(); ?>
  65  
  66          </a>
  67      </div><!-- #item-header-avatar -->
  68  <?php endif; ?>
  69  
  70  <div id="item-header-content">
  71      <span class="highlight"><?php bp_group_type(); ?></span>
  72      <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>">
  73          <?php
  74          /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */
  75          printf( __( 'Active %s', 'buddypress' ), bp_get_group_last_active() );
  76          ?>
  77      </span>
  78  
  79      <?php
  80  
  81      /**
  82       * Fires before the display of the group's header meta.
  83       *
  84       * @since 1.2.0
  85       */
  86      do_action( 'bp_before_group_header_meta' ); ?>
  87  
  88      <div id="item-meta">
  89  
  90          <?php bp_group_description(); ?>
  91  
  92          <?php bp_group_type_list(); ?>
  93  
  94          <div id="item-buttons">
  95  
  96              <?php
  97  
  98              /**
  99               * Fires in the group header actions section.
 100               *
 101               * @since 1.2.6
 102               */
 103              do_action( 'bp_group_header_actions' ); ?>
 104  
 105          </div><!-- #item-buttons -->
 106  
 107          <?php
 108  
 109          /**
 110           * Fires after the group header actions section.
 111           *
 112           * @since 1.2.0
 113           */
 114          do_action( 'bp_group_header_meta' ); ?>
 115  
 116      </div>
 117  </div><!-- #item-header-content -->
 118  
 119  <?php
 120  
 121  /**
 122   * Fires after the display of a group's header.
 123   *
 124   * @since 1.2.0
 125   */
 126  do_action( 'bp_after_group_header' );  ?>
 127  
 128  <div id="template-notices" role="alert" aria-atomic="true">
 129      <?php
 130  
 131      /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
 132      do_action( 'template_notices' ); ?>
 133  
 134  </div>


Generated: Thu Mar 28 01:00:56 2024 Cross-referenced by PHPXref 0.7.1