Countdown, Coming Soon – Countdown & Clock - Version 2.0.2

Version Description

  • Simple countdown live preview labels on/off issue fixed
  • Code improvement related to WordPress 5.7
Download this release

Release Info

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

Code changes from version 2.0.1 to 2.0.2

assets/js/YcdSimpleCountdown.js CHANGED
@@ -197,16 +197,22 @@ YcdSimpleCountdown.prototype.changeSwitch = function()
197
  if (!status.length) {
198
  return false;
199
  }
 
200
 
 
201
  status.bind('change', function () {
202
  var currentStatus = jQuery(this).is(':checked');
203
  var type = jQuery(this).data('time-type');
204
  var wrapper = jQuery('.ycd-simple-current-unite-'+type);
205
  if (currentStatus) {
206
- wrapper.show();
 
207
  }
208
  else {
209
- wrapper.hide();
 
 
 
210
  }
211
  });
212
  };
197
  if (!status.length) {
198
  return false;
199
  }
200
+ var hasVisibleElement = function (element) {
201
 
202
+ };
203
  status.bind('change', function () {
204
  var currentStatus = jQuery(this).is(':checked');
205
  var type = jQuery(this).data('time-type');
206
  var wrapper = jQuery('.ycd-simple-current-unite-'+type);
207
  if (currentStatus) {
208
+ jQuery(wrapper).prev().find('.ycd-simple-timer-dots').removeClass('ycd-hide');
209
+ wrapper.removeClass('ycd-hide');
210
  }
211
  else {
212
+ if (jQuery(wrapper).nextAll().not(".ycd-hide").length == 0) {
213
+ jQuery(wrapper).prev().find('.ycd-simple-timer-dots').addClass('ycd-hide');
214
+ }
215
+ wrapper.addClass('ycd-hide');
216
  }
217
  });
218
  };
classes/countdown/SimpleCountdown.php CHANGED
@@ -128,7 +128,9 @@ class SimpleCountdown extends Countdown
128
  --><?php echo $this->timeUnitNumber($unite); ?><!--
129
  --><?php echo $this->timeUnitText($unite); ?>
130
  </div>
131
- <div class="ycd-simple-timer-dots <?php echo $hideDotsClassName; ?>">:</div>
 
 
132
  </div>
133
  <?php endforeach; ?>
134
  </div>
128
  --><?php echo $this->timeUnitNumber($unite); ?><!--
129
  --><?php echo $this->timeUnitText($unite); ?>
130
  </div>
131
+ <?php if ($unite != 'seconds'): ?>
132
+ <div class="ycd-simple-timer-dots <?php echo $hideDotsClassName; ?>">:</div>
133
+ <?php endif; ?>
134
  </div>
135
  <?php endforeach; ?>
136
  </div>
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.0.1
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.0.2
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.6.2
6
- Stable tag: 2.0.1
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.0.1 =
71
  * Simple countdown display on pages option fixed
72
 
2
  Contributors: adamskaat
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
+ Tested up to: 5.7
6
+ Stable tag: 2.0.2
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.0.2 =
71
+ * Simple countdown live preview labels on/off issue fixed
72
+ * Code improvement related to WordPress 5.7
73
+
74
  = 2.0.1 =
75
  * Simple countdown display on pages option fixed
76