Countdown, Coming Soon – Countdown & Clock - Version 1.8.9

Version Description

  • Added Demo website
  • Improved deactivation survey
  • Fixed Timer countdown buttons issue
  • Schedule countdown bug fixed
  • Sticky countdown bug fixed
Download this release

Release Info

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

Code changes from version 1.8.8 to 1.8.9

assets/css/admin.css CHANGED
@@ -120,7 +120,7 @@
120
 
121
  .woo-countdown,
122
  .woo-countdown-pro {
123
- background-image: url("../img/woo.png");
124
  background-size: 100% 100%;
125
  }
126
 
120
 
121
  .woo-countdown,
122
  .woo-countdown-pro {
123
+ background-image: url("../img/Woo.png");
124
  background-size: 100% 100%;
125
  }
126
 
assets/css/admin/deactivationSurvey.css CHANGED
@@ -289,6 +289,22 @@
289
  width: 92%;
290
  }
291
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
292
  @media only screen and (max-width: 740px) {
293
  .countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl .countdown-builder-deactivation-survey-popup-cel .countdown-builder-deactivation-survey-popup-content h3 {
294
  line-height: 1.1;
289
  width: 92%;
290
  }
291
 
292
+ .ycd-deactivate-button-red {
293
+ border: 1px solid #C20000;
294
+ color: #C20000 !important;
295
+ display: inline-block;
296
+ background-color: transparent;
297
+ border-radius: 5px;
298
+ cursor: pointer;
299
+ padding: 10px 18px;
300
+ text-transform: uppercase;
301
+ outline: 0;
302
+ transition: background-color .2s ease-out;
303
+ text-decoration: none;
304
+ font-weight: bold !important;
305
+ font-size: 15px !important;
306
+ }
307
+
308
  @media only screen and (max-width: 740px) {
309
  .countdown-builder-deactivation-survey-popup-container .countdown-builder-deactivation-survey-popup-tbl .countdown-builder-deactivation-survey-popup-cel .countdown-builder-deactivation-survey-popup-content h3 {
310
  line-height: 1.1;
assets/css/timer.css CHANGED
@@ -59,3 +59,7 @@
59
  .ycd-hide-label {
60
  display: none;
61
  }
 
 
 
 
59
  .ycd-hide-label {
60
  display: none;
61
  }
62
+
63
+ .ycd-timer-box.ycd-timer-box-next {
64
+ display: none;
65
+ }
assets/views/admin/comingSoon/comingSoonSettings.php CHANGED
@@ -4,6 +4,10 @@ use ycd\MultipleChoiceButton;
4
  $defaultData = AdminHelper::defaultData();
5
  $createCountdown = YCD_COUNTDOWN_ADMIN_URL.'edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE.'&page='.YCD_COUNTDOWN_POST_TYPE;
6
  $countdownsIdAndTitle = \ycd\Countdown::getCountdownsIdAndTitle();
 
 
 
 
7
  ?>
8
  <div class="panel panel-default">
9
  <div class="panel-heading"><?php _e('Settings', YCD_TEXT_DOMAIN)?></div>
4
  $defaultData = AdminHelper::defaultData();
5
  $createCountdown = YCD_COUNTDOWN_ADMIN_URL.'edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE.'&page='.YCD_COUNTDOWN_POST_TYPE;
6
  $countdownsIdAndTitle = \ycd\Countdown::getCountdownsIdAndTitle();
7
+ if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
8
+ $isPro = '-pro';
9
+ $proSpan = '<span class="ycd-pro-span">'.__('pro', YCD_TEXT_DOMAIN).'</span>';
10
+ }
11
  ?>
12
  <div class="panel panel-default">
13
  <div class="panel-heading"><?php _e('Settings', YCD_TEXT_DOMAIN)?></div>
assets/views/admin/comingSoon/comingSoonSupport.php CHANGED
@@ -18,4 +18,5 @@
18
  }
19
  </style>
20
  </div>
 
21
  </div>
18
  }
19
  </style>
20
  </div>
21
+ <?php require_once YCD_ADMIN_VIEWS_PATH.'demo.php'; ?>
22
  </div>
assets/views/admin/demo.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php if(YCD_PKG_VERSION == YCD_FREE_VERSION): ?>
2
+ <div class="row form-group">
3
+ <div class="col-md-6">
4
+ <label><?php _e('DEMO')?></label>
5
+ </div>
6
+ <div class="col-md-6">
7
+
8
+ </div>
9
+ </div>
10
+ <div class="row form-group">
11
+ <div class="col-md-4">
12
+ <span><?php _e('Website')?></span><br><br>
13
+ <label><a href="<?php echo YCD_DEMO_URL; ?>" target="_blank">Visit</a></label>
14
+ </div>
15
+ <div class="col-md-4">
16
+ <span><?php _e('Login')?></span><br><br>
17
+ <label><span>demo</span></label>
18
+ </div>
19
+ <div class="col-md-4">
20
+ <span><?php _e('Password')?></span><br><br>
21
+ <label><span>demo</span></label>
22
+ </div>
23
+ </div>
24
+ <?php endif; ?>
assets/views/admin/shortcodeMetabox.php CHANGED
@@ -1,26 +1,31 @@
1
  <div class="ycd-bootstrap-wrapper">
2
- <label>
3
- <?php _e('Shortcode', YCD_TEXT_DOMAIN); ?>
4
- </label>
5
- <?php
6
- $postId = @$_GET['post'];
7
- if (empty($postId)) : ?>
8
- <p>Please do save the Countdown, to getting the shortcode.</p>
9
- <?php else: ?>
10
- <div class="ycd-tooltip">
11
- <span class="ycd-tooltiptext" id="ycd-tooltip-<?php echo $postId; ?>">Copy to clipboard</span><input type="text" data-id="<?php echo $postId; ?>" onfocus="this.select();" readonly="" id="ycd-shortcode-input-<?php echo $postId; ?>" value="[ycd_countdown id=<?php echo $postId; ?>]" class="large-text code countdown-shortcode"></div>
12
- <?php endif; ?>
13
-
14
- <label>
15
- <?php _e('Current version', YCD_TEXT_DOMAIN); ?>
16
- </label>
17
- <p class="current-version-text" style="color: #3474ff;"><?php echo YCD_VERSION_TEXT; ?></p>
18
- <label>
19
- <?php _e('Last update date', YCD_TEXT_DOMAIN); ?>
20
- </label>
21
- <p style="color: #11ca79;"><?php echo YCD_LAST_UPDATE; ?></p>
22
- <label>
23
- <?php _e('Next update date', YCD_TEXT_DOMAIN); ?>
24
- </label>
25
- <p style="color: #efc150;"><?php echo YCD_NEXT_UPDATE; ?></p>
26
- </div>
 
 
 
 
 
1
  <div class="ycd-bootstrap-wrapper">
2
+ <?php require_once YCD_ADMIN_VIEWS_PATH.'demo.php'; ?>
3
+ <div class="row">
4
+ <div class="col-md-12">
5
+ <label>
6
+ <?php _e('Shortcode', YCD_TEXT_DOMAIN); ?>
7
+ </label>
8
+ <?php
9
+ $postId = @$_GET['post'];
10
+ if (empty($postId)) : ?>
11
+ <p>Please do save the Countdown, to getting the shortcode.</p>
12
+ <?php else: ?>
13
+ <div class="ycd-tooltip">
14
+ <span class="ycd-tooltiptext" id="ycd-tooltip-<?php echo $postId; ?>">Copy to clipboard</span><input type="text" data-id="<?php echo $postId; ?>" onfocus="this.select();" readonly="" id="ycd-shortcode-input-<?php echo $postId; ?>" value="[ycd_countdown id=<?php echo $postId; ?>]" class="large-text code countdown-shortcode"></div>
15
+ <?php endif; ?>
16
+ <br>
17
+ <label>
18
+ <?php _e('Current version', YCD_TEXT_DOMAIN); ?>
19
+ </label>
20
+ <p class="current-version-text" style="color: #3474ff;"><?php echo YCD_VERSION_TEXT; ?></p>
21
+ <label>
22
+ <?php _e('Last update date', YCD_TEXT_DOMAIN); ?>
23
+ </label>
24
+ <p style="color: #11ca79;"><?php echo YCD_LAST_UPDATE; ?></p>
25
+ <label>
26
+ <?php _e('Next update date', YCD_TEXT_DOMAIN); ?>
27
+ </label>
28
+ <p style="color: #efc150;"><?php echo YCD_NEXT_UPDATE; ?></p>
29
+ </div>
30
+ </div>
31
+ </div>
assets/views/admin/uninstallSurveyPopup.php CHANGED
@@ -23,7 +23,15 @@
23
  <div class="countdown-builder-deactivate-feedback-dialog-input-wrapper">
24
  <input id="countdown-builder-deactivate-feedback-couldnt_get_the_plugin_to_work" class="countdown-builder-deactivate-feedback-dialog-input" type="radio" name="countdown-builder_reason_key" value="couldnt_get_the_plugin_to_work">
25
  <label for="countdown-builder-deactivate-feedback-couldnt_get_the_plugin_to_work" class="countdown-builder-deactivate-feedback-dialog-label">I couldn't get the plugin to work</label>
26
- </div>
 
 
 
 
 
 
 
 
27
  <div class="countdown-builder-deactivate-feedback-dialog-input-wrapper">
28
  <input id="countdown-builder-deactivate-feedback-temporary_deactivation" class="countdown-builder-deactivate-feedback-dialog-input" type="radio" name="countdown-builder_reason_key" value="temporary_deactivation">
29
  <label for="countdown-builder-deactivate-feedback-temporary_deactivation" class="countdown-builder-deactivate-feedback-dialog-label">It's a temporary deactivation</label>
23
  <div class="countdown-builder-deactivate-feedback-dialog-input-wrapper">
24
  <input id="countdown-builder-deactivate-feedback-couldnt_get_the_plugin_to_work" class="countdown-builder-deactivate-feedback-dialog-input" type="radio" name="countdown-builder_reason_key" value="couldnt_get_the_plugin_to_work">
25
  <label for="countdown-builder-deactivate-feedback-couldnt_get_the_plugin_to_work" class="countdown-builder-deactivate-feedback-dialog-label">I couldn't get the plugin to work</label>
26
+ <div class="countdown-builder-feedback-text countdown-builder-survey-sub-choice">
27
+ <?php _e('Write Support here'); ?>
28
+ <a href="https://wordpress.org/support/plugin/countdown-builder/" target="_blank">
29
+ <button type="button" id="ycd-report-problem-button" class="ycd-deactivate-button-red pull-right">
30
+ <i class="glyphicon glyphicon-alert"></i>Report issue
31
+ </button>
32
+ </a>
33
+ </div>
34
+ </div>
35
  <div class="countdown-builder-deactivate-feedback-dialog-input-wrapper">
36
  <input id="countdown-builder-deactivate-feedback-temporary_deactivation" class="countdown-builder-deactivate-feedback-dialog-input" type="radio" name="countdown-builder_reason_key" value="temporary_deactivation">
37
  <label for="countdown-builder-deactivate-feedback-temporary_deactivation" class="countdown-builder-deactivate-feedback-dialog-label">It's a temporary deactivation</label>
classes/countdown/StickyCountdown.php CHANGED
@@ -155,7 +155,7 @@ class StickyCountdown extends Countdown {
155
  $stickyUrl = $this->getOptionValue('ycd-sticky-url');
156
  $actionUrl = "window.location.href = $stickyUrl";
157
 
158
- if ($settings['ycd-sticky-button-redirect-new-tab']) {
159
  $actionUrl = "window.open('$stickyUrl')";
160
  }
161
 
155
  $stickyUrl = $this->getOptionValue('ycd-sticky-url');
156
  $actionUrl = "window.location.href = $stickyUrl";
157
 
158
+ if (!empty($settings['ycd-sticky-button-redirect-new-tab'])) {
159
  $actionUrl = "window.open('$stickyUrl')";
160
  }
161
 
config/config.php CHANGED
@@ -63,14 +63,15 @@ class YcdCountdownConfig {
63
  self::addDefine('YCD_PROGRESS_METABOX_TITLE', __('Progress Bar', YCD_TEXT_DOMAIN));
64
  self::addDefine('YCD_COUNTDOWN_MENU_TITLE', 'Countdown & Clock');
65
  self::addDefine('YCD_COUNTDOWN_SUPPORT_URL', 'https://wordpress.org/support/plugin/countdown-builder/');
 
66
  self::addDefine('YCD_FILTER_REPEAT_INTERVAL', 50);
67
  self::addDefine('YCD_SHOW_REVIEW_PERIOD', 30);
68
  self::addDefine('YCD_PRODUCTS_LIMIT', 1000);
69
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
70
  self::addDefine('YCD_AJAX_SUCCESS', 1);
71
  self::addDefine('YCD_TABLE_LIMIT', 15);
72
- self::addDefine('YCD_VERSION_PRO', 1.74);
73
- self::addDefine('YCD_VERSION', 1.88);
74
  self::addDefine('YCD_FREE_VERSION', 1);
75
  self::addDefine('YCD_SILVER_VERSION', 2);
76
  self::addDefine('YCD_GOLD_VERSION', 3);
@@ -78,13 +79,13 @@ class YcdCountdownConfig {
78
  self::addDefine('YCD_EXTENSION_VERSION', 99);
79
  require_once(dirname(__FILE__).'/config-pkg.php');
80
 
81
- $versionText = '1.8.8';
82
  if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
83
- $versionText = '1.7.4';
84
  }
85
  self::addDefine('YCD_VERSION_TEXT', $versionText);
86
- self::addDefine('YCD_LAST_UPDATE', 'Sep 13');
87
- self::addDefine('YCD_NEXT_UPDATE', 'Sep 29');
88
  }
89
 
90
  public static function displaySettings() {
63
  self::addDefine('YCD_PROGRESS_METABOX_TITLE', __('Progress Bar', YCD_TEXT_DOMAIN));
64
  self::addDefine('YCD_COUNTDOWN_MENU_TITLE', 'Countdown & Clock');
65
  self::addDefine('YCD_COUNTDOWN_SUPPORT_URL', 'https://wordpress.org/support/plugin/countdown-builder/');
66
+ self::addDefine('YCD_DEMO_URL', 'https://edmonsoft.com/demo/wp-admin/edit.php?post_type=ycdcountdown');
67
  self::addDefine('YCD_FILTER_REPEAT_INTERVAL', 50);
68
  self::addDefine('YCD_SHOW_REVIEW_PERIOD', 30);
69
  self::addDefine('YCD_PRODUCTS_LIMIT', 1000);
70
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
71
  self::addDefine('YCD_AJAX_SUCCESS', 1);
72
  self::addDefine('YCD_TABLE_LIMIT', 15);
73
+ self::addDefine('YCD_VERSION_PRO', 1.75);
74
+ self::addDefine('YCD_VERSION', 1.89);
75
  self::addDefine('YCD_FREE_VERSION', 1);
76
  self::addDefine('YCD_SILVER_VERSION', 2);
77
  self::addDefine('YCD_GOLD_VERSION', 3);
79
  self::addDefine('YCD_EXTENSION_VERSION', 99);
80
  require_once(dirname(__FILE__).'/config-pkg.php');
81
 
82
+ $versionText = '1.8.9';
83
  if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
84
+ $versionText = '1.7.5';
85
  }
86
  self::addDefine('YCD_VERSION_TEXT', $versionText);
87
+ self::addDefine('YCD_LAST_UPDATE', 'Sep 29');
88
+ self::addDefine('YCD_NEXT_UPDATE', 'Oct 29');
89
  }
90
 
91
  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: 1.8.8
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: 1.8.9
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.5.1
6
- Stable tag: 1.8.8
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -66,6 +66,13 @@ Yes you can, we have Circle and Flipclock countdown popups.
66
  You need to select the .zip file, there is no need to extract the zip file, just upload it.
67
 
68
  == Changelog ==
 
 
 
 
 
 
 
69
  = 1.8.8 =
70
  * Deactivation survey
71
 
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 5.5.1
6
+ Stable tag: 1.8.9
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
66
  You need to select the .zip file, there is no need to extract the zip file, just upload it.
67
 
68
  == Changelog ==
69
+ = 1.8.9 =
70
+ * Added Demo website
71
+ * Improved deactivation survey
72
+ * Fixed Timer countdown buttons issue
73
+ * Schedule countdown bug fixed
74
+ * Sticky countdown bug fixed
75
+
76
  = 1.8.8 =
77
  * Deactivation survey
78