Countdown, Coming Soon – Countdown & Clock - Version 1.6.3

Version Description

  • Coming Soon Header Title (new)
  • Coming Soon SEO Meta Description (new)
  • Coming Soon Favicon (new)
Download this release

Release Info

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

Code changes from version 1.6.2 to 1.6.3

assets/css/admin.css CHANGED
@@ -700,4 +700,8 @@ div.ycd-tabs-text-header > div.ycd-toggle-icon-open {
700
  .ycd-tooltip:hover .ycd-tooltiptext {
701
  visibility: visible;
702
  opacity: 1;
 
 
 
 
703
  }
700
  .ycd-tooltip:hover .ycd-tooltiptext {
701
  visibility: visible;
702
  opacity: 1;
703
+ }
704
+
705
+ .savae-changes-label {
706
+ padding-top: 6px;
707
  }
assets/js/Admin.js CHANGED
@@ -27,6 +27,8 @@ YcdAdmin.prototype.init = function() {
27
  this.proOptions();
28
  this.changeTimer();
29
 
 
 
30
  if(ycd_admin_localized.pkgVersion == 1) {
31
  this.redirectToSupportPage();
32
  }
@@ -726,6 +728,38 @@ YcdAdmin.prototype.initCountdownDateTimePicker = function() {
726
  });
727
  };
728
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
729
  jQuery(document).ready(function() {
730
  new YcdAdmin();
731
  });
27
  this.proOptions();
28
  this.changeTimer();
29
 
30
+ this.comingSoonFavicon();
31
+
32
  if(ycd_admin_localized.pkgVersion == 1) {
33
  this.redirectToSupportPage();
34
  }
728
  });
729
  };
730
 
731
+ YcdAdmin.prototype.comingSoonFavicon = function() {
732
+ var custom_uploader;
733
+ jQuery('.favicon-image-button').click(function(e) {
734
+ e.preventDefault();
735
+
736
+ /* If the uploader object has already been created, reopen the dialog */
737
+ if (custom_uploader) {
738
+ custom_uploader.open();
739
+ return;
740
+ }
741
+ /* Extend the wp.media object */
742
+ custom_uploader = wp.media.frames.file_frame = wp.media({
743
+ titleFF: 'Choose Image',
744
+ button: {
745
+ text: 'Choose Image'
746
+ },
747
+ multiple: false
748
+ });
749
+ /* When a file is selected, grab the URL and set it as the text field's value */
750
+ custom_uploader.on('select', function() {
751
+ var attachment = custom_uploader.state().get('selection').first().toJSON();
752
+ var imageURL = jQuery('#ycd-coming-soon-favicon');
753
+ imageURL.val(attachment.url);
754
+ imageURL.trigger('change');
755
+ });
756
+ /* Open the uploader dialog */
757
+ custom_uploader.open();
758
+ });
759
+
760
+ /* its finish image uploader */
761
+ };
762
+
763
  jQuery(document).ready(function() {
764
  new YcdAdmin();
765
  });
assets/js/Js.php CHANGED
@@ -15,6 +15,10 @@ class Js {
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;
@@ -65,11 +69,14 @@ class Js {
65
  $supportKey = $this->getSupportPageKey();
66
  $subscriberKey = $this->getSubscribersPageKey();
67
  $newsletterKey = $this->getNewsletterPageKey();
 
 
68
  $allowedPages = array(
69
  $settingsKey,
70
  $supportKey,
71
  $subscriberKey,
72
  $newsletterKey,
 
73
  'ycdcountdown_page_ycdcountdown'
74
  );
75
 
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;
69
  $supportKey = $this->getSupportPageKey();
70
  $subscriberKey = $this->getSubscribersPageKey();
71
  $newsletterKey = $this->getNewsletterPageKey();
72
+ $comingSoonPage = $this->getComingSoonPage();
73
+
74
  $allowedPages = array(
75
  $settingsKey,
76
  $supportKey,
77
  $subscriberKey,
78
  $newsletterKey,
79
+ $comingSoonPage,
80
  'ycdcountdown_page_ycdcountdown'
81
  );
82
 
assets/views/admin/comingSoon.php CHANGED
@@ -1,10 +1,16 @@
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">
@@ -44,19 +50,43 @@
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>
1
  <div class="ycd-bootstrap-wrapper ycd-settings-wrapper">
2
+ <form method="POST" action="<?php echo admin_url().'admin-post.php?action=ycdComingSoon'?>">
3
  <div class="row">
4
  <div class="col-lg-8">
5
+ <div class="row form-group">
6
+ <label class="savae-changes-label"><?php _e('Change settings'); ?></label>
7
+ <div class="pull-right">
8
+ <input type="submit" class="btn btn-primary" value="Save Changes">
9
+ </div>
10
+ </div>
11
  <div class="panel panel-default">
12
  <div class="panel-heading"><?php _e('Settings', YCD_TEXT_DOMAIN)?></div>
13
  <div class="panel-body">
 
14
  <?php wp_nonce_field('ycdSaveComingSoon'); ?>
15
  <div class="row form-group">
16
  <div class="col-md-6">
50
  ?>
51
  </div>
52
  </div>
 
 
 
 
 
 
 
 
53
  </div>
54
  </div>
55
+ <div class="panel panel-default">
56
+ <div class="panel-heading"><?php _e('Header Settings', YCD_TEXT_DOMAIN)?></div>
57
+ <div class="panel-body">
58
+ <div class="row form-group">
59
+ <div class="col-md-6">
60
+ <label for="ycd-coming-soon-title"><?php _e('Title', YCD_TEXT_DOMAIN); ?></label>
61
+ </div>
62
+ <div class="col-md-6">
63
+ <input type="text" class="form-control" name="ycd-coming-soon-title" id="ycd-coming-soon-title" value="<?php echo esc_attr($this->getOptionValue('ycd-coming-soon-title'));?>">
64
+ </div>
65
+ </div>
66
+ <div class="row form-group">
67
+ <div class="col-md-6">
68
+ <label for="ycd-coming-soon-seo-description"><?php _e('SEO Meta Description', YCD_TEXT_DOMAIN); ?></label>
69
+ </div>
70
+ <div class="col-md-6">
71
+ <textarea name="ycd-coming-soon-seo-description" id="ycd-coming-soon-seo-description" class="form-control"><?php echo esc_attr($this->getOptionValue('ycd-coming-soon-seo-description'));?></textarea>
72
+ </div>
73
+ </div>
74
+ <div class="row form-group">
75
+ <div class="col-md-6">
76
+ <label for="ycd-coming-soon-favicon"><?php _e('Favicon', YCD_TEXT_DOMAIN); ?></label>
77
+ </div>
78
+ <div class="col-md-4">
79
+ <input type="text" class="form-control" name="ycd-coming-soon-favicon" id="ycd-coming-soon-favicon" value="<?php echo esc_attr($this->getOptionValue('ycd-coming-soon-favicon'));?>">
80
+ </div>
81
+ <div class="col-md-2">
82
+ <button class="favicon-image-button btn btn-primary"><?php _e('Select Image', YCD_TEXT_DOMAIN); ?></button>
83
+ </div>
84
+ </div>
85
+ </div>
86
+ </div>
87
  </div>
88
  <div class="col-lg-6">
89
  </div>
90
  </div>
91
+ </form>
92
  </div>
assets/views/front/comingSoonTempleate.php CHANGED
@@ -2,8 +2,9 @@
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">
2
  <html lang="en">
3
  <head>
4
  <meta charset="utf-8">
5
+ <title><?php echo apply_filters('YcdComingSoonPageTitle', ''); ?></title>
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <?php echo apply_filters('YcdComingSoonPageHeaderContent', ''); ?>
8
  </head>
9
  <body>
10
  <div style="text-align: center">
classes/countdown/ComingSoon.php CHANGED
@@ -5,8 +5,26 @@ 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) {
@@ -39,6 +57,9 @@ Class ComingSoon {
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);
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
+ add_filter('YcdComingSoonPageTitle', array(&$this,'YcdComingSoonPageTitle'), 1, 1);
11
+ add_filter('YcdComingSoonPageHeaderContent', array(&$this,'YcdComingSoonPageHeaderContent'), 1, 1);
12
+ }
13
+
14
+ public function YcdComingSoonPageHeaderContent($content) {
15
+ $description = $this->getOptionValue('ycd-coming-soon-seo-description');
16
+ $favicon = $this->getOptionValue('ycd-coming-soon-favicon');
17
+
18
+ $content .= '<meta name="description" content="'.esc_attr($description).'">';
19
+ $content .= '<link href="'.esc_attr($favicon).'" rel="shortcut icon" type="image/x-icon" >';
20
+
21
+ return $content;
22
+ }
23
+
24
+ public function YcdComingSoonPageTitle($content) {
25
+ $title = $this->getOptionValue('ycd-coming-soon-title');
26
+
27
+ return $title;
28
  }
29
 
30
  public function comingSoonPageHeader($content) {
57
  $defaults['ycd-coming-soon-headline'] = 'Get Ready... Something Really Cool Is Coming Soon';
58
  $defaults['ycd-coming-soon-message'] = '';
59
  $defaults['ycd-enable-coming-soon'] = 'on';
60
+ $defaults['ycd-coming-soon-title'] = '';
61
+ $defaults['ycd-coming-soon-seo-description'] = '';
62
+ $defaults['ycd-coming-soon-favicon'] = '';
63
  $defaults['checkboxes'] = array('ycd-enable-coming-soon');
64
 
65
  return apply_filters('ycdComingSoonDefaults', $defaults);
config/config.php CHANGED
@@ -63,8 +63,8 @@ class YcdCountdownConfig {
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);
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.49);
67
+ self::addDefine('YCD_VERSION', 1.63);
68
  self::addDefine('YCD_FREE_VERSION', 1);
69
  self::addDefine('YCD_SILVER_VERSION', 2);
70
  self::addDefine('YCD_GOLD_VERSION', 3);
config/optionsConfig.php CHANGED
@@ -17,9 +17,9 @@ class YcdCountdownOptionsConfig {
17
  'clock7' => YCD_SILVER_VERSION,
18
  'sticky' => YCD_SILVER_VERSION,
19
  'woo' => YCD_GOLD_VERSION,
20
- 'circlePopup' => YCD_SILVER_VERSION,
21
  'flipClock' => YCD_SILVER_VERSION,
22
- 'flipClockPopup' => YCD_SILVER_VERSION
23
  ));
24
 
25
  $YCD_TYPES['typePath'] = apply_filters('ycdTypePaths', array(
17
  'clock7' => YCD_SILVER_VERSION,
18
  'sticky' => YCD_SILVER_VERSION,
19
  'woo' => YCD_GOLD_VERSION,
20
+ 'circlePopup' => YCD_GOLD_VERSION,
21
  'flipClock' => YCD_SILVER_VERSION,
22
+ 'flipClockPopup' => YCD_GOLD_VERSION
23
  ));
24
 
25
  $YCD_TYPES['typePath'] = apply_filters('ycdTypePaths', array(
countdown-builder.php CHANGED
@@ -2,7 +2,7 @@
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
2
  /**
3
  * Plugin Name: Countdown builder
4
  * Description: The best countdown plugin
5
+ * Version: 1.6.3
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.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
@@ -64,6 +64,11 @@ Yes you can, we have Circle and Flipclock countdown popups.
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
 
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 5.3
6
+ Stable tag: 1.6.3
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
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.3 =
68
+ * Coming Soon Header Title (new)
69
+ * Coming Soon SEO Meta Description (new)
70
+ * Coming Soon Favicon (new)
71
+
72
  = 1.6.2 =
73
  * Coming Soon Page (new)
74