isset( $atts['template'] ) ? sanitize_text_field( $atts['template'] ) : 'horizontal', 'search_page_id' => $page_settings['search'], 'has_category' => isset( $atts['category'] ) ? (int) $atts['category'] : 0 ); // Enqueue style dependencies wp_enqueue_style( AIOVG_PLUGIN_SLUG . '-public' ); // Process output ob_start(); include apply_filters( 'aiovg_load_template', AIOVG_PLUGIN_DIR . 'public/templates/search-form-template-' . $attributes['template'] . '.php' ); return ob_get_clean(); } }