esc_url_raw( rest_url( 'ai-search/v1/suggest' ) ), 'postType' => $aisbtn_post_type, 'limit' => $aisbtn_limit, 'showImages' => ! empty( $attributes['showImages'] ), 'showPrice' => ! empty( $attributes['showPrice'] ), // Tier badges are diagnostic, not user-facing: only editors see // them, unless the site opted into public badges in General settings. 'showBadges' => ! empty( $attributes['showBadges'] ) && ( current_user_can( 'edit_posts' ) || get_option( 'ai_search_badge_public', true ) ), 'overlay' => $aisbtn_id, 'i18n' => array( 'noResults' => __( 'No results yet', 'ai-search' ), 'searching' => __( 'Searching...', 'ai-search' ), 'seeAll' => __( 'See all results', 'ai-search' ), 'aiSuggestions' => __( 'AI suggestions', 'ai-search' ), /* translators: %d: number of search results */ 'resultsFound' => __( '%d results', 'ai-search' ), ), ); $aisbtn_search_url = home_url( '/?s=' ); ?>
'ai-search-button-wrap' ) ) ); ?>>