[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/templates/default/bbpress/ -> user-favorites.php (source)

   1  <?php
   2  
   3  /**
   4   * User Favorites
   5   *
   6   * @package bbPress
   7   * @subpackage Theme
   8   */
   9  
  10  // Exit if accessed directly
  11  defined( 'ABSPATH' ) || exit;
  12  
  13  do_action( 'bbp_template_before_user_favorites' ); ?>
  14  
  15  <div id="bbp-user-favorites" class="bbp-user-favorites">
  16  
  17      <?php bbp_get_template_part( 'form', 'topic-search' ); ?>
  18  
  19      <h2 class="entry-title"><?php esc_html_e( 'Favorite Forum Topics', 'bbpress' ); ?></h2>
  20      <div class="bbp-user-section">
  21  
  22          <?php if ( bbp_get_user_favorites() ) : ?>
  23  
  24              <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
  25  
  26              <?php bbp_get_template_part( 'loop',       'topics' ); ?>
  27  
  28              <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
  29  
  30          <?php else : ?>
  31  
  32              <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>
  33  
  34          <?php endif; ?>
  35  
  36      </div>
  37  </div><!-- #bbp-user-favorites -->
  38  
  39  <?php do_action( 'bbp_template_after_user_favorites' );


Generated: Sun Aug 1 01:01:32 2021 Cross-referenced by PHPXref 0.7.1