Countdown, Coming Soon – Countdown & Clock - Version 1.0.0

Version Description

Download this release

Release Info

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

Version 1.0.0

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'] == 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,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .ycd-bootstrap-wrapper .row {
2
+ margin-left: 0;
3
+ margin-right: 0;
4
+ }
5
+
6
+ .countdowns-div {
7
+ width: 250px;
8
+ height: 150px;
9
+ border: 1px solid #CCCCCC;
10
+ float: left;
11
+ margin-right: 10px;
12
+ margin-bottom: 10px;
13
+ background-color: #DEDEDE;
14
+ background-size: 100%;
15
+ transition: all .1s ease-in-out;
16
+ }
17
+
18
+ .countdowns-div:hover {
19
+ background-color: #CDCDCD;
20
+ transform: scale(1.05);
21
+ }
22
+
23
+ .circle-countdown {
24
+ background-image: url("../img/Cricle.png");
25
+ background-size: 100% 100%;
26
+ }
assets/css/bootstrap.css ADDED
@@ -0,0 +1,6846 @@