[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/templates/default/bbpress/ -> content-search.php (source)

   1  <?php
   2  
   3  /**
   4   * Search Content Part
   5   *
   6   * @package bbPress
   7   * @subpackage Theme
   8   */
   9  
  10  // Exit if accessed directly
  11  defined( 'ABSPATH' ) || exit;
  12  
  13  ?>
  14  
  15  <div id="bbpress-forums" class="bbpress-wrapper">
  16  
  17      <?php bbp_breadcrumb(); ?>
  18  
  19      <?php bbp_set_query_name( bbp_get_search_rewrite_id() ); ?>
  20  
  21      <?php do_action( 'bbp_template_before_search' ); ?>
  22  
  23      <?php if ( bbp_has_search_results() ) : ?>
  24  
  25          <?php bbp_get_template_part( 'pagination', 'search' ); ?>
  26  
  27          <?php bbp_get_template_part( 'loop',       'search' ); ?>
  28  
  29          <?php bbp_get_template_part( 'pagination', 'search' ); ?>
  30  
  31      <?php elseif ( bbp_get_search_terms() ) : ?>
  32  
  33          <?php bbp_get_template_part( 'feedback',   'no-search' ); ?>
  34  
  35      <?php else : ?>
  36  
  37          <?php bbp_get_template_part( 'form', 'search' ); ?>
  38  
  39      <?php endif; ?>
  40  
  41      <?php do_action( 'bbp_template_after_search_results' ); ?>
  42  
  43  </div>
  44  


Generated: Tue Feb 27 01:00:56 2024 Cross-referenced by PHPXref 0.7.1