[ 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                      esc_html__( 'You can set your preferences for the %1$s or add %2$s to it.', 'buddypress' ),
  22                      bp_nouveau_groups_get_customizer_option_link(),
  23                      bp_nouveau_groups_get_customizer_widgets_link()
  24                  );
  25                  ?>
  26                  </p>
  27  
  28              </div>
  29  
  30          <?php endif; ?>
  31      <?php endif; ?>
  32  
  33      <?php if ( bp_nouveau_groups_front_page_description() && bp_nouveau_group_has_meta( 'description' ) ) : ?>
  34          <div class="group-description">
  35  
  36              <?php bp_group_description(); ?>
  37  
  38          </div><!-- .group-description -->
  39      <?php endif; ?>
  40  
  41      <?php if ( bp_nouveau_groups_do_group_boxes() ) : ?>
  42          <div class="bp-plugin-widgets">
  43  
  44              <?php bp_custom_group_boxes(); ?>
  45  
  46          </div><!-- .bp-plugin-widgets -->
  47      <?php endif; ?>
  48  
  49      <?php if ( is_active_sidebar( 'sidebar-buddypress-groups' ) ) : ?>
  50          <div id="group-front-widgets" class="bp-sidebar bp-widget-area" role="complementary">
  51  
  52              <?php dynamic_sidebar( 'sidebar-buddypress-groups' ); ?>
  53  
  54          </div><!-- .bp-sidebar.bp-widget-area -->
  55      <?php endif; ?>
  56  
  57  </div>


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