Version Description
- Timer Before HTML
- Timer After HTML
- Compatibility test with WordPress 5.5 version
Download this release
Release Info
Developer | adamskaat |
Plugin | Countdown, Coming Soon – Countdown & Clock |
Version | 1.8.6 |
Comparing to | |
See all releases |
Code changes from version 1.8.5 to 1.8.6
- assets/views/timerMainView.php +40 -0
- classes/countdown/TimerCountdown.php +2 -0
- config/config-pkg 2.php +0 -2
- config/config.php +4 -4
- config/optionsConfig.php +2 -0
- countdown-builder.php +1 -1
- readme.txt +6 -2
assets/views/timerMainView.php
CHANGED
@@ -344,6 +344,46 @@ $textFontFamily = $this->getOptionValue('ycd-text-font-family');
|
|
344 |
</div>
|
345 |
</div>
|
346 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
347 |
<?php
|
348 |
require_once YCD_VIEWS_PATH.'preview.php';
|
349 |
?>
|
344 |
</div>
|
345 |
</div>
|
346 |
</div>
|
347 |
+
<div class="row form-group">
|
348 |
+
<div class="col-md-12">
|
349 |
+
<label for="ycd-timer-content-alignment" ><?php _e('Before timer', YCD_TEXT_DOMAIN); ?></label>
|
350 |
+
</div>
|
351 |
+
<div class="col-md-12 ycd-timer-font-size">
|
352 |
+
<?php
|
353 |
+
$editorId = 'ycd-before-timer-html';
|
354 |
+
$beforeCountdown = $this->getOptionValue($editorId);
|
355 |
+
$settings = array(
|
356 |
+
'wpautop' => false,
|
357 |
+
'tinymce' => array(
|
358 |
+
'width' => '100%'
|
359 |
+
),
|
360 |
+
'textarea_rows' => '6',
|
361 |
+
'media_buttons' => true
|
362 |
+
);
|
363 |
+
wp_editor($beforeCountdown, $editorId, $settings);
|
364 |
+
?>
|
365 |
+
</div>
|
366 |
+
</div>
|
367 |
+
<div class="row form-group">
|
368 |
+
<div class="col-md-12">
|
369 |
+
<label for="ycd-timer-content-alignment" ><?php _e('After timer', YCD_TEXT_DOMAIN); ?></label>
|
370 |
+
</div>
|
371 |
+
<div class="col-md-12 ycd-timer-font-size">
|
372 |
+
<?php
|
373 |
+
$editorId = 'ycd-after-timer-html';
|
374 |
+
$beforeCountdown = $this->getOptionValue($editorId);
|
375 |
+
$settings = array(
|
376 |
+
'wpautop' => false,
|
377 |
+
'tinymce' => array(
|
378 |
+
'width' => '100%'
|
379 |
+
),
|
380 |
+
'textarea_rows' => '6',
|
381 |
+
'media_buttons' => true
|
382 |
+
);
|
383 |
+
wp_editor($beforeCountdown, $editorId, $settings);
|
384 |
+
?>
|
385 |
+
</div>
|
386 |
+
</div>
|
387 |
<?php
|
388 |
require_once YCD_VIEWS_PATH.'preview.php';
|
389 |
?>
|
classes/countdown/TimerCountdown.php
CHANGED
@@ -168,6 +168,7 @@ class TimerCountdown extends Countdown {
|
|
168 |
ob_start();
|
169 |
?>
|
170 |
<div class="ycd-countdown-wrapper ycd-timer-content-wrapper-<?php echo esc_attr($id); ?>">
|
|
|
171 |
<div class="ycd-timer-time ycd-timer-container ycd-timer-wrapper-<?php echo esc_attr($id); ?>" data-options='<?php echo $options; ?>' data-id="<?php echo esc_attr($id); ?>">
|
172 |
<div class="timer-time-set ycd-timer-box" id="currentTime">
|
173 |
<div class="ycd-timer-span-wrapper">
|
@@ -201,6 +202,7 @@ class TimerCountdown extends Countdown {
|
|
201 |
</div>
|
202 |
<?php echo $this->renderSubscriptionForm(); ?>
|
203 |
<?php echo $this->renderProgressBar(); ?>
|
|
|
204 |
</div>
|
205 |
<?php
|
206 |
$content = ob_get_contents();
|
168 |
ob_start();
|
169 |
?>
|
170 |
<div class="ycd-countdown-wrapper ycd-timer-content-wrapper-<?php echo esc_attr($id); ?>">
|
171 |
+
<div class="ycd-timer-before-html"><?php echo $this->getOptionValue('ycd-before-timer-html'); ?></div>
|
172 |
<div class="ycd-timer-time ycd-timer-container ycd-timer-wrapper-<?php echo esc_attr($id); ?>" data-options='<?php echo $options; ?>' data-id="<?php echo esc_attr($id); ?>">
|
173 |
<div class="timer-time-set ycd-timer-box" id="currentTime">
|
174 |
<div class="ycd-timer-span-wrapper">
|
202 |
</div>
|
203 |
<?php echo $this->renderSubscriptionForm(); ?>
|
204 |
<?php echo $this->renderProgressBar(); ?>
|
205 |
+
<div class="ycd-timer-after-html"><?php echo $this->getOptionValue('ycd-after-timer-html'); ?></div>
|
206 |
</div>
|
207 |
<?php
|
208 |
$content = ob_get_contents();
|
config/config-pkg 2.php
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
self::addDefine('YCD_PKG_VERSION', YCD_FREE_VERSION);
|
|
|
|
config/config.php
CHANGED
@@ -77,13 +77,13 @@ class YcdCountdownConfig {
|
|
77 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
78 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
79 |
|
80 |
-
$versionText = '1.8.
|
81 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
82 |
-
$versionText = '1.7.
|
83 |
}
|
84 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
85 |
-
self::addDefine('YCD_LAST_UPDATE', 'August
|
86 |
-
self::addDefine('YCD_NEXT_UPDATE', 'August
|
87 |
}
|
88 |
|
89 |
public static function displaySettings() {
|
77 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
78 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
79 |
|
80 |
+
$versionText = '1.8.6';
|
81 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
82 |
+
$versionText = '1.7.2';
|
83 |
}
|
84 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
85 |
+
self::addDefine('YCD_LAST_UPDATE', 'August 14');
|
86 |
+
self::addDefine('YCD_NEXT_UPDATE', 'August 25');
|
87 |
}
|
88 |
|
89 |
public static function displaySettings() {
|
config/optionsConfig.php
CHANGED
@@ -182,6 +182,8 @@ class YcdCountdownOptionsConfig {
|
|
182 |
$options[] = array('name' => 'ycd-timer-label-minutes', 'type' => 'text', 'defaultValue' => 'Mins');
|
183 |
$options[] = array('name' => 'ycd-timer-label-seconds', 'type' => 'text', 'defaultValue' => 'Secs');
|
184 |
$options[] = array('name' => 'ycd-timer-font-size-label', 'type' => 'text', 'defaultValue' => '20');
|
|
|
|
|
185 |
|
186 |
// clock
|
187 |
$options[] = array('name' => 'ycd-clock-mode', 'type' => 'html', 'defaultValue' => '24');
|
182 |
$options[] = array('name' => 'ycd-timer-label-minutes', 'type' => 'text', 'defaultValue' => 'Mins');
|
183 |
$options[] = array('name' => 'ycd-timer-label-seconds', 'type' => 'text', 'defaultValue' => 'Secs');
|
184 |
$options[] = array('name' => 'ycd-timer-font-size-label', 'type' => 'text', 'defaultValue' => '20');
|
185 |
+
$options[] = array('name' => 'ycd-before-timer-html', 'type' => 'html', 'defaultValue' => '');
|
186 |
+
$options[] = array('name' => 'ycd-after-timer-html', 'type' => 'html', 'defaultValue' => '');
|
187 |
|
188 |
// clock
|
189 |
$options[] = array('name' => 'ycd-clock-mode', 'type' => 'html', 'defaultValue' => '24');
|
countdown-builder.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Countdown builder
|
4 |
* Description: The best countdown plugin by Adam skaat
|
5 |
-
* Version: 1.8.
|
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 by Adam skaat
|
5 |
+
* Version: 1.8.6
|
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.5
|
6 |
-
Stable tag: 1.8.
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -66,11 +66,15 @@ Yes you can, we have Circle and Flipclock countdown popups.
|
|
66 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
67 |
|
68 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
69 |
= 1.8.5 =
|
70 |
* Countdown Widget Title Change
|
71 |
* Countdown Settings Save Message
|
72 |
* Coming Soon setting Save Message
|
73 |
-
* Shortcode Support Inside Before And After Countdown Content
|
74 |
|
75 |
= 1.8.4 =
|
76 |
* Moment js lib customization and prevent conflict with other plugins
|
3 |
Tags: countdown, timer, countdown timer
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 5.5
|
6 |
+
Stable tag: 1.8.6
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
66 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
67 |
|
68 |
== Changelog ==
|
69 |
+
= 1.8.6 =
|
70 |
+
* Timer Before HTML
|
71 |
+
* Timer After HTML
|
72 |
+
* Compatibility test with WordPress 5.5 version
|
73 |
+
|
74 |
= 1.8.5 =
|
75 |
* Countdown Widget Title Change
|
76 |
* Countdown Settings Save Message
|
77 |
* Coming Soon setting Save Message
|
|
|
78 |
|
79 |
= 1.8.4 =
|
80 |
* Moment js lib customization and prevent conflict with other plugins
|