| Server IP : 172.67.153.42 / Your IP : 216.73.217.138 Web Server : Apache System : Linux vps-850873.bgcolombia.com 3.10.0-1160.144.1.el7.tuxcare.els5.x86_64 #1 SMP Wed May 13 12:31:54 UTC 2026 x86_64 User : melizav ( 1018) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/melizav/.trash/oceanwp/ |
Upload File : |
<?php
/**
* The template for displaying search forms.
*
* @package OceanWP WordPress theme
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Post type
$post_type = get_theme_mod( 'ocean_menu_search_source', 'any' );
// Generate unique form ID. Based on the codes from the Twenty Twenty theme
$ocean_sf_id = oceanwp_unique_id( 'ocean-search-form-' );
$osf_id = esc_attr( $ocean_sf_id );
?>
<form role="search" method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label for="<?php echo $osf_id; ?>">
<span class="screen-reader-text"><?php _e( 'Search for:', 'oceanwp' ); ?></span>
<input type="search" id="<?php echo $osf_id; ?>" class="field" autocomplete="off" placeholder="<?php echo esc_attr_x( 'Search', 'search placeholder', 'oceanwp' ); ?>" name="s">
<?php if ( 'any' != $post_type ) { ?>
<input type="hidden" name="post_type" value="<?php echo esc_attr( $post_type ); ?>">
<?php } ?>
</label>
<?php do_action( 'wpml_add_language_form_field' ); ?>
</form>