[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Groups Header
   4   *
   5   * @since 3.0.0
   6   * @version 3.2.0
   7   */
   8  ?>
   9  
  10  <?php bp_get_template_part( 'groups/single/parts/header-item-actions' ); ?>
  11  
  12  <?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
  13      <div id="item-header-avatar">
  14          <a href="<?php echo esc_url( bp_get_group_permalink() ); ?>" class="bp-tooltip" data-bp-tooltip="<?php echo esc_attr( bp_get_group_name() ); ?>">
  15  
  16              <?php bp_group_avatar(); ?>
  17  
  18          </a>
  19      </div><!-- #item-header-avatar -->
  20  <?php endif; ?>
  21  
  22  <div id="item-header-content">
  23  
  24      <p class="highlight group-status"><strong><?php echo esc_html( bp_nouveau_group_meta()->status ); ?></strong></p>
  25  
  26      <p class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>">
  27          <?php
  28          echo esc_html(
  29              sprintf(
  30                  /* translators: %s = last activity timestamp (e.g. "active 1 hour ago") */
  31                  __( 'active %s', 'buddypress' ),
  32                  bp_get_group_last_active()
  33              )
  34          );
  35          ?>
  36      </p>
  37  
  38      <?php bp_nouveau_group_hook( 'before', 'header_meta' ); ?>
  39  
  40      <?php if ( bp_nouveau_group_has_meta_extra() ) : ?>
  41          <div class="item-meta">
  42  
  43              <?php echo bp_nouveau_group_meta()->extra; ?>
  44  
  45          </div><!-- .item-meta -->
  46      <?php endif; ?>
  47  
  48  
  49          <?php if ( ! bp_nouveau_groups_front_page_description() && bp_nouveau_group_has_meta( 'description' ) ) : ?>
  50              <div class="group-description">
  51                  <?php bp_group_description(); ?>
  52              </div><!-- //.group_description -->
  53          <?php endif; ?>
  54  
  55  </div><!-- #item-header-content -->
  56  
  57  <?php bp_nouveau_group_header_buttons(); ?>


Generated: Wed May 22 01:01:45 2019 Cross-referenced by PHPXref 0.7.1