PHP 8.1.33
Preview: searchform.php Size: 2.08 KB
/home/jambtst2015/public_html/aef.ng/wp-content/themes/astra/searchform.php

<?php
/**
 * Search Form for Astra theme.
 *
 * @package     Astra
 * @link        https://www.brainstormforce.com
 * @since       Astra 3.3.0
 */

/**
 * Adding argument checks to avoid rendering search-form markup from other places & to easily use get_search_form() function.
 *
 * @see https://themes.trac.wordpress.org/ticket/101061
 * @since 3.6.1
 */
$astra_search_input_placeholder = isset( $args['input_placeholder'] ) ? $args['input_placeholder'] : astra_default_strings( 'string-search-input-placeholder', false );
$astra_search_show_input_submit = isset( $args['show_input_submit'] ) ? $args['show_input_submit'] : true;
$astra_search_data_attrs        = isset( $args['data_attributes'] ) ? $args['data_attributes'] : '';
$astra_search_input_value       = isset( $args['input_value'] ) ? $args['input_value'] : '';
// Check if live search is enabled & accordingly disabling browser search suggestion.
$live_search       = astra_get_option( 'live-search' );
$autocomplete_attr = $live_search ? 'autocomplete="off"' : '';

?>
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
	<label for="search-field">
		<span class="screen-reader-text"><?php echo esc_html__( 'Search for:', 'astra' ); ?></span>
		<input type="search" id="search-field" class="search-field" <?php echo esc_attr( $autocomplete_attr ); ?> <?php echo esc_attr( $astra_search_data_attrs ); ?> placeholder="<?php echo esc_attr( $astra_search_input_placeholder ); ?>" value="<?php echo esc_attr( $astra_search_input_value ); ?>" name="s" tabindex="-1">
		<?php if ( class_exists( 'Astra_Icons' ) && Astra_Icons::is_svg_icons() ) { ?>
			<button class="search-submit ast-search-submit" aria-label="<?php echo esc_attr__( 'Search Submit', 'astra' ); ?>">
				<span hidden><?php echo esc_html__( 'Search', 'astra' ); ?></span>
				<i><?php Astra_Icons::get_icons( 'search', true ); ?></i>
			</button>
		<?php } ?>
	</label>
	<?php if ( $astra_search_show_input_submit ) { ?>
		<input type="submit" class="search-submit" value="<?php echo esc_attr__( 'Search', 'astra' ); ?>">
	<?php } ?>
</form>
<?php

Directory Contents

Dirs: 5 × Files: 21

Name Size Perms Modified Actions
admin DIR
- drwxr-xr-x 2024-11-11 23:49:14
Edit Download
assets DIR
- drwxr-xr-x 2022-06-04 04:03:46
Edit Download
inc DIR
- drwxr-xr-x 2024-11-11 23:49:15
Edit Download
languages DIR
- drwxr-xr-x 2022-06-04 04:03:46
Edit Download
- drwxr-xr-x 2024-01-05 01:06:59
Edit Download
693 B lrw-r--r-- 2024-11-11 15:51:54
Edit Download
735 B lrw-r--r-- 2024-11-11 15:51:54
Edit Download
97 B lrw-r--r-- 2024-11-26 13:58:36
Edit Download
145.23 KB lrw-r--r-- 2024-11-26 13:58:36
Edit Download
4.52 KB lrw-r--r-- 2024-11-11 15:51:54
Edit Download
619 B lrw-r--r-- 2024-11-11 15:51:54
Edit Download
8.42 KB lrw-r--r-- 2024-11-26 13:58:36
Edit Download
1.46 KB lrw-r--r-- 2024-11-11 15:51:54
Edit Download
913 B lrw-r--r-- 2024-11-11 15:51:54
Edit Download
874 B lrw-r--r-- 2024-11-11 15:51:54
Edit Download
5.85 KB lrw-r--r-- 2024-11-26 13:58:36
Edit Download
357.85 KB lrw-r--r-- 2023-01-12 09:15:40
Edit Download
777 B lrw-r--r-- 2024-11-11 15:51:54
Edit Download
2.08 KB lrw-r--r-- 2024-11-11 15:51:54
Edit Download
1.59 KB lrw-r--r-- 2024-11-11 15:51:54
Edit Download
1006 B lrw-r--r-- 2024-11-11 15:51:54
Edit Download
701 B lrw-r--r-- 2024-11-11 15:51:54
Edit Download
4.44 KB lrw-r--r-- 2024-11-26 13:58:36
Edit Download
2.35 KB lrw-r--r-- 2024-11-11 15:51:54
Edit Download
7.46 KB lrw-r--r-- 2024-11-11 15:51:54
Edit Download
5.11 KB lrw-r--r-- 2024-11-11 15:51:54
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).