Popup Builder – Responsive WordPress Pop up - Version 2.4.4

Version Description

Current Version of Popup Builder is 2.4.4

Download this release

Release Info

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

Code changes from version 2.4.3 to 2.4.4

classes/SGShortcodePopup.php CHANGED
@@ -45,10 +45,10 @@ class SGShortcodePopup extends SGPopup {
45
  }
46
 
47
  /**
48
- * Add popup data to footer
49
  *
50
  * @since 2.4.3
51
- *
52
  * @param string $currentPopupContent popup html content
53
  *
54
  * @return void
@@ -56,16 +56,15 @@ class SGShortcodePopup extends SGPopup {
56
  */
57
 
58
  public function addPopupContentToFooter($currentPopupContent) {
59
-
60
  echo $currentPopupContent;
61
  }
62
 
63
  protected function getExtraRenderOptions() {
64
- $content = do_shortcode($this->getShortcode());
65
-
66
  /*Add this part of code right into the page to escape conflicts with shortcodes init functionlity*/
67
  $currentPopupContent = "<div id=\"sg-popup-content-".$this->getId()."\" style=\"display: none;\">&nbsp;<div id=\"sgpb-all-content-".$this->getId()."\">".$content."</div></div>";
68
-
69
  /*Append to body for shortcode break to new line*/
70
  add_action('wp_footer', array($this, 'addPopupContentToFooter'), 100, 1);
71
  do_action("wp_footer", $currentPopupContent);
45
  }
46
 
47
  /**
48
+ * Add popup data to footer
49
  *
50
  * @since 2.4.3
51
+ *
52
  * @param string $currentPopupContent popup html content
53
  *
54
  * @return void
56
  */
57
 
58
  public function addPopupContentToFooter($currentPopupContent) {
59
+
60
  echo $currentPopupContent;
61
  }
62
 
63
  protected function getExtraRenderOptions() {
64
+ $content = do_shortcode($this->getShortcode());
 
65
  /*Add this part of code right into the page to escape conflicts with shortcodes init functionlity*/
66
  $currentPopupContent = "<div id=\"sg-popup-content-".$this->getId()."\" style=\"display: none;\">&nbsp;<div id=\"sgpb-all-content-".$this->getId()."\">".$content."</div></div>";
67
+
68
  /*Append to body for shortcode break to new line*/
69
  add_action('wp_footer', array($this, 'addPopupContentToFooter'), 100, 1);
70
  do_action("wp_footer", $currentPopupContent);
files/sg_functions.php CHANGED
@@ -11,6 +11,41 @@ class SGFunctions
11
  echo $sgInfo;
12
  }
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  public static function sgPopupDataSanitize($sgPopupData)
15
  {
16
 
11
  echo $sgInfo;
12
  }
13
 
14
+ public static function balckFriday()
15
+ {
16
+ $output = '<a href="'.SG_POPUP_PRO_URL.'" target="_blank"><div class="sg-black-friday-wrapper">
17
+ <div class="sg-balck-info-wrapper">
18
+ <div class="sg-black-info sg-balck-info-left">
19
+ <span class="sg-black-friday-day">
20
+ November 25
21
+ </span>
22
+ <span class="sg-black-friday-name">
23
+ BLACK FRIDAY
24
+ </span>
25
+ </div>
26
+ <div class="balck-friday-line-image balck-friday-line-left"></div>
27
+ <div class="sg-black-info sg-balck-info-center">
28
+ <span class="sg-black-percent">
29
+ -25%
30
+ </span>
31
+ <span class="sg-black-all-plans">
32
+ * All Plans
33
+ </span>
34
+ </div>
35
+ <div class="balck-friday-line-image balck-friday-line-right"></div>
36
+ <div class="sg-black-info sg-balck-info-right">
37
+ <span class="sg-black-friday-day">
38
+ Use this promo code to get 25% off:
39
+ </span>
40
+ <span class="sg-black-friday-name">
41
+ POPUP 25 OFF
42
+ </span>
43
+ </div>
44
+ </div>
45
+ </div></a>';
46
+ echo $output;
47
+ }
48
+
49
  public static function sgPopupDataSanitize($sgPopupData)
50
  {
51
 
files/sg_popup_create.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  if(!SG_SHOW_POPUP_REVIEW) {
3
  echo SGFunctions::addReview();
4
  }
1
  <?php
2
+ echo SGFunctions::balckFriday();
3
  if(!SG_SHOW_POPUP_REVIEW) {
4
  echo SGFunctions::addReview();
5
  }
files/sg_popup_create_new.php CHANGED
@@ -1024,9 +1024,11 @@
1024
  }
1025
 
1026
  }
 
1027
  if(!SG_SHOW_POPUP_REVIEW) {
1028
  echo SGFunctions::addReview();
1029
  }
 
1030
  if (isset($_GET['saved']) && $_GET['saved']==1) {
1031
  echo '<div id="default-message" class="updated notice notice-success is-dismissible" ><p>Popup updated.</p></div>';
1032
  }
1024
  }
1025
 
1026
  }
1027
+ echo SGFunctions::balckFriday();
1028
  if(!SG_SHOW_POPUP_REVIEW) {
1029
  echo SGFunctions::addReview();
1030
  }
1031
+
1032
  if (isset($_GET['saved']) && $_GET['saved']==1) {
1033
  echo '<div id="default-message" class="updated notice notice-success is-dismissible" ><p>Popup updated.</p></div>';
1034
  }
files/sg_popup_main.php CHANGED
@@ -5,7 +5,7 @@ $allData = SGPopup::findAll();
5
  if(!SG_SHOW_POPUP_REVIEW) {
6
  echo SGFunctions::addReview();
7
  }
8
-
9
  ?>
10
  <div class="wrap">
11
  <div class="headers-wrapper">
5
  if(!SG_SHOW_POPUP_REVIEW) {
6
  echo SGFunctions::addReview();
7
  }
8
+ echo SGFunctions::balckFriday();
9
  ?>
10
  <div class="wrap">
11
  <div class="headers-wrapper">
helpers/SgPopupGetData.php CHANGED
@@ -58,6 +58,10 @@ class SgPopupGetData {
58
 
59
  $popupImeZone = @$options['sg-popup-time-zone'];
60
 
 
 
 
 
61
  return $popupImeZone;
62
  }
63
 
58
 
59
  $popupImeZone = @$options['sg-popup-time-zone'];
60
 
61
+ if(!isset($popupImeZone) || empty($popupImeZone)) {
62
+ $popupImeZone = 'Asia/Yerevan';
63
+ }
64
+
65
  return $popupImeZone;
66
  }
67
 
img/balck-friday-div-line.png ADDED
Binary file
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.4.3
7
  * Author: Sygnoos
8
  * Author URI: http://www.sygnoos.com
9
  * License: GPLv2
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.4.4
7
  * Author: Sygnoos
8
  * Author URI: http://www.sygnoos.com
9
  * License: GPLv2
readme.txt CHANGED
@@ -155,6 +155,9 @@ Go to the Popup Builder settings and set your desired options.
155
 
156
  == Changelog ==
157
 
 
 
 
158
  = Version 2.4.3 =
159
  * Added empty index.php file inside every directory to prevent directory listing.
160
  * Shortcode functionality improvements.
@@ -536,7 +539,7 @@ Leave us a good review :)
536
 
537
  == Upgrade Notice ==
538
 
539
- Current Version of Popup Builder is 2.4.2
540
 
541
  == Other Notes ==
542
 
155
 
156
  == Changelog ==
157
 
158
+ = Version 2.4.4 =
159
+ * Bug fixed connected to timezone.
160
+
161
  = Version 2.4.3 =
162
  * Added empty index.php file inside every directory to prevent directory listing.
163
  * Shortcode functionality improvements.
539
 
540
  == Upgrade Notice ==
541
 
542
+ Current Version of Popup Builder is 2.4.4
543
 
544
  == Other Notes ==
545
 
style/sg_popup_style.css CHANGED
@@ -1466,6 +1466,103 @@ input:checked + .sg-slider:before {
1466
  margin-top: -15px;
1467
  }
1468
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1469
  @media only screen and (min-width:800px) {
1470
  .sgmb-container {
1471
  min-width:800px;
1466
  margin-top: -15px;
1467
  }
1468
 
1469
+ /*Black Friday Css*/
1470
+ .sg-black-friday-wrapper {
1471
+ width: 97%;
1472
+ height: 150px;
1473
+ background-color: #171B1E;
1474
+ text-align: center;
1475
+ margin-top: 20px;
1476
+ }
1477
+
1478
+ .sg-balck-info-wrapper {
1479
+ margin: 0 auto;
1480
+ display: inline-block;
1481
+ }
1482
+
1483
+ .sg-black-info {
1484
+ width: 245px;
1485
+ height: 150px;
1486
+ text-align: center;
1487
+ float: left;
1488
+ padding-top: 35px;
1489
+ box-sizing: border-box;
1490
+ }
1491
+
1492
+ .sg-black-friday-day {
1493
+ display: block;
1494
+ color: #ffffff;
1495
+ font-size: 14px;
1496
+ margin-bottom: 10px;
1497
+ }
1498
+
1499
+ .sg-black-percent {
1500
+ color: #ffffff;
1501
+ font-size: 75px;
1502
+ display: inline-block;
1503
+ width: 69%;
1504
+ float: left;
1505
+ margin-top: 20px;
1506
+ }
1507
+
1508
+ .sg-black-all-plans {
1509
+ color: #ffffff;
1510
+ font-size: 12px;
1511
+ }
1512
+ .balck-friday-line-image {
1513
+ background-image: url("../img/balck-friday-div-line.png");
1514
+ height: 65px;
1515
+ width: 1px;
1516
+ }
1517
+
1518
+ .balck-friday-line-left{
1519
+ margin-right: 22px;
1520
+ float: left;
1521
+ margin-top: 35px;
1522
+ }
1523
+
1524
+ .balck-friday-line-right {
1525
+ float: left;
1526
+ margin: 35px 15px 0px 15px;
1527
+ }
1528
+
1529
+ .sg-black-friday-name {
1530
+ display: block;
1531
+ color: #1ac6ff;
1532
+ font-size: 24px;
1533
+ }
1534
+
1535
+ @media(max-width: 1042px) {
1536
+ .sg-black-info {
1537
+ width: 200px;
1538
+ }
1539
+ }
1540
+
1541
+ @media(max-width: 1042px) {
1542
+ .sg-black-info {
1543
+ width: 180px;
1544
+ }
1545
+ .sg-black-percent {
1546
+ font-size: 52px;
1547
+ margin-top: 12px;
1548
+ }
1549
+ }
1550
+
1551
+ @media(max-width: 640px) {
1552
+ .sg-black-friday-day {
1553
+ font-size: 10px;
1554
+ }
1555
+ .sg-black-friday-name {
1556
+ font-size: 17px;
1557
+ }
1558
+ .sg-black-info {
1559
+ width: 120px;
1560
+ }
1561
+ .sg-black-percent {
1562
+ font-size: 35px;
1563
+ margin-top: 6px;
1564
+ }
1565
+ }
1566
  @media only screen and (min-width:800px) {
1567
  .sgmb-container {
1568
  min-width:800px;