-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-maintenance-mode.php
More file actions
executable file
·137 lines (114 loc) · 7.07 KB
/
Copy pathwp-maintenance-mode.php
File metadata and controls
executable file
·137 lines (114 loc) · 7.07 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html>
<head>
<title><?php echo stripslashes($title); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="author" content="<?php echo esc_attr($author); ?>" />
<meta name="description" content="<?php echo esc_attr($description); ?>" />
<meta name="keywords" content="<?php echo esc_attr($keywords); ?>" />
<meta name="robots" content="<?php echo esc_attr($robots); ?>" />
<?php
if (!empty($styles) && is_array($styles)) {
foreach ($styles as $src) {
?>
<link rel="stylesheet" href="<?php echo $src; ?>">
<?php
}
}
if (!empty($custom_css) && is_array($custom_css)) {
echo '<style>' . implode(array_map('stripslashes', $custom_css)) . '</style>';
}
// do some actions
do_action('wm_head'); // this hook will be removed in the next versions
do_action('wpmm_head');
?>
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/theme.min.css">
</head>
<body class="<?php echo $body_classes ? $body_classes : ''; ?>">
<?php do_action('wpmm_after_body'); ?>
<div class="wrap">
<?php the_custom_logo(); ?>
<?php
if (!empty($this->plugin_settings['modules']['countdown_status']) && $this->plugin_settings['modules']['countdown_status'] == 1) {
?>
<h3 style="margin:30px 0;">The Website will be open in:</h3>
<div class="countdown" data-start="<?php echo date('F d, Y H:i:s', strtotime($countdown_start)); ?>" data-end="<?php echo date('F d, Y H:i:s', $countdown_end); ?>"></div>
<?php } ?>
<?php if (!empty($heading)) { ?><h1><?php echo stripslashes($heading); ?></h1><?php } ?>
<?php if (!empty($text)) { ?><?php echo stripslashes($text); ?><?php } ?>
<?php if (!empty($this->plugin_settings['modules']['subscribe_status']) && $this->plugin_settings['modules']['subscribe_status'] == 1) { ?>
<?php if (!empty($this->plugin_settings['modules']['subscribe_text'])) { ?><h3><?php echo stripslashes($this->plugin_settings['modules']['subscribe_text']); ?></h3><?php } ?>
<div class="subscribe_wrapper" style="min-height: 100px;">
<form class="subscribe_form">
<input type="text" placeholder="<?php _e('your e-mail...', $this->plugin_slug); ?>" name="email" class="email_input" data-rule-required="true" data-rule-email="true" data-rule-required="true" data-rule-email="true" />
<input type="submit" value="<?php _e('Subscribe', $this->plugin_slug); ?>" />
</form>
</div>
<?php } ?>
<?php if (!empty($this->plugin_settings['modules']['social_status']) && $this->plugin_settings['modules']['social_status'] == 1) { ?>
<div class="social" data-target="<?php echo!empty($this->plugin_settings['modules']['social_target']) ? 1 : 0; ?>">
<?php if (!empty($this->plugin_settings['modules']['social_twitter'])) { ?>
<a class="tw" href="<?php echo stripslashes($this->plugin_settings['modules']['social_twitter']); ?>">twitter</a>
<?php } ?>
<?php if (!empty($this->plugin_settings['modules']['social_facebook'])) { ?>
<a class="fb" href="<?php echo stripslashes($this->plugin_settings['modules']['social_facebook']); ?>">facebook</a>
<?php } ?>
<?php if (!empty($this->plugin_settings['modules']['social_pinterest'])) { ?>
<a class="pin" href="<?php echo stripslashes($this->plugin_settings['modules']['social_pinterest']); ?>">pinterest</a>
<?php } ?>
<?php if (!empty($this->plugin_settings['modules']['social_github'])) { ?>
<a class="git" href="<?php echo stripslashes($this->plugin_settings['modules']['social_github']); ?>">github</a>
<?php } ?>
<?php if (!empty($this->plugin_settings['modules']['social_dribbble'])) { ?>
<a class="dribbble" href="<?php echo stripslashes($this->plugin_settings['modules']['social_dribbble']); ?>">dribbble</a>
<?php } ?>
<?php if (!empty($this->plugin_settings['modules']['social_google+'])) { ?>
<a class="gplus" href="<?php echo stripslashes($this->plugin_settings['modules']['social_google+']); ?>">google plus</a>
<?php } ?>
<?php if (!empty($this->plugin_settings['modules']['social_linkedin'])) { ?>
<a class="linkedin" href="<?php echo stripslashes($this->plugin_settings['modules']['social_linkedin']); ?>">linkedin</a>
<?php } ?>
</div>
<?php } ?>
<?php if (!empty($this->plugin_settings['modules']['contact_status']) && $this->plugin_settings['modules']['contact_status'] == 1) { ?>
<div class="contact">
<?php list($open, $close) = !empty($this->plugin_settings['modules']['contact_effects']) && strstr($this->plugin_settings['modules']['contact_effects'], '|') ? explode('|', $this->plugin_settings['modules']['contact_effects']) : explode('|', 'move_top|move_bottom'); ?>
<div class="form <?php echo esc_attr($open); ?>">
<form class="contact_form">
<?php do_action('wpmm_contact_form_start'); ?>
<p class="col"><input type="text" placeholder="<?php _e('Name', $this->plugin_slug); ?>" data-rule-required="true" data-msg-required="<?php esc_attr_e('This field is required.', $this->plugin_slug); ?>" name="name" class="name_input" /></p>
<p class="col last"><input type="text" placeholder="<?php _e('E-mail', $this->plugin_slug); ?>" data-rule-required="true" data-rule-email="true" data-msg-required="<?php esc_attr_e('This field is required.', $this->plugin_slug); ?>" data-msg-email="<?php esc_attr_e('Please enter a valid email address.', $this->plugin_slug); ?>" name="email" class="email_input" /></p>
<br clear="all" />
<?php do_action('wpmm_contact_form_before_message'); ?>
<p><textarea placeholder="<?php _e('Your message', $this->plugin_slug); ?>" data-rule-required="true" data-msg-required="<?php esc_attr_e('This field is required.', $this->plugin_slug); ?>" name="content" class="content_textarea"></textarea></p>
<?php do_action('wpmm_contact_form_after_message'); ?>
<p class="submit"><input type="submit" value="<?php _e('Send', $this->plugin_slug); ?>"></p>
<?php do_action('wpmm_contact_form_end'); ?>
</form>
</div>
</div>
<a class="contact_us" href="javascript:void(0);" data-open="<?php echo esc_attr($open); ?>" data-close="<?php echo esc_attr($close); ?>"><?php _e('Contact us', $this->plugin_slug); ?></a>
<?php } ?>
<?php if (!empty($this->plugin_settings['general']['admin_link']) && $this->plugin_settings['general']['admin_link'] == 1) { ?>
<div class="author_link">
<a href="<?php echo admin_url(); ?>"><?php _e('Dashboard', $this->plugin_slug); ?></a>
</div>
<?php } ?>
</div>
<script type='text/javascript'>
var wpmm_vars = {"ajax_url": "<?php echo admin_url('admin-ajax.php'); ?>"};
</script>
<?php
if (!empty($scripts) && is_array($scripts)) {
foreach ($scripts as $src) {
?>
<script src="<?php echo $src; ?>"></script>
<?php
}
}
// Do some actions
do_action('wm_footer'); // this hook will be removed in the next versions
do_action('wpmm_footer');
?>
</body>
</html>