Version Description
Current Version of Popup Builder is 3.1.5
Download this release
Release Info
Developer | Sygnoos |
Plugin | Popup Builder – Responsive WordPress Pop up |
Version | 3.1.5.2 |
Comparing to | |
See all releases |
Code changes from version 3.1.5.1 to 3.1.5.2
- PopupBuilderInit.php +0 -0
- com/classes/Actions.php +0 -0
- com/classes/Ajax.php +0 -0
- com/classes/Installer.php +1 -0
- com/classes/extension/SgpbPopupExtensionActivator.php +102 -102
- com/classes/popups/SubscriptionPopup.php +0 -0
- com/config/config.php +1 -0
- com/config/configPackage.php +1 -1
- com/config/dataConfig.php +6 -0
- com/helpers/AdminHelper.php +0 -0
- com/helpers/ConfigDataHelper.php +0 -0
- com/libs/Table.php +0 -0
- popup-builder.php +1 -1
- public/css/popupAdminStyles.css +13 -0
- public/css/sgbp-bootstrap.css +0 -0
- public/img/pushNotificationTypeIcon.png +0 -0
- public/js/PopupBuilder.js +0 -0
- public/js/Subscription.js +0 -0
- public/js/gutenbergBlock.min.js +1 -1
- public/js/sgpbSelect2.js +0 -0
- public/views/mediaButton.php +2 -1
- readme.txt +6 -1
PopupBuilderInit.php
CHANGED
File without changes
|
com/classes/Actions.php
CHANGED
File without changes
|
com/classes/Ajax.php
CHANGED
File without changes
|
com/classes/Installer.php
CHANGED
@@ -98,6 +98,7 @@ class Installer
|
|
98 |
}
|
99 |
}
|
100 |
|
|
|
101 |
if (SGPB_POPUP_PKG != SGPB_POPUP_PKG_FREE) {
|
102 |
$obj = new PopupExtensionActivator();
|
103 |
$obj->install();
|
98 |
}
|
99 |
}
|
100 |
|
101 |
+
// install extensions
|
102 |
if (SGPB_POPUP_PKG != SGPB_POPUP_PKG_FREE) {
|
103 |
$obj = new PopupExtensionActivator();
|
104 |
$obj->install();
|
com/classes/extension/SgpbPopupExtensionActivator.php
CHANGED
@@ -3,106 +3,106 @@ namespace sgpb;
|
|
3 |
|
4 |
class PopupExtensionActivator
|
5 |
{
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
}
|
3 |
|
4 |
class PopupExtensionActivator
|
5 |
{
|
6 |
+
public function activate()
|
7 |
+
{
|
8 |
+
$extensions = get_option('sgpbExtensionsInfo');
|
9 |
+
|
10 |
+
if (empty($extensions)) {
|
11 |
+
return false;
|
12 |
+
}
|
13 |
+
|
14 |
+
foreach ($extensions as $folderName => $extension) {
|
15 |
+
if (empty($extension['key'])) {
|
16 |
+
continue;
|
17 |
+
}
|
18 |
+
$key = $extension['key'];
|
19 |
+
|
20 |
+
if ($folderName == 'popupbuilder-woocommerce') {
|
21 |
+
$key = $folderName.'/popupbuilderWoocommerce.php';
|
22 |
+
}
|
23 |
+
else if ($folderName == 'popupbuilder-restriction') {
|
24 |
+
$key = $folderName.'/PopupBuilderAgerestriction.php';
|
25 |
+
}
|
26 |
+
else if ($folderName == 'popupbuilder-aweber') {
|
27 |
+
$key = $folderName.'/PopupBuilderAWeber.php';
|
28 |
+
}
|
29 |
+
else if ($folderName == 'popupbuilder-adblock') {
|
30 |
+
$key = $folderName.'/PopupBuilderAdBlock.php';
|
31 |
+
}
|
32 |
+
|
33 |
+
activate_plugin($key);
|
34 |
+
}
|
35 |
+
|
36 |
+
return true;
|
37 |
+
}
|
38 |
+
|
39 |
+
private function getExtensionsInfo()
|
40 |
+
{
|
41 |
+
$extensionsInfo = array();
|
42 |
+
if (!file_exists(SG_POPUP_BUILDER_PATH.'extensions')) {
|
43 |
+
return $extensionsInfo;
|
44 |
+
}
|
45 |
+
$it = new \RecursiveDirectoryIterator(SG_POPUP_BUILDER_PATH.'extensions', \RecursiveDirectoryIterator::SKIP_DOTS);
|
46 |
+
|
47 |
+
|
48 |
+
foreach ($it as $path => $fileInfo) {
|
49 |
+
if (empty($fileInfo)) {
|
50 |
+
continue;
|
51 |
+
}
|
52 |
+
$extensionFolderName = $fileInfo->getFilename();
|
53 |
+
$extensionMainFile = $this->getExtensionMainFile($extensionFolderName);
|
54 |
+
$extensionKey = $extensionFolderName.'/'.$extensionMainFile;
|
55 |
+
|
56 |
+
$extensionsInfo[$extensionFolderName] = array('key' => $extensionKey, 'mainFileName' => $extensionMainFile);
|
57 |
+
}
|
58 |
+
|
59 |
+
return $extensionsInfo;
|
60 |
+
}
|
61 |
+
|
62 |
+
public function install()
|
63 |
+
{
|
64 |
+
$extensionsInfo = $this->getExtensionsInfo();
|
65 |
+
|
66 |
+
if (!get_option('sgpbExtensionsInfo')) {
|
67 |
+
update_option('sgpbExtensionsInfo', $extensionsInfo);
|
68 |
+
}
|
69 |
+
$this->moveExtensionToPluginsSection($extensionsInfo);
|
70 |
+
}
|
71 |
+
|
72 |
+
private function moveExtensionToPluginsSection($extensionsInfo)
|
73 |
+
{
|
74 |
+
foreach ($extensionsInfo as $extensionFolder => $extensionsInfo) {
|
75 |
+
$passedExtension = WP_PLUGIN_DIR.DIRECTORY_SEPARATOR.$extensionFolder.DIRECTORY_SEPARATOR;
|
76 |
+
$originalExtension = SG_POPUP_BUILDER_PATH.'extensions'.DIRECTORY_SEPARATOR.$extensionFolder.DIRECTORY_SEPARATOR;
|
77 |
+
@rename($originalExtension,$passedExtension);
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
+
private function getExtensionMainFile($folderName)
|
82 |
+
{
|
83 |
+
if (empty($folderName)) {
|
84 |
+
return '';
|
85 |
+
}
|
86 |
+
|
87 |
+
$explodedData = explode('-', $folderName);
|
88 |
+
|
89 |
+
if (empty($explodedData)) {
|
90 |
+
return '';
|
91 |
+
}
|
92 |
+
$explodedData = array_filter(array_values($explodedData), array($this, 'ucifirstElements'));
|
93 |
+
$fileName = implode('', $explodedData);
|
94 |
+
|
95 |
+
return $fileName.'.php';
|
96 |
+
}
|
97 |
+
|
98 |
+
private function ucifirstElements(&$element)
|
99 |
+
{
|
100 |
+
if ($element == 'popupbuilder') {
|
101 |
+
$element = 'PopupBuilder';
|
102 |
+
return $element;
|
103 |
+
}
|
104 |
+
$element = ucfirst($element);
|
105 |
+
|
106 |
+
return $element;
|
107 |
+
}
|
108 |
}
|
com/classes/popups/SubscriptionPopup.php
CHANGED
File without changes
|
com/config/config.php
CHANGED
@@ -46,6 +46,7 @@ class SgpbPopupConfig
|
|
46 |
self::addDefine('SG_POPUP_LOGIN_URL', 'https://popup-builder.com/downloads/login-popup/');
|
47 |
self::addDefine('SG_POPUP_REGISTRATION_URL', 'https://popup-builder.com/downloads/registration-popup/');
|
48 |
self::addDefine('SG_POPUP_SUBSCRIPTION_PLUS_URL', 'https://popup-builder.com/downloads/subscription-plus-popup/');
|
|
|
49 |
self::addDefine('SG_POPUP_ADMIN_URL', admin_url());
|
50 |
self::addDefine('SG_POPUP_BUILDER_URL', plugins_url().'/'.SG_POPUP_FOLDER_NAME.'/');
|
51 |
self::addDefine('SG_POPUP_BUILDER_PATH', WP_PLUGIN_DIR.'/'.SG_POPUP_FOLDER_NAME.'/');
|
46 |
self::addDefine('SG_POPUP_LOGIN_URL', 'https://popup-builder.com/downloads/login-popup/');
|
47 |
self::addDefine('SG_POPUP_REGISTRATION_URL', 'https://popup-builder.com/downloads/registration-popup/');
|
48 |
self::addDefine('SG_POPUP_SUBSCRIPTION_PLUS_URL', 'https://popup-builder.com/downloads/subscription-plus-popup/');
|
49 |
+
self::addDefine('SG_POPUP_PUSH_NOTIFICATION_URL', 'https://popup-builder.com/downloads/web-push-notification-popup/');
|
50 |
self::addDefine('SG_POPUP_ADMIN_URL', admin_url());
|
51 |
self::addDefine('SG_POPUP_BUILDER_URL', plugins_url().'/'.SG_POPUP_FOLDER_NAME.'/');
|
52 |
self::addDefine('SG_POPUP_BUILDER_PATH', WP_PLUGIN_DIR.'/'.SG_POPUP_FOLDER_NAME.'/');
|
com/config/configPackage.php
CHANGED
@@ -3,6 +3,6 @@ if (!defined('ABSPATH')) {
|
|
3 |
exit();
|
4 |
}
|
5 |
|
6 |
-
define('SG_POPUP_VERSION', '3.1.5.
|
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', '3.1.5.2');
|
7 |
define('SGPB_POPUP_PKG', SGPB_POPUP_PKG_FREE);
|
8 |
define('POPUP_BUILDER_BASENAME', 'popupbuilder-platinum/popup-builder.php');
|
com/config/dataConfig.php
CHANGED
@@ -621,6 +621,12 @@ class SgpbDataConfig
|
|
621 |
'key' => 'subscriptionPlus',
|
622 |
'url' => SG_POPUP_SUBSCRIPTION_PLUS_URL
|
623 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
624 |
|
625 |
return apply_filters('sgpbExtensionsKeys', $keys);
|
626 |
}
|
621 |
'key' => 'subscriptionPlus',
|
622 |
'url' => SG_POPUP_SUBSCRIPTION_PLUS_URL
|
623 |
);
|
624 |
+
$keys[] = array(
|
625 |
+
'label' => __('Push Notification', SG_POPUP_TEXT_DOMAIN),
|
626 |
+
'pluginKey' => 'popupbuilder-push-notification/PopupBuilderPushNotification.php',
|
627 |
+
'key' => 'pushNotification',
|
628 |
+
'url' => SG_POPUP_PUSH_NOTIFICATION_URL
|
629 |
+
);
|
630 |
|
631 |
return apply_filters('sgpbExtensionsKeys', $keys);
|
632 |
}
|
com/helpers/AdminHelper.php
CHANGED
File without changes
|
com/helpers/ConfigDataHelper.php
CHANGED
File without changes
|
com/libs/Table.php
CHANGED
File without changes
|
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: 3.1.5.
|
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: 3.1.5.2
|
7 |
* Author: Sygnoos
|
8 |
* Author URI: https://sygnoos.com
|
9 |
* License: GPLv2
|
public/css/popupAdminStyles.css
CHANGED
@@ -322,6 +322,19 @@
|
|
322 |
background-color: #d4a6e0 !important;
|
323 |
}
|
324 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
325 |
.sgpb-extensions-wrapper .sgpb-iframe-div {
|
326 |
background-color: rgba(212, 166, 224, 0.4) !important;
|
327 |
}
|
322 |
background-color: #d4a6e0 !important;
|
323 |
}
|
324 |
|
325 |
+
.pushNotification-popup,
|
326 |
+
.pushNotification-popup-pro {
|
327 |
+
background-image: url("../img/pushNotificationTypeIcon.png");
|
328 |
+
}
|
329 |
+
|
330 |
+
.sgpb-pushNotification-div {
|
331 |
+
background-color: #dedede !important;
|
332 |
+
}
|
333 |
+
|
334 |
+
.sgpb-pushNotification-div:hover {
|
335 |
+
background-color: #dedede !important;
|
336 |
+
}
|
337 |
+
|
338 |
.sgpb-extensions-wrapper .sgpb-iframe-div {
|
339 |
background-color: rgba(212, 166, 224, 0.4) !important;
|
340 |
}
|
public/css/sgbp-bootstrap.css
CHANGED
File without changes
|
public/img/pushNotificationTypeIcon.png
ADDED
Binary file
|
public/js/PopupBuilder.js
CHANGED
File without changes
|
public/js/Subscription.js
CHANGED
File without changes
|
public/js/gutenbergBlock.min.js
CHANGED
@@ -165,7 +165,7 @@ SGPBGutenbergBlock.prototype.init = function () {
|
|
165 |
};
|
166 |
|
167 |
jQuery(document).ready(function () {
|
168 |
-
if (typeof wp != 'undefined' && typeof wp.element != 'undefined' && typeof wp.blocks != 'undefined') {
|
169 |
var block = new SGPBGutenbergBlock();
|
170 |
block.init();
|
171 |
}
|
165 |
};
|
166 |
|
167 |
jQuery(document).ready(function () {
|
168 |
+
if (typeof wp != 'undefined' && typeof wp.element != 'undefined' && typeof wp.blocks != 'undefined' && typeof wp.editor != 'undefined' && typeof wp.components != 'undefined') {
|
169 |
var block = new SGPBGutenbergBlock();
|
170 |
block.init();
|
171 |
}
|
public/js/sgpbSelect2.js
CHANGED
File without changes
|
public/views/mediaButton.php
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
<?php
|
2 |
namespace sgpb;
|
3 |
$defaultData = \ConfigDataHelper::defaultData();
|
4 |
-
$
|
|
|
5 |
$allPopups = AdminHelper::getPopupsIdAndTitle($excludedPopups);
|
6 |
?>
|
7 |
|
1 |
<?php
|
2 |
namespace sgpb;
|
3 |
$defaultData = \ConfigDataHelper::defaultData();
|
4 |
+
$excludePostId = @$_GET['post'];
|
5 |
+
$excludedPopups = array($excludePostId);
|
6 |
$allPopups = AdminHelper::getPopupsIdAndTitle($excludedPopups);
|
7 |
?>
|
8 |
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: popup, pop up, wordpress popup, popup maker, exit popup, popup builder, wo
|
|
7 |
Requires at least: 3.8
|
8 |
Tested up to: 5.0
|
9 |
Requires PHP: 5.3.3
|
10 |
-
Stable tag: 3.1.5.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -180,6 +180,11 @@ Go to the Popup Builder settings and set your desired options.
|
|
180 |
|
181 |
== Changelog ==
|
182 |
|
|
|
|
|
|
|
|
|
|
|
183 |
= Version 3.1.5.1 =
|
184 |
* Bug fixes and improvements.
|
185 |
|
7 |
Requires at least: 3.8
|
8 |
Tested up to: 5.0
|
9 |
Requires PHP: 5.3.3
|
10 |
+
Stable tag: 3.1.5.2
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
180 |
|
181 |
== Changelog ==
|
182 |
|
183 |
+
= Version 3.1.5.2 =
|
184 |
+
* Added new extension Web Push Notification.
|
185 |
+
* Gutenberg block improvements.
|
186 |
+
* Code improvements and minor bug fixes.
|
187 |
+
|
188 |
= Version 3.1.5.1 =
|
189 |
* Bug fixes and improvements.
|
190 |
|