[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/members/single/ -> forums.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Users Forums
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   */
   8  
   9  ?>
  10  
  11  <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
  12      <ul>
  13          <?php bp_get_options_nav(); ?>
  14  
  15          <li id="forums-order-select" class="last filter">
  16  
  17              <label for="forums-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
  18              <select id="forums-order-by">
  19                  <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
  20                  <option value="popular"><?php _e( 'Most Posts', 'buddypress' ); ?></option>
  21                  <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
  22  
  23                  <?php
  24  
  25                  /**
  26                   * Fires inside the members forums order options select input.
  27                   *
  28                   * @since 1.2.0
  29                   */
  30                  do_action( 'bp_forums_directory_order_options' ); ?>
  31  
  32              </select>
  33          </li>
  34      </ul>
  35  </div><!-- .item-list-tabs -->
  36  
  37  <?php
  38  
  39  if ( bp_is_current_action( 'favorites' ) ) :
  40      bp_get_template_part( 'members/single/forums/topics' );
  41  
  42  else :
  43  
  44      /**
  45       * Fires before the display of member forums content.
  46       *
  47       * @since 1.5.0
  48       */
  49      do_action( 'bp_before_member_forums_content' ); ?>
  50  
  51      <div class="forums myforums">
  52  
  53          <?php bp_get_template_part( 'forums/forums-loop' ) ?>
  54  
  55      </div>
  56  
  57      <?php
  58  
  59      /**
  60       * Fires after the display of member forums content.
  61       *
  62       * @since 1.5.0
  63       */
  64      do_action( 'bp_after_member_forums_content' ); ?>
  65  
  66  <?php endif;


Generated: Thu Dec 7 01:01:35 2017 Cross-referenced by PHPXref 0.7.1