| 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:', 'forumax' ); ?></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" placeholder="<?php esc_attr_e( 'Search forums...', 'forumax' ); ?>" /> |
| 21 |
<input class="button" type="submit" id="bbp_search_submit" value="<?php esc_attr_e( 'Search', 'forumax' ); ?>" /> |
| 22 |
</div> |
| 23 |
</form> |
| 24 |
</div> |
| 25 |
|
| 26 |
<?php endif; |