Changeset 3492767
- Timestamp:
- 03/27/2026 03:37:34 PM (29 hours ago)
- Location:
- ai-share-summarize
- Files:
-
- 26 added
- 5 edited
-
tags/1.7.2 (added)
-
tags/1.7.2/ai-share-summarize.php (added)
-
tags/1.7.2/assets (added)
-
tags/1.7.2/assets/css (added)
-
tags/1.7.2/assets/css/admin-styles.css (added)
-
tags/1.7.2/assets/css/ai-share-summarize.css (added)
-
tags/1.7.2/assets/js (added)
-
tags/1.7.2/assets/js/admin-scripts.js (added)
-
tags/1.7.2/assets/js/ai-share-summarize.js (added)
-
tags/1.7.2/assets/js/vendor (added)
-
tags/1.7.2/assets/js/vendor/chart.umd.min.js (added)
-
tags/1.7.2/includes (added)
-
tags/1.7.2/includes/class-admin.php (added)
-
tags/1.7.2/includes/class-aiss-promo-banner.php (added)
-
tags/1.7.2/includes/class-analytics-page.php (added)
-
tags/1.7.2/includes/class-buttons.php (added)
-
tags/1.7.2/includes/class-dashboard-widget.php (added)
-
tags/1.7.2/includes/class-database.php (added)
-
tags/1.7.2/includes/class-frontend.php (added)
-
tags/1.7.2/includes/class-icons.php (added)
-
tags/1.7.2/includes/class-meta-box.php (added)
-
tags/1.7.2/includes/class-rest-api.php (added)
-
tags/1.7.2/includes/class-seo-integration.php (added)
-
tags/1.7.2/includes/class-shortcode.php (added)
-
tags/1.7.2/includes/functions-helpers.php (added)
-
tags/1.7.2/readme.txt (added)
-
trunk/ai-share-summarize.php (modified) (3 diffs)
-
trunk/includes/class-frontend.php (modified) (2 diffs)
-
trunk/includes/class-shortcode.php (modified) (1 diff)
-
trunk/includes/functions-helpers.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ai-share-summarize/trunk/ai-share-summarize.php
r3492249 r3492767 4 4 * Plugin URI: https://servicios.ayudawp.com/ 5 5 * Description: Share on social media and also generate summaries with citations from the top AIs (Claude, ChatGPT, Google AI, Gemini, Grok, Perplexity, DeepSeek, Mistral, Copilot, Qwen, Meta AI). 6 * Version: 1.7. 16 * Version: 1.7.2 7 7 * Author: Fernando Tellado 8 8 * Author URI: https://ayudawp.com/ … … 23 23 24 24 // Define plugin constants. 25 define( 'AYUDAWP_AISS_VERSION', '1.7. 1' );25 define( 'AYUDAWP_AISS_VERSION', '1.7.2' ); 26 26 define( 'AYUDAWP_AISS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 27 27 define( 'AYUDAWP_AISS_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); … … 209 209 'auto_insert_content_types' => array( 'post' ), 210 210 'twitter_handle' => '', 211 'mastodon_instance' => ' mastodon.social',211 'mastodon_instance' => '', 212 212 'custom_text' => '', 213 'title_text' => __( 'Social Share or Summarize with AI', 'ai-share-summarize' ),213 'title_text' => '', 214 214 'title_style' => 'span', 215 215 'ai_section_title' => '', -
ai-share-summarize/trunk/includes/class-frontend.php
r3465431 r3492767 69 69 } 70 70 71 wp_enqueue_style( 72 'ayudawp-aiss-styles', 73 AYUDAWP_AISS_PLUGIN_URL . 'assets/css/ai-share-summarize.css', 74 array(), 75 AYUDAWP_AISS_VERSION 76 ); 77 78 wp_enqueue_script( 79 'ayudawp-aiss-scripts', 80 AYUDAWP_AISS_PLUGIN_URL . 'assets/js/ai-share-summarize.js', 81 array( 'jquery' ), 82 AYUDAWP_AISS_VERSION, 83 true 84 ); 85 86 wp_localize_script( 'ayudawp-aiss-scripts', 'ayudawpAissL10n', array( 87 'promptCopied' => __( 'Prompt copied to clipboard!', 'ai-share-summarize' ), 88 // Generic copy-prompt tooltips. 89 'copyPromptShort' => __( 'Copy prompt & open', 'ai-share-summarize' ), 90 'copyPromptLong' => __( 'Copy prompt and open', 'ai-share-summarize' ), 91 // Gemini specific tooltips. 92 'geminiTooltipShort' => __( 'Copy prompt & open', 'ai-share-summarize' ), 93 'geminiTooltipLong' => __( 'Copy prompt and open Gemini', 'ai-share-summarize' ), 94 // DeepSeek specific tooltips. 95 'deepseekTooltipShort' => __( 'Copy prompt & open', 'ai-share-summarize' ), 96 'deepseekTooltipLong' => __( 'Copy prompt and open DeepSeek', 'ai-share-summarize' ), 97 // Copilot specific tooltips. 98 'copilotTooltipShort' => __( 'Copy prompt & open', 'ai-share-summarize' ), 99 'copilotTooltipLong' => __( 'Copy prompt and open Copilot', 'ai-share-summarize' ), 100 // Platform names for tooltips. 101 'platformNames' => array( 102 'twitter' => 'X (Twitter)', 103 'linkedin' => 'LinkedIn', 104 'facebook' => 'Facebook', 105 'telegram' => 'Telegram', 106 'whatsapp' => 'WhatsApp', 107 'email' => __( 'Email', 'ai-share-summarize' ), 108 'raindrop' => 'Raindrop', 109 'reddit' => 'Reddit', 110 'bluesky' => 'Bluesky', 111 'line' => 'LINE', 112 'claude' => 'Claude AI', 113 'chatgpt' => 'ChatGPT', 114 'google_ai' => 'Google AI', 115 'gemini' => 'Gemini', 116 'grok' => 'Grok', 117 'perplexity' => 'Perplexity', 118 'deepseek' => 'DeepSeek', 119 'mistral' => 'Mistral AI', 120 'copilot' => 'Microsoft Copilot', 121 ), 122 // Analytics click tracking (v1.5.0) - no nonce needed for public counter. 123 'trackUrl' => esc_url_raw( rest_url( 'aiss/v1/track' ) ), 124 ) ); 71 ayudawp_aiss_enqueue_frontend_assets(); 125 72 } 126 73 … … 132 79 */ 133 80 public function ayudawp_add_share_buttons( $content ) { 81 // Only inject in the main loop to prevent buttons in footers, 82 // sidebars, or other areas using the_content filter. 83 if ( ! in_the_loop() || ! is_main_query() ) { 84 return $content; 85 } 86 134 87 if ( ! ayudawp_aiss_should_display_buttons() ) { 135 88 return $content; -
ai-share-summarize/trunk/includes/class-shortcode.php
r3479078 r3492767 35 35 */ 36 36 public function ayudawp_shortcode_share_buttons( $atts ) { 37 // Ensure assets are loaded when shortcode is processed late 38 // (page builders may render after wp_enqueue_scripts). 39 ayudawp_aiss_enqueue_frontend_assets(); 40 37 41 $atts = shortcode_atts( 38 42 array( -
ai-share-summarize/trunk/includes/functions-helpers.php
r3479078 r3492767 285 285 ); 286 286 } 287 288 /** 289 * Enqueue frontend CSS, JS and localized data 290 * 291 * Centralised helper so both auto-insert (class-frontend) and 292 * shortcode (class-shortcode) share the same enqueue logic. 293 * Safe to call multiple times — assets are only loaded once. 294 * 295 * @since 1.7.2 296 */ 297 function ayudawp_aiss_enqueue_frontend_assets() { 298 if ( wp_style_is( 'ayudawp-aiss-styles', 'enqueued' ) ) { 299 return; 300 } 301 302 wp_enqueue_style( 303 'ayudawp-aiss-styles', 304 AYUDAWP_AISS_PLUGIN_URL . 'assets/css/ai-share-summarize.css', 305 array(), 306 AYUDAWP_AISS_VERSION 307 ); 308 309 wp_enqueue_script( 310 'ayudawp-aiss-scripts', 311 AYUDAWP_AISS_PLUGIN_URL . 'assets/js/ai-share-summarize.js', 312 array( 'jquery' ), 313 AYUDAWP_AISS_VERSION, 314 true 315 ); 316 317 wp_localize_script( 'ayudawp-aiss-scripts', 'ayudawpAissL10n', array( 318 'promptCopied' => __( 'Prompt copied to clipboard!', 'ai-share-summarize' ), 319 // Generic copy-prompt tooltips. 320 'copyPromptShort' => __( 'Copy prompt & open', 'ai-share-summarize' ), 321 'copyPromptLong' => __( 'Copy prompt and open', 'ai-share-summarize' ), 322 // Gemini specific tooltips. 323 'geminiTooltipShort' => __( 'Copy prompt & open', 'ai-share-summarize' ), 324 'geminiTooltipLong' => __( 'Copy prompt and open Gemini', 'ai-share-summarize' ), 325 // DeepSeek specific tooltips. 326 'deepseekTooltipShort' => __( 'Copy prompt & open', 'ai-share-summarize' ), 327 'deepseekTooltipLong' => __( 'Copy prompt and open DeepSeek', 'ai-share-summarize' ), 328 // Copilot specific tooltips. 329 'copilotTooltipShort' => __( 'Copy prompt & open', 'ai-share-summarize' ), 330 'copilotTooltipLong' => __( 'Copy prompt and open Copilot', 'ai-share-summarize' ), 331 // Platform names for tooltips. 332 'platformNames' => array( 333 'twitter' => 'X (Twitter)', 334 'linkedin' => 'LinkedIn', 335 'facebook' => 'Facebook', 336 'telegram' => 'Telegram', 337 'whatsapp' => 'WhatsApp', 338 'email' => __( 'Email', 'ai-share-summarize' ), 339 'raindrop' => 'Raindrop', 340 'reddit' => 'Reddit', 341 'bluesky' => 'Bluesky', 342 'line' => 'LINE', 343 'claude' => 'Claude AI', 344 'chatgpt' => 'ChatGPT', 345 'google_ai' => 'Google AI', 346 'gemini' => 'Gemini', 347 'grok' => 'Grok', 348 'perplexity' => 'Perplexity', 349 'deepseek' => 'DeepSeek', 350 'mistral' => 'Mistral AI', 351 'copilot' => 'Microsoft Copilot', 352 ), 353 // Analytics click tracking (v1.5.0) - no nonce needed for public counter. 354 'trackUrl' => esc_url_raw( rest_url( 'aiss/v1/track' ) ), 355 ) ); 356 } -
ai-share-summarize/trunk/readme.txt
r3492249 r3492767 4 4 Requires at least: 5.0 5 5 Tested up to: 7.0 6 Stable tag: 1.7. 16 Stable tag: 1.7.2 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 407 407 == Changelog == 408 408 409 = 1.7.2 = 410 * Fixed: Buttons appearing in footer or sidebar on themes that apply the_content filter outside the main loop 411 * Fixed: Missing styles when using shortcodes with page builders that process content after asset enqueue (Bricks Builder, etc.) 412 * Fixed: Mastodon instance and title text were stored as default values on new installations instead of being placeholder-only 413 * Improved: Frontend asset enqueue logic centralised in a single helper function shared by auto-insert and shortcode modes 414 409 415 = 1.7.1 = 410 416 * Fixed: Admin CSS specificity issues with WordPress 7.0 new button and dashicon styles
Note: See TracChangeset
for help on using the changeset viewer.