Changeset 3382610
- Timestamp:
- 10/22/2025 12:52:11 PM (4 months ago)
- Location:
- popup-for-elementor
- Files:
-
- 6 edited
- 1 copied
-
tags/1.5.9 (copied) (copied from popup-for-elementor/trunk)
-
tags/1.5.9/includes/popup-handler.php (modified) (2 diffs)
-
tags/1.5.9/popup-for-elementor.php (modified) (1 diff)
-
tags/1.5.9/readme.txt (modified) (3 diffs)
-
trunk/includes/popup-handler.php (modified) (2 diffs)
-
trunk/popup-for-elementor.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
popup-for-elementor/tags/1.5.9/includes/popup-handler.php
r3300275 r3382610 3 3 // Dynamically passes configuration from Elementor controls to the JavaScript. 4 4 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(); 5 if (!defined('ABSPATH')) exit; 19 6 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' => 77 if ( ! 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 29 16 ); 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'); 35 38 } 36 wp_enqueue_script('popup-widget-js');37 39 } 38 40 } 41 39 42 add_action('wp_enqueue_scripts', 'popup_for_elementor_register_assets'); 40 43 … … 43 46 wp_deregister_script('popup-widget-js'); 44 47 }, PHP_INT_MAX); 45 -
popup-for-elementor/tags/1.5.9/popup-for-elementor.php
r3380762 r3382610 4 4 * Plugin URI: https://www.popupforelementor.com 5 5 * 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. 86 * Version: 1.5.9 7 7 * Author: Veelo 8 8 * Author URI: https://www.veelo.es -
popup-for-elementor/tags/1.5.9/readme.txt
r3380762 r3382610 1 1 === Popup for Elementor === 2 2 Contributors: veelo 3 Tags: popup, elementor, modal, wordpress popup , elementor free, popup maker, popup builder, modal window3 Tags: popup, elementor, modal, wordpress popup 4 4 Requires at least: 5.8 5 5 Tested up to: 6.8.3 6 6 Requires PHP: 7.4 7 Stable tag: 1.5. 87 Stable tag: 1.5.9 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 97 97 == Changelog == 98 98 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 99 104 = 1.5.8 = 100 105 * **New:** Added **Click Trigger** to the free version (previously Pro only). … … 128 133 == Upgrade Notice == 129 134 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. 137 Highly recommended update for all users to ensure full compatibility and stability. -
popup-for-elementor/trunk/includes/popup-handler.php
r3300275 r3382610 3 3 // Dynamically passes configuration from Elementor controls to the JavaScript. 4 4 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(); 5 if (!defined('ABSPATH')) exit; 19 6 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' => 77 if ( ! 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 29 16 ); 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'); 35 38 } 36 wp_enqueue_script('popup-widget-js');37 39 } 38 40 } 41 39 42 add_action('wp_enqueue_scripts', 'popup_for_elementor_register_assets'); 40 43 … … 43 46 wp_deregister_script('popup-widget-js'); 44 47 }, PHP_INT_MAX); 45 -
popup-for-elementor/trunk/popup-for-elementor.php
r3380762 r3382610 4 4 * Plugin URI: https://www.popupforelementor.com 5 5 * 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. 86 * Version: 1.5.9 7 7 * Author: Veelo 8 8 * Author URI: https://www.veelo.es -
popup-for-elementor/trunk/readme.txt
r3380762 r3382610 1 1 === Popup for Elementor === 2 2 Contributors: veelo 3 Tags: popup, elementor, modal, wordpress popup , elementor free, popup maker, popup builder, modal window3 Tags: popup, elementor, modal, wordpress popup 4 4 Requires at least: 5.8 5 5 Tested up to: 6.8.3 6 6 Requires PHP: 7.4 7 Stable tag: 1.5. 87 Stable tag: 1.5.9 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 97 97 == Changelog == 98 98 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 99 104 = 1.5.8 = 100 105 * **New:** Added **Click Trigger** to the free version (previously Pro only). … … 128 133 == Upgrade Notice == 129 134 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. 137 Highly recommended update for all users to ensure full compatibility and stability.
Note: See TracChangeset
for help on using the changeset viewer.