* @since 1.0.0 */ /** * Do not allow direct script access. */ if ( ! defined( 'ABSPATH' ) ) { exit; } // Support for custom search post type. $sinatra_post_type = apply_filters( 'sinatra_search_post_type', 'all' ); $sinatra_post_type = 'all' !== $sinatra_post_type ? '' : ''; $sinatra_search_args = isset( $args ) && is_array( $args ) ? $args : array(); $sinatra_search_style = isset( $sinatra_search_args['sinatra_style'] ) ? $sinatra_search_args['sinatra_style'] : 'default'; $sinatra_aria_label = isset( $sinatra_search_args['aria_label'] ) && '' !== $sinatra_search_args['aria_label'] ? $sinatra_search_args['aria_label'] : esc_attr__( 'Enter search keywords', 'sinatra' ); if ( 'header-widget' === $sinatra_search_style ) : ?>