40 lines
1.8 KiB
PHP
40 lines
1.8 KiB
PHP
<?php
|
|
/**
|
|
* فرم جستجوی انجمن — فارسی
|
|
*
|
|
* @package Hesabix2
|
|
* @subpackage bbPress
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
if ( bbp_allow_search() ) :
|
|
$hesabix2_bbp_search_compact = ! empty( $GLOBALS['hesabix2_bbp_search_compact'] );
|
|
?>
|
|
|
|
<div class="bbp-search-form<?php echo $hesabix2_bbp_search_compact ? ' hesabix2-bbp-search-form--shell' : ''; ?>">
|
|
<form role="search" method="get" id="bbp-search-form" class="hesabix2-bbp-search-form<?php echo $hesabix2_bbp_search_compact ? ' hesabix2-bbp-search-form--compact' : ''; ?>">
|
|
<div class="hesabix2-bbp-search-form__row">
|
|
<label class="screen-reader-text hidden" for="bbp_search"><?php esc_html_e( 'جستجو در انجمن:', 'hesabix2' ); ?></label>
|
|
<input type="hidden" name="action" value="bbp-search-request" />
|
|
<input
|
|
type="search"
|
|
value="<?php bbp_search_terms(); ?>"
|
|
name="bbp_search"
|
|
id="bbp_search"
|
|
class="hesabix2-bbp-search-form__input"
|
|
placeholder="<?php esc_attr_e( 'جستجو در انجمن…', 'hesabix2' ); ?>"
|
|
/>
|
|
<button class="button hesabix2-bbp-search-form__submit" type="submit" id="bbp_search_submit"<?php echo $hesabix2_bbp_search_compact ? ' aria-label="' . esc_attr__( 'جستجو', 'hesabix2' ) . '"' : ''; ?>>
|
|
<?php if ( $hesabix2_bbp_search_compact ) : ?>
|
|
<svg class="hesabix2-bbp-search-form__icon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/></svg>
|
|
<span class="hesabix2-bbp-search-form__submit-text"><?php esc_html_e( 'جستجو', 'hesabix2' ); ?></span>
|
|
<?php else : ?>
|
|
<?php esc_html_e( 'جستجو', 'hesabix2' ); ?>
|
|
<?php endif; ?>
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<?php endif;
|