Countdown, Coming Soon – Countdown & Clock - Version 1.6.2

Version Description

  • Coming Soon Page (new)
Download this release

Release Info

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

Code changes from version 1.6.1 to 1.6.2

CountdownInit.php CHANGED
@@ -56,6 +56,7 @@ class CountdownInit {
56
  require_once YCD_CLASSES_PATH.'Ajax.php';
57
  require_once YCD_CLASSES_PATH.'Filters.php';
58
  require_once YCD_CLASSES_PATH.'Installer.php';
 
59
  if (YCD_PKG_VERSION > YCD_FREE_VERSION) {
60
  require_once YCD_CLASSES_PATH.'Subscription.php';
61
  require_once YCD_CLASSES_PATH.'AjaxPro.php';
56
  require_once YCD_CLASSES_PATH.'Ajax.php';
57
  require_once YCD_CLASSES_PATH.'Filters.php';
58
  require_once YCD_CLASSES_PATH.'Installer.php';
59
+ require_once YCD_COUNTDOWNS_PATH.'ComingSoon.php';
60
  if (YCD_PKG_VERSION > YCD_FREE_VERSION) {
61
  require_once YCD_CLASSES_PATH.'Subscription.php';
62
  require_once YCD_CLASSES_PATH.'AjaxPro.php';
assets/css/Css.php CHANGED
@@ -15,6 +15,10 @@ class Css {
15
  public function getSettingsPageKey() {
16
  return YCD_COUNTDOWN_POST_TYPE.'_page_'.YCD_COUNTDOWN_SETTINGS;
17
  }
 
 
 
 
18
 
19
  public function getSupportPageKey() {
20
  return YCD_COUNTDOWN_POST_TYPE.'_page_'.YCD_COUNTDOWN_SUPPORT;
@@ -46,12 +50,14 @@ class Css {
46
  $subscriberKey = $this->getSubscribersPageKey();
47
  $newsletterKey = $this->getNewsletterPageKey();
48
  $morePlugins = $this->getMorePluginsPage();
 
49
  $allowedPages = array(
50
  $settingsKey,
51
  $supportKey,
52
  $subscriberKey,
53
  $newsletterKey,
54
  $morePlugins,
 
55
  'ycdcountdown_page_ycdcountdown',
56
  );
57
  if(in_array($hook, $allowedPages) || get_post_type(@$_GET['post']) == YCD_COUNTDOWN_POST_TYPE) {
15
  public function getSettingsPageKey() {
16
  return YCD_COUNTDOWN_POST_TYPE.'_page_'.YCD_COUNTDOWN_SETTINGS;
17
  }
18
+
19
+ public function getComingSoonPage() {
20
+ return YCD_COUNTDOWN_POST_TYPE.'_page_'.YCD_COUNTDOWN_COMING_SOON;
21
+ }
22
 
23
  public function getSupportPageKey() {
24
  return YCD_COUNTDOWN_POST_TYPE.'_page_'.YCD_COUNTDOWN_SUPPORT;
50
  $subscriberKey = $this->getSubscribersPageKey();
51
  $newsletterKey = $this->getNewsletterPageKey();
52
  $morePlugins = $this->getMorePluginsPage();
53
+ $comingSoonPage = $this->getComingSoonPage();
54
  $allowedPages = array(
55
  $settingsKey,
56
  $supportKey,
57
  $subscriberKey,
58
  $newsletterKey,
59
  $morePlugins,
60
+ $comingSoonPage,
61
  'ycdcountdown_page_ycdcountdown',
62
  );
63
  if(in_array($hook, $allowedPages) || get_post_type(@$_GET['post']) == YCD_COUNTDOWN_POST_TYPE) {
assets/views/admin/comingSoon.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="ycd-bootstrap-wrapper ycd-settings-wrapper">
2
+ <div class="row">
3
+ <div class="col-lg-8">
4
+ <div class="panel panel-default">
5
+ <div class="panel-heading"><?php _e('Settings', YCD_TEXT_DOMAIN)?></div>
6
+ <div class="panel-body">
7
+ <form method="POST" action="<?php echo admin_url().'admin-post.php?action=ycdComingSoon'?>">
8
+ <?php wp_nonce_field('ycdSaveComingSoon'); ?>
9
+ <div class="row form-group">
10
+ <div class="col-md-6">
11
+ <label for="ycd-enable-coming-soon"><?php _e('Enable'); ?></label>
12
+ </div>
13
+ <div class="col-md-6">
14
+ <label class="ycd-switch">
15
+ <input type="checkbox" id="ycd-enable-coming-soon" name="ycd-enable-coming-soon" class="" <?php echo $this->getOptionValue('ycd-enable-coming-soon'); ?>>
16
+ <span class="ycd-slider ycd-round"></span>
17
+ </label>
18
+ </div>
19
+ </div>
20
+ <div class="row form-group">
21
+ <div class="col-md-6">
22
+ <label><?php _e('Headline'); ?></label>
23
+ </div>
24
+ <div class="col-md-6">
25
+ <input type="text" class="form-control" name="ycd-coming-soon-headline" value="<?php echo esc_attr($this->getOptionValue('ycd-coming-soon-headline'));?>">
26
+ </div>
27
+ </div>
28
+ <div class="row form-group">
29
+ <div class="col-md-6">
30
+ <label><?php _e('Message'); ?></label>
31
+ </div>
32
+ <div class="col-md-12">
33
+ <?php
34
+ $content = $this->getOptionValue('ycd-coming-soon-message');
35
+ $settings = array(
36
+ 'wpautop' => false,
37
+ 'tinymce' => array(
38
+ 'width' => '100%'
39
+ ),
40
+ 'textarea_rows' => '18',
41
+ 'media_buttons' => true
42
+ );
43
+ wp_editor($content, 'ycd-coming-soon-message', $settings);
44
+ ?>
45
+ </div>
46
+ </div>
47
+ <div class="row">
48
+ <div class="col-md-12">
49
+ <div class="pull-right">
50
+ <input type="submit" class="btn btn-primary" value="save">
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </form>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ <div class="col-lg-6">
59
+ </div>
60
+ </div>
61
+
62
+ </div>
assets/views/front/comingSoonTempleate.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title></title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ </head>
8
+ <body>
9
+ <div style="text-align: center">
10
+ <?php echo apply_filters('YcdComingSoonPageBeforeHeader', ''); ?>
11
+ <?php echo apply_filters('YcdComingSoonPageHeader', ''); ?>
12
+ <?php echo apply_filters('YcdComingSoonPageAfterHeader', ''); ?>
13
+ <?php echo apply_filters('YcdComingSoonPageBeforeMessage', ''); ?>
14
+ <?php echo apply_filters('YcdComingSoonPageMessage', ''); ?>
15
+ <?php echo apply_filters('YcdComingSoonPageAfterMessage', ''); ?>
16
+ </div>
17
+ </body>
18
+ </html>
classes/Actions.php CHANGED
@@ -31,6 +31,7 @@ class Actions {
31
  add_action('widgets_init', array($this, 'loadWidgets'));
32
  add_action('media_buttons', array($this, 'ycdMediaButton'), 11);
33
  add_action('admin_post_ycdSaveSettings', array($this, 'saveSettings'), 10, 1);
 
34
  add_action('wp_head', array($this, 'wpHead'), 10, 1);
35
  add_action('admin_head', array($this, 'adminHead'));
36
  add_action('wp_enqueue_scripts', array($this, 'enqueueScripts'));
@@ -269,4 +270,18 @@ class Actions {
269
  update_option('ycd-user-roles', $userRoles);
270
  wp_redirect(admin_url().'edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE.'&page='.YCD_COUNTDOWN_SETTINGS);
271
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  }
31
  add_action('widgets_init', array($this, 'loadWidgets'));
32
  add_action('media_buttons', array($this, 'ycdMediaButton'), 11);
33
  add_action('admin_post_ycdSaveSettings', array($this, 'saveSettings'), 10, 1);
34
+ add_action('admin_post_ycdComingSoon', array($this, 'comingSoon'), 10, 1);
35
  add_action('wp_head', array($this, 'wpHead'), 10, 1);
36
  add_action('admin_head', array($this, 'adminHead'));
37
  add_action('wp_enqueue_scripts', array($this, 'enqueueScripts'));
270
  update_option('ycd-user-roles', $userRoles);
271
  wp_redirect(admin_url().'edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE.'&page='.YCD_COUNTDOWN_SETTINGS);
272
  }
273
+
274
+ public function comingSoon() {
275
+ check_admin_referer('ycdSaveComingSoon');
276
+ $postData = $_POST;
277
+ ComingSoon::saveComingSoonSettings($postData);
278
+ $adminUrl = admin_url().'/edit.php';
279
+
280
+ $url = add_query_arg( array(
281
+ 'post_type' => YCD_COUNTDOWN_POST_TYPE,
282
+ 'page' => YCD_COUNTDOWN_COMING_SOON
283
+ ), $adminUrl);
284
+
285
+ wp_redirect($url);
286
+ }
287
  }
classes/Filters.php CHANGED
@@ -17,6 +17,15 @@ class Filters {
17
 
18
  add_filter('ycdConditionsDisplayKeys', array($this, 'addTargetParams'), 1, 1);
19
  add_filter('ycdConditionsDisplayAttributes', array($this, 'attrsDisplaySettings'), 1, 1);
 
 
 
 
 
 
 
 
 
20
  }
21
 
22
  public function attrsDisplaySettings($attrs) {
17
 
18
  add_filter('ycdConditionsDisplayKeys', array($this, 'addTargetParams'), 1, 1);
19
  add_filter('ycdConditionsDisplayAttributes', array($this, 'attrsDisplaySettings'), 1, 1);
20
+ add_action( 'template_redirect', array(&$this,'theContent'),9);
21
+ }
22
+
23
+ public function theContent() {
24
+ $comingSoon = new ComingSoon();
25
+ if ($comingSoon->allowComingSoon()) {
26
+ echo $comingSoon->render();
27
+ exit;
28
+ }
29
  }
30
 
31
  public function attrsDisplaySettings($attrs) {
classes/RegisterPostType.php CHANGED
@@ -199,9 +199,10 @@ class RegisterPostType {
199
  array($this, 'countdownTypes')
200
  );
201
  add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('Newsletter', YCD_TEXT_DOMAIN), __('Newsletter', YCD_TEXT_DOMAIN).$menuLabel, 'ycd_manage_options', YCD_COUNTDOWN_NEWSLETTER, array($this, 'countdownNewsletter'));
 
202
  add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('Support', YCD_TEXT_DOMAIN), __('Support', YCD_TEXT_DOMAIN), 'ycd_manage_options', YCD_COUNTDOWN_SUPPORT, array($this, 'countdownSupport'));
203
  add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('Tutorials', YCD_TEXT_DOMAIN), __('Tutorials', YCD_TEXT_DOMAIN), 'ycd_manage_options', YCD_COUNTDOWN_TUTORIALS, array($this, 'countdownTutorials'));
204
- add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('More ideas?', YCD_TEXT_DOMAIN), __('More ideas?', YCD_TEXT_DOMAIN), 'ycd_manage_options', YCD_COUNTDOWN_IDEAS, array($this, 'countdownIdeas'));
205
  add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('Subscribers', YCD_TEXT_DOMAIN), __('Subscribers', YCD_TEXT_DOMAIN).$menuLabel, 'ycd_manage_options', YCD_COUNTDOWN_SUBSCRIBERS, array($this, 'countdownSubscribers'));
206
  add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('More Plugins', YCD_TEXT_DOMAIN), __('More Plugins', YCD_TEXT_DOMAIN), 'manage_options', YCD_COUNTDOWN_MORE_PLUGINS, array($this, 'morePlugins'));
207
  add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('Settings', YCD_TEXT_DOMAIN), __('Settings', YCD_TEXT_DOMAIN), 'manage_options', YCD_COUNTDOWN_SETTINGS, array($this, 'countdownSettings'));
@@ -216,6 +217,11 @@ class RegisterPostType {
216
  }
217
  }
218
 
 
 
 
 
 
219
  public function countdownSupport() {
220
  require_once YCD_VIEWS_PATH.'support.php';
221
  }
199
  array($this, 'countdownTypes')
200
  );
201
  add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('Newsletter', YCD_TEXT_DOMAIN), __('Newsletter', YCD_TEXT_DOMAIN).$menuLabel, 'ycd_manage_options', YCD_COUNTDOWN_NEWSLETTER, array($this, 'countdownNewsletter'));
202
+ add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('Coming Soon', YCD_TEXT_DOMAIN), __('Coming Soon', YCD_TEXT_DOMAIN), 'ycd_manage_options', YCD_COUNTDOWN_COMING_SOON, array($this, 'comingSoon'));
203
  add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('Support', YCD_TEXT_DOMAIN), __('Support', YCD_TEXT_DOMAIN), 'ycd_manage_options', YCD_COUNTDOWN_SUPPORT, array($this, 'countdownSupport'));
204
  add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('Tutorials', YCD_TEXT_DOMAIN), __('Tutorials', YCD_TEXT_DOMAIN), 'ycd_manage_options', YCD_COUNTDOWN_TUTORIALS, array($this, 'countdownTutorials'));
205
+ add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('More Ideas?', YCD_TEXT_DOMAIN), __('More Ideas?', YCD_TEXT_DOMAIN), 'ycd_manage_options', YCD_COUNTDOWN_IDEAS, array($this, 'countdownIdeas'));
206
  add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('Subscribers', YCD_TEXT_DOMAIN), __('Subscribers', YCD_TEXT_DOMAIN).$menuLabel, 'ycd_manage_options', YCD_COUNTDOWN_SUBSCRIBERS, array($this, 'countdownSubscribers'));
207
  add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('More Plugins', YCD_TEXT_DOMAIN), __('More Plugins', YCD_TEXT_DOMAIN), 'manage_options', YCD_COUNTDOWN_MORE_PLUGINS, array($this, 'morePlugins'));
208
  add_submenu_page('edit.php?post_type='.YCD_COUNTDOWN_POST_TYPE, __('Settings', YCD_TEXT_DOMAIN), __('Settings', YCD_TEXT_DOMAIN), 'manage_options', YCD_COUNTDOWN_SETTINGS, array($this, 'countdownSettings'));
217
  }
218
  }
219
 
220
+ public function comingSoon() {
221
+ $comingSoonObj = new ComingSoon();
222
+ $comingSoonObj->adminView();
223
+ }
224
+
225
  public function countdownSupport() {
226
  require_once YCD_VIEWS_PATH.'support.php';
227
  }
classes/countdown/ComingSoon.php ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace ycd;
3
+
4
+ Class ComingSoon {
5
+
6
+ public function __construct()
7
+ {
8
+ add_filter('YcdComingSoonPageHeader', array(&$this,'comingSoonPageHeader'),1,1);
9
+ add_filter('YcdComingSoonPageMessage', array(&$this,'comingSoonPageMessage'),1,1);
10
+ }
11
+
12
+ public function comingSoonPageHeader($content) {
13
+ $header = $this->getOptionValue('ycd-coming-soon-headline');
14
+ return '<h1>'.$header.'</h1>';
15
+ }
16
+
17
+ public function comingSoonPageMessage($content) {
18
+ $message = $this->getOptionValue('ycd-coming-soon-message');
19
+ return '<p>'.$message.'</p>';
20
+ }
21
+
22
+ public function allowComingSoon() {
23
+ $isAllow = $this->getOptionValue('ycd-enable-coming-soon');
24
+
25
+ if (empty($isAllow) || is_user_logged_in()) {
26
+ return false;
27
+ }
28
+ return true;
29
+ }
30
+
31
+ public function render() {
32
+ require_once YCD_FRONT_VIEWS_PATH.'comingSoonTempleate.php';
33
+ exit();
34
+ }
35
+
36
+ public static function defaults() {
37
+ $defaults = array();
38
+
39
+ $defaults['ycd-coming-soon-headline'] = 'Get Ready... Something Really Cool Is Coming Soon';
40
+ $defaults['ycd-coming-soon-message'] = '';
41
+ $defaults['ycd-enable-coming-soon'] = 'on';
42
+ $defaults['checkboxes'] = array('ycd-enable-coming-soon');
43
+
44
+ return apply_filters('ycdComingSoonDefaults', $defaults);
45
+ }
46
+
47
+ public function getSavedData() {
48
+ $settings = array();
49
+ $savedSettingsStr = get_option('ycdComingSoonSettings');
50
+
51
+ if (empty($savedSettingsStr)) {
52
+ return $settings;
53
+ }
54
+
55
+ $savedSettings = json_decode($savedSettingsStr, true);
56
+
57
+ if (empty($savedSettings)) {
58
+ return $settings;
59
+ }
60
+ $settings = $savedSettings;
61
+
62
+ return $settings;
63
+ }
64
+
65
+ public function getOptionValue($optionName) {
66
+ $defaults = ComingSoon::defaults();
67
+ $savedData = $this->getSavedData();
68
+ $checkboxes = $defaults['checkboxes'];
69
+
70
+ $optionValue = '';
71
+
72
+ if (isset($savedData[$optionName])) {
73
+ $optionValue = $savedData[$optionName];
74
+ }
75
+ else if (!in_array($optionName, $checkboxes) && isset($defaults[$optionName])) {
76
+ $optionValue = $defaults[$optionName];
77
+ }
78
+
79
+ if (in_array($optionName, $checkboxes) && !empty($optionValue)) {
80
+ $optionValue = 'checked';
81
+ }
82
+
83
+ return $optionValue;
84
+ }
85
+
86
+ public function adminView() {
87
+
88
+ require_once YCD_ADMIN_VIEWS_PATH.'comingSoon.php';
89
+ }
90
+
91
+ public static function saveComingSoonSettings($postData) {
92
+ $defaults = self::defaults();
93
+ $optionsNames = array_keys($defaults);
94
+ $savedData = array();
95
+
96
+ foreach ($optionsNames as $name) {
97
+ if (isset($postData[$name])) {
98
+ $savedData[$name] = $postData[$name];
99
+ }
100
+ }
101
+
102
+ $savedDataString = json_encode($savedData);
103
+ update_option('ycdComingSoonSettings', $savedDataString);
104
+ }
105
+ }
config/config.php CHANGED
@@ -31,6 +31,7 @@ class YcdCountdownConfig {
31
  self::addDefine('YCD_VIEWS_PATH', YCD_ASSETS_PATH.'views/');
32
  self::addDefine('YCD_VIEWS_MAIN_PATH', YCD_VIEWS_PATH.'main/');
33
  self::addDefine('YCD_ADMIN_VIEWS_PATH', YCD_VIEWS_PATH.'admin/');
 
34
  self::addDefine('YCD_PREVIEW_VIEWS_PATH', YCD_VIEWS_PATH.'preview/');
35
  self::addDefine('YCD_CSS_PATH', YCD_ASSETS_PATH.'css/');
36
  self::addDefine('YCD_JS_PATH', YCD_ASSETS_PATH.'js/');
@@ -39,6 +40,7 @@ class YcdCountdownConfig {
39
  self::addDefine('YCD_COUNTDOWN_POST_TYPE', 'ycdcountdown');
40
  self::addDefine('YCD_COUNTDOWN_SETTINGS', 'ycdSettings');
41
  self::addDefine('YCD_COUNTDOWN_MORE_PLUGINS', 'ycdPlugins');
 
42
  self::addDefine('YCD_COUNTDOWN_SUPPORT', 'supports');
43
  self::addDefine('YCD_COUNTDOWN_IDEAS', 'ycdIdeas');
44
  self::addDefine('YCD_COUNTDOWN_TUTORIALS', 'ycdTutorials');
@@ -61,8 +63,8 @@ class YcdCountdownConfig {
61
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
62
  self::addDefine('YCD_AJAX_SUCCESS', 1);
63
  self::addDefine('YCD_TABLE_LIMIT', 15);
64
- self::addDefine('YCD_VERSION_PRO', 1.47);
65
- self::addDefine('YCD_VERSION', 1.61);
66
  self::addDefine('YCD_FREE_VERSION', 1);
67
  self::addDefine('YCD_SILVER_VERSION', 2);
68
  self::addDefine('YCD_GOLD_VERSION', 3);
31
  self::addDefine('YCD_VIEWS_PATH', YCD_ASSETS_PATH.'views/');
32
  self::addDefine('YCD_VIEWS_MAIN_PATH', YCD_VIEWS_PATH.'main/');
33
  self::addDefine('YCD_ADMIN_VIEWS_PATH', YCD_VIEWS_PATH.'admin/');
34
+ self::addDefine('YCD_FRONT_VIEWS_PATH', YCD_VIEWS_PATH.'front/');
35
  self::addDefine('YCD_PREVIEW_VIEWS_PATH', YCD_VIEWS_PATH.'preview/');
36
  self::addDefine('YCD_CSS_PATH', YCD_ASSETS_PATH.'css/');
37
  self::addDefine('YCD_JS_PATH', YCD_ASSETS_PATH.'js/');
40
  self::addDefine('YCD_COUNTDOWN_POST_TYPE', 'ycdcountdown');
41
  self::addDefine('YCD_COUNTDOWN_SETTINGS', 'ycdSettings');
42
  self::addDefine('YCD_COUNTDOWN_MORE_PLUGINS', 'ycdPlugins');
43
+ self::addDefine('YCD_COUNTDOWN_COMING_SOON', 'ycdComingSoon');
44
  self::addDefine('YCD_COUNTDOWN_SUPPORT', 'supports');
45
  self::addDefine('YCD_COUNTDOWN_IDEAS', 'ycdIdeas');
46
  self::addDefine('YCD_COUNTDOWN_TUTORIALS', 'ycdTutorials');
63
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
64
  self::addDefine('YCD_AJAX_SUCCESS', 1);
65
  self::addDefine('YCD_TABLE_LIMIT', 15);
66
+ self::addDefine('YCD_VERSION_PRO', 1.48);
67
+ self::addDefine('YCD_VERSION', 1.62);
68
  self::addDefine('YCD_FREE_VERSION', 1);
69
  self::addDefine('YCD_SILVER_VERSION', 2);
70
  self::addDefine('YCD_GOLD_VERSION', 3);
countdown-builder.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Countdown builder
4
  * Description: The best countdown plugin
5
- * Version: 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
5
+ * Version: 1.6.2
6
  * Author: Adam Skaat
7
  * Author URI: https://edmonsoft.com/countdown
8
  * License: GPLv2
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === Countdown - Countdown & Clock ===
2
  Contributors: adamskaat
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 5.3
6
- Stable tag: 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
@@ -35,6 +35,7 @@ Countdown types
35
  * Flipclock countdwon
36
  * Flipclock countdwon & popup
37
  * WooCommerce countdown
 
38
 
39
  How to create Countdown example
40
 
@@ -63,6 +64,9 @@ Yes you can, we have Circle and Flipclock countdown popups.
63
  You need to select the .zip file, there is no need to extract the zip file, just upload it.
64
 
65
  == Changelog ==
 
 
 
66
  = 1.6.1 =
67
  * Shortcode Date attribute [ycd_countdown id=63 date="2019-11-25 22:25"]
68
  * JS custom trigger YcdExpired
1
+ === Countdown, Coming Soon - Countdown & Clock ===
2
  Contributors: adamskaat
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 5.3
6
+ Stable tag: 1.6.2
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
35
  * Flipclock countdwon
36
  * Flipclock countdwon & popup
37
  * WooCommerce countdown
38
+ * Coming Soon page
39
 
40
  How to create Countdown example
41
 
64
  You need to select the .zip file, there is no need to extract the zip file, just upload it.
65
 
66
  == Changelog ==
67
+ = 1.6.2 =
68
+ * Coming Soon Page (new)
69
+
70
  = 1.6.1 =
71
  * Shortcode Date attribute [ycd_countdown id=63 date="2019-11-25 22:25"]
72
  * JS custom trigger YcdExpired