[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

/src/templates/default/bbpress/ -> form-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-search-form">
  17              <div>
  18                  <label class="screen-reader-text hidden" for="bbp_search"><?php esc_html_e( 'Search for:', 'bbpress' ); ?></label>
  19                  <input type="hidden" name="action" value="bbp-search-request" />
  20                  <input type="text" value="<?php bbp_search_terms(); ?>" name="bbp_search" id="bbp_search" />
  21                  <input class="button" type="submit" id="bbp_search_submit" value="<?php esc_attr_e( 'Search', 'bbpress' ); ?>" />
  22              </div>
  23          </form>
  24      </div>
  25  
  26  <?php endif;


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