Countdown, Coming Soon – Countdown & Clock - Version 2.1.7

Version Description

  • Upcoming Day Of Week (Recurring) (New Feature)
Download this release

Release Info

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

Code changes from version 2.1.6.1 to 2.1.7

assets/js/Countdown.js CHANGED
@@ -303,7 +303,7 @@ YcdCountdown.prototype.changeScheduleHour = function() {
303
  if(!hours.length) {
304
  return false;
305
  }
306
-
307
  var countdowns = jQuery('.ycd-time-circle');
308
  hours.bind('change', function() {
309
  var name = jQuery(this).attr('name');
303
  if(!hours.length) {
304
  return false;
305
  }
306
+ var that = this;
307
  var countdowns = jQuery('.ycd-time-circle');
308
  hours.bind('change', function() {
309
  var name = jQuery(this).attr('name');
assets/js/YcdGeneral.js CHANGED
@@ -16,6 +16,9 @@ YcgGeneral.prototype.getSeconds = function (options) {
16
  else if(options['ycd-countdown-date-type'] == 'schedule2') {
17
  var seconds = YcdCountdownProFunctionality.schedule2(options);
18
  }
 
 
 
19
  else if(options['ycd-countdown-date-type'] == 'wooCoupon') {
20
  var val = options['ycd-woo-coupon-date'];
21
  val.replace('/', '-')+' 00:00:00';
16
  else if(options['ycd-countdown-date-type'] == 'schedule2') {
17
  var seconds = YcdCountdownProFunctionality.schedule2(options);
18
  }
19
+ else if(options['ycd-countdown-date-type'] == 'schedule3') {
20
+ var seconds = YcdCountdownProFunctionality.schedule3(options);
21
+ }
22
  else if(options['ycd-countdown-date-type'] == 'wooCoupon') {
23
  var val = options['ycd-woo-coupon-date'];
24
  val.replace('/', '-')+' 00:00:00';
assets/views/generalOptions.php CHANGED
@@ -274,6 +274,45 @@ if (class_exists('ycd\AdminHelperPro')) {
274
  </div>
275
  </div>
276
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
  <div class="row">
278
  <div class="col-md-6">
279
  <label for="ycd-countdown-end-sound" class="ycd-label-of-switch"><?php _e('Display On', YCD_TEXT_DOMAIN); ?></label>
274
  </div>
275
  </div>
276
  </div>
277
+ <div id="ycd-date-schedule3" class="ycd-countdown-show-text ycd-hide">
278
+ <div class="row form-group">
279
+ <div class="col-md-6">
280
+ <label for="ycd-schedule3-time-zone" class="ycd-label-of-input"><?php _e('Time Zone', YCD_TEXT_DOMAIN); ?></label>
281
+ </div>
282
+ <div class="col-md-6">
283
+ <div class="ycd-select-wrapper">
284
+ <?php echo AdminHelper::selectBox($defaultData['time-zone'], esc_attr($this->getOptionValue('ycd-schedule3-time-zone')), array('name' => 'ycd-schedule3-time-zone', 'class' => 'js-ycd-select js-ycd-schedule-time-zone')); ?>
285
+ </div>
286
+ </div>
287
+ </div>
288
+ <div class="row form-group">
289
+ <div class="col-md-6">
290
+ <label><?php _e('Week day', YCD_TEXT_DOMAIN); ?></label>
291
+ </div>
292
+ <div class="col-md-6">
293
+ <div class="ycd-select-wrapper">
294
+ <?php echo AdminHelper::selectBox(
295
+ $defaultData['week-days'],
296
+ $this->getOptionValue('ycd-schedule3-day'),
297
+ array(
298
+ 'name' => 'ycd-schedule3-day',
299
+ 'data-week-number-key' => 'endDayNumber',
300
+ 'class' => 'js-ycd-select ycd-date-week-day js-ycd-schedule-start-day'
301
+ )); ?>
302
+ </div>
303
+ </div>
304
+ </div>
305
+ <div class="row form-group">
306
+ <div class="col-md-6">
307
+ </div>
308
+ <div class="col-md-2">
309
+ <label class="ycd-label-of-input" for="ycd-schedule3-time"><?php _e('time', YCD_TEXT_DOMAIN); ?></label>
310
+ </div>
311
+ <div class="col-md-4">
312
+ <input type="text" name="ycd-schedule3-time" id="ycd-schedule3-time" class="form-control js-datetimepicker-seconds" value="<?php echo esc_attr($this->getOptionValue('ycd-schedule3-time')); ?>" autocomplete="off">
313
+ </div>
314
+ </div>
315
+ </div>
316
  <div class="row">
317
  <div class="col-md-6">
318
  <label for="ycd-countdown-end-sound" class="ycd-label-of-switch"><?php _e('Display On', YCD_TEXT_DOMAIN); ?></label>
classes/Filters.php CHANGED
@@ -176,7 +176,7 @@ class Filters {
176
  $defaults['countdownExpireTime']['fields'][$key]['attr']['class'] .= ' ycd-option-wrapper-pro';
177
  }
178
  }
179
- $proDateTypes = apply_filters('ycdCountdownProDateType', array('schedule', 'schedule2', 'wooCoupon'));
180
  foreach ($defaults['countdown-date-type']['fields'] as $key => $expire) {
181
  $currentValue = $expire['attr']['value'];
182
  if(in_array($currentValue, $proDateTypes)) {
176
  $defaults['countdownExpireTime']['fields'][$key]['attr']['class'] .= ' ycd-option-wrapper-pro';
177
  }
178
  }
179
+ $proDateTypes = apply_filters('ycdCountdownProDateType', array('schedule', 'schedule2', 'schedule3', 'wooCoupon'));
180
  foreach ($defaults['countdown-date-type']['fields'] as $key => $expire) {
181
  $currentValue = $expire['attr']['value'];
182
  if(in_array($currentValue, $proDateTypes)) {
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.021);
79
- self::addDefine('YCD_VERSION', 2.161);
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.1.6.1';
88
  if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
89
- $versionText = '2.0.2';
90
  }
91
  self::addDefine('YCD_VERSION_TEXT', $versionText);
92
- self::addDefine('YCD_LAST_UPDATE', 'Sep 4');
93
- self::addDefine('YCD_NEXT_UPDATE', 'Sep 15');
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.03);
79
+ self::addDefine('YCD_VERSION', 2.17);
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.1.7';
88
  if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
89
+ $versionText = '2.0.3';
90
  }
91
  self::addDefine('YCD_VERSION_TEXT', $versionText);
92
+ self::addDefine('YCD_LAST_UPDATE', 'Sep 10');
93
+ self::addDefine('YCD_NEXT_UPDATE', 'Sep 25');
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.1.6.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.1.7
6
  * Author: Adam Skaat
7
  * Author URI: https://edmonsoft.com/countdown
8
  * License: GPLv2
helpers/AdminHelper.php CHANGED
@@ -465,6 +465,19 @@ class AdminHelper {
465
  'name' => __('Schedule 2', YCD_TEXT_DOMAIN)
466
  )
467
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
468
  $countdownDateTypeFields[] = array(
469
  'attr' => array(
470
  'type' => 'radio',
465
  'name' => __('Schedule 2', YCD_TEXT_DOMAIN)
466
  )
467
  );
468
+
469
+ $countdownDateTypeFields[] = array(
470
+ 'attr' => array(
471
+ 'type' => 'radio',
472
+ 'name' => 'ycd-countdown-date-type',
473
+ 'class' => 'ycd-date-type',
474
+ 'data-attr-href' => 'ycd-date-schedule3',
475
+ 'value' => 'schedule3'
476
+ ),
477
+ 'label' => array(
478
+ 'name' => __('Upcoming Day Of Week (Recurring)', YCD_TEXT_DOMAIN)
479
+ )
480
+ );
481
  $countdownDateTypeFields[] = array(
482
  'attr' => array(
483
  'type' => 'radio',
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.8.1
6
- Stable tag: 2.1.6.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,9 @@ 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.6.1 =
71
  * Time zone bug fixed
72
 
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 5.8.1
6
+ Stable tag: 2.1.7
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.7 =
71
+ * Upcoming Day Of Week (Recurring) (New Feature)
72
+
73
  = 2.1.6.1 =
74
  * Time zone bug fixed
75