Countdown, Coming Soon – Countdown & Clock - Version 1.1.2.3

Version Description

Download this release

Release Info

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

Version 1.1.2.3

CountdownInit.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.'AdminHelper.php';
34
+ require_once YCD_CLASSES_PATH.'CountdownType.php';
35
+ require_once YCD_COUNTDOWNS_PATH.'Countdown.php';
36
+ require_once YCD_CSS_PATH.'Css.php';
37
+ require_once YCD_CLASSES_PATH.'RegisterPostType.php';
38
+ require_once YCD_CLASSES_PATH.'Filters.php';
39
+ require_once YCD_CLASSES_PATH.'Actions.php';
40
+ }
41
+
42
+ public function actions() {
43
+ $this->actions = new Actions();
44
+ }
45
+
46
+ public function filters() {
47
+ $this->filters = new Filters();
48
+ }
49
+ }
50
+
51
+ CountdownInit::getInstance();
assets/css/Css.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
20
+ if($hook == 'ycdcountdown_page_ycdcountdown' || get_post_type($_GET['post']) == YCD_COUNTDOWN_POST_TYPE) {
21
+ ScriptsIncluder::enqueueStyle('bootstrap.css');
22
+ ScriptsIncluder::enqueueStyle('admin.css');
23
+ }
24
+ }
25
+ }
26
+
27
+ new Css();
assets/css/TimeCircles.css ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * This element is created inside your target element
3
+ * It is used so that your own element will not need to be altered
4
+ **/
5
+ .time_circles {
6
+ position: relative;
7
+ width: 100%;
8
+ height: 100%;
9
+ }
10
+
11
+ /**
12
+ * This is all the elements used to house all text used
13
+ * in time circles
14
+ **/
15
+ .time_circles > div {
16
+ position: absolute;
17
+ text-align: center;
18
+ }
19
+
20
+ /**
21
+ * Titles (Days, Hours, etc)
22
+ **/
23
+ .time_circles > div > h4 {
24
+ margin: 0;
25
+ padding: 0;
26
+ text-align: center;
27
+ text-transform: uppercase;
28
+ font-family: 'Century Gothic', Arial;
29
+ line-height: 1;
30
+ }
31
+
32
+ /**
33
+ * Time numbers, ie: 12
34
+ **/
35
+ .time_circles > div > span {
36
+ margin: 0;
37
+ padding: 0;
38
+ display: block;
39
+ width: 100%;
40
+ text-align: center;
41
+ font-family: 'Century Gothic', Arial;
42
+ line-height: 1;
43
+ font-weight: bold;
44
+ }
assets/css/admin.css ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .ycd-bootstrap-wrapper .row {
2
+ margin-left: 0;
3
+ margin-right: 0;
4
+ }
5
+
6
+ .ycd-hide-content {
7
+ display: none;
8
+ }
9
+
10
+ .countdowns-div {
11
+ width: 250px;
12
+ height: 150px;
13
+ border: 1px solid #CCCCCC;
14
+ float: left;
15
+ margin-right: 10px;
16
+ margin-bottom: 10px;
17
+ background-color: #DEDEDE;
18
+ background-size: 100%;
19
+ transition: all .1s ease-in-out;
20
+ }
21
+
22
+ .countdowns-div:hover {
23
+ background-color: #CDCDCD;
24
+ transform: scale(1.05);
25
+ }
26
+
27
+ .circle-countdown {
28
+ background-image: url("../img/Cricle.png");
29
+ background-size: 100% 100%;
30
+ }
31
+
32
+ .js-ycd-select {
33
+ min-width: 100% !important;
34
+ }
35
+
36
+ /*Checkbox slider start*/
37
+ /* The switch - the box around the slider */
38
+ .ycd-switch {
39
+ position: relative;
40
+ display: inline-block;
41
+ width: 60px;
42
+ height: 34px;
43
+ }
44
+
45
+ /* Hide default HTML checkbox */
46
+ .ycd-switch input {display:none;}
47
+
48
+ /* The slider */
49
+ .ycd-slider {
50
+ position: absolute;
51
+ cursor: pointer;
52
+ top: 0;
53
+ left: 0;
54
+ right: 0;
55
+ bottom: 0;
56
+ background-color: #ccc;
57
+ -webkit-transition: .4s;
58
+ transition: .4s;
59
+ transform: scale(0.8, 0.8);
60
+ }
61
+
62
+ .ycd-slider:before {
63
+ position: absolute;
64
+ content: "";
65
+ height: 26px;
66
+ width: 26px;
67
+ left: 4px;
68
+ bottom: 4px;
69
+ background-color: white;
70
+ -webkit-transition: .4s;
71
+ transition: .4s;
72
+ }
73
+
74
+ input:checked + .ycd-slider {
75
+ background-color: #2196F3;
76
+ }
77
+
78
+ input:focus + .ycd-slider {
79
+ box-shadow: 0 0 1px #2196F3;
80
+ }
81
+
82
+ input:checked + .ycd-slider:before {
83
+ -webkit-transform: translateX(26px);
84
+ -ms-transform: translateX(26px);
85
+ transform: translateX(26px);
86
+ }
87
+
88
+ /* Rounded sliders */
89
+ .ycd-slider.ycd-round {
90
+ border-radius: 34px;
91
+ }
92
+
93
+ .ycd-slider.ycd-round:before {
94
+ border-radius: 50%;
95
+ }
96
+ /*Checkbox slider end*/
assets/css/bootstrap.css ADDED
@@ -0,0 +1,6846 @@