Countdown, Coming Soon – Countdown & Clock - Version 1.1.9

Version Description

Download this release

Release Info

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

Version 1.1.9

CountdownInit.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace ycd;
3
+
4
+ class CountdownInit {
5
+
6
+ private static $instance = null;
7
+ private $actions;
8
+ private $filters;
9
+
10
+ private function __construct() {
11
+ $this->init();
12
+ }
13
+
14
+ private function __clone() {
15
+ }
16
+
17
+ public static function getInstance() {
18
+ if(!isset(self::$instance)) {
19
+ self::$instance = new self();
20
+ }
21
+ return self::$instance;
22
+ }
23
+
24
+ public function init() {
25
+ $this->includeData();
26
+ $this->actions();
27
+ $this->filters();
28
+ }
29
+
30
+ private function includeData() {
31
+ require_once YCD_HELPERS_PATH.'ScriptsIncluder.php';
32
+ require_once YCD_HELPERS_PATH.'MultipleChoiceButton.php';
33
+ require_once YCD_HELPERS_PATH.'AdminHelper.php';
34
+ require_once YCD_CLASSES_PATH.'CountdownType.php';
35
+ require_once(YCD_COUNTDOWNS_PATH.'CountdownModel.php');
36
+ require_once YCD_COUNTDOWNS_PATH.'Countdown.php';
37
+ require_once YCD_CSS_PATH.'Css.php';
38
+ require_once YCD_JS_PATH.'Js.php';
39
+ require_once YCD_CLASSES_PATH.'RegisterPostType.php';
40
+ require_once YCD_CLASSES_PATH.'Actions.php';
41
+ require_once YCD_CLASSES_PATH.'Ajax.php';
42
+ require_once YCD_CLASSES_PATH.'Filters.php';
43
+ }
44
+
45
+ public function actions() {
46
+ $this->actions = new Actions();
47
+ }
48
+
49
+ public function filters() {
50
+ $this->filters = new Filters();
51
+ }
52
+ }
53
+
54
+ CountdownInit::getInstance();
assets/css/Css.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace ycd;
3
+
4
+ class Css {
5
+
6
+ public function __construct() {
7
+ $this->init();
8
+ }
9
+
10
+ public function init() {
11
+
12
+ add_action('admin_enqueue_scripts', array($this, 'enqueueStyles'));
13
+ }
14
+
15
+ public function enqueueStyles($hook) {
16
+
17
+ ScriptsIncluder::registerStyle('admin.css');
18
+ ScriptsIncluder::registerStyle('bootstrap.css');
19
+ ScriptsIncluder::registerStyle('colorpicker.css');
20
+ ScriptsIncluder::registerStyle('ion.rangeSlider.css');
21
+ ScriptsIncluder::registerStyle('ion.rangeSlider.skinFlat.css');
22
+ ScriptsIncluder::registerStyle('select2.css');
23
+ ScriptsIncluder::registerStyle('jquery.dateTimePicker.min.css');
24
+
25
+ if($hook == 'ycdcountdown_page_ycdcountdown' || get_post_type(@$_GET['post']) == YCD_COUNTDOWN_POST_TYPE) {
26
+ ScriptsIncluder::enqueueStyle('bootstrap.css');
27
+ ScriptsIncluder::enqueueStyle('admin.css');
28
+ ScriptsIncluder::enqueueStyle('colorpicker.css');
29
+ ScriptsIncluder::enqueueStyle('ion.rangeSlider.css');
30
+ ScriptsIncluder::enqueueStyle('ion.rangeSlider.skinFlat.css');
31
+ ScriptsIncluder::enqueueStyle('select2.css');
32
+ ScriptsIncluder::enqueueStyle('jquery.dateTimePicker.min.css');
33
+ }
34
+ }
35
+ }
36
+
37
+ new Css();
assets/css/TimeCircles.css ADDED
@@ -0,0 +1 @@
 
1
+ .time_circles>div>h4,.time_circles>div>span{margin:0;padding:0;text-align:center;font-family:'Century Gothic',Arial;line-height:1}.time_circles{position:relative;width:100%;height:100%}.time_circles>div{position:absolute;text-align:center}.time_circles>div>h4{text-transform:uppercase}.time_circles>div>span{display:block;width:100%;font-weight:700}
assets/css/admin.css ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .ycd-bootstrap-wrapper .row {
2
+ margin-left: 0;
3
+ margin-right: 0;
4
+ }
5
+
6
+ .ycd-hide-content,
7
+ .ycd-hide {
8
+ display: none;
9
+ }
10
+
11
+ .countdowns-div {
12
+ width: 250px;
13
+ height: 150px;
14
+ border: 1px solid #CCCCCC;
15
+ float: left;
16
+ margin-right: 10px;
17
+ margin-bottom: 10px;
18
+ background-color: #DEDEDE;
19
+ background-size: 100%;
20
+ transition: all .1s ease-in-out;
21
+ }
22
+
23
+ .countdowns-div:hover {
24
+ background-color: #CDCDCD;
25
+ transform: scale(1.05);
26
+ }
27
+
28
+ .circle-countdown {
29
+ background-image: url("../img/Cricle.png");
30
+ background-size: 100% 100%;
31
+ }
32
+
33
+ .circlePopup-countdown,
34
+ .circlePopup-countdown-pro {
35
+ background-image: url("../img/CirclePopup.png");
36
+ background-repeat: no-repeat;
37
+ background-position: 13%;
38
+ background-color: black;
39
+ }
40
+
41
+ .circlePopup-countdown:hover,
42
+ .circlePopup-countdown-pro:hover {
43
+ background-color: black;
44
+ }
45
+
46
+ .countdowns-div {
47
+ position: relative;
48
+ }
49
+
50
+ .ycd-type-title-pro {
51
+ font-size: 23px;
52
+ font-weight: 600;
53
+ color: red;
54
+ opacity: 1;
55
+ overflow-wrap: break-word;
56
+ width: auto;
57
+ margin-top: -15px;
58
+ -ms-transform: rotate(7deg);
59
+ /* -webkit-transform: rotate(7deg); */
60
+ transform: rotate(36deg);
61
+ top: 28px;
62
+ right: -13px;
63
+ position: absolute;
64
+ }
65
+
66
+ .js-ycd-select {
67
+ min-width: 100% !important;
68
+ width: 100% !important;
69
+ }
70
+
71
+ /*Checkbox slider start*/
72
+ /* The switch - the box around the slider */
73
+ .ycd-switch {
74
+ position: relative;
75
+ display: inline-block;
76
+ width: 60px;
77
+ height: 34px;
78
+ }
79
+
80
+ /* Hide default HTML checkbox */
81
+ .ycd-switch input {display:none;}
82
+
83
+ /* The slider */
84
+ .ycd-slider {
85
+ position: absolute;
86
+ cursor: pointer;
87
+ top: 0;
88
+ left: 0;
89
+ right: 0;
90
+ bottom: 0;
91
+ background-color: #ccc;
92
+ -webkit-transition: .4s;
93
+ transition: .4s;
94
+ transform: scale(0.8, 0.8);
95
+ }
96
+
97
+ .ycd-slider:before {
98
+ position: absolute;
99
+ content: "";
100
+ height: 26px;
101
+ width: 26px;
102
+ left: 4px;
103
+ bottom: 4px;
104
+ background-color: white;
105
+ -webkit-transition: .4s;
106
+ transition: .4s;
107
+ }
108
+
109
+ input:checked + .ycd-slider {
110
+ background-color: #2196F3;
111
+ }
112
+
113
+ input:focus + .ycd-slider {
114
+ box-shadow: 0 0 1px #2196F3;
115
+ }
116
+
117
+ input:checked + .ycd-slider:before {
118
+ -webkit-transform: translateX(26px);
119
+ -ms-transform: translateX(26px);
120
+ transform: translateX(26px);
121
+ }
122
+
123
+ /* Rounded sliders */
124
+ .ycd-slider.ycd-round {
125
+ border-radius: 34px;
126
+ }
127
+
128
+ .ycd-slider.ycd-round:before {
129
+ border-radius: 50%;
130
+ }
131
+ /*Checkbox slider end*/
132
+
133
+ .ycd-live-preview {
134
+ position: fixed;
135
+ right: 0;
136
+ bottom: 5px;
137
+ background-color: white;
138
+ border: 1px solid #ccc;
139
+ min-width: 400px;
140
+ z-index: 999;
141
+ }
142
+
143
+ .ycd-live-preview h3 {
144
+ text-align: center;
145
+ }
146
+
147
+ .ycd-pro-span {
148
+ display: inline-block;
149
+ color: red;
150
+ margin-left: 5px;
151
+ }
152
+
153
+ .ycd-circle-popup-shortcode {
154
+ padding: 10px;
155
+ }
156
+
157
+ .ycd-circles-width-wrapper .irs-single {
158
+ display: none;
159
+ }
160
+
161
+ .irs-line {
162
+ margin-top: -14px;
163
+ }
164
+
165
+ .irs-bar {
166
+ cursor: pointer;
167
+ }
168
+
169
+ .ycd-range-slider-wrapper {
170
+ margin-top: 7px;
171
+ }
172
+
173
+ .ycd-label-of-select {
174
+ margin-top: 4px;
175
+ }
176
+
177
+ .ycd-label-of-switch,
178
+ .ycd-label-of-input {
179
+ margin-top: 6px;
180
+ }
181
+
182
+ .ycd-label-of-color {
183
+ margin-top: 5px;
184
+ }
185
+
186
+ .ycd-label-of-select {
187
+ margin-top: 3px;
188
+ }
189
+
190
+ .ycd-live-preview-text {
191
+ border-bottom: 1px solid #CCCCCC;
192
+ position: relative;
193
+ margin-top: 10px;
194
+ cursor: pointer;
195
+ }
196
+
197
+ .ycd-live-preview-text h3 {
198
+ margin-top: 0;
199
+ }
200
+
201
+ .ycd-toggle-icon-open:before {
202
+ content: "\f142";
203
+ display: inline-block;
204
+ font: 400 20px/1 dashicons;
205
+ speak: none;
206
+ -webkit-font-smoothing: antialiased;
207
+ -moz-osx-font-smoothing: grayscale;
208
+ text-decoration: none!important;
209
+ cursor: pointer;
210
+ }
211
+
212
+ .ycd-toggle-icon-close:before {
213
+ content: "\f140";
214
+ display: inline-block;
215
+ font: 400 20px/1 dashicons;
216
+ speak: none;
217
+ -webkit-font-smoothing: antialiased;
218
+ -moz-osx-font-smoothing: grayscale;
219
+ text-decoration: none!important;
220
+ cursor: pointer;
221
+ }
222
+
223
+ .ycd-toggle-icon {
224
+ margin-top: 4px;
225
+ width: 20px;
226
+ border-radius: 50%;
227
+ text-indent: -1px;
228
+ position: absolute;
229
+ top: -5px;
230
+ right: 11px
231
+ }
232
+
233
+ .ycd-upgrade-button-red {
234
+ background: #d10303;
235
+ border: 1px solid #d10303;
236
+ padding: 4px 5px 5px 5px;
237
+ color: #fff !important;
238
+ font-size: 16px;
239
+ border-radius: 3px;
240
+ cursor: pointer;
241
+ align-items: flex-start;
242
+ text-align: center !important;
243
+ }
244
+
245
+ .ycd-upgrade-button-red:hover {
246
+ background: #fff;
247
+ color: #d10303 !important;
248
+ border: 1px solid #d10303 !important;
249
+ }
250
+
251
+ .ycd-upgrade-button-red .h2 {
252
+ font-size: 22px !important;
253
+ margin: 0 0 5px 0 !important;
254
+ display: inline-block !important;
255
+ }
256
+
257
+ .ycf-pro-wrapper {
258
+ text-align: center;
259
+ }
260
+
261
+ .ycd-popup-theme {
262
+ margin-left: 8px !important;
263
+ }
264
+
265
+ .ycd-popup-theme:first-child {
266
+ margin-left: 0 !important;
267
+ }
assets/css/bootstrap.css ADDED
@@ -0,0 +1,6846 @@