Version Description
- Simple countdown Numbers Color
- Simple countdown Labels Color
- Simple countdown Numbers Font Family
- Simple countdown Labels Font Family
- Admin side improvements
Download this release
Release Info
Developer | adamskaat |
Plugin | Countdown, Coming Soon – Countdown & Clock |
Version | 1.9.8 |
Comparing to | |
See all releases |
Code changes from version 1.9.7 to 1.9.8
- assets/css/admin.css +4 -0
- assets/js/YcdSimpleCountdown.js +35 -0
- assets/views/main/simpleMainView.php +77 -10
- classes/countdown/SimpleCountdown.php +5 -1
- config/config.php +2 -2
- countdown-builder.php +1 -1
- readme.txt +12 -5
assets/css/admin.css
CHANGED
@@ -7,6 +7,10 @@
|
|
7 |
padding-left: 45px !important;
|
8 |
}
|
9 |
|
|
|
|
|
|
|
|
|
10 |
.ycd-hide-content,
|
11 |
.ycd-hide {
|
12 |
display: none;
|
7 |
padding-left: 45px !important;
|
8 |
}
|
9 |
|
10 |
+
.ycd-sub-option-wrapper label {
|
11 |
+
padding-left: 45px !important;
|
12 |
+
}
|
13 |
+
|
14 |
.ycd-hide-content,
|
15 |
.ycd-hide {
|
16 |
display: none;
|
assets/js/YcdSimpleCountdown.js
CHANGED
@@ -72,6 +72,20 @@ YcdSimpleCountdown.prototype.changeDateDuration = function() {
|
|
72 |
});
|
73 |
};
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
YcdSimpleCountdown.prototype.changeFontSizes = function() {
|
76 |
var types = jQuery('.ycd-simple-font-size');
|
77 |
|
@@ -88,6 +102,25 @@ YcdSimpleCountdown.prototype.changeFontSizes = function() {
|
|
88 |
});
|
89 |
};
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
YcdSimpleCountdown.prototype.eventListener = function ()
|
92 |
{
|
93 |
var that = this;
|
@@ -143,6 +176,8 @@ YcdSimpleCountdown.prototype.livePreview = function()
|
|
143 |
this.changeTimeZone();
|
144 |
this.changeDateDuration();
|
145 |
this.changeFontSizes();
|
|
|
|
|
146 |
};
|
147 |
|
148 |
YcdSimpleCountdown.prototype.changeText = function()
|
72 |
});
|
73 |
};
|
74 |
|
75 |
+
YcdSimpleCountdown.prototype.changeFontFamily = function() {
|
76 |
+
var types = jQuery('.js-simple-font-family');
|
77 |
+
|
78 |
+
if(!types.length) {
|
79 |
+
return false;
|
80 |
+
}
|
81 |
+
types.bind('change', function() {
|
82 |
+
var val = jQuery(this).val();
|
83 |
+
var type = jQuery(this).data('field-type');
|
84 |
+
|
85 |
+
jQuery('.ycd-simple-countdown-'+type).css({'font-family': val});
|
86 |
+
});
|
87 |
+
};
|
88 |
+
|
89 |
YcdSimpleCountdown.prototype.changeFontSizes = function() {
|
90 |
var types = jQuery('.ycd-simple-font-size');
|
91 |
|
102 |
});
|
103 |
};
|
104 |
|
105 |
+
YcdSimpleCountdown.prototype.changeColor = function() {
|
106 |
+
var types = jQuery('.js-ycd-simple-time-color');
|
107 |
+
|
108 |
+
if(!types.length) {
|
109 |
+
return false;
|
110 |
+
}
|
111 |
+
var that = this;
|
112 |
+
var countdown = this.countdownContainer;
|
113 |
+
types.minicolors({
|
114 |
+
format: 'rgb',
|
115 |
+
opacity: 1,
|
116 |
+
change: function () {
|
117 |
+
var val = jQuery(this).val();
|
118 |
+
var type = jQuery(this).data('time-type');
|
119 |
+
jQuery('.ycd-simple-countdown-'+type).css({color: val});
|
120 |
+
}
|
121 |
+
});
|
122 |
+
};
|
123 |
+
|
124 |
YcdSimpleCountdown.prototype.eventListener = function ()
|
125 |
{
|
126 |
var that = this;
|
176 |
this.changeTimeZone();
|
177 |
this.changeDateDuration();
|
178 |
this.changeFontSizes();
|
179 |
+
this.changeFontFamily();
|
180 |
+
this.changeColor();
|
181 |
};
|
182 |
|
183 |
YcdSimpleCountdown.prototype.changeText = function()
|
assets/views/main/simpleMainView.php
CHANGED
@@ -1,5 +1,13 @@
|
|
1 |
<?php
|
2 |
$type = $this->getCurrentTypeFromOptions();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
?>
|
4 |
<div class="ycd-bootstrap-wrapper">
|
5 |
<!-- Labels start -->
|
@@ -123,22 +131,81 @@ $type = $this->getCurrentTypeFromOptions();
|
|
123 |
<div class="col-md-6">
|
124 |
</div>
|
125 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
<div class="row form-group">
|
127 |
<div class="col-md-6">
|
128 |
-
<label for="ycd-simple-
|
129 |
</div>
|
130 |
<div class="col-md-6">
|
131 |
-
<input type="text" id="ycd-simple-numbers-font-size" class="form-control ycd-simple-font-size" data-field-type="number" name="ycd-simple-numbers-font-size" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-numbers-font-size')); ?>" >
|
132 |
-
</div>
|
133 |
-
</div>
|
134 |
-
<div class="row form-group">
|
135 |
-
<div class="col-md-6">
|
136 |
-
<label for="ycd-simple-text-font-size"><?php _e('Text font size', YCD_TEXT_DOMAIN); ?></label>
|
137 |
-
</div>
|
138 |
-
<div class="col-md-6">
|
139 |
-
<input type="text" id="ycd-simple-text-font-size" class="form-control ycd-simple-font-size" data-field-type="label" name="ycd-simple-text-font-size" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-text-font-size')); ?>" >
|
140 |
</div>
|
141 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
<!-- Styles end -->
|
143 |
<?php
|
144 |
require_once YCD_VIEWS_PATH.'preview.php';
|
1 |
<?php
|
2 |
$type = $this->getCurrentTypeFromOptions();
|
3 |
+
use ycd\AdminHelper;
|
4 |
+
$proSpan = '';
|
5 |
+
$isPro = '';
|
6 |
+
if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
|
7 |
+
$isPro = '-pro';
|
8 |
+
$proSpan = '<span class="ycd-pro-span">'.__('pro', YCD_TEXT_DOMAIN).'</span>';
|
9 |
+
}
|
10 |
+
$defaultData = AdminHelper::defaultData();
|
11 |
?>
|
12 |
<div class="ycd-bootstrap-wrapper">
|
13 |
<!-- Labels start -->
|
131 |
<div class="col-md-6">
|
132 |
</div>
|
133 |
</div>
|
134 |
+
<div class="row form-group">
|
135 |
+
<div class="col-md-6">
|
136 |
+
<label for="ycd-simple-numbers-font-size"><?php _e('Numbers', YCD_TEXT_DOMAIN); ?></label>
|
137 |
+
</div>
|
138 |
+
<div class="col-md-6">
|
139 |
+
</div>
|
140 |
+
</div>
|
141 |
+
|
142 |
+
<div class="ycd-sub-option-wrapper">
|
143 |
+
<!-- Numbers Styles start -->
|
144 |
+
<div class="row form-group">
|
145 |
+
<div class="col-md-6">
|
146 |
+
<label for="ycd-simple-numbers-font-size"><?php _e('font size', YCD_TEXT_DOMAIN); ?></label>
|
147 |
+
</div>
|
148 |
+
<div class="col-md-6">
|
149 |
+
<input type="text" id="ycd-simple-numbers-font-size" class="form-control ycd-simple-font-size" data-field-type="number" name="ycd-simple-numbers-font-size" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-numbers-font-size')); ?>" >
|
150 |
+
</div>
|
151 |
+
</div>
|
152 |
+
<div class="row form-group">
|
153 |
+
<div class="col-md-6">
|
154 |
+
<label for="ycd-simple-numbers-font-family" class="ycd-label-of-select"><?php _e('font family', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
155 |
+
</div>
|
156 |
+
<div class="col-md-6 ycd-option-wrapper<?php echo $isPro; ?>">
|
157 |
+
<?php echo AdminHelper::selectBox($defaultData['font-family'], esc_attr($typeObj->getOptionValue('ycd-simple-numbers-font-family')), array('name' => 'ycd-simple-numbers-font-family', 'class' => 'js-ycd-select js-simple-font-family', 'data-field-type' => 'number')); ?>
|
158 |
+
</div>
|
159 |
+
</div>
|
160 |
+
<div class="row form-group">
|
161 |
+
<div class="col-md-6">
|
162 |
+
<label for="ycd-simple-numbers-color" class=""><?php _e('color', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
163 |
+
</div>
|
164 |
+
<div class="col-md-6 ycd-option-wrapper<?php echo $isPro; ?>">
|
165 |
+
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
166 |
+
<input type="text" id="ycd-simple-numbers-color" data-time-type="number" placeholder="<?php _e('Select color', YCD_TEXT_DOMAIN)?>" name="ycd-simple-numbers-color" class=" minicolors-input form-control js-ycd-simple-time-color" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-numbers-color')); ?>">
|
167 |
+
</div>
|
168 |
+
</div>
|
169 |
+
</div>
|
170 |
+
<!-- Numbers Styles end -->
|
171 |
+
</div>
|
172 |
<div class="row form-group">
|
173 |
<div class="col-md-6">
|
174 |
+
<label for="ycd-simple-text-font-size"><?php _e('Text', YCD_TEXT_DOMAIN); ?></label>
|
175 |
</div>
|
176 |
<div class="col-md-6">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
</div>
|
178 |
</div>
|
179 |
+
<div class="ycd-sub-option-wrapper">
|
180 |
+
<!-- Text Styles start -->
|
181 |
+
<div class="row form-group">
|
182 |
+
<div class="col-md-6">
|
183 |
+
<label for="ycd-simple-text-font-size"><?php _e('font size', YCD_TEXT_DOMAIN); ?></label>
|
184 |
+
</div>
|
185 |
+
<div class="col-md-6">
|
186 |
+
<input type="text" id="ycd-simple-text-font-size" class="form-control ycd-simple-font-size" data-field-type="label" name="ycd-simple-text-font-size" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-text-font-size')); ?>" >
|
187 |
+
</div>
|
188 |
+
</div>
|
189 |
+
<div class="row form-group">
|
190 |
+
<div class="col-md-6">
|
191 |
+
<label for="ycd-countdown-text-size" class="ycd-label-of-select"><?php _e('font family', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
192 |
+
</div>
|
193 |
+
<div class="col-md-6 ycd-option-wrapper<?php echo $isPro; ?>">
|
194 |
+
<?php echo AdminHelper::selectBox($defaultData['font-family'], esc_attr($typeObj->getOptionValue('ycd-simple-text-font-family')), array('name' => 'ycd-simple-text-font-family', 'class' => 'js-ycd-select js-simple-font-family', 'data-field-type' => 'label')); ?>
|
195 |
+
</div>
|
196 |
+
</div>
|
197 |
+
<div class="row form-group">
|
198 |
+
<div class="col-md-6">
|
199 |
+
<label for="ycd-simple-text-color" class=""><?php _e('color', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
200 |
+
</div>
|
201 |
+
<div class="col-md-6 ycd-option-wrapper<?php echo $isPro; ?>">
|
202 |
+
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
203 |
+
<input type="text" id="ycd-simple-text-color" data-time-type="label" placeholder="<?php _e('Select color', YCD_TEXT_DOMAIN)?>" name="ycd-simple-text-color" class=" minicolors-input form-control js-ycd-simple-time-color" value="<?php echo esc_attr($typeObj->getOptionValue('ycd-simple-text-color')); ?>">
|
204 |
+
</div>
|
205 |
+
</div>
|
206 |
+
</div>
|
207 |
+
<!-- Text Styles end -->
|
208 |
+
</div>
|
209 |
<!-- Styles end -->
|
210 |
<?php
|
211 |
require_once YCD_VIEWS_PATH.'preview.php';
|
classes/countdown/SimpleCountdown.php
CHANGED
@@ -97,7 +97,7 @@ class SimpleCountdown extends Countdown
|
|
97 |
$style .= ob_get_contents();
|
98 |
ob_end_clean();
|
99 |
|
100 |
-
return $style;
|
101 |
}
|
102 |
|
103 |
private function render()
|
@@ -141,6 +141,10 @@ class SimpleCountdown extends Countdown
|
|
141 |
|
142 |
public function renderScripts()
|
143 |
{
|
|
|
|
|
|
|
|
|
144 |
$this->includeGeneralScripts();
|
145 |
wp_enqueue_script('jquery');
|
146 |
ScriptsIncluder::loadStyle('simpleCountdown.css');
|
97 |
$style .= ob_get_contents();
|
98 |
ob_end_clean();
|
99 |
|
100 |
+
return apply_filters('YcdSimpleCountdownStyles', $style, $this);
|
101 |
}
|
102 |
|
103 |
private function render()
|
141 |
|
142 |
public function renderScripts()
|
143 |
{
|
144 |
+
if(YCD_PKG_VERSION > YCD_FREE_VERSION) {
|
145 |
+
ScriptsIncluder::registerScript('ycdGoogleFonts.js');
|
146 |
+
ScriptsIncluder::enqueueScript('ycdGoogleFonts.js');
|
147 |
+
}
|
148 |
$this->includeGeneralScripts();
|
149 |
wp_enqueue_script('jquery');
|
150 |
ScriptsIncluder::loadStyle('simpleCountdown.css');
|
config/config.php
CHANGED
@@ -70,8 +70,8 @@ class YcdCountdownConfig {
|
|
70 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
71 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
72 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
73 |
-
self::addDefine('YCD_VERSION_PRO', 1.
|
74 |
-
self::addDefine('YCD_VERSION', 1.
|
75 |
self::addDefine('YCD_FREE_VERSION', 1);
|
76 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
77 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
70 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
71 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
72 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
73 |
+
self::addDefine('YCD_VERSION_PRO', 1.84);
|
74 |
+
self::addDefine('YCD_VERSION', 1.98);
|
75 |
self::addDefine('YCD_FREE_VERSION', 1);
|
76 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
77 |
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 by Adam skaat
|
5 |
-
* Version: 1.9.
|
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.9.8
|
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.6.1
|
6 |
-
Stable tag: 1.9.
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -13,7 +13,7 @@ Countdown builder - Customizable Countdown Timer
|
|
13 |
== Description ==
|
14 |
|
15 |
Countdown builder - Customizable Countdown Timer
|
16 |
-
A very simple plugin to add <
|
17 |
<strong>Countdown</strong> timer allow you to create nice and functional Countdown timer just in a few minutes.
|
18 |
This is the best way to create beautiful <strong>Countdown</strong> for your users.
|
19 |
You can use our Countdown timer in your posts/pages via shortcode example like this
|
@@ -34,10 +34,10 @@ Countdown types
|
|
34 |
* Simple countdown
|
35 |
* Sticky Countdown
|
36 |
* Circle countdown & popup
|
37 |
-
* Flipclock
|
38 |
-
* Flipclock
|
39 |
* WooCommerce countdown
|
40 |
-
* WooCommerce
|
41 |
* Coming Soon page
|
42 |
|
43 |
How to create Countdown example
|
@@ -67,6 +67,13 @@ Yes you can, we have Circle and Flipclock countdown popups.
|
|
67 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
68 |
|
69 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
= 1.9.7 =
|
71 |
* Fixed simple countdown issue on Safari browser
|
72 |
|
3 |
Tags: countdown, timer, countdown timer
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 5.6.1
|
6 |
+
Stable tag: 1.9.8
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
13 |
== Description ==
|
14 |
|
15 |
Countdown builder - Customizable Countdown Timer
|
16 |
+
A very simple plugin to add <strong>countdown</strong> timer to your website.
|
17 |
<strong>Countdown</strong> timer allow you to create nice and functional Countdown timer just in a few minutes.
|
18 |
This is the best way to create beautiful <strong>Countdown</strong> for your users.
|
19 |
You can use our Countdown timer in your posts/pages via shortcode example like this
|
34 |
* Simple countdown
|
35 |
* Sticky Countdown
|
36 |
* Circle countdown & popup
|
37 |
+
* Flipclock countdown
|
38 |
+
* Flipclock countdown & popup
|
39 |
* WooCommerce countdown
|
40 |
+
* WooCommerce coupons
|
41 |
* Coming Soon page
|
42 |
|
43 |
How to create Countdown example
|
67 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
68 |
|
69 |
== Changelog ==
|
70 |
+
= 1.9.8 =
|
71 |
+
* Simple countdown Numbers Color
|
72 |
+
* Simple countdown Labels Color
|
73 |
+
* Simple countdown Numbers Font Family
|
74 |
+
* Simple countdown Labels Font Family
|
75 |
+
* Admin side improvements
|
76 |
+
|
77 |
= 1.9.7 =
|
78 |
* Fixed simple countdown issue on Safari browser
|
79 |
|