first commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Search Form for The Medium Header Style
|
||||
*
|
||||
* @package OceanWP WordPress theme
|
||||
*/
|
||||
|
||||
// Exit if accessed directly.
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Post type.
|
||||
$post_type = get_theme_mod( 'ocean_menu_search_source', 'any' );
|
||||
|
||||
?>
|
||||
|
||||
<div id="medium-searchform" class="header-searchform-wrap clr">
|
||||
<form method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>" class="header-searchform" role="search" aria-label="<?php esc_attr_e( 'Medium Header Search', 'oceanwp' ); ?>">
|
||||
<input type="search" name="s" autocomplete="off" value="" />
|
||||
<?php
|
||||
// If the headerSearchForm script is not disable.
|
||||
if ( OCEAN_EXTRA_ACTIVE
|
||||
&& class_exists( 'Ocean_Extra_Scripts_Panel' )
|
||||
&& Ocean_Extra_Scripts_Panel::get_setting( 'oe_headerSearchForm_script' ) ) {
|
||||
?>
|
||||
<label><?php oceanwp_theme_strings( 'owp-string-medium-header-search-text', 'oceanwp' ); ?></label>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<button class="search-submit"><i class="icon-magnifier"></i></button>
|
||||
<div class="search-bg"></div>
|
||||
<?php if ( 'any' !== $post_type ) { ?>
|
||||
<input type="hidden" name="post_type" value="<?php echo esc_attr( $post_type ); ?>">
|
||||
<?php } ?>
|
||||
<?php do_action( 'wpml_add_language_form_field' ); ?>
|
||||
</form>
|
||||
</div><!-- #medium-searchform -->
|
||||
Reference in New Issue
Block a user