Plugin Directory

Changeset 3382610


Ignore:
Timestamp:
10/22/2025 12:52:11 PM (4 months ago)
Author:
veelo
Message:

Update to version 1.5.9 from GitHub

Location:
popup-for-elementor
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • popup-for-elementor/tags/1.5.9/includes/popup-handler.php

    r3300275 r3382610  
    33// Dynamically passes configuration from Elementor controls to the JavaScript.
    44
    5 if (!defined('ABSPATH')) {
    6     exit;
    7 }
    8 function popup_for_elementor_register_assets()
    9 {
    10     if (!is_admin()) {
    11         wp_register_script(
    12             'popup-widget-js',
    13             plugin_dir_url(__FILE__) . '../assets/popup-widget.js',
    14             array('jquery'),
    15             '1.0.0',
    16             true
    17         );
    18         $post_id = get_the_ID();
     5if (!defined('ABSPATH')) exit;
    196
    20         if ($post_id) {
    21             $dynamic_config = array(
    22                 'showOnLoad' => get_post_meta($post_id, '_elementor_popup_show_on_load', true) ?: 'no',
    23                 'delay' => (int) get_post_meta($post_id, '_elementor_popup_delay', true) ?: 0,
    24                 'showOnScroll' => get_post_meta($post_id, '_elementor_popup_show_on_scroll', true) === 'yes',
    25                 'scrollPercentage' => (int) (get_post_meta($post_id, '_elementor_popup_scroll_percentage', true) ?: 50),
    26                 'exitIntent' => get_post_meta($post_id, '_elementor_popup_exit_intent', true) === 'yes',
    27                 'cookieName' => 'popup_seen',
    28                 'cookieExpiry' => 7
     7if ( ! function_exists( 'popup_for_elementor_register_assets' ) ) {
     8    function popup_for_elementor_register_assets() {
     9        if (!is_admin()) {
     10            wp_register_script(
     11                'popup-widget-js',
     12                plugin_dir_url(__FILE__) . '../assets/popup-widget.js',
     13                array('jquery'),
     14                '1.0.0',
     15                true
    2916            );
    30             wp_localize_script(
    31                 'popup-widget-js',
    32                 'PopupForElementorConfig',
    33                 $dynamic_config
    34             );
     17
     18            $post_id = get_the_ID();
     19
     20            if ($post_id) {
     21                $dynamic_config = array(
     22                    'showOnLoad'            => get_post_meta($post_id, '_elementor_popup_show_on_load', true) ?: 'no',
     23                    'delay'                 => (int) get_post_meta($post_id, '_elementor_popup_delay', true) ?: 0,
     24                    'showOnScroll'          => get_post_meta($post_id, '_elementor_popup_show_on_scroll', true) === 'yes',
     25                    'scrollPercentage'      => (int) (get_post_meta($post_id, '_elementor_popup_scroll_percentage', true) ?: 50),
     26                    'exitIntent'            => get_post_meta($post_id, '_elementor_popup_exit_intent', true) === 'yes',
     27                    'exitIntentDisplayMode' => get_post_meta($post_id, '_elementor_exit_intent_display_mode', true) ?: 'always',
     28                    'cookieName'            => 'popup_seen',
     29                    'cookieExpiry'          => 7,
     30                    'triggerBySelector'     => get_post_meta($post_id, '_elementor_trigger_selector_enabled', true) === 'yes',
     31                    'triggerSelector'       => get_post_meta($post_id, '_elementor_trigger_selector', true) ?: '',
     32                );
     33
     34                wp_localize_script('popup-widget-js','PopupForElementorConfig',$dynamic_config);
     35            }
     36
     37            wp_enqueue_script('popup-widget-js');
    3538        }
    36         wp_enqueue_script('popup-widget-js');
    3739    }
    3840}
     41
    3942add_action('wp_enqueue_scripts', 'popup_for_elementor_register_assets');
    4043
     
    4346    wp_deregister_script('popup-widget-js');
    4447}, PHP_INT_MAX);
    45 
  • popup-for-elementor/tags/1.5.9/popup-for-elementor.php

    r3380762 r3382610  
    44 * Plugin URI: https://www.popupforelementor.com
    55 * Description: Create powerful, fully customizable popups directly in Elementor Free — includes click, delay, load, and exit-intent triggers, animations, and smart visibility controls to boost user engagement.
    6  * Version: 1.5.8
     6 * Version: 1.5.9
    77 * Author: Veelo
    88 * Author URI: https://www.veelo.es
  • popup-for-elementor/tags/1.5.9/readme.txt

    r3380762 r3382610  
    11=== Popup for Elementor === 
    22Contributors: veelo 
    3 Tags: popup, elementor, modal, wordpress popup, elementor free, popup maker, popup builder, modal window 
     3Tags: popup, elementor, modal, wordpress popup 
    44Requires at least: 5.8 
    55Tested up to: 6.8.3 
    66Requires PHP: 7.4 
    7 Stable tag: 1.5.8 
     7Stable tag: 1.5.9 
    88License: GPLv2 or later 
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    9797== Changelog ==
    9898
     99= 1.5.9 = 
     100* **Fix:** Prevented rare fatal error caused by multiple declarations of `popup_for_elementor_register_assets()` on some setups. 
     101* **Improved:** Script registration now fully guarded and compatible with all caching and optimization plugins. 
     102* **Update:** Safe loading logic added to avoid duplicate includes. 
     103
    99104= 1.5.8 = 
    100105* **New:** Added **Click Trigger** to the free version (previously Pro only). 
     
    128133== Upgrade Notice ==
    129134
    130 = 1.5.8
    131 🚀 Major update! Adds **Click Trigger** to the free version, improves Exit Intent detection, and enhances “Show only once” cookie logic
    132 Recommended update for all users.
     135= 1.5.9
     136🛠️ Fixes a rare **fatal error** that could occur when scripts were loaded twice
     137Highly recommended update for all users to ensure full compatibility and stability.
  • popup-for-elementor/trunk/includes/popup-handler.php

    r3300275 r3382610  
    33// Dynamically passes configuration from Elementor controls to the JavaScript.
    44
    5 if (!defined('ABSPATH')) {
    6     exit;
    7 }
    8 function popup_for_elementor_register_assets()
    9 {
    10     if (!is_admin()) {
    11         wp_register_script(
    12             'popup-widget-js',
    13             plugin_dir_url(__FILE__) . '../assets/popup-widget.js',
    14             array('jquery'),
    15             '1.0.0',
    16             true
    17         );
    18         $post_id = get_the_ID();
     5if (!defined('ABSPATH')) exit;
    196
    20         if ($post_id) {
    21             $dynamic_config = array(
    22                 'showOnLoad' => get_post_meta($post_id, '_elementor_popup_show_on_load', true) ?: 'no',
    23                 'delay' => (int) get_post_meta($post_id, '_elementor_popup_delay', true) ?: 0,
    24                 'showOnScroll' => get_post_meta($post_id, '_elementor_popup_show_on_scroll', true) === 'yes',
    25                 'scrollPercentage' => (int) (get_post_meta($post_id, '_elementor_popup_scroll_percentage', true) ?: 50),
    26                 'exitIntent' => get_post_meta($post_id, '_elementor_popup_exit_intent', true) === 'yes',
    27                 'cookieName' => 'popup_seen',
    28                 'cookieExpiry' => 7
     7if ( ! function_exists( 'popup_for_elementor_register_assets' ) ) {
     8    function popup_for_elementor_register_assets() {
     9        if (!is_admin()) {
     10            wp_register_script(
     11                'popup-widget-js',
     12                plugin_dir_url(__FILE__) . '../assets/popup-widget.js',
     13                array('jquery'),
     14                '1.0.0',
     15                true
    2916            );
    30             wp_localize_script(
    31                 'popup-widget-js',
    32                 'PopupForElementorConfig',
    33                 $dynamic_config
    34             );
     17
     18            $post_id = get_the_ID();
     19
     20            if ($post_id) {
     21                $dynamic_config = array(
     22                    'showOnLoad'            => get_post_meta($post_id, '_elementor_popup_show_on_load', true) ?: 'no',
     23                    'delay'                 => (int) get_post_meta($post_id, '_elementor_popup_delay', true) ?: 0,
     24                    'showOnScroll'          => get_post_meta($post_id, '_elementor_popup_show_on_scroll', true) === 'yes',
     25                    'scrollPercentage'      => (int) (get_post_meta($post_id, '_elementor_popup_scroll_percentage', true) ?: 50),
     26                    'exitIntent'            => get_post_meta($post_id, '_elementor_popup_exit_intent', true) === 'yes',
     27                    'exitIntentDisplayMode' => get_post_meta($post_id, '_elementor_exit_intent_display_mode', true) ?: 'always',
     28                    'cookieName'            => 'popup_seen',
     29                    'cookieExpiry'          => 7,
     30                    'triggerBySelector'     => get_post_meta($post_id, '_elementor_trigger_selector_enabled', true) === 'yes',
     31                    'triggerSelector'       => get_post_meta($post_id, '_elementor_trigger_selector', true) ?: '',
     32                );
     33
     34                wp_localize_script('popup-widget-js','PopupForElementorConfig',$dynamic_config);
     35            }
     36
     37            wp_enqueue_script('popup-widget-js');
    3538        }
    36         wp_enqueue_script('popup-widget-js');
    3739    }
    3840}
     41
    3942add_action('wp_enqueue_scripts', 'popup_for_elementor_register_assets');
    4043
     
    4346    wp_deregister_script('popup-widget-js');
    4447}, PHP_INT_MAX);
    45 
  • popup-for-elementor/trunk/popup-for-elementor.php

    r3380762 r3382610  
    44 * Plugin URI: https://www.popupforelementor.com
    55 * Description: Create powerful, fully customizable popups directly in Elementor Free — includes click, delay, load, and exit-intent triggers, animations, and smart visibility controls to boost user engagement.
    6  * Version: 1.5.8
     6 * Version: 1.5.9
    77 * Author: Veelo
    88 * Author URI: https://www.veelo.es
  • popup-for-elementor/trunk/readme.txt

    r3380762 r3382610  
    11=== Popup for Elementor === 
    22Contributors: veelo 
    3 Tags: popup, elementor, modal, wordpress popup, elementor free, popup maker, popup builder, modal window 
     3Tags: popup, elementor, modal, wordpress popup 
    44Requires at least: 5.8 
    55Tested up to: 6.8.3 
    66Requires PHP: 7.4 
    7 Stable tag: 1.5.8 
     7Stable tag: 1.5.9 
    88License: GPLv2 or later 
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html 
     
    9797== Changelog ==
    9898
     99= 1.5.9 = 
     100* **Fix:** Prevented rare fatal error caused by multiple declarations of `popup_for_elementor_register_assets()` on some setups. 
     101* **Improved:** Script registration now fully guarded and compatible with all caching and optimization plugins. 
     102* **Update:** Safe loading logic added to avoid duplicate includes. 
     103
    99104= 1.5.8 = 
    100105* **New:** Added **Click Trigger** to the free version (previously Pro only). 
     
    128133== Upgrade Notice ==
    129134
    130 = 1.5.8
    131 🚀 Major update! Adds **Click Trigger** to the free version, improves Exit Intent detection, and enhances “Show only once” cookie logic
    132 Recommended update for all users.
     135= 1.5.9
     136🛠️ Fixes a rare **fatal error** that could occur when scripts were loaded twice
     137Highly recommended update for all users to ensure full compatibility and stability.
Note: See TracChangeset for help on using the changeset viewer.