Popup Builder – Responsive WordPress Pop up - Version 2.2.1

Version Description

Download this release

Release Info

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

Code changes from version 2.2.0 to 2.2.1

files/sg_functions.php CHANGED
@@ -11,6 +11,24 @@ class SGFunctions
11
  echo $sgInfo;
12
  }
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  public static function noticeForShortcode() {
16
  $notice = '<span class="shortcode-use-info">NOTE: Shortcodes doesn\'t work inside the HTML Popup. Please use <a href="<?php echo SG_APP_POPUP_ADMIN_URL?>admin.php?page=edit-popup&type=shortcode">Shortcode Popup</a> instead.</span>';
11
  echo $sgInfo;
12
  }
13
 
14
+ public static function addReview() {
15
+ return '<div class="updated updated notice is-dismissible reviewPanel sg-review-panel">
16
+ <div class="reviewPanelContent">
17
+ <span class="reviewPanelSpan">
18
+ Dear user, we always do our best to help you and your opinion is very important for us!
19
+ </span></br>
20
+ <span class="reviewPanelSpan">
21
+ So if you liked our <b>Social Media Plugin</b> and if our support was helpful for you, we\'ll be thankful if you go ahead and leave a review.
22
+ </span>
23
+ <span class="reviewPanelSpan">
24
+ Please <a class="reviewPanelHref" href="https://wordpress.org/support/view/plugin-reviews/popup-builder?filter=5" target=\"_blank\">rate it 5 stars.</a>
25
+ </span>
26
+ </div>
27
+ <span class="reviewPanelClose">Dont show again</span>
28
+ <button type="button" class="notice-dismiss closeButton"></button>
29
+ </div>';
30
+ }
31
+
32
 
33
  public static function noticeForShortcode() {
34
  $notice = '<span class="shortcode-use-info">NOTE: Shortcodes doesn\'t work inside the HTML Popup. Please use <a href="<?php echo SG_APP_POPUP_ADMIN_URL?>admin.php?page=edit-popup&type=shortcode">Shortcode Popup</a> instead.</span>';
files/sg_popup_ajax.php CHANGED
@@ -96,3 +96,8 @@ function sgImportPopups() {
96
  }
97
 
98
  add_action('wp_ajax_import_popups', 'sgImportPopups');
 
 
 
 
 
96
  }
97
 
98
  add_action('wp_ajax_import_popups', 'sgImportPopups');
99
+
100
+ function sgCloseReviewPanel() {
101
+ update_option('SG_COLOSE_REVIEW_BLOCK', true);
102
+ }
103
+ add_action('wp_ajax_close_review_panel', 'sgCloseReviewPanel');
files/sg_popup_create.php CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  <h2>Add New Popup</h2>
2
  <div class="popups-wrapper">
3
  <a class="create-popup-link" href="<?php echo SG_APP_POPUP_ADMIN_URL?>admin.php?page=edit-popup&type=image">
1
+ <?php
2
+ $getReview = get_option("SG_COLOSE_REVIEW_BLOCK");
3
+ if(!$getReview) {
4
+ echo SGFunctions::addReview();
5
+ }
6
+ ?>
7
  <h2>Add New Popup</h2>
8
  <div class="popups-wrapper">
9
  <a class="create-popup-link" href="<?php echo SG_APP_POPUP_ADMIN_URL?>admin.php?page=edit-popup&type=image">
files/sg_popup_create_new.php CHANGED
@@ -772,6 +772,11 @@
772
 
773
  }
774
 
 
 
 
 
 
775
  if (isset($_GET['saved']) && $_GET['saved']==1) {
776
  echo '<div id="default-message" class="updated notice notice-success is-dismissible" ><p>Popup updated.</p></div>';
777
  }
@@ -780,6 +785,8 @@
780
  <p>Invalid Title</p>
781
  </div>
782
  <?php endif; ?>
 
 
783
  <form method="POST" action="<?php echo SG_APP_POPUP_ADMIN_URL;?>admin-post.php" id="add-form">
784
  <input type="hidden" name="action" value="save_popup">
785
  <div class="crud-wrapper">
772
 
773
  }
774
 
775
+ $getReview = get_option("SG_COLOSE_REVIEW_BLOCK");
776
+ if(!$getReview) {
777
+ echo SGFunctions::addReview();
778
+ }
779
+
780
  if (isset($_GET['saved']) && $_GET['saved']==1) {
781
  echo '<div id="default-message" class="updated notice notice-success is-dismissible" ><p>Popup updated.</p></div>';
782
  }
785
  <p>Invalid Title</p>
786
  </div>
787
  <?php endif; ?>
788
+
789
+
790
  <form method="POST" action="<?php echo SG_APP_POPUP_ADMIN_URL;?>admin-post.php" id="add-form">
791
  <input type="hidden" name="action" value="save_popup">
792
  <div class="crud-wrapper">
files/sg_popup_main.php CHANGED
@@ -1,7 +1,17 @@
1
  <?php
 
 
2
  require_once(SG_APP_POPUP_CLASSES.'/sgDataTable/SGPopupTable.php');
3
  $allData = SGPopup::findAll();
4
  ?>
 
 
 
 
 
 
 
 
5
  <div class="wrap">
6
  <div class="headers-wrapper">
7
  <h2 class="add-new-buttons">Popups <a href="<?php echo admin_url();?>admin.php?page=create-popup" class="add-new-h2">Add New</a></h2>
1
  <?php
2
+ $getReview = get_option("SG_COLOSE_REVIEW_BLOCK");
3
+
4
  require_once(SG_APP_POPUP_CLASSES.'/sgDataTable/SGPopupTable.php');
5
  $allData = SGPopup::findAll();
6
  ?>
7
+ <div>
8
+ <?php
9
+ if(!$getReview) {
10
+ echo SGFunctions::addReview();
11
+ }
12
+
13
+ ?>
14
+ </div>
15
  <div class="wrap">
16
  <div class="headers-wrapper">
17
  <h2 class="add-new-buttons">Popups <a href="<?php echo admin_url();?>admin.php?page=create-popup" class="add-new-h2">Add New</a></h2>
javascript/sg_popup_backend.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function($){
2
  this.titleNotEmpty(); /* Check title is Empty */
3
  this.showThemePicture(); /* Show themes pictures */
4
  this.showEffects(); /* Show effect type */
5
  this.pageAcordion(); /* For page acordion divs */
6
  this.fixedPostionSelection(); /* Fuctionality for selected postion */
7
  this.showInfo(); /* Show description options */
8
  this.opasictyRange(); /* Opcity range */
9
  this.subOptionContents();
10
  this.addCountris();
11
  this.checkedOpenDiv();
12
  }
 
13
  this.titleNotEmpty(); /* Check title is Empty */
14
  this.showThemePicture(); /* Show themes pictures */
15
  this.showEffects(); /* Show effect type */
16
  this.pageAcordion(); /* For page acordion divs */
17
  this.fixedPostionSelection(); /* Fuctionality for selected postion */
18
  this.showInfo(); /* Show description options */
19
  this.opasictyRange(); /* Opcity range */
20
  this.subOptionContents();
21
  this.addCountris();
22
  this.checkedOpenDiv();
23
  this.popupReview();
24
  }
25
  var data = {
26
  action: 'close_review_panel',
27
  }
28
  jQuery.post(ajaxurl, data, function(response,d) {
29
  });
30
  jQuery( ".reviewPanel" ).hide(300);
31
  });
 
1
  this.titleNotEmpty(); /* Check title is Empty */
2
  this.showThemePicture(); /* Show themes pictures */
3
  this.showEffects(); /* Show effect type */
4
  this.pageAcordion(); /* For page acordion divs */
5
  this.fixedPostionSelection(); /* Fuctionality for selected postion */
6
  this.showInfo(); /* Show description options */
7
  this.opasictyRange(); /* Opcity range */
8
  this.subOptionContents();
9
  this.addCountris();
10
  this.checkedOpenDiv();
11
  }
12
+ jQuery(document).ready(function($){
13
  this.titleNotEmpty(); /* Check title is Empty */
14
  this.showThemePicture(); /* Show themes pictures */
15
  this.showEffects(); /* Show effect type */
16
  this.pageAcordion(); /* For page acordion divs */
17
  this.fixedPostionSelection(); /* Fuctionality for selected postion */
18
  this.showInfo(); /* Show description options */
19
  this.opasictyRange(); /* Opcity range */
20
  this.subOptionContents();
21
  this.addCountris();
22
  this.checkedOpenDiv();
23
  this.popupReview();
24
  }
25
  var data = {
26
  action: 'close_review_panel',
27
  }
28
  jQuery.post(ajaxurl, data, function(response,d) {
29
  });
30
  jQuery( ".reviewPanel" ).hide(300);
31
  });
popup-builder.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Popup Builder
4
  * Plugin URI: http://sygnoos.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: 2.2.0
7
  * Author: Sygnoos
8
  * Author URI: http://www.sygnoos.com
9
  * License: GPLv2
@@ -19,7 +19,7 @@ define('SG_APP_POPUP_CLASSES', SG_APP_POPUP_PATH . '/classes');
19
  define('SG_APP_POPUP_JS', SG_APP_POPUP_PATH . '/javascript');
20
  define('SG_APP_POPUP_TABLE_LIMIT', 15);
21
  define('SG_POPUP_PRO', 0);
22
- define('SG_POPUP_VERSION', 2.2);
23
  define('SG_POPUP_PRO_URL', 'http://sygnoos.com/wordpress-popup/');
24
 
25
  $POPUP_TITLES = array(
3
  * Plugin Name: Popup Builder
4
  * Plugin URI: http://sygnoos.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: 2.2.1
7
  * Author: Sygnoos
8
  * Author URI: http://www.sygnoos.com
9
  * License: GPLv2
19
  define('SG_APP_POPUP_JS', SG_APP_POPUP_PATH . '/javascript');
20
  define('SG_APP_POPUP_TABLE_LIMIT', 15);
21
  define('SG_POPUP_PRO', 0);
22
+ define('SG_POPUP_VERSION', 2.21);
23
  define('SG_POPUP_PRO_URL', 'http://sygnoos.com/wordpress-popup/');
24
 
25
  $POPUP_TITLES = array(
readme.txt CHANGED
@@ -126,6 +126,9 @@ Go to the Popup Builder settings and set your desired options.
126
 
127
  == Changelog ==
128
 
 
 
 
129
  = Version 2.2.0 =
130
  * Bug fixed with popup scrolling.
131
 
@@ -134,7 +137,7 @@ Go to the Popup Builder settings and set your desired options.
134
 
135
  = Version 2.1.8 =
136
  * Added close button localization for fourth popup theme.
137
- * Code cleanup
138
  * Minor improvements
139
 
140
  = Version 2.1.7 =
126
 
127
  == Changelog ==
128
 
129
+ = Version 2.2.1 =
130
+ * Auto resize if dimensions are not defined.
131
+
132
  = Version 2.2.0 =
133
  * Bug fixed with popup scrolling.
134
 
137
 
138
  = Version 2.1.8 =
139
  * Added close button localization for fourth popup theme.
140
+ * Code cleanup.
141
  * Minor improvements
142
 
143
  = Version 2.1.7 =
style/sg_popup_style.css CHANGED
@@ -1072,3 +1072,47 @@ input[name="theme"] {
1072
  margin: 0px auto;
1073
  }
1074
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1072
  margin: 0px auto;
1073
  }
1074
  }
1075
+
1076
+ .reviewPanelClose {
1077
+ display: block;
1078
+ text-align: right;
1079
+ border: none;
1080
+ margin: 0;
1081
+ padding: 9px;
1082
+ background: 0 0;
1083
+ color: white;
1084
+ cursor: pointer;
1085
+ }
1086
+
1087
+ .reviewPanelHref {
1088
+ color: white;
1089
+ text-decoration: underline !important;
1090
+ }
1091
+
1092
+ .reviewPanelSpan {
1093
+ font-size: 17px;
1094
+ color: white;
1095
+ }
1096
+
1097
+ .reviewPanel {
1098
+ background-color: #2ECC71 !important;
1099
+ }
1100
+
1101
+ .reviewPanelContent {
1102
+ padding: 26px;
1103
+ }
1104
+
1105
+ .sg-review-panel {
1106
+ margin-left: 0px !important;
1107
+ }
1108
+
1109
+ @media only screen and (min-width:800px) {
1110
+ .sgmb-container {
1111
+ min-width:800px;
1112
+ margin-left: 10px;
1113
+ margin-right: 10px;
1114
+ }
1115
+ .reviewPanelContent {
1116
+ min-width:800px;
1117
+ }
1118
+ }