Countdown, Coming Soon – Countdown & Clock - Version 1.3.7

Version Description

  • Admin side improvment
  • Bug fixed
Download this release

Release Info

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

Code changes from version 1.3.6.1 to 1.3.7

assets/css/admin.css CHANGED
@@ -1,156 +1,189 @@
1
  .ycd-bootstrap-wrapper .row {
2
- margin-left: 0;
3
- margin-right: 0;
4
  }
5
 
6
  .ycd-sub-option {
7
- padding-left: 45px !important;
8
  }
9
 
10
  .ycd-hide-content,
11
  .ycd-hide {
12
- display: none;
13
  }
14
 
15
  .ycd-error {
16
- color: red;
17
  }
18
 
19
  .countdowns-div {
20
- width: 250px;
21
- height: 150px;
22
- border: 1px solid #CCCCCC;
23
- float: left;
24
- margin-right: 10px;
25
- margin-bottom: 10px;
26
- background-color: #DEDEDE;
27
- background-size: 100%;
28
- transition: all .1s ease-in-out;
29
  }
30
 
31
  .countdowns-div:hover {
32
- background-color: #CDCDCD;
33
- transform: scale(1.05);
34
  }
35
 
36
  .circle-countdown {
37
- background-image: url("../img/Cricle.png");
38
- background-size: 100% 100%;
39
  }
40
 
41
  .clock1-countdown {
42
- background-image: url("../img/clock1.png");
43
- background-size: 100% 100%;
44
  }
45
 
46
  .clock2-countdown {
47
- background-image: url("../img/clock2.png");
48
- background-size: 100% 100%;
49
  }
50
 
51
  .clock3-countdown {
52
- background-image: url("../img/clock3.png");
53
- background-size: 100% 100%;
54
  }
55
 
56
  .clock4-countdown,
57
  .clock4-countdown-pro {
58
- background-image: url("../img/clock4.png");
59
- background-size: 100% 100%;
60
  }
61
 
62
  .clock5-countdown,
63
  .clock5-countdown-pro {
64
- background-image: url("../img/clock5.png");
65
- background-size: 100% 100%;
66
  }
67
 
68
  .clock6-countdown,
69
  .clock6-countdown-pro {
70
- background-image: url("../img/clock6.png");
71
- background-size: 100% 100%;
72
  }
73
 
74
  .clock7-countdown,
75
  .clock7-countdown-pro {
76
- background-image: url("../img/clock7.png");
77
- background-size: 100% 100%;
78
  }
79
 
80
  .timer-countdown {
81
- background-image: url("../img/DigtalCountdown.jpg");
82
- background-size: 100% 100%;
83
  }
84
 
85
  .flipClock-countdown,
86
  .flipClock-countdown-pro {
87
- background-image: url("../img/Flipclock.png");
88
- background-size: 100% 100%;
89
  }
90
 
91
  .circlePopup-countdown,
92
  .circlePopup-countdown-pro {
93
- background-image: url("../img/CirclePopup.png");
94
- background-repeat: no-repeat;
95
- background-position: 13%;
96
- background-color: black;
97
  }
98
 
99
  .flipClockPopup-countdown,
100
  .flipClockPopup-countdown-pro {
101
- background-image: url("../img/FlipClockPopup.png");
102
- background-size: 100% 100%;
103
  }
104
 
105
  .sticky-countdown,
106
  .sticky-countdown-pro {
107
- background-image: url("../img/Sticky.png");
108
- background-size: 100% 100%;
109
  }
110
 
111
  .woo-countdown,
112
  .woo-countdown-pro {
113
- background-image: url("../img/woo.png");
114
- background-size: 100% 100%;
115
  }
116
 
117
  .circlePopup-countdown:hover,
118
  .circlePopup-countdown-pro:hover {
119
- background-color: black;
120
  }
121
 
122
  .countdowns-div {
123
- position: relative;
124
  }
125
 
126
  .ycd-type-title-pro {
127
- font-size: 23px;
128
- font-weight: 600;
129
- color: red;
130
- opacity: 1;
131
- overflow-wrap: break-word;
132
- width: auto;
133
- margin-top: -15px;
134
- -ms-transform: rotate(7deg);
135
- /* -webkit-transform: rotate(7deg); */
136
- transform: rotate(36deg);
137
- top: 28px;
138
- right: -13px;
139
- position: absolute;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  }
141
 
142
  .js-ycd-select {
143
- min-width: 100% !important;
144
- width: 100% !important;
145
  }
146
 
147
  /*Checkbox slider start*/
148
  /* The switch - the box around the slider */
149
  .ycd-switch {
150
- position: relative;
151
- display: inline-block;
152
- width: 60px;
153
- height: 34px;
154
  }
155
 
156
  /* Hide default HTML checkbox */
@@ -158,72 +191,72 @@
158
 
159
  /* The slider */
160
  .ycd-slider {
161
- position: absolute;
162
- cursor: pointer;
163
- top: 0;
164
- left: 0;
165
- right: 0;
166
- bottom: 0;
167
- background-color: #ccc;
168
- -webkit-transition: .4s;
169
- transition: .4s;
170
- transform: scale(0.8, 0.8);
171
  }
172
 
173
  .ycd-slider:before {
174
- position: absolute;
175
- content: "";
176
- height: 26px;
177
- width: 26px;
178
- left: 4px;
179
- bottom: 4px;
180
- background-color: white;
181
- -webkit-transition: .4s;
182
- transition: .4s;
183
  }
184
 
185
  input:checked + .ycd-slider {
186
- background-color: #2196F3;
187
  }
188
 
189
  input:focus + .ycd-slider {
190
- box-shadow: 0 0 1px #2196F3;
191
  }
192
 
193
  input:checked + .ycd-slider:before {
194
- -webkit-transform: translateX(26px);
195
- -ms-transform: translateX(26px);
196
- transform: translateX(26px);
197
  }
198
 
199
  /* Rounded sliders */
200
  .ycd-slider.ycd-round {
201
- border-radius: 34px;
202
  }
203
 
204
  .ycd-slider.ycd-round:before {
205
- border-radius: 50%;
206
  }
207
  /*Checkbox slider end*/
208
 
209
  .ycd-live-preview {
210
- position: fixed;
211
- right: 0;
212
- bottom: 5px;
213
- background-color: white;
214
- border: 1px solid #ccc;
215
- min-width: 400px;
216
- z-index: 999;
217
  }
218
 
219
  .ycd-live-preview h3 {
220
- text-align: center;
221
  }
222
 
223
  .ycd-pro-span {
224
- display: inline-block;
225
- color: red;
226
- margin-left: 5px;
227
  }
228
 
229
  .ycd-circle-popup-shortcode {
@@ -232,262 +265,266 @@ input:checked + .ycd-slider:before {
232
 
233
  .ycd-circles-width-wrapper .irs-single,
234
  .ycd-timer-font-size .irs-single{
235
- display: none;
236
  }
237
 
238
  .irs-line {
239
- margin-top: -14px;
240
  }
241
 
242
  .irs-bar {
243
- cursor: pointer;
244
  }
245
 
246
  .ycd-range-slider-wrapper {
247
- margin-top: 7px;
248
  }
249
 
250
  .ycd-label-of-select {
251
- margin-top: 4px;
252
  }
253
 
254
  .ycd-label-of-switch,
255
  .ycd-label-of-input {
256
- margin-top: 6px;
257
  }
258
 
259
  .ycd-label-of-color {
260
- margin-top: 5px;
261
  }
262
 
263
  .ycd-label-of-select {
264
- margin-top: 3px;
265
  }
266
 
267
  .ycd-live-preview-text {
268
- border-bottom: 1px solid #CCCCCC;
269
- position: relative;
270
- margin-top: 10px;
271
  cursor: move;
272
  }
273
 
274
  .ycd-live-preview-text h3 {
275
- margin-top: 0;
276
  }
277
 
278
  .ycd-toggle-icon-open:before {
279
- content: "\f142";
280
- display: inline-block;
281
- font: 400 20px/1 dashicons;
282
- speak: none;
283
- -webkit-font-smoothing: antialiased;
284
- -moz-osx-font-smoothing: grayscale;
285
- text-decoration: none!important;
286
- cursor: pointer;
287
  }
288
 
289
  .ycd-toggle-icon-close:before {
290
- content: "\f140";
291
- display: inline-block;
292
- font: 400 20px/1 dashicons;
293
- speak: none;
294
- -webkit-font-smoothing: antialiased;
295
- -moz-osx-font-smoothing: grayscale;
296
- text-decoration: none!important;
297
- cursor: pointer;
298
  }
299
 
300
  .ycd-toggle-icon {
301
- margin-top: 4px;
302
- width: 54px;
303
- height: 35px;
304
- border-radius: 50%;
305
- text-indent: -1px;
306
- position: absolute;
307
- top: -5px;
308
- right: 11px;
309
- text-align: right;
310
- cursor: pointer;
311
  }
312
 
313
  .ycd-upgrade-button-red {
314
- background: #d10303;
315
- border: 1px solid #d10303;
316
- padding: 4px 5px 5px 5px;
317
- color: #fff !important;
318
- font-size: 16px;
319
- border-radius: 3px;
320
- cursor: pointer;
321
- align-items: flex-start;
322
- text-align: center !important;
323
  }
324
 
325
  .ycd-upgrade-button-red:hover {
326
- background: #fff;
327
- color: #d10303 !important;
328
- border: 1px solid #d10303 !important;
329
  }
330
 
331
  .ycd-upgrade-button-red .h2 {
332
- font-size: 22px !important;
333
- margin: 0 0 5px 0 !important;
334
- display: inline-block !important;
335
  }
336
 
337
  .ycf-pro-wrapper {
338
- text-align: center;
339
  }
340
 
341
  .ycd-popup-theme {
342
- margin-left: 8px !important;
343
  }
344
 
345
  .ycd-popup-theme:first-child {
346
- margin-left: 0 !important;
347
  }
348
 
349
  .ycd-accordion-content {
350
- padding-left: 45px;
351
  }
352
 
353
  .ycd-bootstrap-wrapper {
354
- position: relative;
355
  }
356
 
357
  .ycd-pro-options-div {
358
- position: absolute;
359
- width: 100%;
360
- height: 100%;
361
- background-color: rgba(238,238,238,0.4);
362
- top: 0;
363
- cursor: pointer;
364
  }
365
 
366
  .ycd-pro-options-title {
367
- position: absolute;
368
- top: 30%;
369
- left: 54%;
370
- font-size: 30px;
371
- color: red;
372
- opacity: 1;
373
- overflow-wrap: break-word;
374
  }
375
 
376
  .ycd-tabs-content {
377
- position: relative;
378
- background-color: white;
379
  }
380
 
381
  .ycd-tabe-content {
382
- background: white;
383
  }
384
 
385
  .ycd-tabs-text-header {
386
- border-bottom: 1px solid #CCCCCC;
387
- position: relative;
388
- margin-top: 10px;
389
- cursor: pointer;
390
  }
391
 
392
  .ycd-tabs-text-header {
393
- padding: 4px 8px;
394
  }
395
 
396
  .ycd-tabs-text-header h3 {
397
- margin-top: 2px;
398
  }
399
 
400
  div.ycd-tabs-text-header > div.ycd-toggle-icon-open {
401
- margin-top: 13px !important;
402
  }
403
 
404
  .ycd-tabe-content {
405
- padding: 10px;
406
  }
407
 
408
  .ycd-settings-wrapper {
409
- margin-top: 20px;
410
  }
411
 
412
  .js-preview-sound {
413
- color: blue;
414
- margin-top: 7px;
415
- cursor: pointer;
416
  }
417
 
418
  .ycd-inline-label-radio {
419
- display: inline-block !important;
420
- margin-left: 8px;
421
  }
422
 
423
  .add-new-h2 {
424
- margin-left: 4px;
425
- padding: 4px 8px;
426
- position: relative;
427
- top: -3px;
428
- text-decoration: none;
429
- border: none;
430
- border-radius: 2px;
431
- background: #f7f7f7;
432
- text-shadow: none;
433
- font-weight: 600;
434
- font-size: 13px;
435
- line-height: normal;
436
- color: #0073aa;
437
- cursor: pointer;
438
- outline: 0;
439
  }
440
 
441
  .add-new-h2:hover {
442
- border-color: #008EC2;
443
- background: #00a0d2;
444
- color: #fff;
445
  }
446
 
447
  .ycd-option-wrapper-pro {
448
- pointer-events: none;
449
- opacity: 0.4;
450
  }
451
 
452
  .ycd-livew-preview-content {
453
- text-align: center !important;
454
  }
455
 
456
  .ycd-float-none {
457
- float: none !important;
458
  }
459
 
460
  .ycd-options-content {
461
- padding: 10px;
462
  }
463
 
464
  .ycd-validation-error {
465
- color: red;
466
- margin-bottom: 15px;
467
- font-weight: bold;
468
  }
469
 
470
  .ycd-alert {
471
- padding: 15px;
472
- margin-bottom: 20px;
473
- border: 1px solid transparent;
474
- border-radius: 4px;
475
  }
476
 
477
  .ycd-alert-info {
478
- color: #31708f;
479
- background-color: #d9edf7;
480
- border-color: #bce8f1;
481
  }
482
 
483
  .ycd-sub-options-settings {
484
- padding-left: 15px;
485
  }
486
 
487
  .ycd-sub-options-settings label {
488
- font-weight: 500 !important;
489
  }
490
 
491
  .ycd-select-wrapper .select2-container {
492
  width: 100% !important;
 
 
 
 
493
  }
1
  .ycd-bootstrap-wrapper .row {
2
+ margin-left: 0;
3
+ margin-right: 0;
4
  }
5
 
6
  .ycd-sub-option {
7
+ padding-left: 45px !important;
8
  }
9
 
10
  .ycd-hide-content,
11
  .ycd-hide {
12
+ display: none;
13
  }
14
 
15
  .ycd-error {
16
+ color: red;
17
  }
18
 
19
  .countdowns-div {
20
+ width: 250px;
21
+ height: 180px;
22
+ border: 1px solid #CCCCCC;
23
+ float: left;
24
+ margin-right: 10px;
25
+ margin-bottom: 10px;
26
+ background-color: #DEDEDE;
27
+ background-size: 100%;
28
+ transition: all .1s ease-in-out;
29
  }
30
 
31
  .countdowns-div:hover {
32
+ background-color: #CDCDCD;
33
+ transform: scale(1.05);
34
  }
35
 
36
  .circle-countdown {
37
+ background-image: url("../img/Cricle.png");
38
+ background-size: 100% 100%;
39
  }
40
 
41
  .clock1-countdown {
42
+ background-image: url("../img/clock1.png");
43
+ background-size: 100% 100%;
44
  }
45
 
46
  .clock2-countdown {
47
+ background-image: url("../img/clock2.png");
48
+ background-size: 100% 100%;
49
  }
50
 
51
  .clock3-countdown {
52
+ background-image: url("../img/clock3.png");
53
+ background-size: 100% 100%;
54
  }
55
 
56
  .clock4-countdown,
57
  .clock4-countdown-pro {
58
+ background-image: url("../img/clock4.png");
59
+ background-size: 100% 100%;
60
  }
61
 
62
  .clock5-countdown,
63
  .clock5-countdown-pro {
64
+ background-image: url("../img/clock5.png");
65
+ background-size: 100% 100%;
66
  }
67
 
68
  .clock6-countdown,
69
  .clock6-countdown-pro {
70
+ background-image: url("../img/clock6.png");
71
+ background-size: 100% 100%;
72
  }
73
 
74
  .clock7-countdown,
75
  .clock7-countdown-pro {
76
+ background-image: url("../img/clock7.png");
77
+ background-size: 100% 100%;
78
  }
79
 
80
  .timer-countdown {
81
+ background-image: url("../img/DigtalCountdown.jpg");
82
+ background-size: 100% 100%;
83
  }
84
 
85
  .flipClock-countdown,
86
  .flipClock-countdown-pro {
87
+ background-image: url("../img/Flipclock.png");
88
+ background-size: 100% 100%;
89
  }
90
 
91
  .circlePopup-countdown,
92
  .circlePopup-countdown-pro {
93
+ background-image: url("../img/CirclePopup.png");
94
+ background-repeat: no-repeat;
95
+ background-position: 13%;
96
+ background-color: black;
97
  }
98
 
99
  .flipClockPopup-countdown,
100
  .flipClockPopup-countdown-pro {
101
+ background-image: url("../img/FlipClockPopup.png");
102
+ background-size: 100% 100%;
103
  }
104
 
105
  .sticky-countdown,
106
  .sticky-countdown-pro {
107
+ background-image: url("../img/Sticky.png");
108
+ background-size: 100% 100%;
109
  }
110
 
111
  .woo-countdown,
112
  .woo-countdown-pro {
113
+ background-image: url("../img/woo.png");
114
+ background-size: 100% 100%;
115
  }
116
 
117
  .circlePopup-countdown:hover,
118
  .circlePopup-countdown-pro:hover {
119
+ background-color: black;
120
  }
121
 
122
  .countdowns-div {
123
+ position: relative;
124
  }
125
 
126
  .ycd-type-title-pro {
127
+ font-size: 23px;
128
+ font-weight: 600;
129
+ color: red;
130
+ opacity: 1;
131
+ overflow-wrap: break-word;
132
+ width: auto;
133
+ margin-top: -15px;
134
+ -ms-transform: rotate(7deg);
135
+ /* -webkit-transform: rotate(7deg); */
136
+ transform: rotate(36deg);
137
+ top: 28px;
138
+ right: -13px;
139
+ position: absolute;
140
+ }
141
+
142
+ .ycd-promotion-video {
143
+ z-index: 99999999999999999;
144
+ }
145
+
146
+ .ycd-type-div {
147
+ height: 127px;
148
+ background-size: 100% 100%;
149
+ }
150
+
151
+ .ycd-type-view-footer {
152
+ background-color: #F1F1F1;
153
+ position: absolute;
154
+ height: 50px;
155
+ width: 100%;
156
+ bottom: 0px;
157
+ }
158
+
159
+ .ycd-promotion-video {
160
+ display: inline-block;
161
+ margin-top: 13px;
162
+ margin-left: 9px;
163
+ }
164
+
165
+ .ycd-play-promotion-video {
166
+ background-image: url(../img/videoPlay.svg);
167
+ width: 25px;
168
+ height: 25px;
169
+ display: inline-block;
170
+ background-size: contain;
171
+ vertical-align: middle;
172
+ margin-left: 6px
173
  }
174
 
175
  .js-ycd-select {
176
+ min-width: 100% !important;
177
+ width: 100% !important;
178
  }
179
 
180
  /*Checkbox slider start*/
181
  /* The switch - the box around the slider */
182
  .ycd-switch {
183
+ position: relative;
184
+ display: inline-block;
185
+ width: 60px;
186
+ height: 34px;
187
  }
188
 
189
  /* Hide default HTML checkbox */
191
 
192
  /* The slider */
193
  .ycd-slider {
194
+ position: absolute;
195
+ cursor: pointer;
196
+ top: 0;
197
+ left: 0;
198
+ right: 0;
199
+ bottom: 0;
200
+ background-color: #ccc;
201
+ -webkit-transition: .4s;
202
+ transition: .4s;
203
+ transform: scale(0.8, 0.8);
204
  }
205
 
206
  .ycd-slider:before {
207
+ position: absolute;
208
+ content: "";
209
+ height: 26px;
210
+ width: 26px;
211
+ left: 4px;
212
+ bottom: 4px;
213
+ background-color: white;
214
+ -webkit-transition: .4s;
215
+ transition: .4s;
216
  }
217
 
218
  input:checked + .ycd-slider {
219
+ background-color: #2196F3;
220
  }
221
 
222
  input:focus + .ycd-slider {
223
+ box-shadow: 0 0 1px #2196F3;
224
  }
225
 
226
  input:checked + .ycd-slider:before {
227
+ -webkit-transform: translateX(26px);
228
+ -ms-transform: translateX(26px);
229
+ transform: translateX(26px);
230
  }
231
 
232
  /* Rounded sliders */
233
  .ycd-slider.ycd-round {
234
+ border-radius: 34px;
235
  }
236
 
237
  .ycd-slider.ycd-round:before {
238
+ border-radius: 50%;
239
  }
240
  /*Checkbox slider end*/
241
 
242
  .ycd-live-preview {
243
+ position: fixed;
244
+ right: 0;
245
+ bottom: 5px;
246
+ background-color: white;
247
+ border: 1px solid #ccc;
248
+ min-width: 400px;
249
+ z-index: 999;
250
  }
251
 
252
  .ycd-live-preview h3 {
253
+ text-align: center;
254
  }
255
 
256
  .ycd-pro-span {
257
+ display: inline-block;
258
+ color: red;
259
+ margin-left: 5px;
260
  }
261
 
262
  .ycd-circle-popup-shortcode {
265
 
266
  .ycd-circles-width-wrapper .irs-single,
267
  .ycd-timer-font-size .irs-single{
268
+ display: none;
269
  }
270
 
271
  .irs-line {
272
+ margin-top: -14px;
273
  }
274
 
275
  .irs-bar {
276
+ cursor: pointer;
277
  }
278
 
279
  .ycd-range-slider-wrapper {
280
+ margin-top: 7px;
281
  }
282
 
283
  .ycd-label-of-select {
284
+ margin-top: 4px;
285
  }
286
 
287
  .ycd-label-of-switch,
288
  .ycd-label-of-input {
289
+ margin-top: 6px;
290
  }
291
 
292
  .ycd-label-of-color {
293
+ margin-top: 5px;
294
  }
295
 
296
  .ycd-label-of-select {
297
+ margin-top: 3px;
298
  }
299
 
300
  .ycd-live-preview-text {
301
+ border-bottom: 1px solid #CCCCCC;
302
+ position: relative;
303
+ margin-top: 10px;
304
  cursor: move;
305
  }
306
 
307
  .ycd-live-preview-text h3 {
308
+ margin-top: 0;
309
  }
310
 
311
  .ycd-toggle-icon-open:before {
312
+ content: "\f142";
313
+ display: inline-block;
314
+ font: 400 20px/1 dashicons;
315
+ speak: none;
316
+ -webkit-font-smoothing: antialiased;
317
+ -moz-osx-font-smoothing: grayscale;
318
+ text-decoration: none!important;
319
+ cursor: pointer;
320
  }
321
 
322
  .ycd-toggle-icon-close:before {
323
+ content: "\f140";
324
+ display: inline-block;
325
+ font: 400 20px/1 dashicons;
326
+ speak: none;
327
+ -webkit-font-smoothing: antialiased;
328
+ -moz-osx-font-smoothing: grayscale;
329
+ text-decoration: none!important;
330
+ cursor: pointer;
331
  }
332
 
333
  .ycd-toggle-icon {
334
+ margin-top: 4px;
335
+ width: 54px;
336
+ height: 35px;
337
+ border-radius: 50%;
338
+ text-indent: -1px;
339
+ position: absolute;
340
+ top: -5px;
341
+ right: 11px;
342
+ text-align: right;
343
+ cursor: pointer;
344
  }
345
 
346
  .ycd-upgrade-button-red {
347
+ background: #d10303;
348
+ border: 1px solid #d10303;
349
+ padding: 4px 5px 5px 5px;
350
+ color: #fff !important;
351
+ font-size: 16px;
352
+ border-radius: 3px;
353
+ cursor: pointer;
354
+ align-items: flex-start;
355
+ text-align: center !important;
356
  }
357
 
358
  .ycd-upgrade-button-red:hover {
359
+ background: #fff;
360
+ color: #d10303 !important;
361
+ border: 1px solid #d10303 !important;
362
  }
363
 
364
  .ycd-upgrade-button-red .h2 {
365
+ font-size: 22px !important;
366
+ margin: 0 0 5px 0 !important;
367
+ display: inline-block !important;
368
  }
369
 
370
  .ycf-pro-wrapper {
371
+ text-align: center;
372
  }
373
 
374
  .ycd-popup-theme {
375
+ margin-left: 8px !important;
376
  }
377
 
378
  .ycd-popup-theme:first-child {
379
+ margin-left: 0 !important;
380
  }
381
 
382
  .ycd-accordion-content {
383
+ padding-left: 45px;
384
  }
385
 
386
  .ycd-bootstrap-wrapper {
387
+ position: relative;
388
  }
389
 
390
  .ycd-pro-options-div {
391
+ position: absolute;
392
+ width: 100%;
393
+ height: 100%;
394
+ background-color: rgba(238,238,238,0.4);
395
+ top: 0;
396
+ cursor: pointer;
397
  }
398
 
399
  .ycd-pro-options-title {
400
+ position: absolute;
401
+ top: 30%;
402
+ left: 54%;
403
+ font-size: 30px;
404
+ color: red;
405
+ opacity: 1;
406
+ overflow-wrap: break-word;
407
  }
408
 
409
  .ycd-tabs-content {
410
+ position: relative;
411
+ background-color: white;
412
  }
413
 
414
  .ycd-tabe-content {
415
+ background: white;
416
  }
417
 
418
  .ycd-tabs-text-header {
419
+ border-bottom: 1px solid #CCCCCC;
420
+ position: relative;
421
+ margin-top: 10px;
422
+ cursor: pointer;
423
  }
424
 
425
  .ycd-tabs-text-header {
426
+ padding: 4px 8px;
427
  }
428
 
429
  .ycd-tabs-text-header h3 {
430
+ margin-top: 2px;
431
  }
432
 
433
  div.ycd-tabs-text-header > div.ycd-toggle-icon-open {
434
+ margin-top: 13px !important;
435
  }
436
 
437
  .ycd-tabe-content {
438
+ padding: 10px;
439
  }
440
 
441
  .ycd-settings-wrapper {
442
+ margin-top: 20px;
443
  }
444
 
445
  .js-preview-sound {
446
+ color: blue;
447
+ margin-top: 7px;
448
+ cursor: pointer;
449
  }
450
 
451
  .ycd-inline-label-radio {
452
+ display: inline-block !important;
453
+ margin-left: 8px;
454
  }
455
 
456
  .add-new-h2 {
457
+ margin-left: 4px;
458
+ padding: 4px 8px;
459
+ position: relative;
460
+ top: -3px;
461
+ text-decoration: none;
462
+ border: none;
463
+ border-radius: 2px;
464
+ background: #f7f7f7;
465
+ text-shadow: none;
466
+ font-weight: 600;
467
+ font-size: 13px;
468
+ line-height: normal;
469
+ color: #0073aa;
470
+ cursor: pointer;
471
+ outline: 0;
472
  }
473
 
474
  .add-new-h2:hover {
475
+ border-color: #008EC2;
476
+ background: #00a0d2;
477
+ color: #fff;
478
  }
479
 
480
  .ycd-option-wrapper-pro {
481
+ pointer-events: none;
482
+ opacity: 0.4;
483
  }
484
 
485
  .ycd-livew-preview-content {
486
+ text-align: center !important;
487
  }
488
 
489
  .ycd-float-none {
490
+ float: none !important;
491
  }
492
 
493
  .ycd-options-content {
494
+ padding: 10px;
495
  }
496
 
497
  .ycd-validation-error {
498
+ color: red;
499
+ margin-bottom: 15px;
500
+ font-weight: bold;
501
  }
502
 
503
  .ycd-alert {
504
+ padding: 15px;
505
+ margin-bottom: 20px;
506
+ border: 1px solid transparent;
507
+ border-radius: 4px;
508
  }
509
 
510
  .ycd-alert-info {
511
+ color: #31708f;
512
+ background-color: #d9edf7;
513
+ border-color: #bce8f1;
514
  }
515
 
516
  .ycd-sub-options-settings {
517
+ padding-left: 15px;
518
  }
519
 
520
  .ycd-sub-options-settings label {
521
+ font-weight: 500 !important;
522
  }
523
 
524
  .ycd-select-wrapper .select2-container {
525
  width: 100% !important;
526
+ }
527
+
528
+ #ycd-woo-selected-products > div > div.col-md-5 > span > span.selection > span {
529
+ width: 300px !important;
530
  }
assets/img/videoPlay.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 32 32" height="32px" id="Layer_1" version="1.1" viewBox="0 0 32 32" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M30,6h-0.887c-0.525,0-1.029,0.207-1.404,0.576L25,9.248V8c0-1.657-1.344-3-3-3H3 C1.346,5,0,6.345,0,8v6.972V24c0,1.656,1.343,3,3,3h19c1.656,0,3-1.344,3-3v-1.221l2.709,2.672c0.375,0.369,0.879,0.576,1.404,0.576 H30c1.104,0,2-0.895,2-2V8C32,6.895,31.104,6,30,6z M3,25c-0.552,0-1-0.449-1-1V8c0-0.553,0.447-1,1-1h19c0.551,0,1,0.448,1,1v16 c0,0.551-0.449,1-1,1H3z M30,24.027h-0.887H29l-4-4V20l-1-1v-6l5-5h0.113H30V24.027z" fill="#333333" id="video"/></svg>
assets/js/Admin.js CHANGED
@@ -16,11 +16,26 @@ YcdAdmin.prototype.init = function() {
16
  this.livePreview();
17
  this.redirectToProWebpage();
18
  this.newsletter();
 
19
 
20
  /*clock*/
21
  this.clockLivePreview();
22
  };
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  YcdAdmin.prototype.clockLivePreview = function() {
25
  this.changeClcokWidth();
26
  this.changeTimeZone();
16
  this.livePreview();
17
  this.redirectToProWebpage();
18
  this.newsletter();
19
+ this.promotionalVideo();
20
 
21
  /*clock*/
22
  this.clockLivePreview();
23
  };
24
 
25
+ YcdAdmin.prototype.promotionalVideo = function() {
26
+ var target = jQuery('.ycd-play-promotion-video');
27
+
28
+ if(!target.length) {
29
+ return false;
30
+ }
31
+
32
+ target.bind('click', function(e) {
33
+ e.preventDefault();
34
+ var href = jQuery(this).data('href');
35
+ window.open(href);
36
+ });
37
+ }
38
+
39
  YcdAdmin.prototype.clockLivePreview = function() {
40
  this.changeClcokWidth();
41
  this.changeTimeZone();
assets/js/Js.php CHANGED
@@ -33,7 +33,7 @@ class Js {
33
  'allCountdowns' => Countdown::shapeIdTitleData(),
34
  'title' => __('Countdowns', YCD_TEXT_DOMAIN),
35
  'description' => __('This block will help you to add countdown’s shortcode inside the page content', YCD_TEXT_DOMAIN),
36
- 'logo_classname' => 'sgpb-gutenberg-logo',
37
  'coountdown_select' => __('Select countdown', YCD_TEXT_DOMAIN)
38
  );
39
 
33
  'allCountdowns' => Countdown::shapeIdTitleData(),
34
  'title' => __('Countdowns', YCD_TEXT_DOMAIN),
35
  'description' => __('This block will help you to add countdown’s shortcode inside the page content', YCD_TEXT_DOMAIN),
36
+ 'logo_classname' => 'ycd-gutenberg-logo',
37
  'coountdown_select' => __('Select countdown', YCD_TEXT_DOMAIN)
38
  );
39
 
assets/js/admin/WpCountdownBlock.js CHANGED
@@ -111,7 +111,6 @@ WpCountdownBlock.prototype.init = function() {
111
  <Placeholder
112
  key="ycd-gutenberg-form-selector-wrap"
113
  className="ycd-gutenberg-form-selector-wrapper">
114
- <img class={YCD_GUTENBERG_PARAMS.logo_classname} src={ YCD_GUTENBERG_PARAMS.logo_url }/>
115
  <SelectControl
116
  key = "ycd-gutenberg-form-selector-select-control"
117
  value = {countdownId}
111
  <Placeholder
112
  key="ycd-gutenberg-form-selector-wrap"
113
  className="ycd-gutenberg-form-selector-wrapper">
 
114
  <SelectControl
115
  key = "ycd-gutenberg-form-selector-select-control"
116
  value = {countdownId}
assets/js/admin/WpCountdownBlockMin.js CHANGED
@@ -113,7 +113,6 @@ WpCountdownBlock.prototype.init = function () {
113
  {
114
  key: 'ycd-gutenberg-form-selector-wrap',
115
  className: 'ycd-gutenberg-form-selector-wrapper' },
116
- React.createElement('img', { 'class': YCD_GUTENBERG_PARAMS.logo_classname, src: YCD_GUTENBERG_PARAMS.logo_url }),
117
  React.createElement(SelectControl, {
118
  key: 'ycd-gutenberg-form-selector-select-control',
119
  value: countdownId,
113
  {
114
  key: 'ycd-gutenberg-form-selector-wrap',
115
  className: 'ycd-gutenberg-form-selector-wrapper' },
 
116
  React.createElement(SelectControl, {
117
  key: 'ycd-gutenberg-form-selector-select-control',
118
  value: countdownId,
assets/views/timerMainView.php CHANGED
@@ -144,9 +144,6 @@ $textFontFamily = $this->getOptionValue('ycd-text-font-family');
144
  </div>
145
 
146
  <?php
147
- $type = $this->getOptionValue('ycd-type');
148
- if(empty($type)) {
149
- $type = $_GET['ycd_type'];
150
- }
151
  ?>
152
  <input type="hidden" name="ycd-type" value="<?= esc_attr($type); ?>">
144
  </div>
145
 
146
  <?php
147
+ $type = $this->getCurrentTypeFromOptions();
 
 
 
148
  ?>
149
  <input type="hidden" name="ycd-type" value="<?= esc_attr($type); ?>">
assets/views/types.php CHANGED
@@ -4,20 +4,26 @@ use ycd\AdminHelper;
4
  $types = Countdown::getCountdownTypes();
5
  ?>
6
  <div class="ycd-bootstrap-wrapper">
7
- <div class="row">
8
- <div class="col-md-12">
9
- <h3><?php _e('Add New Countdown', YCD_TEXT_DOMAIN); ?></h3>
10
- </div>
11
- </div>
12
- <?php foreach ($types as $type): ?>
13
- <?php if(YCD_PKG_VERSION != YCD_FREE_VERSION && $type->isAvailable()): ?>
14
- <a class="create-countdown-link" <?php echo AdminHelper::buildCreateCountdownAttrs($type); ?> href="<?php echo AdminHelper::buildCreateCountdownUrl($type); ?>">
15
- <div class="countdowns-div <?php echo AdminHelper::getCountdownThumbClass($type); ?>"><?php echo AdminHelper::getCountdownThumbText($type); ?></div>
16
- </a>
17
- <?php elseif(YCD_PKG_VERSION == YCD_FREE_VERSION): ?>
18
- <a class="create-countdown-link" <?php echo AdminHelper::buildCreateCountdownAttrs($type); ?> href="<?php echo AdminHelper::buildCreateCountdownUrl($type); ?>">
19
- <div class="countdowns-div <?php echo AdminHelper::getCountdownThumbClass($type); ?>"><?php echo AdminHelper::getCountdownThumbText($type); ?></div>
20
- </a>
21
- <?php endif;?>
22
- <?php endforeach; ?>
 
 
 
 
 
 
23
  </div>
4
  $types = Countdown::getCountdownTypes();
5
  ?>
6
  <div class="ycd-bootstrap-wrapper">
7
+ <div class="row">
8
+ <div class="col-md-12">
9
+ <h3><?php _e('Add New Countdown', YCD_TEXT_DOMAIN); ?></h3>
10
+ </div>
11
+ </div>
12
+ <?php foreach ($types as $type): ?>
13
+ <?php if(YCD_PKG_VERSION > YCD_FREE_VERSION && !$type->isAvailable()): ?>
14
+ <?php continue; ?>
15
+ <?php endif; ?>
16
+ <a class="create-countdown-link" <?php echo AdminHelper::buildCreateCountdownAttrs($type); ?> href="<?php echo AdminHelper::buildCreateCountdownUrl($type); ?>">
17
+ <div class="countdowns-div">
18
+ <div class="ycd-type-div <?php echo AdminHelper::getCountdownThumbClass($type); ?>"></div>
19
+ <?php echo AdminHelper::getCountdownThumbText($type); ?>
20
+ <div class="ycd-type-view-footer">
21
+ <span class="ycd-promotion-video"><?php echo AdminHelper::getCountdownDisplayName($type); ?></span>
22
+ <?php if(!$type->isAvailable()): ?>
23
+ <span class="ycd-play-promotion-video" data-href="<?php echo AdminHelper::getCountdownYoutubeUrl($type); ?>"></span>
24
+ <?php endif; ?>
25
+ </div>
26
+ </div>
27
+ </a>
28
+ <?php endforeach; ?>
29
  </div>
classes/countdown/CircleCountdown.php CHANGED
@@ -22,10 +22,13 @@ class CircleCountdown extends Countdown {
22
 
23
  public function includeStyles() {
24
  $this->includeGeneralScripts();
 
25
  ScriptsIncluder::registerScript('ycdGoogleFonts.js');
26
  ScriptsIncluder::enqueueScript('ycdGoogleFonts.js');
27
- ScriptsIncluder::registerScript('CountdownProFunctionality.js');
28
- ScriptsIncluder::enqueueScript('CountdownProFunctionality.js');
 
 
29
  ScriptsIncluder::registerScript('Countdown.js');
30
  ScriptsIncluder::enqueueScript('Countdown.js');
31
  ScriptsIncluder::registerScript('TimeCircles.js');
22
 
23
  public function includeStyles() {
24
  $this->includeGeneralScripts();
25
+ wp_enqueue_script('jquery');
26
  ScriptsIncluder::registerScript('ycdGoogleFonts.js');
27
  ScriptsIncluder::enqueueScript('ycdGoogleFonts.js');
28
+ if(YCD_PKG_VERSION > YCD_FREE_VERSION) {
29
+ ScriptsIncluder::registerScript('CountdownProFunctionality.js');
30
+ ScriptsIncluder::enqueueScript('CountdownProFunctionality.js');
31
+ }
32
  ScriptsIncluder::registerScript('Countdown.js');
33
  ScriptsIncluder::enqueueScript('Countdown.js');
34
  ScriptsIncluder::registerScript('TimeCircles.js');
classes/countdown/TimerCountdown.php CHANGED
@@ -127,6 +127,7 @@ class TimerCountdown extends Countdown {
127
  }
128
 
129
  public function renderScripts() {
 
130
  if(YCD_PKG_VERSION != YCD_FREE_VERSION) {
131
  ScriptsIncluder::registerScript('ycdGoogleFonts.js');
132
  ScriptsIncluder::enqueueScript('ycdGoogleFonts.js');
127
  }
128
 
129
  public function renderScripts() {
130
+ wp_enqueue_script('jquery');
131
  if(YCD_PKG_VERSION != YCD_FREE_VERSION) {
132
  ScriptsIncluder::registerScript('ycdGoogleFonts.js');
133
  ScriptsIncluder::enqueueScript('ycdGoogleFonts.js');
config/config.php CHANGED
@@ -50,7 +50,7 @@ class YcdCountdownConfig {
50
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
51
  self::addDefine('YCD_AJAX_SUCCESS', 1);
52
  self::addDefine('YCD_TABLE_LIMIT', 15);
53
- self::addDefine('YCD_VERSION', 1.361);
54
  self::addDefine('YCD_VERSION_PRO', 1.23);
55
  self::addDefine('YCD_FREE_VERSION', 1);
56
  self::addDefine('YCD_SILVER_VERSION', 2);
50
  self::addDefine('YCD_CRON_REPEAT_INTERVAL', 1);
51
  self::addDefine('YCD_AJAX_SUCCESS', 1);
52
  self::addDefine('YCD_TABLE_LIMIT', 15);
53
+ self::addDefine('YCD_VERSION', 1.37);
54
  self::addDefine('YCD_VERSION_PRO', 1.23);
55
  self::addDefine('YCD_FREE_VERSION', 1);
56
  self::addDefine('YCD_SILVER_VERSION', 2);
config/optionsConfig.php CHANGED
@@ -5,57 +5,68 @@ class YcdCountdownOptionsConfig {
5
  public static function init() {
6
  global $YCD_TYPES;
7
 
8
- $YCD_TYPES['typeName'] = apply_filters('ycdTypes', array(
9
- 'circle' => YCD_FREE_VERSION,
10
- 'timer' => YCD_FREE_VERSION,
11
- 'clock1' => YCD_FREE_VERSION,
12
- 'clock2' => YCD_FREE_VERSION,
13
- 'clock3' => YCD_FREE_VERSION,
14
- 'clock4' => YCD_SILVER_VERSION,
15
- 'clock5' => YCD_SILVER_VERSION,
16
- 'clock6' => YCD_SILVER_VERSION,
17
- 'clock7' => YCD_SILVER_VERSION,
18
- 'sticky' => YCD_SILVER_VERSION,
19
- 'woo' => YCD_GOLD_VERSION,
20
- 'circlePopup' => YCD_SILVER_VERSION,
21
- 'flipClock' => YCD_SILVER_VERSION,
22
- 'flipClockPopup' => YCD_SILVER_VERSION
23
- ));
24
 
25
- $YCD_TYPES['typePath'] = apply_filters('ycdTypePaths', array(
26
- 'circle' => YCD_COUNTDOWNS_PATH,
27
- 'timer' => YCD_COUNTDOWNS_PATH,
28
- 'clock1' => YCD_COUNTDOWNS_PATH,
29
- 'clock2' => YCD_COUNTDOWNS_PATH,
30
- 'clock3' => YCD_COUNTDOWNS_PATH,
31
- 'clock4' => YCD_COUNTDOWNS_PATH,
32
- 'clock5' => YCD_COUNTDOWNS_PATH,
33
- 'clock6' => YCD_COUNTDOWNS_PATH,
34
- 'clock7' => YCD_COUNTDOWNS_PATH,
35
- 'sticky' => YCD_COUNTDOWNS_PATH,
36
- 'woo' => YCD_COUNTDOWNS_PATH,
37
- 'circlePopup' => YCD_COUNTDOWNS_PATH,
38
- 'flipClock' => YCD_COUNTDOWNS_PATH,
39
- 'flipClockPopup' => YCD_COUNTDOWNS_PATH
40
- ));
41
-
42
- $YCD_TYPES['titles'] = apply_filters('ycdTitles', array(
43
- 'circle' => __('Circle', YCD_TEXT_DOMAIN),
44
- 'timer' => __('Digital', YCD_TEXT_DOMAIN),
45
- 'clock1' => __('Clock 1', YCD_TEXT_DOMAIN),
46
- 'clock2' => __('Clock 2', YCD_TEXT_DOMAIN),
47
- 'clock3' => __('Clock 3', YCD_TEXT_DOMAIN),
48
- 'clock4' => __('Clock 4', YCD_TEXT_DOMAIN),
49
- 'clock5' => __('Clock 5', YCD_TEXT_DOMAIN),
50
- 'clock6' => __('Clock 6', YCD_TEXT_DOMAIN),
51
- 'clock7' => __('Clock 7', YCD_TEXT_DOMAIN),
52
- 'sticky' => __('Sticky countdown', YCD_TEXT_DOMAIN),
53
- 'woo' => __('WooCommerce countdown', YCD_TEXT_DOMAIN),
54
- 'circlePopup' => __('Circle Popup', YCD_TEXT_DOMAIN),
55
- 'flipClock' => __('Flip Clock', YCD_TEXT_DOMAIN),
56
- 'flipClockPopup' => __('Flip Clock Popup', YCD_TEXT_DOMAIN)
57
- ));
58
- }
 
 
 
 
 
 
 
 
 
 
 
59
 
60
  public static function optionsValues() {
61
  global $YCD_OPTIONS;
5
  public static function init() {
6
  global $YCD_TYPES;
7
 
8
+ $YCD_TYPES['typeName'] = apply_filters('ycdTypes', array(
9
+ 'circle' => YCD_FREE_VERSION,
10
+ 'timer' => YCD_FREE_VERSION,
11
+ 'clock1' => YCD_FREE_VERSION,
12
+ 'clock2' => YCD_FREE_VERSION,
13
+ 'clock3' => YCD_FREE_VERSION,
14
+ 'clock4' => YCD_SILVER_VERSION,
15
+ 'clock5' => YCD_SILVER_VERSION,
16
+ 'clock6' => YCD_SILVER_VERSION,
17
+ 'clock7' => YCD_SILVER_VERSION,
18
+ 'sticky' => YCD_SILVER_VERSION,
19
+ 'woo' => YCD_GOLD_VERSION,
20
+ 'circlePopup' => YCD_SILVER_VERSION,
21
+ 'flipClock' => YCD_SILVER_VERSION,
22
+ 'flipClockPopup' => YCD_SILVER_VERSION
23
+ ));
24
 
25
+ $YCD_TYPES['typePath'] = apply_filters('ycdTypePaths', array(
26
+ 'circle' => YCD_COUNTDOWNS_PATH,
27
+ 'timer' => YCD_COUNTDOWNS_PATH,
28
+ 'clock1' => YCD_COUNTDOWNS_PATH,
29
+ 'clock2' => YCD_COUNTDOWNS_PATH,
30
+ 'clock3' => YCD_COUNTDOWNS_PATH,
31
+ 'clock4' => YCD_COUNTDOWNS_PATH,
32
+ 'clock5' => YCD_COUNTDOWNS_PATH,
33
+ 'clock6' => YCD_COUNTDOWNS_PATH,
34
+ 'clock7' => YCD_COUNTDOWNS_PATH,
35
+ 'sticky' => YCD_COUNTDOWNS_PATH,
36
+ 'woo' => YCD_COUNTDOWNS_PATH,
37
+ 'circlePopup' => YCD_COUNTDOWNS_PATH,
38
+ 'flipClock' => YCD_COUNTDOWNS_PATH,
39
+ 'flipClockPopup' => YCD_COUNTDOWNS_PATH
40
+ ));
41
+
42
+ $YCD_TYPES['titles'] = apply_filters('ycdTitles', array(
43
+ 'circle' => __('Circle', YCD_TEXT_DOMAIN),
44
+ 'timer' => __('Digital', YCD_TEXT_DOMAIN),
45
+ 'clock1' => __('Clock 1', YCD_TEXT_DOMAIN),
46
+ 'clock2' => __('Clock 2', YCD_TEXT_DOMAIN),
47
+ 'clock3' => __('Clock 3', YCD_TEXT_DOMAIN),
48
+ 'clock4' => __('Clock 4', YCD_TEXT_DOMAIN),
49
+ 'clock5' => __('Clock 5', YCD_TEXT_DOMAIN),
50
+ 'clock6' => __('Clock 6', YCD_TEXT_DOMAIN),
51
+ 'clock7' => __('Clock 7', YCD_TEXT_DOMAIN),
52
+ 'sticky' => __('Sticky countdown', YCD_TEXT_DOMAIN),
53
+ 'woo' => __('WooCommerce countdown', YCD_TEXT_DOMAIN),
54
+ 'circlePopup' => __('Circle Popup', YCD_TEXT_DOMAIN),
55
+ 'flipClock' => __('Flip Clock', YCD_TEXT_DOMAIN),
56
+ 'flipClockPopup' => __('Flip Clock Popup', YCD_TEXT_DOMAIN)
57
+ ));
58
+
59
+ $YCD_TYPES['youtubeUrls'] = apply_filters('ycdYoutubeUrls', array(
60
+ 'clock5' => 'https://www.youtube.com/watch?v=NbP4aKPrWfM&',
61
+ 'clock6' => 'https://www.youtube.com/watch?v=rsWijVfKQzk',
62
+ 'clock7' => 'https://www.youtube.com/watch?v=WqsbNipqyCM',
63
+ 'sticky' => 'https://www.youtube.com/watch?v=sK9A-ADoy8Y',
64
+ 'woo' => 'https://www.youtube.com/watch?v=ObLMBFp69ro',
65
+ 'circlePopup' => 'https://www.youtube.com/watch?v=KUEvK0FuErw',
66
+ 'flipClock' => 'https://www.youtube.com/watch?v=Zb7fIkEBcio',
67
+ 'flipClockPopup' => 'https://www.youtube.com/watch?v=i46qN2sFwZc'
68
+ ));
69
+ }
70
 
71
  public static function optionsValues() {
72
  global $YCD_OPTIONS;
countdown-builder.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Countdown builder
4
  * Description: The best countdown plugin
5
- * Version: 1.3.6.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.3.7
6
  * Author: Adam Skaat
7
  * Author URI: https://edmonsoft.com/countdown
8
  * License: GPLv2
helpers/AdminHelper.php CHANGED
@@ -43,6 +43,22 @@ class AdminHelper {
43
  return $typeClassName;
44
  }
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  public static function getCountdownThumbText($type) {
47
  $isAvailable = $type->isAvailable();
48
  $name = $type->getName();
@@ -143,7 +159,7 @@ class AdminHelper {
143
 
144
  $data['woo-countdown-positions'] = array(
145
  1 => __('Above the Title', YCD_TEXT_DOMAIN),
146
- 2 => __('Below the Title', YCD_TEXT_DOMAIN),
147
  10 => __('Below the Price', YCD_TEXT_DOMAIN),
148
  20 => __('Below Short Description', YCD_TEXT_DOMAIN),
149
  30 => __('Below Add to Cart Button', YCD_TEXT_DOMAIN),
43
  return $typeClassName;
44
  }
45
 
46
+ public static function getCountdownDisplayName($type) {
47
+ global $YCD_TYPES;
48
+ $titles = $YCD_TYPES['titles'];
49
+ $name = $type->getName();
50
+
51
+ return $titles[$name];
52
+ }
53
+
54
+ public static function getCountdownYoutubeUrl($type) {
55
+ global $YCD_TYPES;
56
+ $titles = $YCD_TYPES['youtubeUrls'];
57
+ $name = $type->getName();
58
+
59
+ return $titles[$name];
60
+ }
61
+
62
  public static function getCountdownThumbText($type) {
63
  $isAvailable = $type->isAvailable();
64
  $name = $type->getName();
159
 
160
  $data['woo-countdown-positions'] = array(
161
  1 => __('Above the Title', YCD_TEXT_DOMAIN),
162
+ 5 => __('Below the Title', YCD_TEXT_DOMAIN),
163
  10 => __('Below the Price', YCD_TEXT_DOMAIN),
164
  20 => __('Below Short Description', YCD_TEXT_DOMAIN),
165
  30 => __('Below Add to Cart Button', YCD_TEXT_DOMAIN),
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.0.3
6
- Stable tag: 1.3.6.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,9 @@ We do web development and if you need a developer or if you think you have found
44
 
45
  == Installation ==
46
 
47
- Coming soon
 
 
48
 
49
  == Frequently Asked Questions ==
50
 
@@ -52,6 +54,10 @@ Coming soon
52
 
53
  == Changelog ==
54
 
 
 
 
 
55
  = 1.3.6 =
56
  * Gutenberg block (new)
57
  * Html editor countdown button (new)
3
  Tags: countdown, timer, countdown timer
4
  Requires at least: 3.8
5
  Tested up to: 5.0.3
6
+ Stable tag: 1.3.7
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
 
51
  == Frequently Asked Questions ==
52
 
54
 
55
  == Changelog ==
56
 
57
+ = 1.3.7 =
58
+ * Admin side improvment
59
+ * Bug fixed
60
+
61
  = 1.3.6 =
62
  * Gutenberg block (new)
63
  * Html editor countdown button (new)