Countdown, Coming Soon – Countdown & Clock - Version 1.1.7

Version Description

Download this release

Release Info

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

Version 1.1.7

CountdownInit.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
18
+ public static function getInstance() {
19
+ if(!isset(self::$instance)) {
20
+ self::$instance = new self();
21
+ }
22
+ return self::$instance;
23
+ }
24
+
25
+ public function init() {
26
+ $this->includeData();
27
+ $this->actions();
28
+ $this->filters();
29
+ }
30
+
31
+ private function includeData() {
32
+ require_once YCD_HELPERS_PATH.'ScriptsIncluder.php';
33
+ require_once YCD_HELPERS_PATH.'MultipleChoiceButton.php';
34
+ require_once YCD_HELPERS_PATH.'AdminHelper.php';
35
+ require_once YCD_CLASSES_PATH.'CountdownType.php';
36
+ require_once YCD_COUNTDOWNS_PATH.'Countdown.php';
37
+ require_once YCD_CSS_PATH.'Css.php';
38
+ require_once YCD_CLASSES_PATH.'RegisterPostType.php';
39
+ require_once YCD_CLASSES_PATH.'Actions.php';
40
+ require_once YCD_CLASSES_PATH.'Filters.php';
41
+ }
42
+
43
+ public function actions() {
44
+ $this->actions = new Actions();
45
+ }
46
+
47
+ public function filters() {
48
+ $this->filters = new Filters();
49
+ }
50
+ }
51
+
52
+ CountdownInit::getInstance();
assets/css/Css.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
23
+ if($hook == 'ycdcountdown_page_ycdcountdown' || get_post_type($_GET['post']) == YCD_COUNTDOWN_POST_TYPE) {
24
+ ScriptsIncluder::enqueueStyle('bootstrap.css');
25
+ ScriptsIncluder::enqueueStyle('admin.css');
26
+ ScriptsIncluder::enqueueStyle('colorpicker.css');
27
+ ScriptsIncluder::enqueueStyle('ion.rangeSlider.css');
28
+ ScriptsIncluder::enqueueStyle('ion.rangeSlider.skinFlat.css');
29
+ }
30
+ }
31
+ }
32
+
33
+ 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,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ .js-ycd-select {
34
+ min-width: 100% !important;
35
+ width: 100% !important;
36
+ }
37
+
38
+ /*Checkbox slider start*/
39
+ /* The switch - the box around the slider */
40
+ .ycd-switch {
41
+ position: relative;
42
+ display: inline-block;
43
+ width: 60px;
44
+ height: 34px;
45
+ }
46
+
47
+ /* Hide default HTML checkbox */
48
+ .ycd-switch input {display:none;}
49
+
50
+ /* The slider */
51
+ .ycd-slider {
52
+ position: absolute;
53
+ cursor: pointer;
54
+ top: 0;
55
+ left: 0;
56
+ right: 0;
57
+ bottom: 0;
58
+ background-color: #ccc;
59
+ -webkit-transition: .4s;
60
+ transition: .4s;
61
+ transform: scale(0.8, 0.8);
62
+ }
63
+
64
+ .ycd-slider:before {
65
+ position: absolute;
66
+ content: "";
67
+ height: 26px;
68
+ width: 26px;
69
+ left: 4px;
70
+ bottom: 4px;
71
+ background-color: white;
72
+ -webkit-transition: .4s;
73
+ transition: .4s;
74
+ }
75
+
76
+ input:checked + .ycd-slider {
77
+ background-color: #2196F3;
78
+ }
79
+
80
+ input:focus + .ycd-slider {
81
+ box-shadow: 0 0 1px #2196F3;
82
+ }
83
+
84
+ input:checked + .ycd-slider:before {
85
+ -webkit-transform: translateX(26px);
86
+ -ms-transform: translateX(26px);
87
+ transform: translateX(26px);
88
+ }
89
+
90
+ /* Rounded sliders */
91
+ .ycd-slider.ycd-round {
92
+ border-radius: 34px;
93
+ }
94
+
95
+ .ycd-slider.ycd-round:before {
96
+ border-radius: 50%;
97
+ }
98
+ /*Checkbox slider end*/
99
+
100
+ .ycd-live-preview {
101
+ position: fixed;
102
+ right: 0;
103
+ bottom: 5px;
104
+ background-color: white;
105
+ min-width: 400px;
106
+ z-index: 999;
107
+ }
108
+
109
+ .ycd-live-preview h3 {
110
+ text-align: center;
111
+ }
112
+
113
+ .ycd-pro-span {
114
+ display: inline-block;
115
+ color: red;
116
+ margin-left: 5px;
117
+ }
118
+
119
+ .ycd-circles-width-wrapper .irs-single {
120
+ display: none;
121
+ }
122
+
123
+ .irs-line {
124
+ margin-top: -14px;
125
+ }
126
+
127
+ .irs-bar {
128
+ cursor: pointer;
129
+ }
130
+
131
+ .ycd-range-slider-wrapper {
132
+ margin-top: 7px;
133
+ }
134
+
135
+ .ycd-label-of-select {
136
+ margin-top: 4px;
137
+ }
138
+
139
+ .ycd-label-of-switch,
140
+ .ycd-label-of-input {
141
+ margin-top: 6px;
142
+ }
143
+
144
+ .ycd-label-of-color {
145
+ margin-top: 5px;
146
+ }
147
+
148
+ .ycd-label-of-select {
149
+ margin-top: 3px;
150
+ }
151
+
152
+ .ycd-live-preview-text {
153
+ border-bottom: 1px solid #CCCCCC;
154
+ position: relative;
155
+ margin-top: 10px;
156
+ cursor: pointer;
157
+ }
158
+
159
+ .ycd-live-preview-text h3 {
160
+ margin-top: 0;
161
+ }
162
+
163
+ .ycd-toggle-icon-open:before {
164
+ content: "\f142";
165
+ display: inline-block;
166
+ font: 400 20px/1 dashicons;
167
+ speak: none;
168
+ -webkit-font-smoothing: antialiased;
169
+ -moz-osx-font-smoothing: grayscale;
170
+ text-decoration: none!important;
171
+ cursor: pointer;
172
+ }
173
+
174
+ .ycd-toggle-icon-close:before {
175
+ content: "\f140";
176
+ display: inline-block;
177
+ font: 400 20px/1 dashicons;
178
+ speak: none;
179
+ -webkit-font-smoothing: antialiased;
180
+ -moz-osx-font-smoothing: grayscale;
181
+ text-decoration: none!important;
182
+ cursor: pointer;
183
+ }
184
+
185
+ .ycd-toggle-icon {
186
+ margin-top: 4px;
187
+ width: 20px;
188
+ border-radius: 50%;
189
+ text-indent: -1px;
190
+ position: absolute;
191
+ top: -5px;
192
+ right: 11px
193
+ }
assets/css/bootstrap.css ADDED
@@ -0,0 +1,6846 @@