[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BP Nouveau Default user's front template.
   4   *
   5   * @since 3.0.0
   6   * @version 3.1.0
   7   */
   8  ?>
   9  
  10  <div class="member-front-page">
  11  
  12      <?php if ( ! is_customize_preview() && bp_current_user_can( 'bp_moderate' ) && ! is_active_sidebar( 'sidebar-buddypress-members' ) ) : ?>
  13  
  14          <div class="bp-feedback custom-homepage-info info">
  15              <strong><?php esc_html_e( 'Manage the members default front page', 'buddypress' ); ?></strong>
  16              <button type="button" class="bp-tooltip" data-bp-tooltip="<?php echo esc_attr_x( 'Close', 'button', 'buddypress' ); ?>" aria-label="<?php esc_attr_e( 'Close this notice', 'buddypress' ); ?>" data-bp-close="remove"><span class="dashicons dashicons-dismiss" aria-hidden="true"></span></button><br/>
  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 the preferences of the %1$s or add %2$s to it.', 'buddypress' ),
  21                  bp_nouveau_members_get_customizer_option_link(),
  22                  bp_nouveau_members_get_customizer_widgets_link()
  23              );
  24              ?>
  25          </div>
  26  
  27      <?php endif; ?>
  28  
  29      <?php if ( bp_nouveau_members_wp_bio_info() ) : ?>
  30  
  31          <div class="member-description">
  32  
  33              <?php if ( get_the_author_meta( 'description', bp_displayed_user_id() ) ) : ?>
  34                  <blockquote class="member-bio">
  35                      <?php bp_nouveau_member_description( bp_displayed_user_id() ); ?>
  36                  </blockquote><!-- .member-bio -->
  37              <?php endif; ?>
  38  
  39              <?php
  40              if ( bp_is_my_profile() ) :
  41  
  42                  bp_nouveau_member_description_edit_link();
  43  
  44              endif;
  45              ?>
  46  
  47          </div><!-- .member-description -->
  48  
  49      <?php endif; ?>
  50  
  51      <?php if ( is_active_sidebar( 'sidebar-buddypress-members' ) ) : ?>
  52  
  53          <div id="member-front-widgets" class="bp-sidebar bp-widget-area" role="complementary">
  54              <?php dynamic_sidebar( 'sidebar-buddypress-members' ); ?>
  55          </div><!-- .bp-sidebar.bp-widget-area -->
  56  
  57      <?php endif; ?>
  58  
  59  </div>


Generated: Sun Jul 12 01:01:53 2020 Cross-referenced by PHPXref 0.7.1