Countdown, Coming Soon – Countdown & Clock - Version 2.2.8

Version Description

  • Fixed Simple countdown save duration option
  • Fixed Sticky countdown save duration option
  • Fixed countdown preview box height limitation issue
Download this release

Release Info

Developer adamskaat
Plugin Icon 128x128 Countdown, Coming Soon – Countdown & Clock
Version 2.2.8
Comparing to
See all releases

Code changes from version 2.2.7 to 2.2.8

assets/css/admin.css CHANGED
@@ -297,6 +297,8 @@ input:checked + .ycd-slider:before {
297
  border: 1px solid #ccc;
298
  min-width: 400px;
299
  z-index: 999;
 
 
300
  }
301
 
302
  .ycd-live-preview h3 {
297
  border: 1px solid #ccc;
298
  min-width: 400px;
299
  z-index: 999;
300
+ max-height: 80vh;
301
+ overflow: auto;
302
  }
303
 
304
  .ycd-live-preview h3 {
classes/countdown/Countdown.php CHANGED
@@ -190,7 +190,7 @@ abstract class Countdown {
190
  $secondsSaved = (int)$options['ycd-countdown-duration-seconds'];
191
 
192
  $seconds = $days*86400 + $hours*60*60 + $minutes*60 + $secondsSaved;
193
-
194
  $options['ycd-countdown-duration-saved-str-time'] = strtotime('+'.$seconds.' seconds');
195
  }
196
  }
@@ -606,6 +606,14 @@ abstract class Countdown {
606
 
607
  return $idTitle;
608
  }
 
 
 
 
 
 
 
 
609
 
610
  public function getDataAllOptions() {
611
  $options = array();
190
  $secondsSaved = (int)$options['ycd-countdown-duration-seconds'];
191
 
192
  $seconds = $days*86400 + $hours*60*60 + $minutes*60 + $secondsSaved;
193
+
194
  $options['ycd-countdown-duration-saved-str-time'] = strtotime('+'.$seconds.' seconds');
195
  }
196
  }
606
 
607
  return $idTitle;
608
  }
609
+
610
+ public function getAllSavedOptions() {
611
+ $savedData = $this->getSavedData();
612
+ $savedData['id'] = $this->getId();
613
+ $savedData['ycd-timer-seconds'] = $this->getCountdownTimerAttrSeconds();
614
+
615
+ return $savedData;
616
+ }
617
 
618
  public function getDataAllOptions() {
619
  $options = array();
classes/countdown/SimpleCountdown.php CHANGED
@@ -161,7 +161,7 @@ class SimpleCountdown extends Countdown
161
  {
162
  $options = array();
163
  $optionNames = array('ycd-enable-simple-double-digits');
164
- $allDataOptions = $this->getDataAllOptions();
165
  $generalOptionsData = $this->generalOptionsData();
166
  $unites = $this->getTimeUnites();
167
 
161
  {
162
  $options = array();
163
  $optionNames = array('ycd-enable-simple-double-digits');
164
+ $allDataOptions = $this->getAllSavedOptions();
165
  $generalOptionsData = $this->generalOptionsData();
166
  $unites = $this->getTimeUnites();
167
 
classes/countdown/StickyCountdown.php CHANGED
@@ -211,6 +211,7 @@ class StickyCountdown extends Countdown {
211
  $settings['ycd-sticky-button-copy'] = $this->getOptionValue('ycd-sticky-button-copy');
212
  $settings['ycd-sticky-copy-alert'] = $this->getOptionValue('ycd-sticky-copy-alert');
213
  $settings['ycd-sticky-alert-text'] = $this->getOptionValue('ycd-sticky-alert-text');
 
214
  $settings += $this->generalOptionsData();
215
 
216
  $settings = json_encode($settings);
211
  $settings['ycd-sticky-button-copy'] = $this->getOptionValue('ycd-sticky-button-copy');
212
  $settings['ycd-sticky-copy-alert'] = $this->getOptionValue('ycd-sticky-copy-alert');
213
  $settings['ycd-sticky-alert-text'] = $this->getOptionValue('ycd-sticky-alert-text');
214
+ $settings += $this->getAllSavedOptions();
215
  $settings += $this->generalOptionsData();
216
 
217
  $settings = json_encode($settings);
config/config.php CHANGED
@@ -75,8 +75,8 @@ class YcdCountdownConfig
75
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
76
  self::addDefine('YCD_AJAX_SUCCESS', 1);
77
  self::addDefine('YCD_TABLE_LIMIT', 15);
78
- self::addDefine('YCD_VERSION_PRO', 2.13);
79
- self::addDefine('YCD_VERSION', 2.27);
80
  self::addDefine('YCD_FREE_VERSION', 1);
81
  self::addDefine('YCD_SILVER_VERSION', 2);
82
  self::addDefine('YCD_GOLD_VERSION', 3);
@@ -84,13 +84,13 @@ class YcdCountdownConfig
84
  self::addDefine('YCD_EXTENSION_VERSION', 99);
85
  require_once(dirname(__FILE__).'/config-pkg.php');
86
 
87
- $versionText = '2.2.7';
88
  if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
89
- $versionText = '2.1.3';
90
  }
91
  self::addDefine('YCD_VERSION_TEXT', $versionText);
92
- self::addDefine('YCD_LAST_UPDATE', 'Jan 4');
93
- self::addDefine('YCD_NEXT_UPDATE', 'Jan 24');
94
  }
95
 
96
  public static function displaySettings()
75
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
76
  self::addDefine('YCD_AJAX_SUCCESS', 1);
77
  self::addDefine('YCD_TABLE_LIMIT', 15);
78
+ self::addDefine('YCD_VERSION_PRO', 2.14);
79
+ self::addDefine('YCD_VERSION', 2.28);
80
  self::addDefine('YCD_FREE_VERSION', 1);
81
  self::addDefine('YCD_SILVER_VERSION', 2);
82
  self::addDefine('YCD_GOLD_VERSION', 3);
84
  self::addDefine('YCD_EXTENSION_VERSION', 99);
85
  require_once(dirname(__FILE__).'/config-pkg.php');
86
 
87
+ $versionText = '2.2.8';
88
  if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
89
+ $versionText = '2.1.4';
90
  }
91
  self::addDefine('YCD_VERSION_TEXT', $versionText);
92
+ self::addDefine('YCD_LAST_UPDATE', 'Jan 28');
93
+ self::addDefine('YCD_NEXT_UPDATE', 'Feb 12');
94
  }
95
 
96
  public static function displaySettings()
countdown-builder.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Countdown builder
4
  * Description: The best countdown plugin by Adam skaat
5
- * Version: 2.2.7
6
  * Author: Adam Skaat
7
  * Author URI: https://edmonsoft.com/countdown
8
  * License: GPLv2
2
  /**
3
  * Plugin Name: Countdown builder
4
  * Description: The best countdown plugin by Adam skaat
5
+ * Version: 2.2.8
6
  * Author: Adam Skaat
7
  * Author URI: https://edmonsoft.com/countdown
8
  * License: GPLv2
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: adamskaat
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
- Tested up to: 5.8.3
6
- Stable tag: 2.2.7
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -67,6 +67,11 @@ Yes you can, we have Circle and Flipclock countdown popups.
67
  You need to select the .zip file, there is no need to extract the zip file, just upload it.
68
 
69
  == Changelog ==
 
 
 
 
 
70
  = 2.2.7 =
71
  * Hide Editor Media buttons (new settings)
72
  * Settings options save improvement
2
  Contributors: adamskaat
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
+ Tested up to: 5.9
6
+ Stable tag: 2.2.8
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
67
  You need to select the .zip file, there is no need to extract the zip file, just upload it.
68
 
69
  == Changelog ==
70
+ = 2.2.8 =
71
+ * Fixed Simple countdown save duration option
72
+ * Fixed Sticky countdown save duration option
73
+ * Fixed countdown preview box height limitation issue
74
+
75
  = 2.2.7 =
76
  * Hide Editor Media buttons (new settings)
77
  * Settings options save improvement