Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/jet-search   php

Repository URL to install this package:

Version: 2.1.9 

/ jet-ajax-search / global / form.php

<?php
/**
 * Search Form template
 */

$post_type_string = $this->__get_post_types_string();
?>

<form class="jet-ajax-search__form" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
	<div class="jet-ajax-search__fields-holder">
		<div class="jet-ajax-search__field-wrapper">
			<?php $this->__icon( 'search_field_icon', '<span class="jet-ajax-search__field-icon jet-ajax-search-icon">%s</span>' ); ?>
			<input class="jet-ajax-search__field" type="search" placeholder="<?php echo esc_attr( $settings['search_placeholder_text'] ); ?>" value="" name="s" autocomplete="off" />
			<input type="hidden" value="<?php echo $this->__get_query_settings_json(); ?>" name="jet_ajax_search_settings" />

			<?php if ( ! empty( $post_type_string ) ) : ?>
				<input type="hidden" value="<?php echo $post_type_string; ?>" name="post_type" />
			<?php endif; ?>
		</div>
		<?php echo $this->__get_categories_list(); ?>
	</div>
	<?php $this->__glob_inc_if( 'submit-button', array( 'show_search_submit' ) ); ?>
</form>