[ 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 ) ) ); ?>"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span>
  73  
  74      <?php
  75  
  76      /**
  77       * Fires before the display of the group's header meta.
  78       *
  79       * @since 1.2.0
  80       */
  81      do_action( 'bp_before_group_header_meta' ); ?>
  82  
  83      <div id="item-meta">
  84  
  85          <?php bp_group_description(); ?>
  86  
  87          <?php bp_group_type_list(); ?>
  88  
  89          <div id="item-buttons">
  90  
  91              <?php
  92  
  93              /**
  94               * Fires in the group header actions section.
  95               *
  96               * @since 1.2.6
  97               */
  98              do_action( 'bp_group_header_actions' ); ?>
  99  
 100          </div><!-- #item-buttons -->
 101  
 102          <?php
 103  
 104          /**
 105           * Fires after the group header actions section.
 106           *
 107           * @since 1.2.0
 108           */
 109          do_action( 'bp_group_header_meta' ); ?>
 110  
 111      </div>
 112  </div><!-- #item-header-content -->
 113  
 114  <?php
 115  
 116  /**
 117   * Fires after the display of a group's header.
 118   *
 119   * @since 1.2.0
 120   */
 121  do_action( 'bp_after_group_header' );  ?>
 122  
 123  <div id="template-notices" role="alert" aria-atomic="true">
 124      <?php
 125  
 126      /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
 127      do_action( 'template_notices' ); ?>
 128  
 129  </div>


Generated: Mon Oct 14 01:01:37 2019 Cross-referenced by PHPXref 0.7.1