PopBox For Elementor - Version 1.0.5

Version Description

  • FIX: PHP Error of undefined variable $close
Download this release

Release Info

Developer norewp
Plugin Icon wp plugin PopBox For Elementor
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

Files changed (3) hide show
  1. modal-for-elementor.php +2 -2
  2. readme.txt +4 -1
  3. widgets/popup.php +5 -6
modal-for-elementor.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: PopBox For Elementor
4
  * Description: Create content-rich popboxes for your site using the power of Elementor Page Builder
5
- * Version: 1.0.4
6
  * Author: Zulfikar Nore
7
  * Author URI: https://designsbynore.com/
8
  * Plugin URI: https://designsbynore.com/popups/popbox/
@@ -12,7 +12,7 @@
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
 
15
- define( 'MODAL_ELEMENTOR_VERSION', '1.0.4' );
16
 
17
  define( 'MODAL_ELEMENTOR__FILE__', __FILE__ );
18
  define( 'MODAL_ELEMENTOR_PLUGIN_BASE', plugin_basename( MODAL_ELEMENTOR__FILE__ ) );
2
  /**
3
  * Plugin Name: PopBox For Elementor
4
  * Description: Create content-rich popboxes for your site using the power of Elementor Page Builder
5
+ * Version: 1.0.5
6
  * Author: Zulfikar Nore
7
  * Author URI: https://designsbynore.com/
8
  * Plugin URI: https://designsbynore.com/popups/popbox/
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
 
15
+ define( 'MODAL_ELEMENTOR_VERSION', '1.0.5' );
16
 
17
  define( 'MODAL_ELEMENTOR__FILE__', __FILE__ );
18
  define( 'MODAL_ELEMENTOR_PLUGIN_BASE', plugin_basename( MODAL_ELEMENTOR__FILE__ ) );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/NoreMarketing/5
4
  Tags: PopBox, Modal, Popup, Elementor
5
  Requires at least: 4.4
6
  Tested up to: 4.9
7
- Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -32,6 +32,9 @@ Brief video on setup (Sorry for the lack of sound): https://youtu.be/M3B9aLLTXKY
32
  Go to settings > permalinks and click save. (you need to do that in order to register the popup post types.)
33
 
34
  == Changelog ==
 
 
 
35
  = 1.0.4 =
36
  * NEW: Added controls for close button text.
37
  * TWEAK: Elevated PopBox's z-index when modal is open.
4
  Tags: PopBox, Modal, Popup, Elementor
5
  Requires at least: 4.4
6
  Tested up to: 4.9
7
+ Stable tag: 1.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
32
  Go to settings > permalinks and click save. (you need to do that in order to register the popup post types.)
33
 
34
  == Changelog ==
35
+ = 1.0.5 =
36
+ * FIX: PHP Error of undefined variable $close
37
+
38
  = 1.0.4 =
39
  * NEW: Added controls for close button text.
40
  * TWEAK: Elevated PopBox's z-index when modal is open.
widgets/popup.php CHANGED
@@ -277,8 +277,9 @@ class ElementorModal extends Widget_Base {
277
  [
278
  'label' => __( 'Close Text', 'modal-for-elementor' ),
279
  'type' => Controls_Manager::TEXT,
280
- 'placeholder' => __( 'Close', 'modal-for-elementor' ),
281
- 'description' => __( 'Add call to action i.e "Close" before the popup close X', 'modal-for-elementor' ),
 
282
  ]
283
  );
284
 
@@ -650,7 +651,7 @@ class ElementorModal extends Widget_Base {
650
  }
651
  protected function render() {
652
  $settings = $this->get_settings();
653
-
654
  $selectedPopup = new WP_Query( array( 'p' => $settings['popup'], 'post_type' => 'elementor-popup' ) );
655
  if ( $selectedPopup->have_posts() ) {
656
 
@@ -670,9 +671,7 @@ class ElementorModal extends Widget_Base {
670
  if ( ! empty( $selectedPopup->post->ID ) ) {
671
  $this->add_render_attribute( 'button', 'data-target', '#popup-' . esc_attr($selectedPopup->post->ID) );
672
  }
673
- if ( ! empty( $settings['close_text'] ) ) {
674
- $close = $settings['close_text'];
675
- }
676
  $this->add_render_attribute( 'button', 'class', 'modal-popup' );
677
  $this->add_render_attribute( 'content-wrapper', 'class', 'elementor-button-content-wrapper' );
678
  $this->add_render_attribute( 'icon-align', 'class', 'elementor-align-icon-' . $settings['icon_align'] );
277
  [
278
  'label' => __( 'Close Text', 'modal-for-elementor' ),
279
  'type' => Controls_Manager::TEXT,
280
+ 'placeholder' => __( 'Close', 'modal-for-elementor' ),
281
+ 'default' => '',
282
+ 'description' => __( 'Add call to action i.e "Close" before the popup close X', 'modal-for-elementor' ),
283
  ]
284
  );
285
 
651
  }
652
  protected function render() {
653
  $settings = $this->get_settings();
654
+ $close = $settings['close_text'];
655
  $selectedPopup = new WP_Query( array( 'p' => $settings['popup'], 'post_type' => 'elementor-popup' ) );
656
  if ( $selectedPopup->have_posts() ) {
657
 
671
  if ( ! empty( $selectedPopup->post->ID ) ) {
672
  $this->add_render_attribute( 'button', 'data-target', '#popup-' . esc_attr($selectedPopup->post->ID) );
673
  }
674
+
 
 
675
  $this->add_render_attribute( 'button', 'class', 'modal-popup' );
676
  $this->add_render_attribute( 'content-wrapper', 'class', 'elementor-button-content-wrapper' );
677
  $this->add_render_attribute( 'icon-align', 'class', 'elementor-align-icon-' . $settings['icon_align'] );