Countdown, Coming Soon – Countdown & Clock - Version 1.4.1

Version Description

  • Before Circle countdown content (new feature)
  • After Circle countdown content (new feature)
  • bug fixed
Download this release

Release Info

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

Code changes from version 1.4.0.1 to 1.4.1

assets/js/Js.php CHANGED
@@ -70,8 +70,8 @@ class Js {
70
  $newsletterKey,
71
  'ycdcountdown_page_ycdcountdown'
72
  );
73
-
74
- if(in_array($hook, $allowedPages) || get_post_type(@$_GET['post']) == YCD_COUNTDOWN_POST_TYPE) {
75
  wp_enqueue_script('jquery-ui-core');
76
  ScriptsIncluder::enqueueScript('Admin.js');
77
  if(YCD_PKG_VERSION != YCD_FREE_VERSION) {
70
  $newsletterKey,
71
  'ycdcountdown_page_ycdcountdown'
72
  );
73
+
74
+ if(in_array($hook, $allowedPages) || get_post_type(@$_GET['post']) == YCD_COUNTDOWN_POST_TYPE || $_GET['post_type'] == YCD_COUNTDOWN_POST_TYPE) {
75
  wp_enqueue_script('jquery-ui-core');
76
  ScriptsIncluder::enqueueScript('Admin.js');
77
  if(YCD_PKG_VERSION != YCD_FREE_VERSION) {
assets/views/cricleMainView.php CHANGED
@@ -560,6 +560,46 @@ if (YCD_PKG_VERSION > YCD_FREE_VERSION) {
560
  <label class="ycd-label-of-input"><?= _e('px', YCD_TEXT_DOMAIN); ?></label>
561
  </div>
562
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
563
  </div>
564
  </div>
565
  <?php
560
  <label class="ycd-label-of-input"><?= _e('px', YCD_TEXT_DOMAIN); ?></label>
561
  </div>
562
  </div>
563
+ <div class="row form-group">
564
+ <div class="col-md-6">
565
+ <label class="ycd-label-of-input" for="ycd-circle-countdown-before-countdown"><?php _e('Before countdown', YCD_TEXT_DOMAIN); ?></label>
566
+ </div>
567
+ <div class="col-md-12">
568
+ <?php
569
+ $editorId = 'ycd-circle-countdown-before-countdown';
570
+ $beforeCountdown = $this->getOptionValue($editorId);
571
+ $settings = array(
572
+ 'wpautop' => false,
573
+ 'tinymce' => array(
574
+ 'width' => '100%'
575
+ ),
576
+ 'textarea_rows' => '6',
577
+ 'media_buttons' => true
578
+ );
579
+ wp_editor($beforeCountdown, $editorId, $settings);
580
+ ?>
581
+ </div>
582
+ </div>
583
+ <div class="row form-group">
584
+ <div class="col-md-6">
585
+ <label class="ycd-label-of-input" for="ycd-circle-countdown-after-countdown"><?php _e('After countdown', YCD_TEXT_DOMAIN); ?></label>
586
+ </div>
587
+ <div class="col-md-12">
588
+ <?php
589
+ $editorId = 'ycd-circle-countdown-after-countdown';
590
+ $afterCountdown = $this->getOptionValue($editorId);
591
+ $settings = array(
592
+ 'wpautop' => false,
593
+ 'tinymce' => array(
594
+ 'width' => '100%'
595
+ ),
596
+ 'textarea_rows' => '6',
597
+ 'media_buttons' => true
598
+ );
599
+ wp_editor($afterCountdown, $editorId, $settings);
600
+ ?>
601
+ </div>
602
+ </div>
603
  </div>
604
  </div>
605
  <?php
classes/countdown/CircleCountdown.php CHANGED
@@ -247,6 +247,7 @@ class CircleCountdown extends Countdown {
247
  $widthMeasure = $this->getOptionValue('ycd-dimension-measure');
248
  $width .= $widthMeasure;
249
  $content = '<div class="ycd-countdown-wrapper">';
 
250
  ob_start();
251
  ?>
252
  <div class="ycd-circle-<?= $id; ?>-wrapper ycd-circle-wrapper">
@@ -257,6 +258,7 @@ class CircleCountdown extends Countdown {
257
  ob_get_clean();
258
  $content .= $this->renderProgressBar();
259
  $content .= $this->renderSubscriptionForm();
 
260
  $content .= '</div>';
261
 
262
  return $content;
247
  $widthMeasure = $this->getOptionValue('ycd-dimension-measure');
248
  $width .= $widthMeasure;
249
  $content = '<div class="ycd-countdown-wrapper">';
250
+ $content .= '<div class="ycd-circle-before-countdown">'.$this->getOptionValue('ycd-circle-countdown-before-countdown').'</div>';
251
  ob_start();
252
  ?>
253
  <div class="ycd-circle-<?= $id; ?>-wrapper ycd-circle-wrapper">
258
  ob_get_clean();
259
  $content .= $this->renderProgressBar();
260
  $content .= $this->renderSubscriptionForm();
261
+ $content .= '<div class="ycd-circle-after-countdown" data-key="'.YCD_AFTER_COUNTDOWN_KEY.'">'.$this->getOptionValue('ycd-circle-countdown-after-countdown').'</div>';
262
  $content .= '</div>';
263
 
264
  return $content;
config/config.php CHANGED
@@ -55,8 +55,8 @@ class YcdCountdownConfig {
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);
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.341);
59
+ self::addDefine('YCD_VERSION_PRO', 1.27);
60
  self::addDefine('YCD_FREE_VERSION', 1);
61
  self::addDefine('YCD_SILVER_VERSION', 2);
62
  self::addDefine('YCD_GOLD_VERSION', 3);
config/optionsConfig.php CHANGED
@@ -135,6 +135,8 @@ class YcdCountdownOptionsConfig {
135
  $options[] = array('name' => 'ycd-countdown-duration-hours', 'type' => 'number', 'defaultValue' => 0);
136
  $options[] = array('name' => 'ycd-countdown-duration-minutes', 'type' => 'number', 'defaultValue' => 0);
137
  $options[] = array('name' => 'ycd-countdown-duration-seconds', 'type' => 'number', 'defaultValue' => 30);
 
 
138
 
139
  // timer clock
140
  $options[] = array('name' => 'ycd-timer-hours', 'type' => 'number', 'defaultValue' => 0);
135
  $options[] = array('name' => 'ycd-countdown-duration-hours', 'type' => 'number', 'defaultValue' => 0);
136
  $options[] = array('name' => 'ycd-countdown-duration-minutes', 'type' => 'number', 'defaultValue' => 0);
137
  $options[] = array('name' => 'ycd-countdown-duration-seconds', 'type' => 'number', 'defaultValue' => 30);
138
+ $options[] = array('name' => 'ycd-circle-countdown-before-countdown', 'type' => 'html', 'defaultValue' => '');
139
+ $options[] = array('name' => 'ycd-circle-countdown-after-countdown', 'type' => 'html', 'defaultValue' => '');
140
 
141
  // timer clock
142
  $options[] = array('name' => 'ycd-timer-hours', 'type' => 'number', 'defaultValue' => 0);
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.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.4.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.1
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -44,7 +44,7 @@ We do web development and if you need a developer or if you think you have found
44
 
45
  == Installation ==
46
 
47
- 1. Upload the 'Countdown – Countdown & Clock' folder to the '/wp-content/plugins/' directory.
48
  2. Activate the "countdown-builder" list plugin through the 'Plugins' menu in WordPress.
49
  3. Check the Countdowns Menu button and start adding Countdown.
50
 
@@ -64,6 +64,11 @@ You need to select the .zip file, there is no need to extract the zip file, just
64
 
65
 
66
  == Changelog ==
 
 
 
 
 
67
  = 1.4.0.1 =
68
  * Improve Countdown Support menu link
69
  * Change countdown menu title to Countdown & Clock
@@ -256,4 +261,4 @@ You need to select the .zip file, there is no need to extract the zip file, just
256
  * Code improvement
257
 
258
  = 1.0 =
259
- * Plugin publish
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 5.1.1
6
+ Stable tag: 1.4.1
7
  Requires PHP: 5.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
44
 
45
  == Installation ==
46
 
47
+ 1. Upload the 'Countdown – Countdown & Clock' folder to the '/wp-content/plugins/' directory.
48
  2. Activate the "countdown-builder" list plugin through the 'Plugins' menu in WordPress.
49
  3. Check the Countdowns Menu button and start adding Countdown.
50
 
64
 
65
 
66
  == Changelog ==
67
+ = 1.4.1 =
68
+ * Before Circle countdown content (new feature)
69
+ * After Circle countdown content (new feature)
70
+ * bug fixed
71
+
72
  = 1.4.0.1 =
73
  * Improve Countdown Support menu link
74
  * Change countdown menu title to Countdown & Clock
261
  * Code improvement
262
 
263
  = 1.0 =
264
+ * Plugin publish