[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Groups Cover Image Header.
   4   *
   5   * @since 3.0.0
   6   * @version 7.0.0
   7   */
   8  ?>
   9  
  10  <div id="cover-image-container">
  11      <div id="header-cover-image"></div>
  12  
  13      <div id="item-header-cover-image">
  14          <?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
  15              <div id="item-header-avatar">
  16                  <a href="<?php echo esc_url( bp_get_group_permalink() ); ?>" title="<?php echo esc_attr( bp_get_group_name() ); ?>">
  17  
  18                      <?php bp_group_avatar(); ?>
  19  
  20                  </a>
  21              </div><!-- #item-header-avatar -->
  22          <?php endif; ?>
  23  
  24          <?php if ( ! bp_nouveau_groups_front_page_description() ) : ?>
  25              <div id="item-header-content">
  26  
  27                  <?php if ( bp_nouveau_group_has_meta( 'status' ) ) : ?>
  28                      <p class="highlight group-status"><strong><?php echo esc_html( bp_nouveau_the_group_meta( array( 'keys' => 'status' ) ) ); ?></strong></p>
  29                  <?php endif; ?>
  30  
  31                  <p class="activity">
  32                      <?php
  33                          printf(
  34                              /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */
  35                              esc_html__( 'Active %s', 'buddypress' ),
  36                              sprintf(
  37                                  '<span data-livestamp="%1$s">%2$s</span>',
  38                                  bp_core_get_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ),
  39                                  esc_html( bp_get_group_last_active() )
  40                              )
  41                          );
  42                      ?>
  43                  </p>
  44  
  45                  <?php
  46                  bp_group_type_list(
  47                      bp_get_group_id(),
  48                      array(
  49                          'label'        => array(
  50                              'plural'   => __( 'Group Types', 'buddypress' ),
  51                              'singular' => __( 'Group Type', 'buddypress' ),
  52                          ),
  53                          'list_element' => 'span',
  54                      )
  55                  );
  56                  ?>
  57  
  58                  <?php bp_nouveau_group_hook( 'before', 'header_meta' ); ?>
  59  
  60                  <?php if ( bp_nouveau_group_has_meta_extra() ) : ?>
  61                      <div class="item-meta">
  62  
  63                          <?php echo bp_nouveau_the_group_meta( array( 'keys' => 'extra' ) ); ?>
  64  
  65                      </div><!-- .item-meta -->
  66                  <?php endif; ?>
  67  
  68                  <?php bp_nouveau_group_header_buttons(); ?>
  69  
  70              </div><!-- #item-header-content -->
  71          <?php endif; ?>
  72  
  73          <?php bp_get_template_part( 'groups/single/parts/header-item-actions' ); ?>
  74  
  75      </div><!-- #item-header-cover-image -->
  76  
  77  
  78  </div><!-- #cover-image-container -->
  79  
  80  <?php if ( ! bp_nouveau_groups_front_page_description() && bp_nouveau_group_has_meta( 'description' ) ) : ?>
  81      <div class="desc-wrap">
  82          <div class="group-description">
  83              <?php bp_group_description(); ?>
  84          </div><!-- //.group_description -->
  85      </div>
  86  <?php endif; ?>


Generated: Fri Jul 1 01:00:55 2022 Cross-referenced by PHPXref 0.7.1