[ 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 ) ) ); ?>"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span>
  64  
  65                  <?php bp_group_description(); ?>
  66  
  67                  <?php bp_group_type_list(); ?>
  68              </div>
  69          </div><!-- #item-header-content -->
  70  
  71          <div id="item-actions">
  72  
  73              <?php if ( bp_group_is_visible() ) : ?>
  74  
  75                  <h2><?php _e( 'Group Admins', 'buddypress' ); ?></h2>
  76  
  77                  <?php bp_group_list_admins();
  78  
  79                  /**
  80                   * Fires after the display of the group's administrators.
  81                   *
  82                   * @since 1.1.0
  83                   */
  84                  do_action( 'bp_after_group_menu_admins' );
  85  
  86                  if ( bp_group_has_moderators() ) :
  87  
  88                      /**
  89                       * Fires before the display of the group's moderators, if there are any.
  90                       *
  91                       * @since 1.1.0
  92                       */
  93                      do_action( 'bp_before_group_menu_mods' ); ?>
  94  
  95                      <h2><?php _e( 'Group Mods' , 'buddypress' ); ?></h2>
  96  
  97                      <?php bp_group_list_mods();
  98  
  99                      /**
 100                       * Fires after the display of the group's moderators, if there are any.
 101                       *
 102                       * @since 1.1.0
 103                       */
 104                      do_action( 'bp_after_group_menu_mods' );
 105  
 106                  endif;
 107  
 108              endif; ?>
 109  
 110          </div><!-- #item-actions -->
 111  
 112      </div><!-- #item-header-cover-image -->
 113  </div><!-- #cover-image-container -->
 114  
 115  <?php
 116  
 117  /**
 118   * Fires after the display of a group's header.
 119   *
 120   * @since 1.2.0
 121   */
 122  do_action( 'bp_after_group_header' ); ?>
 123  
 124  <div id="template-notices" role="alert" aria-atomic="true">
 125      <?php
 126  
 127      /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
 128      do_action( 'template_notices' ); ?>
 129  
 130  </div>


Generated: Wed Dec 11 01:01:37 2019 Cross-referenced by PHPXref 0.7.1