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


Generated: Sun Apr 14 01:01:05 2024 Cross-referenced by PHPXref 0.7.1