Countdown, Coming Soon – Countdown & Clock - Version 1.4.0.1

Version Description

  • Improve Countdown Support menu link
  • Change countdown menu title to Countdown & Clock
  • minor improvement
Download this release

Release Info

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

Code changes from version 1.4.0 to 1.4.0.1

assets/js/Admin.js CHANGED
@@ -21,6 +21,10 @@ YcdAdmin.prototype.init = function() {
21
  /*clock*/
22
  this.clockLivePreview();
23
  this.proOptions();
 
 
 
 
24
  };
25
 
26
  YcdAdmin.prototype.proOptions = function() {
@@ -36,6 +40,19 @@ YcdAdmin.prototype.proOptions = function() {
36
  });
37
  };
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  YcdAdmin.prototype.promotionalVideo = function() {
40
  var target = jQuery('.ycd-play-promotion-video');
41
 
21
  /*clock*/
22
  this.clockLivePreview();
23
  this.proOptions();
24
+
25
+ if(ycd_admin_localized.pkgVersion == 1) {
26
+ this.redirectToSupportPage();
27
+ }
28
  };
29
 
30
  YcdAdmin.prototype.proOptions = function() {
40
  });
41
  };
42
 
43
+ YcdAdmin.prototype.redirectToSupportPage = function() {
44
+ var supportSubMenu = jQuery('#menu-posts-ycdcountdown a[href="edit.php?post_type=ycdcountdown&page=supports"]');
45
+
46
+ if(!supportSubMenu.length) {
47
+ return false;
48
+ }
49
+
50
+ supportSubMenu.bind('click', function(e) {
51
+ e.preventDefault();
52
+ window.open(ycd_admin_localized.supportURL);
53
+ });
54
+ };
55
+
56
  YcdAdmin.prototype.promotionalVideo = function() {
57
  var target = jQuery('.ycd-play-promotion-video');
58
 
assets/js/Js.php CHANGED
@@ -51,6 +51,8 @@ class Js {
51
  'nonce' => wp_create_nonce('ycd_ajax_nonce'),
52
  'changeSound' => __('Change the sound', YCD_TEXT_DOMAIN),
53
  'adminUrl' => admin_url(),
 
 
54
  'proUrl' => YCD_COUNTDOWN_PRO_URL
55
  ));
56
  ScriptsIncluder::registerScript('select2.js');
51
  'nonce' => wp_create_nonce('ycd_ajax_nonce'),
52
  'changeSound' => __('Change the sound', YCD_TEXT_DOMAIN),
53
  'adminUrl' => admin_url(),
54
+ 'pkgVersion' => YCD_PKG_VERSION,
55
+ 'supportURL' => YCD_COUNTDOWN_SUPPORT_URL,
56
  'proUrl' => YCD_COUNTDOWN_PRO_URL
57
  ));
58
  ScriptsIncluder::registerScript('select2.js');
classes/RegisterPostType.php CHANGED
@@ -166,20 +166,20 @@ class RegisterPostType {
166
  public function getPostTypeLabels()
167
  {
168
  $labels = array(
169
- 'name' => _x('Countdowns', 'post type general name', YCD_TEXT_DOMAIN),
170
- 'singular_name' => _x('Countdown', 'post type singular name', YCD_TEXT_DOMAIN),
171
- 'menu_name' => _x('Countdowns', 'admin menu', YCD_TEXT_DOMAIN),
172
  'name_admin_bar' => _x('Countdown', 'add new on admin bar', YCD_TEXT_DOMAIN),
173
  'add_new' => _x('Add New', 'Countdown', YCD_TEXT_DOMAIN),
174
  'add_new_item' => __('Add New Countdown', YCD_TEXT_DOMAIN),
175
  'new_item' => __('New Countdown', YCD_TEXT_DOMAIN),
176
  'edit_item' => __('Edit Countdown', YCD_TEXT_DOMAIN),
177
  'view_item' => __('View Countdown', YCD_TEXT_DOMAIN),
178
- 'all_items' => __('All Countdowns', YCD_TEXT_DOMAIN),
179
- 'search_items' => __('Search Countdowns', YCD_TEXT_DOMAIN),
180
- 'parent_item_colon' => __('Parent Countdowns:', YCD_TEXT_DOMAIN),
181
- 'not_found' => __('No countdown found.', YCD_TEXT_DOMAIN),
182
- 'not_found_in_trash' => __('No countdowns found in Trash.', YCD_TEXT_DOMAIN)
183
  );
184
 
185
  return $labels;
166
  public function getPostTypeLabels()
167
  {
168
  $labels = array(
169
+ 'name' => _x(YCD_COUNTDOWN_MENU_TITLE, 'post type general name', YCD_TEXT_DOMAIN),
170
+ 'singular_name' => _x(YCD_COUNTDOWN_MENU_TITLE, 'post type singular name', YCD_TEXT_DOMAIN),
171
+ 'menu_name' => _x(YCD_COUNTDOWN_MENU_TITLE, 'admin menu', YCD_TEXT_DOMAIN),
172
  'name_admin_bar' => _x('Countdown', 'add new on admin bar', YCD_TEXT_DOMAIN),
173
  'add_new' => _x('Add New', 'Countdown', YCD_TEXT_DOMAIN),
174
  'add_new_item' => __('Add New Countdown', YCD_TEXT_DOMAIN),
175
  'new_item' => __('New Countdown', YCD_TEXT_DOMAIN),
176
  'edit_item' => __('Edit Countdown', YCD_TEXT_DOMAIN),
177
  'view_item' => __('View Countdown', YCD_TEXT_DOMAIN),
178
+ 'all_items' => __('All '.YCD_COUNTDOWN_MENU_TITLE, YCD_TEXT_DOMAIN),
179
+ 'search_items' => __('Search '.YCD_COUNTDOWN_MENU_TITLE, YCD_TEXT_DOMAIN),
180
+ 'parent_item_colon' => __('Parent '.YCD_COUNTDOWN_MENU_TITLE.':', YCD_TEXT_DOMAIN),
181
+ 'not_found' => __('No '.YCD_COUNTDOWN_MENU_TITLE.' found.', YCD_TEXT_DOMAIN),
182
+ 'not_found_in_trash' => __('No '.YCD_COUNTDOWN_MENU_TITLE.' found in Trash.', YCD_TEXT_DOMAIN)
183
  );
184
 
185
  return $labels;
config/config.php CHANGED
@@ -47,14 +47,16 @@ class YcdCountdownConfig {
47
  self::addDefine('YCD_COUNTDOWN_REVIEW_URL', 'https://wordpress.org/support/plugin/countdown-builder/reviews/?filter=5');
48
  self::addDefine('YCD_PROGRESS_METABOX_KEY', 'ycdMetaboxProgress');
49
  self::addDefine('YCD_PROGRESS_METABOX_TITLE', __('Progress Bar', YCD_TEXT_DOMAIN));
 
 
50
  self::addDefine('YCD_FILTER_REPEAT_INTERVAL', 50);
51
  self::addDefine('YCD_SHOW_REVIEW_PERIOD', 30);
52
  self::addDefine('YCD_PRODUCTS_LIMIT', 1000);
53
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
54
  self::addDefine('YCD_AJAX_SUCCESS', 1);
55
  self::addDefine('YCD_TABLE_LIMIT', 15);
56
- self::addDefine('YCD_VERSION', 1.39);
57
- self::addDefine('YCD_VERSION_PRO', 1.25);
58
  self::addDefine('YCD_FREE_VERSION', 1);
59
  self::addDefine('YCD_SILVER_VERSION', 2);
60
  self::addDefine('YCD_GOLD_VERSION', 3);
47
  self::addDefine('YCD_COUNTDOWN_REVIEW_URL', 'https://wordpress.org/support/plugin/countdown-builder/reviews/?filter=5');
48
  self::addDefine('YCD_PROGRESS_METABOX_KEY', 'ycdMetaboxProgress');
49
  self::addDefine('YCD_PROGRESS_METABOX_TITLE', __('Progress Bar', YCD_TEXT_DOMAIN));
50
+ self::addDefine('YCD_COUNTDOWN_MENU_TITLE', 'Countdown & Clock');
51
+ self::addDefine('YCD_COUNTDOWN_SUPPORT_URL', 'https://wordpress.org/support/plugin/countdown-builder/');
52
  self::addDefine('YCD_FILTER_REPEAT_INTERVAL', 50);
53
  self::addDefine('YCD_SHOW_REVIEW_PERIOD', 30);
54
  self::addDefine('YCD_PRODUCTS_LIMIT', 1000);
55
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
56
  self::addDefine('YCD_AJAX_SUCCESS', 1);
57
  self::addDefine('YCD_TABLE_LIMIT', 15);
58
+ self::addDefine('YCD_VERSION', 1.3401);
59
+ self::addDefine('YCD_VERSION_PRO', 1.26);
60
  self::addDefine('YCD_FREE_VERSION', 1);
61
  self::addDefine('YCD_SILVER_VERSION', 2);
62
  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.4.0
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.4.0.1
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.1.1
6
- Stable tag: 1.4.0
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -50,9 +50,25 @@ We do web development and if you need a developer or if you think you have found
50
 
51
  == Frequently Asked Questions ==
52
 
53
- Coming soon
 
 
 
 
 
 
 
 
 
 
 
54
 
55
  == Changelog ==
 
 
 
 
 
56
  = 1.4.0 =
57
  * Live preview draggable and toggle improvement
58
  * Clock 1 new improvements
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 5.1.1
6
+ Stable tag: 1.4.0.1
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
50
 
51
  == Frequently Asked Questions ==
52
 
53
+ = How can I insert it into my pages/posts =
54
+
55
+ After you installed the plugin you can go to your pages/posts and just click on our plugin shortcode button and add it to your pages/posts.
56
+
57
+ = Can I use it in popup =
58
+
59
+ Yes you can, we have Circle and Flipclock countdown popups.
60
+
61
+ = What files I need to upload for installing the plugin =
62
+
63
+ You need to select the .zip file, there is no need to extract the zip file, just upload it.
64
+
65
 
66
  == Changelog ==
67
+ = 1.4.0.1 =
68
+ * Improve Countdown Support menu link
69
+ * Change countdown menu title to Countdown & Clock
70
+ * minor improvement
71
+
72
  = 1.4.0 =
73
  * Live preview draggable and toggle improvement
74
  * Clock 1 new improvements