Countdown, Coming Soon – Countdown & Clock - Version 2.1.1

Version Description

  • Fixed simple countdown date calculation issue
  • Fixed schedule issue
Download this release

Release Info

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

Code changes from version 2.1.0 to 2.1.1

assets/js/YcdSimpleCountdown.js CHANGED
@@ -293,7 +293,10 @@ YcdSimpleCountdown.prototype.countdown = function()
293
  // Time calculations for days, hours, minutes and seconds
294
  var unitesValues = {};
295
  unitesValues.months = Math.floor(distance / (2678400000));
296
- unitesValues.days = Math.floor(distance % 2678400000/ (1000 * 60 * 60 * 24));
 
 
 
297
  unitesValues.hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
298
  unitesValues.minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
299
  unitesValues.seconds = Math.floor((distance % (1000 * 60)) / 1000);
293
  // Time calculations for days, hours, minutes and seconds
294
  var unitesValues = {};
295
  unitesValues.months = Math.floor(distance / (2678400000));
296
+ if (options['ycd-simple-enable-months']) {
297
+ distance = distance % 2678400000
298
+ }
299
+ unitesValues.days = Math.floor(distance/ (1000 * 60 * 60 * 24));
300
  unitesValues.hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
301
  unitesValues.minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
302
  unitesValues.seconds = Math.floor((distance % (1000 * 60)) / 1000);
config/config.php CHANGED
@@ -74,8 +74,8 @@ class YcdCountdownConfig
74
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
75
  self::addDefine('YCD_AJAX_SUCCESS', 1);
76
  self::addDefine('YCD_TABLE_LIMIT', 15);
77
- self::addDefine('YCD_VERSION_PRO', 1.96);
78
- self::addDefine('YCD_VERSION', 2.10);
79
  self::addDefine('YCD_FREE_VERSION', 1);
80
  self::addDefine('YCD_SILVER_VERSION', 2);
81
  self::addDefine('YCD_GOLD_VERSION', 3);
@@ -88,8 +88,8 @@ class YcdCountdownConfig
88
  $versionText = '1.9.5';
89
  }
90
  self::addDefine('YCD_VERSION_TEXT', $versionText);
91
- self::addDefine('YCD_LAST_UPDATE', 'June 6');
92
- self::addDefine('YCD_NEXT_UPDATE', 'June 24');
93
  }
94
 
95
  public static function displaySettings()
74
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
75
  self::addDefine('YCD_AJAX_SUCCESS', 1);
76
  self::addDefine('YCD_TABLE_LIMIT', 15);
77
+ self::addDefine('YCD_VERSION_PRO', 1.97);
78
+ self::addDefine('YCD_VERSION', 2.11);
79
  self::addDefine('YCD_FREE_VERSION', 1);
80
  self::addDefine('YCD_SILVER_VERSION', 2);
81
  self::addDefine('YCD_GOLD_VERSION', 3);
88
  $versionText = '1.9.5';
89
  }
90
  self::addDefine('YCD_VERSION_TEXT', $versionText);
91
+ self::addDefine('YCD_LAST_UPDATE', 'June 11');
92
+ self::addDefine('YCD_NEXT_UPDATE', 'June 26');
93
  }
94
 
95
  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.1.0
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.1.1
6
  * Author: Adam Skaat
7
  * Author URI: https://edmonsoft.com/countdown
8
  * License: GPLv2
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: adamskaat
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 5.7.2
6
- Stable tag: 2.1.0
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,10 @@ 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.1.0 =
71
  * Added simple countdown months new time unite
72
 
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 5.7.2
6
+ Stable tag: 2.1.1
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.1.1 =
71
+ * Fixed simple countdown date calculation issue
72
+ * Fixed schedule issue
73
+
74
  = 2.1.0 =
75
  * Added simple countdown months new time unite
76