Plugin Directory

Changeset 3492767


Ignore:
Timestamp:
03/27/2026 03:37:34 PM (29 hours ago)
Author:
fernandot
Message:

Arreglos con temas raros y bricks builder

Location:
ai-share-summarize
Files:
26 added
5 edited

Legend:

Unmodified
Added
Removed
  • ai-share-summarize/trunk/ai-share-summarize.php

    r3492249 r3492767  
    44 * Plugin URI: https://servicios.ayudawp.com/
    55 * 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.1
     6 * Version: 1.7.2
    77 * Author: Fernando Tellado
    88 * Author URI: https://ayudawp.com/
     
    2323
    2424// Define plugin constants.
    25 define( 'AYUDAWP_AISS_VERSION', '1.7.1' );
     25define( 'AYUDAWP_AISS_VERSION', '1.7.2' );
    2626define( 'AYUDAWP_AISS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2727define( 'AYUDAWP_AISS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
     
    209209            'auto_insert_content_types'  => array( 'post' ),
    210210            'twitter_handle'             => '',
    211             'mastodon_instance'          => 'mastodon.social',
     211            'mastodon_instance'          => '',
    212212            'custom_text'                => '',
    213             'title_text'                 => __( 'Social Share or Summarize with AI', 'ai-share-summarize' ),
     213            'title_text'                 => '',
    214214            'title_style'                => 'span',
    215215            'ai_section_title'           => '',
  • ai-share-summarize/trunk/includes/class-frontend.php

    r3465431 r3492767  
    6969        }
    7070
    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();
    12572    }
    12673
     
    13279     */
    13380    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
    13487        if ( ! ayudawp_aiss_should_display_buttons() ) {
    13588            return $content;
  • ai-share-summarize/trunk/includes/class-shortcode.php

    r3479078 r3492767  
    3535     */
    3636    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
    3741        $atts = shortcode_atts(
    3842            array(
  • ai-share-summarize/trunk/includes/functions-helpers.php

    r3479078 r3492767  
    285285    );
    286286}
     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 */
     297function 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  
    44Requires at least: 5.0
    55Tested up to: 7.0
    6 Stable tag: 1.7.1
     6Stable tag: 1.7.2
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    407407== Changelog ==
    408408
     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
    409415= 1.7.1 =
    410416* Fixed: Admin CSS specificity issues with WordPress 7.0 new button and dashicon styles
Note: See TracChangeset for help on using the changeset viewer.