Countdown, Coming Soon – Countdown & Clock - Version 1.5.5

Version Description

  • More plugins section
  • Count Up option save bug fixed
Download this release

Release Info

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

Code changes from version 1.5.4 to 1.5.5

assets/css/Css.php CHANGED
@@ -23,6 +23,10 @@ class Css {
23
  public function getSubscribersPageKey() {
24
  return YCD_COUNTDOWN_POST_TYPE.'_page_'.YCD_COUNTDOWN_SUBSCRIBERS;
25
  }
 
 
 
 
26
 
27
  public function getNewsletterPageKey() {
28
  return YCD_COUNTDOWN_POST_TYPE.'_page_'.YCD_COUNTDOWN_NEWSLETTER;
@@ -41,11 +45,13 @@ class Css {
41
  $supportKey = $this->getSupportPageKey();
42
  $subscriberKey = $this->getSubscribersPageKey();
43
  $newsletterKey = $this->getNewsletterPageKey();
 
44
  $allowedPages = array(
45
  $settingsKey,
46
  $supportKey,
47
  $subscriberKey,
48
  $newsletterKey,
 
49
  'ycdcountdown_page_ycdcountdown',
50
  );
51
  if(in_array($hook, $allowedPages) || get_post_type(@$_GET['post']) == YCD_COUNTDOWN_POST_TYPE) {
23
  public function getSubscribersPageKey() {
24
  return YCD_COUNTDOWN_POST_TYPE.'_page_'.YCD_COUNTDOWN_SUBSCRIBERS;
25
  }
26
+
27
+ public function getMorePluginsPage() {
28
+ return YCD_COUNTDOWN_POST_TYPE.'_page_'.YCD_COUNTDOWN_MORE_PLUGINS;
29
+ }
30
 
31
  public function getNewsletterPageKey() {
32
  return YCD_COUNTDOWN_POST_TYPE.'_page_'.YCD_COUNTDOWN_NEWSLETTER;
45
  $supportKey = $this->getSupportPageKey();
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) {
assets/css/admin.css CHANGED
@@ -585,4 +585,68 @@ div.ycd-tabs-text-header > div.ycd-toggle-icon-open {
585
  padding: 0 12px;
586
  display: inline-block;
587
  margin-top: 8px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
588
  }
585
  padding: 0 12px;
586
  display: inline-block;
587
  margin-top: 8px;
588
+ }
589
+
590
+ /*More plugins section*/
591
+ #ycd-plugins-wrapper .plugin-card .action-links {
592
+ top: -3px !important;
593
+ }
594
+ #ycd-plugins-wrapper {
595
+ width: 90%;
596
+ margin: 0 auto;
597
+ padding-top: 30px;
598
+ }
599
+
600
+ .plugin-icon {
601
+ top: 0px !important;
602
+ left: 10px !important;
603
+ }
604
+
605
+ .plugin-card .desc {
606
+ margin-right: 0px;
607
+ }
608
+
609
+ .plugin-card-top {
610
+ padding-top: 0px !important;
611
+ }
612
+
613
+ .plugin-card .compatibility-compatible:before {
614
+ content: "\f147" !important;
615
+ }
616
+
617
+ #ycd-plugins-wrapper .column-compatibility {
618
+ width: 100%;
619
+ text-align: inherit;
620
+ }
621
+
622
+ #ycd-plugins-wrapper .plugin-card {
623
+ cursor: pointer;
624
+ }
625
+
626
+ #plugin-icon-contact-form {
627
+ width:128px;
628
+ height:128px;
629
+ background-image: url(//ps.w.org/contact-form-master/assets/icon-128x128.png?rev=1293306);
630
+ background-size:128px 128px;
631
+ }
632
+
633
+ #plugin-icon-readmore {
634
+ width:128px;
635
+ height:128px;
636
+ background-image: url(https://ps.w.org/expand-maker/assets/icon-128x128.png?rev=1696507);
637
+ background-size:128px 128px;
638
+ }
639
+
640
+ #plugin-icon-download {
641
+ width:128px;
642
+ height:128px;
643
+ background-image: url(https://ps.w.org/ydn-download/assets/icon-128x128.png?rev=1696507);
644
+ background-size:128px 128px;
645
+ }
646
+
647
+ #plugin-icon-scroll-top {
648
+ width:128px;
649
+ height:128px;
650
+ background-image: url(https://ps.w.org/scroll-to-top-builder/assets/icon-128x128.png?rev=1696507);
651
+ background-size:128px 128px;
652
  }
assets/views/morePlugins.php ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ use ycd\AdminHelper;
3
+ $contactFormUrl = AdminHelper::getPluginActivationUrl('contact-form-master');
4
+ $expandMaker = AdminHelper::getPluginActivationUrl('expand-maker');
5
+ $downloaderURL = AdminHelper::getPluginActivationUrl('ydn-download');
6
+ $scrollToTop = AdminHelper::getPluginActivationUrl('scroll-to-top-builder');
7
+ ?>
8
+ <div class="plugin-group" id="ycd-plugins-wrapper">
9
+
10
+ <div class="plugin-card">
11
+ <div class="plugin-card-top">
12
+ <a href="#" target="_blank" class="plugin-icon"><div class="plugin-icon" id="plugin-icon-contact-form"></div></a>
13
+ <div class="name column-name">
14
+ <h4>
15
+ <a href="https://wordpress.org/plugins/contact-form-master/" target="_blank">Contact Form</a>
16
+ <div class="action-links">
17
+ <span class="plugin-action-buttons">
18
+ <a class="install-now button" data-slug="contact-form-master" href="<?php echo $contactFormUrl; ?>">Install Now</a>
19
+ </span>
20
+ </div>
21
+ </h4>
22
+ </div>
23
+ <div class="desc column-description">
24
+ <p>Contact form is the most complete Contact form plugin. You can create different 'contact forms' with different fields.</p>
25
+ <div class="column-compatibility"><span class="compatibility-compatible"><strong>Compatible</strong> with your version of WordPress</span></div>
26
+ </div>
27
+ </div>
28
+ </div>
29
+ <div class="plugin-card">
30
+ <div class="plugin-card-top">
31
+ <a href="https://wordpress.org/plugins/expand-maker/" target="_blank" class="plugin-icon"><div class="plugin-icon" id="plugin-icon-readmore"></div></a>
32
+ <div class="name column-name">
33
+ <h4>
34
+ <a href="https://wordpress.org/plugins/expand-maker/" target="_blank">Read More</a>
35
+ <div class="action-links">
36
+ <span class="plugin-action-buttons">
37
+ <a class="install-now button" data-slug="expand-maker" href="<?php echo $expandMaker; ?>">Install Now</a>
38
+ </span>
39
+ </div>
40
+ </h4>
41
+ </div>
42
+ <div class="desc column-description">
43
+ <p>The best wordpress "Read more" plugin to help you show or hide your long content.</p>
44
+ <div class="column-compatibility"><span class="compatibility-compatible"><strong>Compatible</strong> with your version of WordPress</span></div>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ <div class="plugin-card">
49
+ <div class="plugin-card-top">
50
+ <a href="https://wordpress.org/plugins/ydn-download/" target="_blank" class="plugin-icon"><div class="plugin-icon" id="plugin-icon-download"></div></a>
51
+ <div class="name column-name">
52
+ <h4>
53
+ <a href="https://wordpress.org/plugins/ydn-download/" target="_blank">Download,Digital Downloads,Download Manager,Download Monitor</a>
54
+ <div class="action-links">
55
+ <span class="plugin-action-buttons">
56
+ <a class="install-now button" data-slug="countdown-builder" href="<?php echo $downloaderURL; ?>">Install Now</a>
57
+ </span>
58
+ </div>
59
+ </h4>
60
+ </div>
61
+ <div class="desc column-description">
62
+ <p>The easiest way to download files via wordpress Download plugin</p>
63
+ <div class="column-compatibility"><span class="compatibility-compatible"><strong>Compatible</strong> with your version of WordPress</span></div>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ <div class="plugin-card">
68
+ <div class="plugin-card-top">
69
+ <a href="https://wordpress.org/plugins/countdown-builder/" target="_blank" class="plugin-icon"><div class="plugin-icon" id="plugin-icon-scroll-top"></div></a>
70
+ <div class="name column-name">
71
+ <h4>
72
+ <a href="https://wordpress.org/plugins/scroll-to-top-builder/" target="_blank">Scroll to Top – WordPress Scroll to Top plugin.</a>
73
+ <div class="action-links">
74
+ <span class="plugin-action-buttons">
75
+ <a class="install-now button" data-slug="countdown-builder" href="<?php echo $scrollToTop; ?>">Install Now</a>
76
+ </span>
77
+ </div>
78
+ </h4>
79
+ </div>
80
+ <div class="desc column-description">
81
+ <p>Scroll To Top Builder plugin allows the visitor to easily scroll back to the top of the page.</p>
82
+ <div class="column-compatibility"><span class="compatibility-compatible"><strong>Compatible</strong> with your version of WordPress</span></div>
83
+ </div>
84
+ </div>
85
+ </div>
86
+
87
+ </div>
classes/Actions.php CHANGED
@@ -131,6 +131,7 @@ class Actions {
131
  }
132
  $postData = Countdown::parseCountdownDataFromData($_POST);
133
  $postData = apply_filters('ycdSavedData', $postData);
 
134
  if(empty($postData)) {
135
  return false;
136
  }
131
  }
132
  $postData = Countdown::parseCountdownDataFromData($_POST);
133
  $postData = apply_filters('ycdSavedData', $postData);
134
+
135
  if(empty($postData)) {
136
  return false;
137
  }
classes/RegisterPostType.php CHANGED
@@ -201,6 +201,7 @@ class RegisterPostType {
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, __('Subscribers', YCD_TEXT_DOMAIN), __('Subscribers', YCD_TEXT_DOMAIN).$menuLabel, 'ycd_manage_options', YCD_COUNTDOWN_SUBSCRIBERS, array($this, 'countdownSubscribers'));
 
204
  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'));
205
  }
206
 
@@ -217,6 +218,10 @@ class RegisterPostType {
217
  require_once YCD_VIEWS_PATH.'support.php';
218
  }
219
 
 
 
 
 
220
  public function countdownSubscribers() {
221
  require_once YCD_VIEWS_PATH.'subscribers.php';
222
  }
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, __('Subscribers', YCD_TEXT_DOMAIN), __('Subscribers', YCD_TEXT_DOMAIN).$menuLabel, 'ycd_manage_options', YCD_COUNTDOWN_SUBSCRIBERS, array($this, 'countdownSubscribers'));
204
+ 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'));
205
  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'));
206
  }
207
 
218
  require_once YCD_VIEWS_PATH.'support.php';
219
  }
220
 
221
+ public function morePlugins() {
222
+ require_once YCD_VIEWS_PATH.'morePlugins.php';
223
+ }
224
+
225
  public function countdownSubscribers() {
226
  require_once YCD_VIEWS_PATH.'subscribers.php';
227
  }
classes/countdown/Countdown.php CHANGED
@@ -313,7 +313,7 @@ abstract class Countdown {
313
 
314
  $defaultData = $this->getDefaultDataByName($optionName);
315
  $savedData = $this->getSavedData();
316
-
317
  $optionValue = null;
318
 
319
  if (empty($defaultData['type'])) {
313
 
314
  $defaultData = $this->getDefaultDataByName($optionName);
315
  $savedData = $this->getSavedData();
316
+
317
  $optionValue = null;
318
 
319
  if (empty($defaultData['type'])) {
config/config.php CHANGED
@@ -37,6 +37,7 @@ class YcdCountdownConfig {
37
  self::addDefine('YCD_HELPERS_PATH', YCD_COUNTDOWN_PATH.'helpers/');
38
  self::addDefine('YCD_COUNTDOWN_POST_TYPE', 'ycdcountdown');
39
  self::addDefine('YCD_COUNTDOWN_SETTINGS', 'ycdSettings');
 
40
  self::addDefine('YCD_COUNTDOWN_SUPPORT', 'supports');
41
  self::addDefine('YCD_COUNTDOWN_NEWSLETTER', 'ycdNewsletter');
42
  self::addDefine('YCD_COUNTDOWN_SUBSCRIBERS', 'ycdSubscribers');
@@ -56,8 +57,8 @@ class YcdCountdownConfig {
56
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
57
  self::addDefine('YCD_AJAX_SUCCESS', 1);
58
  self::addDefine('YCD_TABLE_LIMIT', 15);
59
- self::addDefine('YCD_VERSION_PRO', 1.4);
60
- self::addDefine('YCD_VERSION', 1.54);
61
  self::addDefine('YCD_FREE_VERSION', 1);
62
  self::addDefine('YCD_SILVER_VERSION', 2);
63
  self::addDefine('YCD_GOLD_VERSION', 3);
37
  self::addDefine('YCD_HELPERS_PATH', YCD_COUNTDOWN_PATH.'helpers/');
38
  self::addDefine('YCD_COUNTDOWN_POST_TYPE', 'ycdcountdown');
39
  self::addDefine('YCD_COUNTDOWN_SETTINGS', 'ycdSettings');
40
+ self::addDefine('YCD_COUNTDOWN_MORE_PLUGINS', 'ycdPlugins');
41
  self::addDefine('YCD_COUNTDOWN_SUPPORT', 'supports');
42
  self::addDefine('YCD_COUNTDOWN_NEWSLETTER', 'ycdNewsletter');
43
  self::addDefine('YCD_COUNTDOWN_SUBSCRIBERS', 'ycdSubscribers');
57
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
58
  self::addDefine('YCD_AJAX_SUCCESS', 1);
59
  self::addDefine('YCD_TABLE_LIMIT', 15);
60
+ self::addDefine('YCD_VERSION_PRO', 1.41);
61
+ self::addDefine('YCD_VERSION', 1.55);
62
  self::addDefine('YCD_FREE_VERSION', 1);
63
  self::addDefine('YCD_SILVER_VERSION', 2);
64
  self::addDefine('YCD_GOLD_VERSION', 3);
config/optionsConfig.php CHANGED
@@ -99,7 +99,7 @@ class YcdCountdownOptionsConfig {
99
  'type' => 'text',
100
  'defaultValue' => __('hideCountdown', YCD_TEXT_DOMAIN),
101
  'ver' => YCD_SILVER_VERSION,
102
- 'allow' => array('hideCountdown', 'default')
103
  );
104
  $options[] = array('name' => 'ycd-expire-text', 'type' => 'html', 'defaultValue' => __('', YCD_TEXT_DOMAIN), 'ver' => YCD_SILVER_VERSION);
105
  $options[] = array('name' => 'ycd-expire-url', 'type' => 'text', 'defaultValue' => __('', YCD_TEXT_DOMAIN), 'ver' => YCD_SILVER_VERSION);
99
  'type' => 'text',
100
  'defaultValue' => __('hideCountdown', YCD_TEXT_DOMAIN),
101
  'ver' => YCD_SILVER_VERSION,
102
+ 'allow' => array('hideCountdown', 'default', 'countToUp')
103
  );
104
  $options[] = array('name' => 'ycd-expire-text', 'type' => 'html', 'defaultValue' => __('', YCD_TEXT_DOMAIN), 'ver' => YCD_SILVER_VERSION);
105
  $options[] = array('name' => 'ycd-expire-url', 'type' => 'text', 'defaultValue' => __('', YCD_TEXT_DOMAIN), 'ver' => YCD_SILVER_VERSION);
countdown-builder.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Countdown builder
4
  * Description: The best countdown plugin
5
- * Version: 1.5.4
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.5.5
6
  * Author: Adam Skaat
7
  * Author URI: https://edmonsoft.com/countdown
8
  * License: GPLv2
helpers/AdminHelper.php CHANGED
@@ -1153,4 +1153,20 @@ class AdminHelper {
1153
 
1154
  return $result;
1155
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1156
  }
1153
 
1154
  return $result;
1155
  }
1156
+
1157
+ public static function getPluginActivationUrl($key) {
1158
+ $action = 'install-plugin';
1159
+ $contactFormUrl = wp_nonce_url(
1160
+ add_query_arg(
1161
+ array(
1162
+ 'action' => $action,
1163
+ 'plugin' => $key
1164
+ ),
1165
+ admin_url( 'update.php' )
1166
+ ),
1167
+ $action.'_'.$key
1168
+ );
1169
+
1170
+ return $contactFormUrl;
1171
+ }
1172
  }
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.2.2
6
- Stable tag: 1.5.4
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -64,6 +64,10 @@ You need to select the .zip file, there is no need to extract the zip file, just
64
 
65
 
66
  == Changelog ==
 
 
 
 
67
  = 1.5.4 =
68
  * Code improvement (added new actions and triggers)
69
  * Analytic Extension
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.5.5
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
64
 
65
 
66
  == Changelog ==
67
+ = 1.5.5 =
68
+ * More plugins section
69
+ * Count Up option save bug fixed
70
+
71
  = 1.5.4 =
72
  * Code improvement (added new actions and triggers)
73
  * Analytic Extension