Popup Builder – Responsive WordPress Pop up - Version 4.1.7

Version Description

Download this release

Release Info

Developer Sygnoos
Plugin Icon 128x128 Popup Builder – Responsive WordPress Pop up
Version 4.1.7
Comparing to
See all releases

Code changes from version 4.1.6 to 4.1.7

com/classes/Actions.php CHANGED
@@ -64,6 +64,7 @@ class Actions
64
  add_action('template_redirect', array($this, 'redirectFromPopupPage'));
65
  add_filter('views_edit-popupbuilder', array($this, 'mainActionButtons'), 10, 1);
66
  add_action('wpml_loaded', array($this, 'wpmlRelatedActions'));
 
67
 
68
  add_filter('get_user_option_screen_layout_'.SG_POPUP_POST_TYPE, array($this, 'screenLayoutSetOneColumn'));
69
  new SGPBFeedback();
@@ -497,9 +498,12 @@ class Actions
497
  {
498
  if (empty($this->mediaButton)) {
499
  $this->mediaButton = true;
500
- add_action('admin_footer', function() {
 
501
  self::enqueueScriptsForPageBuilders();
502
- echo wp_kses(new MediaButton(false), AdminHelper::allowed_html_tags());
 
 
503
  });
504
  }
505
 
@@ -1483,4 +1487,20 @@ class Actions
1483
 
1484
  wp_redirect(admin_url().'edit.php?post_type='.SG_POPUP_POST_TYPE.'&page='.SG_POPUP_SETTINGS_PAGE);
1485
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1486
  }
64
  add_action('template_redirect', array($this, 'redirectFromPopupPage'));
65
  add_filter('views_edit-popupbuilder', array($this, 'mainActionButtons'), 10, 1);
66
  add_action('wpml_loaded', array($this, 'wpmlRelatedActions'));
67
+ add_action('the_post', array($this, 'postExcludeFromPopupsList'));
68
 
69
  add_filter('get_user_option_screen_layout_'.SG_POPUP_POST_TYPE, array($this, 'screenLayoutSetOneColumn'));
70
  new SGPBFeedback();
498
  {
499
  if (empty($this->mediaButton)) {
500
  $this->mediaButton = true;
501
+ $currentPostType = AdminHelper::getCurrentPostType();
502
+ add_action('admin_footer', function() use ($currentPostType) {
503
  self::enqueueScriptsForPageBuilders();
504
+ if (!empty($currentPostType) && $currentPostType == SG_POPUP_POST_TYPE) {
505
+ require_once(SG_POPUP_VIEWS_PATH.'htmlCustomButtonElement.php');
506
+ }
507
  });
508
  }
509
 
1487
 
1488
  wp_redirect(admin_url().'edit.php?post_type='.SG_POPUP_POST_TYPE.'&page='.SG_POPUP_SETTINGS_PAGE);
1489
  }
1490
+
1491
+ /*
1492
+ * this method will add a filter to exclude the current post from popup list
1493
+ * which have a post_type=popupbuilder and it is on post edit page
1494
+ * */
1495
+ public function postExcludeFromPopupsList(){
1496
+ global $pagenow;
1497
+ if ( isset($pagenow) && $pagenow === 'post.php') {
1498
+ if (get_post_type() === SG_POPUP_POST_TYPE){
1499
+ add_filter('sgpb_exclude_from_popups_list', function($excludedPopups) {
1500
+ array_push($excludedPopups, get_the_ID());
1501
+ return $excludedPopups;
1502
+ });
1503
+ }
1504
+ }
1505
+ }
1506
  }
com/classes/ConditionCreator.php CHANGED
@@ -583,7 +583,7 @@ class ConditionCreator
583
  </div>
584
  <?php if (!empty($hiddenOptionsView)): ?>
585
  <div class="col-md-4">
586
- <?php echo wp_kses($hiddenOptionsView, 'post'); ?>
587
  </div>
588
  <?php endif; ?>
589
  </div>
583
  </div>
584
  <?php if (!empty($hiddenOptionsView)): ?>
585
  <div class="col-md-4">
586
+ <?php echo wp_kses($hiddenOptionsView, AdminHelper::allowed_html_tags()); ?>
587
  </div>
588
  <?php endif; ?>
589
  </div>
com/classes/Filters.php CHANGED
@@ -768,6 +768,11 @@ class Filters
768
  if (function_exists('do_blocks')) {
769
  $content = do_blocks($content);
770
  }
 
 
 
 
 
771
 
772
  return do_shortcode($content);
773
  }
768
  if (function_exists('do_blocks')) {
769
  $content = do_blocks($content);
770
  }
771
+ // check if inside the popup included the same popup! this will prevent from the infinite loop of nested popups doing shortcode
772
+ preg_match_all('/\[sg_popup.*?id="'.$popupId.'".*?\[\/sg_popup\]/', $content, $matches1);
773
+ if (has_shortcode( $content, 'sg_popup' ) && (!empty($matches1) &&!empty($matches1[0]))){
774
+ return $content;
775
+ }
776
 
777
  return do_shortcode($content);
778
  }
com/classes/components/Menu.php CHANGED
@@ -48,6 +48,9 @@ class SGPBMenu
48
  */
49
  public function addPopupTriggeringClass($classes, $menuItem)
50
  {
 
 
 
51
  $popupId = $menuItem->sgpbPopupId;
52
  if ($popupId && !in_array('sg-popup-id-'.$popupId, $classes)) {
53
  array_push($classes, 'sg-popup-id-'.$popupId);
48
  */
49
  public function addPopupTriggeringClass($classes, $menuItem)
50
  {
51
+ if (!isset($menuItem->sgpbPopupId)) {
52
+ return $classes;
53
+ }
54
  $popupId = $menuItem->sgpbPopupId;
55
  if ($popupId && !in_array('sg-popup-id-'.$popupId, $classes)) {
56
  array_push($classes, 'sg-popup-id-'.$popupId);
com/classes/dataTable/Subscribers.php CHANGED
@@ -161,7 +161,8 @@ class Subscribers extends SGPBTable
161
  $gotDateList .= '<option value="'.$date['date-value'].'"'.$selected.'>'.$date['date-title'].'</option>';
162
  }
163
  if (empty($subscribersDates)) {
164
- $gotDateList = '<option value="'.@$date['date-value'].'"'.$selected.'>'.__('Date', SG_POPUP_TEXT_DOMAIN).'</option>';
 
165
  }
166
  echo wp_kses($dateList.$gotDateList, $allowed_html);
167
  ?>
161
  $gotDateList .= '<option value="'.$date['date-value'].'"'.$selected.'>'.$date['date-title'].'</option>';
162
  }
163
  if (empty($subscribersDates)) {
164
+ $dateValue = isset($date) && isset($date['date-value']) ? $date['date-value'] : '';
165
+ $gotDateList = '<option value="'.$dateValue.'"'.$selected.'>'.__('Date', SG_POPUP_TEXT_DOMAIN).'</option>';
166
  }
167
  echo wp_kses($dateList.$gotDateList, $allowed_html);
168
  ?>
com/config/configPackage.php CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
3
  exit();
4
  }
5
 
6
- define('SG_POPUP_VERSION', '4.1.6');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
3
  exit();
4
  }
5
 
6
+ define('SG_POPUP_VERSION', '4.1.7');
7
  define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
8
  define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
com/helpers/AdminHelper.php CHANGED
@@ -171,8 +171,7 @@ class AdminHelper
171
  {
172
  $attrString = '';
173
  $savedData = $data;
174
-
175
- if (isset($selectedValue)) {
176
  $savedData = $selectedValue;
177
  }
178
  if (empty($savedData)) {
@@ -1245,6 +1244,7 @@ class AdminHelper
1245
  {
1246
  $allPopups = SGPopup::getAllPopups();
1247
  $popupIdTitles = array();
 
1248
 
1249
  if (empty($allPopups)) {
1250
  return $popupIdTitles;
171
  {
172
  $attrString = '';
173
  $savedData = $data;
174
+ if (isset($selectedValue) && $selectedValue !== '') {
 
175
  $savedData = $selectedValue;
176
  }
177
  if (empty($savedData)) {
1244
  {
1245
  $allPopups = SGPopup::getAllPopups();
1246
  $popupIdTitles = array();
1247
+ $excludesPopups = apply_filters('sgpb_exclude_from_popups_list', $excludesPopups);
1248
 
1249
  if (empty($allPopups)) {
1250
  return $popupIdTitles;
com/helpers/ConfigDataHelper.php CHANGED
@@ -606,13 +606,13 @@ class ConfigDataHelper
606
  );
607
 
608
  $data['weekDaysArray'] = array(
609
- 'Mon' => __('Monday', SG_POPUP_TEXT_DOMAIN),
610
- 'Tue' => __('Tuesday', SG_POPUP_TEXT_DOMAIN),
611
- 'Wed' => __('Wednesday', SG_POPUP_TEXT_DOMAIN),
612
- 'Thu' => __('Thursday', SG_POPUP_TEXT_DOMAIN),
613
- 'Fri' => __('Friday', SG_POPUP_TEXT_DOMAIN),
614
- 'Sat' => __('Saturday', SG_POPUP_TEXT_DOMAIN),
615
- 'Sun' => __('Sunday', SG_POPUP_TEXT_DOMAIN)
616
  );
617
 
618
  $data['messageResize'] = array(
@@ -1234,6 +1234,7 @@ class ConfigDataHelper
1234
  {
1235
  $translatedData = array(
1236
  'imageSupportAlertMessage' => __('Only image files supported', SG_POPUP_TEXT_DOMAIN),
 
1237
  'areYouSure' => __('Are you sure?', SG_POPUP_TEXT_DOMAIN),
1238
  'addButtonSpinner' => __('L', SG_POPUP_TEXT_DOMAIN),
1239
  'audioSupportAlertMessage' => __('Only audio files supported (e.g.: mp3, wav, m4a, ogg)', SG_POPUP_TEXT_DOMAIN),
606
  );
607
 
608
  $data['weekDaysArray'] = array(
609
+ 'Mon' => __('Monday'),
610
+ 'Tue' => __('Tuesday'),
611
+ 'Wed' => __('Wednesday'),
612
+ 'Thu' => __('Thursday'),
613
+ 'Fri' => __('Friday'),
614
+ 'Sat' => __('Saturday'),
615
+ 'Sun' => __('Sunday')
616
  );
617
 
618
  $data['messageResize'] = array(
1234
  {
1235
  $translatedData = array(
1236
  'imageSupportAlertMessage' => __('Only image files supported', SG_POPUP_TEXT_DOMAIN),
1237
+ 'pdfSupportAlertMessage' => __('Only pdf files supported', SG_POPUP_TEXT_DOMAIN),
1238
  'areYouSure' => __('Are you sure?', SG_POPUP_TEXT_DOMAIN),
1239
  'addButtonSpinner' => __('L', SG_POPUP_TEXT_DOMAIN),
1240
  'audioSupportAlertMessage' => __('Only audio files supported (e.g.: mp3, wav, m4a, ogg)', SG_POPUP_TEXT_DOMAIN),
com/libs/Table.php CHANGED
@@ -120,8 +120,12 @@ class SGPBTable extends SGPBListTable
120
  if (!empty($orderby) && !empty($order)) {
121
  $query .= ' ORDER BY '.$orderby.' '.$order;
122
  }
123
-
124
- $paged = isset($_GET["paged"]) ? (int)sanitize_text_field($_GET["paged"]) : '';
 
 
 
 
125
 
126
  if (empty($paged) || !is_numeric($paged) || $paged <= 0) {
127
  $paged = 1;
@@ -133,12 +137,6 @@ class SGPBTable extends SGPBListTable
133
  $query .= ' LIMIT '.(int)$offset.','.(int)$perPage;
134
  }
135
 
136
- $this->set_pagination_args(array(
137
- "total_items" => $totalItems,
138
- "total_pages" => $totalPages,
139
- "per_page" => $perPage,
140
- ));
141
-
142
  $columns = $this->get_columns();
143
  $hidden = array();
144
  $sortable = $this->get_sortable_columns();
120
  if (!empty($orderby) && !empty($order)) {
121
  $query .= ' ORDER BY '.$orderby.' '.$order;
122
  }
123
+ $this->set_pagination_args(array(
124
+ "total_items" => $totalItems,
125
+ "total_pages" => $totalPages,
126
+ "per_page" => $perPage,
127
+ ));
128
+ $paged = $this->get_pagenum();
129
 
130
  if (empty($paged) || !is_numeric($paged) || $paged <= 0) {
131
  $paged = 1;
137
  $query .= ' LIMIT '.(int)$offset.','.(int)$perPage;
138
  }
139
 
 
 
 
 
 
 
140
  $columns = $this->get_columns();
141
  $hidden = array();
142
  $sortable = $this->get_sortable_columns();
popup-builder.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Popup Builder
4
  * Plugin URI: https://popup-builder.com
5
  * Description: The most complete popup plugin. Html, image, iframe, shortcode, video and many other popup types. Manage popup dimensions, effects, themes and more.
6
- * Version: 4.1.6
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
3
  * Plugin Name: Popup Builder
4
  * Plugin URI: https://popup-builder.com
5
  * Description: The most complete popup plugin. Html, image, iframe, shortcode, video and many other popup types. Manage popup dimensions, effects, themes and more.
6
+ * Version: 4.1.7
7
  * Author: Sygnoos
8
  * Author URI: https://sygnoos.com
9
  * License: GPLv2
public/css/ResetFormStyle.css CHANGED
@@ -14,5 +14,5 @@ textarea{vertical-align:top;overflow:auto}.sgpb-form-wrapper select[multiple]{ve
14
  .sgpb-form-wrapper input[type="submit"],
15
  .sgpb-form-wrapper input[type="button"]{max-width:100% !important;padding:0
16
  10px !important;box-sizing:border-box;font-size:14px !important;box-shadow:none !important;margin:5px
17
- auto !important;display:inline-block !important;font-weight:bold !important;background-image:none !important;line-height:normal !important}.sgpb-form-wrapper input[type="submit"],
18
  .sgpb-form-wrapper input[type="button"]{line-height:0.4 !important;font-size:18px !important}.sgpb-js-hide{display:none}
14
  .sgpb-form-wrapper input[type="submit"],
15
  .sgpb-form-wrapper input[type="button"]{max-width:100% !important;padding:0
16
  10px !important;box-sizing:border-box;font-size:14px !important;box-shadow:none !important;margin:5px
17
+ auto;display:inline-block !important;font-weight:bold !important;background-image:none !important;line-height:normal !important}.sgpb-form-wrapper input[type="submit"],
18
  .sgpb-form-wrapper input[type="button"]{line-height:0.4 !important;font-size:18px !important}.sgpb-js-hide{display:none}
public/css/SubscriptionForm.css CHANGED
@@ -3,7 +3,7 @@
3
  textarea{padding:inherit!important;border:1px
4
  solid #ccc;margin-bottom:10px;width:100%;box-sizing:border-box;font-family:Arial;color:#2C3E50;font-size:13px}.sgpb-form-wrapper .sgpb-field-textarea-wrapper,
5
  .sgpb-form-wrapper .sgpb-field-dropdown-wrapper{margin:5px
6
- auto !important}.sgpb-form-wrapper input[type="submit"],
7
  .sgpb-form-wrapper input[type="button"]{cursor:pointer}.sgpb-form-wrapper input[type="submit"]:hover{filter:brightness(90%);-ms-filter:brightness(90%)}.sgpb-form-wrapper{text-align:center}.sgpb-subscription-form
8
  label.error{text-align:inherit;color:red;display:block;margin:5px
9
  0}.sgpb-form-wrapper input[type="text"],
3
  textarea{padding:inherit!important;border:1px
4
  solid #ccc;margin-bottom:10px;width:100%;box-sizing:border-box;font-family:Arial;color:#2C3E50;font-size:13px}.sgpb-form-wrapper .sgpb-field-textarea-wrapper,
5
  .sgpb-form-wrapper .sgpb-field-dropdown-wrapper{margin:5px
6
+ auto}.sgpb-form-wrapper input[type="submit"],
7
  .sgpb-form-wrapper input[type="button"]{cursor:pointer}.sgpb-form-wrapper input[type="submit"]:hover{filter:brightness(90%);-ms-filter:brightness(90%)}.sgpb-form-wrapper{text-align:center}.sgpb-subscription-form
8
  label.error{text-align:inherit;color:red;display:block;margin:5px
9
  0}.sgpb-form-wrapper input[type="text"],
public/js/Backend.js CHANGED
@@ -14,7 +14,7 @@ SGPBBackend.prototype.changeTab=function(tab)
14
  jQuery('.sgpb-download-system-info').bind('click',function(){window.location.href=SGPB_JS_PARAMS.postUrl+'?action=sgpb_system_info';});};SGPBBackend.prototype.popupBuilderButton=function()
15
  {var that=this;jQuery(document).on('tinymce-editor-setup',function(event,editor){if('sgpb-newsletter-text'===editor.settings.id){return;}
16
  if(editor.settings.toolbar1.indexOf('popupBuilderHtmlButton')!==-1){return;}
17
- editor.settings.toolbar1+=', popupBuilderHtmlButton';editor.addButton('popupBuilderHtmlButton',{text:'Popup Builder Button',tooltip:'Popup Builder Custom HTML Button',icon:'wp-menu-image dashicons-before dashicons-menu-icon-sgpb-button',onclick:function(){that.mediaButtonPopup('sgpb-custom-button-wrapper');}});});};SGPBBackend.popups=[];SGPBBackend.prototype.mediaButtonPopup=function(hiddenDivId)
18
  {var select2Init=1;var that=this;var popupConfigObj=new PopupConfig();popupConfigObj.magicCall('setContentPadding',14);popupConfigObj.magicCall('setContentBorderRadius',4);popupConfigObj.magicCall('setContentBorderRadiusType','px');popupConfigObj.magicCall('setScrollingEnabled',true);popupConfigObj.magicCall('setContentBorderWidth',5);popupConfigObj.magicCall('setContentBorderColor','#506274');popupConfigObj.magicCall('setShadowSpread',1);popupConfigObj.magicCall('setContentShadowBlur',4);popupConfigObj.magicCall('setContentShadowColor','#cccccc');popupConfigObj.magicCall('setMinWidth',400);popupConfigObj.magicCall('contents',document.getElementById(hiddenDivId));popupConfigObj.magicCall('setOverlayColor','black');popupConfigObj.magicCall('setOverlayOpacity',40);var config=popupConfigObj.combineConfigObj();var popup=new SGPopup(config);if(!SGPBBackend.popups.length){SGPBBackend.popups.push(popup);}
19
  SGPBBackend.popups[0].open();jQuery(window).bind('sgpbDidOpen',function(){jQuery('.sgpb-insert-popup').addClass('js-sg-select2');if(select2Init===1){that.popupSelect2();}
20
  select2Init++;jQuery('.select2-container--below').remove();that.popupSelect2();that.customButtonColorPicker();if(mediaButtonParams.currentPostType!==mediaButtonParams.popupBuilderPostType){that.customButtonColorPicker();jQuery('.sgpb-custom-button-popup').addClass('js-sg-select2');if(select2Init===1){that.popupSelect2();}
14
  jQuery('.sgpb-download-system-info').bind('click',function(){window.location.href=SGPB_JS_PARAMS.postUrl+'?action=sgpb_system_info';});};SGPBBackend.prototype.popupBuilderButton=function()
15
  {var that=this;jQuery(document).on('tinymce-editor-setup',function(event,editor){if('sgpb-newsletter-text'===editor.settings.id){return;}
16
  if(editor.settings.toolbar1.indexOf('popupBuilderHtmlButton')!==-1){return;}
17
+ editor.settings.toolbar1+=', popupBuilderHtmlButton';editor.addButton('popupBuilderHtmlButton',{text:'Popup Builder Button',tooltip:'Popup Builder Custom HTML Button',image:sgpbPublicUrl+'img/sgpbLogo.png',onclick:function(){that.mediaButtonPopup('sgpb-custom-button-wrapper');}});});};SGPBBackend.popups=[];SGPBBackend.prototype.mediaButtonPopup=function(hiddenDivId)
18
  {var select2Init=1;var that=this;var popupConfigObj=new PopupConfig();popupConfigObj.magicCall('setContentPadding',14);popupConfigObj.magicCall('setContentBorderRadius',4);popupConfigObj.magicCall('setContentBorderRadiusType','px');popupConfigObj.magicCall('setScrollingEnabled',true);popupConfigObj.magicCall('setContentBorderWidth',5);popupConfigObj.magicCall('setContentBorderColor','#506274');popupConfigObj.magicCall('setShadowSpread',1);popupConfigObj.magicCall('setContentShadowBlur',4);popupConfigObj.magicCall('setContentShadowColor','#cccccc');popupConfigObj.magicCall('setMinWidth',400);popupConfigObj.magicCall('contents',document.getElementById(hiddenDivId));popupConfigObj.magicCall('setOverlayColor','black');popupConfigObj.magicCall('setOverlayOpacity',40);var config=popupConfigObj.combineConfigObj();var popup=new SGPopup(config);if(!SGPBBackend.popups.length){SGPBBackend.popups.push(popup);}
19
  SGPBBackend.popups[0].open();jQuery(window).bind('sgpbDidOpen',function(){jQuery('.sgpb-insert-popup').addClass('js-sg-select2');if(select2Init===1){that.popupSelect2();}
20
  select2Init++;jQuery('.select2-container--below').remove();that.popupSelect2();that.customButtonColorPicker();if(mediaButtonParams.currentPostType!==mediaButtonParams.popupBuilderPostType){that.customButtonColorPicker();jQuery('.sgpb-custom-button-popup').addClass('js-sg-select2');if(select2Init===1){that.popupSelect2();}
public/js/DebugReport.js CHANGED
@@ -39,7 +39,7 @@ function debugModeInit()
39
  }
40
  }
41
  if (i == 'options') {
42
- // all other options here
43
  for (var option in paramName[x]) {
44
  console.log('%c '+option+ ' - ' + paramName[x][option], 'background: #eeeeee; color: #000000');
45
  }
39
  }
40
  }
41
  if (i == 'options') {
42
+ /*all other options here*/
43
  for (var option in paramName[x]) {
44
  console.log('%c '+option+ ' - ' + paramName[x][option], 'background: #eeeeee; color: #000000');
45
  }
public/js/MediaButton.js CHANGED
@@ -1,6 +1,6 @@
1
  function SGPBMediaButton(){}
2
  SGPBMediaButton.prototype.init=function()
3
- {this.tinymceButton();this.openMediaButtonPopup();};SGPBMediaButton.prototype.tinymceButton=function()
4
  {var that=this;jQuery(document).on('tinymce-editor-setup',function(event,editor){if('sgpb-newsletter-text'===editor.settings.id){return;}
5
  if(editor.settings.toolbar1.indexOf('popupBuilderEditorButton')!==-1){return;}
6
  editor.settings.toolbar1+=', popupBuilderEditorButton';editor.addButton('popupBuilderEditorButton',{icon:'wp-menu-image dashicons-before dashicons-menu-icon-sgpb sgpb-tinymce-button',onclick:function(){that.mediaButtonPopup();}});});};SGPBMediaButton.prototype.openMediaButtonPopup=function()
1
  function SGPBMediaButton(){}
2
  SGPBMediaButton.prototype.init=function()
3
+ {this.openMediaButtonPopup();};SGPBMediaButton.prototype.tinymceButton=function()
4
  {var that=this;jQuery(document).on('tinymce-editor-setup',function(event,editor){if('sgpb-newsletter-text'===editor.settings.id){return;}
5
  if(editor.settings.toolbar1.indexOf('popupBuilderEditorButton')!==-1){return;}
6
  editor.settings.toolbar1+=', popupBuilderEditorButton';editor.addButton('popupBuilderEditorButton',{icon:'wp-menu-image dashicons-before dashicons-menu-icon-sgpb sgpb-tinymce-button',onclick:function(){that.mediaButtonPopup();}});});};SGPBMediaButton.prototype.openMediaButtonPopup=function()
public/js/Modals.js CHANGED
@@ -131,7 +131,7 @@ SGPBModals.prototype.modalContent = function (targetId, header = '', body = '',
131
  });
132
  };
133
 
134
- // this action is to pass already opened modal new content for each part of source code
135
  SGPBModals.prototype.changeModalContentAdvanced = function (modal, header = '', body = '', confirmBtn = '', oldTargetId, newTargetId)
136
  {
137
  if (!modal)
131
  });
132
  };
133
 
134
+ /*this action is to pass already opened modal new content for each part of source code*/
135
  SGPBModals.prototype.changeModalContentAdvanced = function (modal, header = '', body = '', confirmBtn = '', oldTargetId, newTargetId)
136
  {
137
  if (!modal)
readme.txt CHANGED
@@ -8,7 +8,7 @@ Tags: popup, pop up, wordpress popup, popup maker, exit popup, popup builder, wo
8
  Requires at least: 4.2
9
  Tested up to: 5.9
10
  Requires PHP: 5.3.3
11
- Stable tag: 4.1.6
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
@@ -146,6 +146,13 @@ Go to the Popup Builder settings and set your desired options.
146
 
147
  == Changelog ==
148
 
 
 
 
 
 
 
 
149
  = Version 4.1.6 =
150
  * Bug fixed related to draft popups that were not visible in trash
151
  * Bug fixed related to Popup Builder's button that was visible in Newsletter
@@ -530,4 +537,4 @@ Leave us a good review :)
530
 
531
  == Upgrade Notice ==
532
 
533
- Current Version of Popup Builder is 4.1.6
8
  Requires at least: 4.2
9
  Tested up to: 5.9
10
  Requires PHP: 5.3.3
11
+ Stable tag: 4.1.7
12
  License: GPLv2 or later
13
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
14
 
146
 
147
  == Changelog ==
148
 
149
+ = Version 4.1.7 =
150
+ * Improvement of Popup Builder button: the button has been added in Gutenberg editor
151
+ * Bug fixed related to typo related to translating menu items
152
+ * Bug fixed related to 502 error when popup is inserted with its shortcode in the same popup
153
+ * Bug fixed related to conflict with UberMenu plugin
154
+ * Bug fixed related to PHP errors in "All Subscribers" page
155
+
156
  = Version 4.1.6 =
157
  * Bug fixed related to draft popups that were not visible in trash
158
  * Bug fixed related to Popup Builder's button that was visible in Newsletter
537
 
538
  == Upgrade Notice ==
539
 
540
+ Current Version of Popup Builder is 4.1.7