Version Description
- Added Enable date for the timers
Download this release
Release Info
Developer | adamskaat |
Plugin | Countdown, Coming Soon – Countdown & Clock |
Version | 2.2.6 |
Comparing to | |
See all releases |
Code changes from version 2.2.5 to 2.2.6
- assets/views/main/clockTimerSettings.php +3 -0
- assets/views/main/generalStartDateOption.php +37 -0
- assets/views/main/timerMainView.php +398 -0
- classes/countdown/TimerCountdown.php +1 -1
- config/config.php +6 -6
- countdown-builder.php +1 -1
- readme.txt +4 -1
assets/views/main/clockTimerSettings.php
CHANGED
@@ -2,6 +2,9 @@
|
|
2 |
use ycd\AdminHelper;
|
3 |
use ycd\MultipleChoiceButton;
|
4 |
?>
|
|
|
|
|
|
|
5 |
<div class="ycd-multichoice-wrapper">
|
6 |
<?php
|
7 |
$multipleChoiceButton = new MultipleChoiceButton($defaultData['clockMode'], esc_attr($this->getOptionValue('ycd-countdown-clock-mode')));
|
2 |
use ycd\AdminHelper;
|
3 |
use ycd\MultipleChoiceButton;
|
4 |
?>
|
5 |
+
<?php
|
6 |
+
require_once(dirname(__FILE__).'/generalStartDateOption.php');
|
7 |
+
?>
|
8 |
<div class="ycd-multichoice-wrapper">
|
9 |
<?php
|
10 |
$multipleChoiceButton = new MultipleChoiceButton($defaultData['clockMode'], esc_attr($this->getOptionValue('ycd-countdown-clock-mode')));
|
assets/views/main/generalStartDateOption.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
use ycd\AdminHelper;
|
3 |
+
$defaultData = AdminHelper::defaultData();
|
4 |
+
?>
|
5 |
+
<div class="row">
|
6 |
+
<div class="col-md-6">
|
7 |
+
<label for="ycd-countdown-enable-start-date" class="ycd-label-of-switch"><?php _e('Enable start date', YCD_TEXT_DOMAIN); ?></label>
|
8 |
+
</div>
|
9 |
+
<div class="col-md-6">
|
10 |
+
<label class="ycd-switch">
|
11 |
+
<input type="checkbox" id="ycd-countdown-enable-start-date" name="ycd-countdown-enable-start-date" class="ycd-accordion-checkbox" <?php echo $this->getOptionValue('ycd-countdown-enable-start-date'); ?>>
|
12 |
+
<span class="ycd-slider ycd-round"></span>
|
13 |
+
</label>
|
14 |
+
</div>
|
15 |
+
</div>
|
16 |
+
<div class="ycd-accordion-content ycd-hide-content">
|
17 |
+
<div class="row form-group">
|
18 |
+
<div class="col-md-6">
|
19 |
+
<label for="ycd-countdown-start-date" class="ycd-label-of-input">
|
20 |
+
<?php _e('Date', YCD_TEXT_DOMAIN); ?>
|
21 |
+
</label>
|
22 |
+
</div>
|
23 |
+
<div class="col-md-6">
|
24 |
+
<input type="text" id="ycd-countdown-start-date" class="form-control ycd-date-time-picker" name="ycd-countdown-start-date" value="<?php echo esc_attr($this->getOptionValue('ycd-countdown-start-date')); ?>">
|
25 |
+
</div>
|
26 |
+
</div>
|
27 |
+
<div class="row form-group">
|
28 |
+
<div class="col-md-6">
|
29 |
+
<label for="ycd-countdown-start-time-zone" class="ycd-label-of-input"><?php _e('Time Zone', YCD_TEXT_DOMAIN); ?></label>
|
30 |
+
</div>
|
31 |
+
<div class="col-md-6">
|
32 |
+
<div class="ycd-select-wrapper">
|
33 |
+
<?php echo AdminHelper::selectBox($defaultData['time-zone'], esc_attr($this->getOptionValue('ycd-countdown-start-time-zone')), array('name' => 'ycd-countdown-start-time-zone', 'class' => 'js-ycd-select js-circle-time-zone')); ?>
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
</div>
|
37 |
+
</div>
|
assets/views/main/timerMainView.php
ADDED
@@ -0,0 +1,398 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
use ycd\AdminHelper;
|
3 |
+
$proSpan = '';
|
4 |
+
$isPro = '';
|
5 |
+
if(YCD_PKG_VERSION == YCD_FREE_VERSION) {
|
6 |
+
$isPro = '-pro';
|
7 |
+
$proSpan = '<span class="ycd-pro-span">'.__('pro', YCD_TEXT_DOMAIN).'</span>';
|
8 |
+
}
|
9 |
+
$defaultData = AdminHelper::defaultData();
|
10 |
+
$textFontFamily = $this->getOptionValue('ycd-text-font-family');
|
11 |
+
?>
|
12 |
+
<div class="ycd-bootstrap-wrapper">
|
13 |
+
<?php
|
14 |
+
require_once(dirname(__FILE__).'/generalStartDateOption.php');
|
15 |
+
?>
|
16 |
+
<div class="row form-group">
|
17 |
+
<div class="col-md-6">
|
18 |
+
<label class="ycd-label-of-input"><?php _e('Time Settings', YCD_TEXT_DOMAIN); ?></label>
|
19 |
+
</div>
|
20 |
+
<div class="col-md-2">
|
21 |
+
<label for="ycdTimeHours"><?php _e('Hrs', YCD_TEXT_DOMAIN); ?></label>
|
22 |
+
<input type="number" name="ycd-timer-hours" id="ycdTimeHours" min="0" max="60" class="form-control ycd-timer-time-settings" data-type="hours" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-hours'))?>">
|
23 |
+
</div>
|
24 |
+
<div class="col-md-2">
|
25 |
+
<label for="ycdTimeMinutes"><?php _e('Mins', YCD_TEXT_DOMAIN); ?></label>
|
26 |
+
<input type="number" name="ycd-timer-minutes" id="ycdTimeMinutes" min="0" max="60" class="form-control ycd-timer-time-settings" data-type="minutes" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-minutes'))?>">
|
27 |
+
</div>
|
28 |
+
<div class="col-md-2">
|
29 |
+
<label for="ycdTimeSeconds"><?php _e('Secs', YCD_TEXT_DOMAIN); ?></label>
|
30 |
+
<input type="number" name="ycd-timer-seconds" id="ycdTimeSeconds" min="0" max="60" class="form-control ycd-timer-time-settings" data-type="seconds" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-seconds'))?>">
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
+
<div class="row form-group">
|
34 |
+
<div class="col-md-6">
|
35 |
+
<label for="ycd-countdown-timer-labels" class="ycd-label-of-switch"><?php _e('Enable Labels', YCD_TEXT_DOMAIN); ?></label>
|
36 |
+
</div>
|
37 |
+
<div class="col-md-6">
|
38 |
+
<label class="ycd-switch">
|
39 |
+
<input type="checkbox" id="ycd-countdown-timer-labels" name="ycd-countdown-timer-labels" class="ycd-accordion-checkbox" <?php echo $this->getOptionValue('ycd-countdown-timer-labels'); ?>>
|
40 |
+
<span class="ycd-slider ycd-round"></span>
|
41 |
+
</label>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
<div class="ycd-accordion-content ycd-hide-content">
|
45 |
+
<div class="row form-group">
|
46 |
+
<div class="col-md-4">
|
47 |
+
<label class="ycd-label-of-input"><?php _e('Labels', YCD_TEXT_DOMAIN); ?></label>
|
48 |
+
</div>
|
49 |
+
<div class="col-md-2">
|
50 |
+
<label for="ycd-timer-label-days"><?php _e('Days', YCD_TEXT_DOMAIN); ?></label>
|
51 |
+
<input type="text" name="ycd-timer-label-days" id="ycd-timer-label-days" class="form-control ycd-timer-time-label" data-type="days" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-label-days'))?>">
|
52 |
+
</div>
|
53 |
+
<div class="col-md-2">
|
54 |
+
<label for="ycd-timer-label-hours"><?php _e('Hrs', YCD_TEXT_DOMAIN); ?></label>
|
55 |
+
<input type="text" name="ycd-timer-label-hours" id="ycd-timer-label-hours" class="form-control ycd-timer-time-label" data-type="hours" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-label-hours'))?>">
|
56 |
+
</div>
|
57 |
+
<div class="col-md-2">
|
58 |
+
<label for="ycd-timer-label-minutes"><?php _e('Mins', YCD_TEXT_DOMAIN); ?></label>
|
59 |
+
<input type="text" name="ycd-timer-label-minutes" id="ycd-timer-label-minutes" class="form-control ycd-timer-time-label" data-type="minutes" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-label-minutes'))?>">
|
60 |
+
</div>
|
61 |
+
<div class="col-md-2">
|
62 |
+
<label for="ycd-timer-label-seconds"><?php _e('Secs', YCD_TEXT_DOMAIN); ?></label>
|
63 |
+
<input type="text" name="ycd-timer-label-seconds" id="ycd-timer-label-seconds" class="form-control ycd-timer-time-label" data-type="seconds" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-label-seconds'))?>">
|
64 |
+
</div>
|
65 |
+
</div>
|
66 |
+
</div>
|
67 |
+
<div class="row form-group">
|
68 |
+
<div class="col-md-6">
|
69 |
+
<label for="ycd-countdown-timer-days" class="ycd-label-of-switch"><?php _e('Enable Days', YCD_TEXT_DOMAIN); ?></label>
|
70 |
+
</div>
|
71 |
+
<div class="col-md-6">
|
72 |
+
<label class="ycd-switch">
|
73 |
+
<input type="checkbox" id="ycd-countdown-timer-days" name="ycd-countdown-timer-days" class="ycd-accordion-checkbox" <?php echo $this->getOptionValue('ycd-countdown-timer-days'); ?>>
|
74 |
+
<span class="ycd-slider ycd-round"></span>
|
75 |
+
</label>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
<div class="ycd-accordion-content ycd-hide-content">
|
79 |
+
<div class="row form-group">
|
80 |
+
<div class="col-md-6">
|
81 |
+
<label for="ycdTimeDays"><?php _e('Days', YCD_TEXT_DOMAIN); ?></label>
|
82 |
+
</div>
|
83 |
+
<div class="col-md-2">
|
84 |
+
<input type="number" name="ycd-timer-days" id="ycdTimeDays" min="0" max="60" class="form-control ycd-timer-time-settings" data-type="days" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-days'))?>">
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
|
89 |
+
<div class="row form-group">
|
90 |
+
<div class="col-md-6">
|
91 |
+
<label for="ycd-countdown-timer-milliseconds" class="ycd-label-of-switch"><?php _e('Enable Miliseconds', YCD_TEXT_DOMAIN); ?></label>
|
92 |
+
</div>
|
93 |
+
<div class="col-md-6">
|
94 |
+
<label class="ycd-switch">
|
95 |
+
<input type="checkbox" id="ycd-countdown-timer-milliseconds" name="ycd-countdown-timer-milliseconds" <?php echo $this->getOptionValue('ycd-countdown-timer-milliseconds'); ?>>
|
96 |
+
<span class="ycd-slider ycd-round"></span>
|
97 |
+
</label>
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
+
<div class="row form-group">
|
101 |
+
<div class="col-md-6">
|
102 |
+
<label for="ycd-countdown-timer-button" class="ycd-label-of-switch"><?php _e('Enable Button', YCD_TEXT_DOMAIN); ?></label>
|
103 |
+
</div>
|
104 |
+
<div class="col-md-6">
|
105 |
+
<label class="ycd-switch">
|
106 |
+
<input type="checkbox" id="ycd-countdown-timer-button" name="ycd-countdown-timer-button" class="ycd-accordion-checkbox" <?php echo $this->getOptionValue('ycd-countdown-timer-button'); ?>>
|
107 |
+
<span class="ycd-slider ycd-round"></span>
|
108 |
+
</label>
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
<div class="ycd-accordion-content ycd-hide-content">
|
112 |
+
<div class="row form-group">
|
113 |
+
<div class="col-md-6">
|
114 |
+
<label for="ycd-timer-auto-counting" ><?php _e('enable autocounting', YCD_TEXT_DOMAIN); ?></label>
|
115 |
+
</div>
|
116 |
+
<div class="col-md-4 ycd-timer-font-size">
|
117 |
+
<label class="ycd-switch">
|
118 |
+
<input type="checkbox" id="ycd-timer-auto-counting" name="ycd-timer-auto-counting" class="" <?php echo $this->getOptionValue('ycd-timer-auto-counting'); ?>>
|
119 |
+
<span class="ycd-slider ycd-round"></span>
|
120 |
+
</label>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
<div class="row form-group">
|
124 |
+
<div class="col-md-6">
|
125 |
+
<label for="ycd-timer-button-start-title" ><?php _e('start label', YCD_TEXT_DOMAIN); ?></label>
|
126 |
+
</div>
|
127 |
+
<div class="col-md-4 ycd-timer-font-size">
|
128 |
+
<input id="ycd-timer-button-start-title" type="text" class="form-control" name="ycd-timer-button-start-title" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-button-start-title')); ?>">
|
129 |
+
</div>
|
130 |
+
</div>
|
131 |
+
<div class="row form-group">
|
132 |
+
<div class="col-md-6">
|
133 |
+
<label for="ycd-timer-button-stop-title" ><?php _e('stop label', YCD_TEXT_DOMAIN); ?></label>
|
134 |
+
</div>
|
135 |
+
<div class="col-md-4 ycd-timer-font-size">
|
136 |
+
<input id="ycd-timer-button-stop-title" type="text" class="form-control" name="ycd-timer-button-stop-title" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-button-stop-title')); ?>">
|
137 |
+
</div>
|
138 |
+
</div>
|
139 |
+
<div class="row form-group">
|
140 |
+
<div class="col-md-6">
|
141 |
+
<label for="ycd-timer-button-stop-custom-class" ><?php _e('Custom class name', YCD_TEXT_DOMAIN); ?></label>
|
142 |
+
</div>
|
143 |
+
<div class="col-md-4 ycd-timer-font-size">
|
144 |
+
<input id="ycd-timer-button-stop-custom-class" type="text" class="form-control" name="ycd-timer-button-stop-custom-class" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-button-stop-custom-class')); ?>">
|
145 |
+
</div>
|
146 |
+
</div>
|
147 |
+
<div class="row form-group">
|
148 |
+
<div class="col-md-6">
|
149 |
+
<label for="ycd-timer-stop-bg-color" ><?php _e('background color', YCD_TEXT_DOMAIN); echo $proSpan; ?> </label>
|
150 |
+
</div>
|
151 |
+
<div class="col-md-4 ycd-timer-font-size ycd-option-wrapper<?php echo $isPro; ?>">
|
152 |
+
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
153 |
+
<input type="text" id="ycd-timer-stop-bg-color" placeholder="<?php _e('Select color', YCD_TEXT_DOMAIN)?>" name="ycd-timer-stop-bg-color" class="minicolors-input form-control js-ycd-timer-stop-bg-color" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-stop-bg-color')); ?>">
|
154 |
+
</div>
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
<div class="row form-group">
|
158 |
+
<div class="col-md-6">
|
159 |
+
<label for="ycd-timer-stop-color" ><?php _e('color', YCD_TEXT_DOMAIN); echo $proSpan; ?> </label>
|
160 |
+
</div>
|
161 |
+
<div class="col-md-4 ycd-timer-font-size ycd-option-wrapper<?php echo $isPro; ?>">
|
162 |
+
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
163 |
+
<input type="text" id="ycd-timer-stop-color" placeholder="<?php _e('Select color', YCD_TEXT_DOMAIN)?>" name="ycd-timer-stop-color" class="minicolors-input form-control js-ycd-timer-stop-color" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-stop-color')); ?>">
|
164 |
+
</div>
|
165 |
+
</div>
|
166 |
+
</div>
|
167 |
+
<div class="row form-group">
|
168 |
+
<div class="col-md-6">
|
169 |
+
<label for="ycd-timer-reset-button" ><?php _e('enable reset button', YCD_TEXT_DOMAIN); ?></label>
|
170 |
+
</div>
|
171 |
+
<div class="col-md-4 ycd-timer-font-size">
|
172 |
+
<label class="ycd-switch">
|
173 |
+
<input type="checkbox" id="ycd-timer-reset-button" name="ycd-timer-reset-button" class="ycd-accordion-checkbox" <?php echo $this->getOptionValue('ycd-timer-reset-button'); ?>>
|
174 |
+
<span class="ycd-slider ycd-round"></span>
|
175 |
+
</label>
|
176 |
+
</div>
|
177 |
+
</div>
|
178 |
+
<div class="ycd-accordion-content ycd-hide-content">
|
179 |
+
<div class="row form-group">
|
180 |
+
<div class="col-md-6">
|
181 |
+
<label for="ycd-timer-reset-button-label" ><?php _e('label', YCD_TEXT_DOMAIN); ?></label>
|
182 |
+
</div>
|
183 |
+
<div class="col-md-4 ycd-timer-font-size">
|
184 |
+
<input id="ycd-timer-reset-button-label" type="text" class="form-control" name="ycd-timer-reset-button-label" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-reset-button-label')); ?>">
|
185 |
+
</div>
|
186 |
+
</div>
|
187 |
+
<div class="row form-group">
|
188 |
+
<div class="col-md-6">
|
189 |
+
<label for="ycd-timer-reset-button-class-name" ><?php _e('Custom class name', YCD_TEXT_DOMAIN); ?></label>
|
190 |
+
</div>
|
191 |
+
<div class="col-md-4 ycd-timer-font-size">
|
192 |
+
<input id="ycd-timer-reset-button-class-name" type="text" class="form-control" name="ycd-timer-reset-button-class-name" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-reset-button-class-name')); ?>">
|
193 |
+
</div>
|
194 |
+
</div>
|
195 |
+
<div class="row form-group">
|
196 |
+
<div class="col-md-6">
|
197 |
+
<label for="ycd-timer-reset-button-run" ><?php _e('AutoPlay after restart', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
198 |
+
</div>
|
199 |
+
<div class="col-md-4 ycd-timer-font-size ycd-option-wrapper<?php echo $isPro; ?>">
|
200 |
+
<label class="ycd-switch">
|
201 |
+
<input type="checkbox" id="ycd-timer-reset-button-run" name="ycd-timer-reset-button-run" <?php echo $this->getOptionValue('ycd-timer-reset-button-run'); ?>>
|
202 |
+
<span class="ycd-slider ycd-round"></span>
|
203 |
+
</label>
|
204 |
+
</div>
|
205 |
+
</div>
|
206 |
+
<div class="row form-group">
|
207 |
+
<div class="col-md-6">
|
208 |
+
<label for="ycd-timer-reset-bg-color" ><?php _e('background color', YCD_TEXT_DOMAIN); echo $proSpan; ?> </label>
|
209 |
+
</div>
|
210 |
+
<div class="col-md-4 ycd-timer-font-size ycd-option-wrapper<?php echo $isPro; ?>">
|
211 |
+
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
212 |
+
<input type="text" id="ycd-timer-reset-bg-color" placeholder="<?php _e('Select color', YCD_TEXT_DOMAIN)?>" name="ycd-timer-reset-bg-color" class="minicolors-input form-control js-ycd-timer-reset-bg-color" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-reset-bg-color')); ?>">
|
213 |
+
</div>
|
214 |
+
</div>
|
215 |
+
</div>
|
216 |
+
<div class="row form-group">
|
217 |
+
<div class="col-md-6">
|
218 |
+
<label for="ycd-timer-reset-color" ><?php _e('color', YCD_TEXT_DOMAIN); echo $proSpan; ?> </label>
|
219 |
+
</div>
|
220 |
+
<div class="col-md-4 ycd-timer-font-size ycd-option-wrapper<?php echo $isPro; ?>">
|
221 |
+
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
222 |
+
<input type="text" id="ycd-timer-reset-color" placeholder="<?php _e('Select color', YCD_TEXT_DOMAIN)?>" name="ycd-timer-reset-color" class="minicolors-input form-control js-ycd-timer-reset-color" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-reset-color')); ?>">
|
223 |
+
</div>
|
224 |
+
</div>
|
225 |
+
</div>
|
226 |
+
</div>
|
227 |
+
</div>
|
228 |
+
<div class="row form-group">
|
229 |
+
<div class="col-md-6">
|
230 |
+
<label for="ycd-countdown-end-sound" class="ycd-label-of-switch"><?php _e('Timer End Sound', YCD_TEXT_DOMAIN); ?></label>
|
231 |
+
</div>
|
232 |
+
<div class="col-md-6">
|
233 |
+
<label class="ycd-switch">
|
234 |
+
<input type="checkbox" id="ycd-countdown-end-sound" name="ycd-countdown-end-sound" class="ycd-accordion-checkbox" <?php echo $this->getOptionValue('ycd-countdown-end-sound'); ?>>
|
235 |
+
<span class="ycd-slider ycd-round"></span>
|
236 |
+
</label>
|
237 |
+
</div>
|
238 |
+
</div>
|
239 |
+
<!-- Timer end sound sub options -->
|
240 |
+
<div class="ycd-accordion-content ycd-hide-content">
|
241 |
+
<div class="row form-group">
|
242 |
+
<div class="col-md-2">
|
243 |
+
<input id="js-upload-countdown-end-sound" class="btn btn-sm" type="button" value="<?php _e('Change sound', YCD_TEXT_DOMAIN); ?>">
|
244 |
+
</div>
|
245 |
+
<div class="col-md-4">
|
246 |
+
<input type="button" data-default-song="<?= $this->getDefaultValue('ycd-countdown-end-sound-url'); ?>" id="js-reset-to-default-song" class="btn btn-sm btn-danger" value="<?php _e('Reset', YCD_TEXT_DOMAIN); ?>">
|
247 |
+
</div>
|
248 |
+
<div class="col-md-5">
|
249 |
+
<input type="text" id="js-sound-open-url" readonly="" class="form-control input-sm" name="ycd-countdown-end-sound-url" value="<?= esc_attr($this->getOptionValue('ycd-countdown-end-sound-url')); ?>">
|
250 |
+
</div>
|
251 |
+
<div class="col-md-1">
|
252 |
+
<span class="dashicons dashicons-controls-volumeon js-preview-sound"></span>
|
253 |
+
</div>
|
254 |
+
</div>
|
255 |
+
</div>
|
256 |
+
<!-- Timer end sound sub options end -->
|
257 |
+
<div class="row form-group">
|
258 |
+
<div class="col-md-6">
|
259 |
+
<label for="ycd-countdown-text-size" class="ycd-label-of-select"><?php _e('Font Family', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
260 |
+
</div>
|
261 |
+
<div class="col-md-4 ycd-option-wrapper<?php echo $isPro; ?>">
|
262 |
+
<?php echo AdminHelper::selectBox($defaultData['font-family'], esc_attr($textFontFamily), array('name' => 'ycd-text-font-family', 'class' => 'js-ycd-select js-countdown-font-family')); ?>
|
263 |
+
</div>
|
264 |
+
</div>
|
265 |
+
<div class="row form-group">
|
266 |
+
<div class="col-md-6">
|
267 |
+
<label for="ycd-timer-font-size" ><?php _e('Font Size', YCD_TEXT_DOMAIN); ?></label>
|
268 |
+
</div>
|
269 |
+
<div class="col-md-4 ycd-timer-font-size">
|
270 |
+
<input id="ycd-js-digital-font-size" type="text" name="ycd-timer-font-size" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-font-size')); ?>">
|
271 |
+
</div>
|
272 |
+
</div>
|
273 |
+
<div class="row form-group">
|
274 |
+
<div class="col-md-6">
|
275 |
+
<label for="ycd-timer-font-size-label" ><?php _e('Labels Font Size', YCD_TEXT_DOMAIN); ?></label>
|
276 |
+
</div>
|
277 |
+
<div class="col-md-4 ycd-timer-font-size-label">
|
278 |
+
<input id="ycd-js-digital-label-font-size" class="form-control" type="text" name="ycd-timer-font-size-label" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-font-size-label')); ?>">
|
279 |
+
</div>
|
280 |
+
<div class="col-md-1">
|
281 |
+
<label><?php _e('px', YCD_TEXT_DOMAIN); ?></label>
|
282 |
+
</div>
|
283 |
+
</div>
|
284 |
+
<div class="row form-group">
|
285 |
+
<div class="col-md-6">
|
286 |
+
<label for="ycd-timer-content-padding" ><?php _e('Content Padding', YCD_TEXT_DOMAIN); ?></label>
|
287 |
+
</div>
|
288 |
+
<div class="col-md-4 ycd-timer-font-size">
|
289 |
+
<input id="ycd-timer-content-padding" class="form-control" type="text" name="ycd-timer-content-padding" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-content-padding')); ?>">
|
290 |
+
</div>
|
291 |
+
<div class="col-md-1">
|
292 |
+
<label><?php _e('px', YCD_TEXT_DOMAIN); ?></label>
|
293 |
+
</div>
|
294 |
+
</div>
|
295 |
+
<div class="row form-group">
|
296 |
+
<div class="col-md-6">
|
297 |
+
<label for="ycd-timer-content-alignment" ><?php _e('Alignment', YCD_TEXT_DOMAIN); ?></label>
|
298 |
+
</div>
|
299 |
+
<div class="col-md-4 ycd-timer-font-size">
|
300 |
+
<?php echo AdminHelper::selectBox($defaultData['horizontal-alignment'], esc_attr($this->getOptionValue('ycd-timer-content-alignment')), array('name' => 'ycd-timer-content-alignment', 'class' => 'js-ycd-select ycd-timer-content-alignment')); ?>
|
301 |
+
</div>
|
302 |
+
</div>
|
303 |
+
<div class="row form-group">
|
304 |
+
<div class="col-md-6">
|
305 |
+
<label for="ycd-timer-color" ><?php _e('Numbers Color', YCD_TEXT_DOMAIN); echo $proSpan; ?> </label>
|
306 |
+
</div>
|
307 |
+
<div class="col-md-4 ycd-timer-font-size ycd-option-wrapper<?php echo $isPro; ?>">
|
308 |
+
<div class="minicolors minicolors-theme-default minicolors-position-bottom minicolors-position-left">
|
309 |
+
<input type="text" id="ycd-timer-color" placeholder="<?php _e('Select color', YCD_TEXT_DOMAIN)?>" name="ycd-timer-color" class="minicolors-input form-control js-ycd-timer-color" value="<?php echo esc_attr($this->getOptionValue('ycd-timer-color')); ?>">
|
310 |
+
</div>
|
311 |
+
</div>
|
312 |
+
</div>
|
313 |
+
<div class="row form-group">
|
314 |
+
<div class="col-md-6">
|
315 |
+
<label for="ycd-timer-bg-image" class="ycd-label-of-switch"><?php _e('Background Image', YCD_TEXT_DOMAIN); echo $proSpan; ?></label>
|
316 |
+
</div>
|
317 |
+
<div class="col-md-6 ycd-circles-width-wrapper ycd-option-wrapper<?php echo $isPro; ?>">
|
318 |
+
<label class="ycd-switch">
|
319 |
+
<input type="checkbox" id="ycd-timer-bg-image" name="ycd-timer-bg-image" class="ycd-accordion-checkbox js-ycd-bg-image" <?php echo $this->getOptionValue('ycd-timer-bg-image'); ?>>
|
320 |
+
<span class="ycd-slider ycd-round"></span>
|
321 |
+
</label>
|
322 |
+
</div>
|
323 |
+
</div>
|
324 |
+
<div class="ycd-accordion-content ycd-hide-content">
|
325 |
+
<div class="row form-group">
|
326 |
+
<div class="col-md-6">
|
327 |
+
<label for="" class="ycd-label-of-select"><?php _e('Background Size', YCD_TEXT_DOMAIN); ?></label>
|
328 |
+
</div>
|
329 |
+
<div class="col-md-6 ycd-circles-width-wrapper">
|
330 |
+
<?php echo AdminHelper::selectBox($defaultData['bg-image-size'], esc_attr($this->getOptionValue('ycd-bg-image-size')), array('name' => 'ycd-bg-image-size', 'class' => 'js-ycd-select js-ycd-bg-size')); ?>
|
331 |
+
</div>
|
332 |
+
</div>
|
333 |
+
<div class="row form-group">
|
334 |
+
<div class="col-md-6">
|
335 |
+
<label for="" class="ycd-label-of-select"><?php _e('Background Repeat', YCD_TEXT_DOMAIN); ?></label>
|
336 |
+
</div>
|
337 |
+
<div class="col-md-6 ycd-circles-width-wrapper">
|
338 |
+
<?php echo AdminHelper::selectBox($defaultData['bg-image-repeat'], esc_attr($this->getOptionValue('ycd-bg-image-repeat')), array('name' => 'ycd-bg-image-repeat', 'class' => 'js-ycd-select js-bg-image-repeat')); ?>
|
339 |
+
</div>
|
340 |
+
</div>
|
341 |
+
<div class="row form-group">
|
342 |
+
<div class="col-md-6">
|
343 |
+
<input id="js-upload-image-button" class="button js-countdown-image-btn" type="button" value="<?php _e('Select Image', YCD_TEXT_DOMAIN)?>">
|
344 |
+
</div>
|
345 |
+
<div class="col-md-6 ycd-circles-width-wrapper">
|
346 |
+
<input type="url" name="ycd-bg-image-url" id="ycd-bg-image-url" class="form-control" value="<?php echo esc_attr($this->getOptionValue('ycd-bg-image-url')); ?>">
|
347 |
+
</div>
|
348 |
+
</div>
|
349 |
+
</div>
|
350 |
+
<div class="row form-group">
|
351 |
+
<div class="col-md-12">
|
352 |
+
<label for="ycd-timer-content-alignment" ><?php _e('Before timer', YCD_TEXT_DOMAIN); ?></label>
|
353 |
+
</div>
|
354 |
+
<div class="col-md-12 ycd-timer-font-size">
|
355 |
+
<?php
|
356 |
+
$editorId = 'ycd-before-timer-html';
|
357 |
+
$beforeCountdown = $this->getOptionValue($editorId);
|
358 |
+
$settings = array(
|
359 |
+
'wpautop' => false,
|
360 |
+
'tinymce' => array(
|
361 |
+
'width' => '100%'
|
362 |
+
),
|
363 |
+
'textarea_rows' => '6',
|
364 |
+
'media_buttons' => true
|
365 |
+
);
|
366 |
+
wp_editor($beforeCountdown, $editorId, $settings);
|
367 |
+
?>
|
368 |
+
</div>
|
369 |
+
</div>
|
370 |
+
<div class="row form-group">
|
371 |
+
<div class="col-md-12">
|
372 |
+
<label for="ycd-timer-content-alignment" ><?php _e('After timer', YCD_TEXT_DOMAIN); ?></label>
|
373 |
+
</div>
|
374 |
+
<div class="col-md-12 ycd-timer-font-size">
|
375 |
+
<?php
|
376 |
+
$editorId = 'ycd-after-timer-html';
|
377 |
+
$beforeCountdown = $this->getOptionValue($editorId);
|
378 |
+
$settings = array(
|
379 |
+
'wpautop' => false,
|
380 |
+
'tinymce' => array(
|
381 |
+
'width' => '100%'
|
382 |
+
),
|
383 |
+
'textarea_rows' => '6',
|
384 |
+
'media_buttons' => true
|
385 |
+
);
|
386 |
+
wp_editor($beforeCountdown, $editorId, $settings);
|
387 |
+
?>
|
388 |
+
</div>
|
389 |
+
</div>
|
390 |
+
<?php
|
391 |
+
require_once YCD_VIEWS_PATH.'preview.php';
|
392 |
+
?>
|
393 |
+
</div>
|
394 |
+
|
395 |
+
<?php
|
396 |
+
$type = $this->getCurrentTypeFromOptions();
|
397 |
+
?>
|
398 |
+
<input type="hidden" name="ycd-type" value="<?= esc_attr($type); ?>">
|
classes/countdown/TimerCountdown.php
CHANGED
@@ -44,7 +44,7 @@ class TimerCountdown extends Countdown {
|
|
44 |
|
45 |
public function mainView() {
|
46 |
$typeObj = $this;
|
47 |
-
require_once
|
48 |
}
|
49 |
|
50 |
public function getTimerSettings() {
|
44 |
|
45 |
public function mainView() {
|
46 |
$typeObj = $this;
|
47 |
+
require_once YCD_VIEWS_MAIN_PATH.'timerMainView.php';
|
48 |
}
|
49 |
|
50 |
public function getTimerSettings() {
|
config/config.php
CHANGED
@@ -75,8 +75,8 @@ class YcdCountdownConfig
|
|
75 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
76 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
77 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
78 |
-
self::addDefine('YCD_VERSION_PRO', 2.
|
79 |
-
self::addDefine('YCD_VERSION', 2.
|
80 |
self::addDefine('YCD_FREE_VERSION', 1);
|
81 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
82 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
@@ -84,13 +84,13 @@ class YcdCountdownConfig
|
|
84 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
85 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
86 |
|
87 |
-
$versionText = '2.2.
|
88 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
89 |
-
$versionText = '2.1.
|
90 |
}
|
91 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
92 |
-
self::addDefine('YCD_LAST_UPDATE', '
|
93 |
-
self::addDefine('YCD_NEXT_UPDATE', 'Jan
|
94 |
}
|
95 |
|
96 |
public static function displaySettings()
|
75 |
self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
|
76 |
self::addDefine('YCD_AJAX_SUCCESS', 1);
|
77 |
self::addDefine('YCD_TABLE_LIMIT', 15);
|
78 |
+
self::addDefine('YCD_VERSION_PRO', 2.12);
|
79 |
+
self::addDefine('YCD_VERSION', 2.26);
|
80 |
self::addDefine('YCD_FREE_VERSION', 1);
|
81 |
self::addDefine('YCD_SILVER_VERSION', 2);
|
82 |
self::addDefine('YCD_GOLD_VERSION', 3);
|
84 |
self::addDefine('YCD_EXTENSION_VERSION', 99);
|
85 |
require_once(dirname(__FILE__).'/config-pkg.php');
|
86 |
|
87 |
+
$versionText = '2.2.6';
|
88 |
if (YCD_PKG_VERSION != YCD_FREE_VERSION) {
|
89 |
+
$versionText = '2.1.2';
|
90 |
}
|
91 |
self::addDefine('YCD_VERSION_TEXT', $versionText);
|
92 |
+
self::addDefine('YCD_LAST_UPDATE', 'Jan 4');
|
93 |
+
self::addDefine('YCD_NEXT_UPDATE', 'Jan 24');
|
94 |
}
|
95 |
|
96 |
public static function displaySettings()
|
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: 2.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 by Adam skaat
|
5 |
+
* Version: 2.2.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.8.2
|
6 |
-
Stable tag: 2.2.
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -67,6 +67,9 @@ 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 |
= 2.2.5 =
|
71 |
* Fixed simple countdown countUp issue
|
72 |
* Fixed Days durations limitation
|
3 |
Tags: countdown, timer, countdown timer
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 5.8.2
|
6 |
+
Stable tag: 2.2.6
|
7 |
Requires PHP: 5.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
67 |
You need to select the .zip file, there is no need to extract the zip file, just upload it.
|
68 |
|
69 |
== Changelog ==
|
70 |
+
= 2.2.6 =
|
71 |
+
* Added Enable date for the timers
|
72 |
+
|
73 |
= 2.2.5 =
|
74 |
* Fixed simple countdown countUp issue
|
75 |
* Fixed Days durations limitation
|