[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/buddypress/groups/single/ -> default-front.php (source)

   1  <?php
   2  /**
   3   * BP Nouveau Default group's front template.
   4   *
   5   * @since 3.0.0
   6   * @version 3.2.0
   7   */
   8  ?>
   9  
  10  <div class="group-front-page">
  11  
  12      <?php if ( ! is_active_sidebar( 'sidebar-buddypress-groups' ) || ! bp_nouveau_groups_do_group_boxes() ) : ?>
  13          <?php if ( ! is_customize_preview() && bp_current_user_can( 'bp_moderate' ) ) : ?>
  14  
  15              <div class="bp-feedback custom-homepage-info info no-icon">
  16                  <strong><?php esc_html_e( 'Manage the Groups default front page', 'buddypress' ); ?></strong>
  17  
  18                  <p>
  19                  <?php
  20                  printf(
  21                      /* translators: 1: link to the customizer option. 2: link to the customizer widgets section. */
  22                      esc_html__( 'You can set your preferences for the %1$s or add %2$s to it.', 'buddypress' ),
  23                      bp_nouveau_groups_get_customizer_option_link(),
  24                      bp_nouveau_groups_get_customizer_widgets_link()
  25                  );
  26                  ?>
  27                  </p>
  28  
  29              </div>
  30  
  31          <?php endif; ?>
  32      <?php endif; ?>
  33  
  34      <?php if ( bp_nouveau_groups_front_page_description() && bp_nouveau_group_has_meta( 'description' ) ) : ?>
  35          <div class="group-description">
  36  
  37              <?php bp_group_description(); ?>
  38  
  39          </div><!-- .group-description -->
  40      <?php endif; ?>
  41  
  42      <?php if ( bp_nouveau_groups_do_group_boxes() ) : ?>
  43          <div class="bp-plugin-widgets">
  44  
  45              <?php bp_custom_group_boxes(); ?>
  46  
  47          </div><!-- .bp-plugin-widgets -->
  48      <?php endif; ?>
  49  
  50      <?php if ( is_active_sidebar( 'sidebar-buddypress-groups' ) ) : ?>
  51          <div id="group-front-widgets" class="bp-sidebar bp-widget-area" role="complementary">
  52  
  53              <?php dynamic_sidebar( 'sidebar-buddypress-groups' ); ?>
  54  
  55          </div><!-- .bp-sidebar.bp-widget-area -->
  56      <?php endif; ?>
  57  
  58  </div>


Generated: Sun Aug 9 01:01:29 2020 Cross-referenced by PHPXref 0.7.1