[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

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


Generated: Fri Apr 19 01:01:08 2024 Cross-referenced by PHPXref 0.7.1