__( 'Prompt copied to clipboard!', 'ai-share-summarize' ), // Generic copy-prompt tooltips. 'copyPromptShort' => __( 'Copy prompt & open', 'ai-share-summarize' ), 'copyPromptLong' => __( 'Copy prompt and open', 'ai-share-summarize' ), // Gemini specific tooltips. 'geminiTooltipShort' => __( 'Copy prompt & open', 'ai-share-summarize' ), 'geminiTooltipLong' => __( 'Copy prompt and open Gemini', 'ai-share-summarize' ), // DeepSeek specific tooltips. 'deepseekTooltipShort' => __( 'Copy prompt & open', 'ai-share-summarize' ), 'deepseekTooltipLong' => __( 'Copy prompt and open DeepSeek', 'ai-share-summarize' ), // Copilot specific tooltips. 'copilotTooltipShort' => __( 'Copy prompt & open', 'ai-share-summarize' ), 'copilotTooltipLong' => __( 'Copy prompt and open Copilot', 'ai-share-summarize' ), // Platform names for tooltips. 'platformNames' => array( 'twitter' => 'X (Twitter)', 'linkedin' => 'LinkedIn', 'facebook' => 'Facebook', 'telegram' => 'Telegram', 'whatsapp' => 'WhatsApp', 'email' => __( 'Email', 'ai-share-summarize' ), 'raindrop' => 'Raindrop', 'reddit' => 'Reddit', 'bluesky' => 'Bluesky', 'line' => 'LINE', 'claude' => 'Claude AI', 'chatgpt' => 'ChatGPT', 'google_ai' => 'Google AI', 'gemini' => 'Gemini', 'grok' => 'Grok', 'perplexity' => 'Perplexity', 'deepseek' => 'DeepSeek', 'mistral' => 'Mistral AI', 'copilot' => 'Microsoft Copilot', ), // Analytics click tracking (v1.5.0) - no nonce needed for public counter. 'trackUrl' => esc_url_raw( rest_url( 'aiss/v1/track' ) ), ) ); } /** * Add share buttons to content * * @param string $content Post content. * @return string Modified content with buttons. */ public function ayudawp_add_share_buttons( $content ) { if ( ! ayudawp_aiss_should_display_buttons() ) { return $content; } // Apply per-post exclusion set via the meta box. $post_id = get_the_ID(); if ( $post_id && ayudawp_aiss_is_post_excluded( $post_id ) ) { return $content; } $options = get_option( 'ayudawp_aiss_options' ); $insert_position = isset( $options['auto_insert_position'] ) ? $options['auto_insert_position'] : 'after_content'; if ( 'disabled' === $insert_position ) { return $content; } $buttons_html = AyudaWP_AISS_Buttons::ayudawp_generate_buttons_html(); switch ( $insert_position ) { case 'before_content': return $buttons_html . $content; case 'after_content': return $content . $buttons_html; case 'both': return $buttons_html . $content . $buttons_html; default: return $content . $buttons_html; } } }