This repository has been archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtemplate-comingsoon.php
96 lines (77 loc) · 2.55 KB
/
template-comingsoon.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
/**
* Template Name: Coming Soon
* The template for displaying the coming soon template.
*
* @package Grille
* @link https://themebeans.com/themes/grille
*/
get_header();
// PAGE TITLE
$page_title = get_post_meta( $post->ID, '_bean_page_title', true );
// VARIABLES FROM THEME CUSTOMIZER
$years = get_theme_mod( 'comingsoon_year' );
$months = get_theme_mod( 'comingsoon_month' );
$days = get_theme_mod( 'comingsoon_day' );
// VARIABLE DEFAULTS
if ( ! $years ) {
$years = '2014'; }
if ( ! $months ) {
$months = '01'; }
if ( ! $days ) {
$days = '01'; }
?>
<div id="primary-container" class="wrapper">
<div class="page-content left wrapper">
<?php
// IF PAGE TITLE OPTION IN META IS CHECKED
if ( $page_title == 'on' ) {
?>
<h1 class="entry-title"><?php the_title( '' ); ?></h1>
<?php } ?>
<div class="entry-content">
<?php
while ( have_posts() ) :
the_post();
the_content();
endwhile; // THE LOOP
?>
</div><!-- END .entry-content -->
<div class="bean-coming-soon" data-years="<?php echo $years; ?>" data-months="<?php echo $months; ?>" data-days="<?php echo $days; ?>" data-hours="00" data-minutes="00" data-seconds="00">
<div class="block mobile-two fadein days">
<div class="count-inner">
<div class="fadein">
<div class="count"></div>
<h6><div class="text"><?php esc_html_e( 'Days', 'grille' ); ?></div></h6>
</div><!-- END .fadein -->
</div><!-- END .count-inner -->
</div><!-- END .days -->
<div class="block mobile-two fadein hours">
<div class="count-inner">
<div class="fadein">
<div class="count"></div>
<h6><div class="text"><?php esc_html_e( 'Hours', 'grille' ); ?></div></h6>
</div><!-- END .fadein -->
</div><!-- END .count-inner -->
</div><!-- END .hours -->
<div class="block mobile-two fadein minutes">
<div class="count-inner">
<div class="fadein">
<div class="count"></div>
<h6><div class="text"><?php esc_html_e( 'Minutes', 'grille' ); ?></div></h6>
</div><!-- END .fadein -->
</div><!-- END .count-inner -->
</div><!-- END .minutes -->
<div class="block mobile-two fadein seconds">
<div class="count-inner">
<div class="fadein">
<div class="count"></div>
<h6><div class="text"><?php esc_html_e( 'Seconds', 'grille' ); ?></div></h6>
</div><!-- END .fadein -->
</div><!-- END .count-inner -->
</div><!-- END .seconds -->
</div><!-- END bean-coming-soon -->
</div><!-- END .page-content.left.wrapper -->
</div><!-- END #primary-container.wrapper -->
<?php
get_footer();