[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4   * Search
   5   *
   6   * @package bbPress
   7   * @subpackage Theme
   8   */
   9  
  10  // Exit if accessed directly
  11  defined( 'ABSPATH' ) || exit;
  12  
  13  if ( bbp_allow_search() ) : ?>
  14  
  15      <div class="bbp-search-form">
  16          <form role="search" method="get" id="bbp-topic-search-form">
  17              <div>
  18                  <label class="screen-reader-text hidden" for="ts"><?php esc_html_e( 'Search topics:', 'bbpress' ); ?></label>
  19                  <input type="text" value="<?php bbp_search_terms(); ?>" name="ts" id="ts" />
  20                  <input class="button" type="submit" id="bbp_search_submit" value="<?php esc_attr_e( 'Search', 'bbpress' ); ?>" />
  21              </div>
  22          </form>
  23      </div>
  24  
  25  <?php endif;


Generated: Thu May 6 01:01:30 2021 Cross-referenced by PHPXref 0.7.1