IgniteUp – Coming Soon and Maintenance Mode - Version 3.4.2

Version Description

Download this release

Release Info

Developer ceylonsystems
Plugin Icon 128x128 IgniteUp – Coming Soon and Maintenance Mode
Version 3.4.2
Comparing to
See all releases

Code changes from version 3.4.1 to 3.4.2

includes/class-coming-soon-creator.php CHANGED
@@ -333,7 +333,7 @@ class CSComingSoonCreator
333
  $email = isset($_REQUEST['cs_email']) ? trim($_REQUEST['cs_email']) : '';
334
  $errorInput = CSAdminOptions::getDefaultStrings('alert_error_invalid_email');
335
  if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
336
- echo json_encode(array('status' => FALSE, 'error' => TRUE, 'message' => $errorInput));
337
  wp_die();
338
  }
339
  $name = '';
@@ -344,7 +344,7 @@ class CSComingSoonCreator
344
  $errorAlreadyExists = CSAdminOptions::getDefaultStrings('alert_error_already_exists');
345
  $wpdb->get_results("SELECT id FROM " . CSCS_DBTABLE_PREFIX . CSCS_DBTABLE_SUBSCRIPTS . " WHERE email = '$email'", 'ARRAY_A');
346
  if ($wpdb->num_rows > 0) {
347
- echo json_encode(array('status' => FALSE, 'error' => TRUE, 'message' => $errorAlreadyExists));
348
  wp_die();
349
  }
350
 
333
  $email = isset($_REQUEST['cs_email']) ? trim($_REQUEST['cs_email']) : '';
334
  $errorInput = CSAdminOptions::getDefaultStrings('alert_error_invalid_email');
335
  if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
336
+ echo json_encode(array('status' => FALSE, 'error' => TRUE, 'message' => wp_kses_post($errorInput)));
337
  wp_die();
338
  }
339
  $name = '';
344
  $errorAlreadyExists = CSAdminOptions::getDefaultStrings('alert_error_already_exists');
345
  $wpdb->get_results("SELECT id FROM " . CSCS_DBTABLE_PREFIX . CSCS_DBTABLE_SUBSCRIPTS . " WHERE email = '$email'", 'ARRAY_A');
346
  if ($wpdb->num_rows > 0) {
347
+ echo json_encode(array('status' => FALSE, 'error' => TRUE, 'message' => wp_kses_post($errorAlreadyExists)));
348
  wp_die();
349
  }
350
 
includes/templates/believe/believe.php CHANGED
@@ -3,56 +3,57 @@
3
  <html lang="en">
4
 
5
  <head>
6
- <title> <?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | ' . get_bloginfo('name')); ?> </title>
7
  <meta charset="UTF-8">
8
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
9
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
10
  <?php igniteup_head(); ?>
11
  <style>
12
  a {
13
- color: <?php echo $the_cs_template_options['font_color'];
14
  ?> !important;
15
  transition: all ease 400ms;
16
  }
17
 
18
  <?php if (!empty($the_cs_template_options['bg_image'])) : ?>body::after {
19
- content: '';
20
- background: url('<?php echo $the_cs_template_options['bg_image']; ?>') !important;
21
- opacity: 0.5;
22
- top: 0px;
23
- left: 0px;
24
- bottom: 0px;
25
- right: 0px;
26
- position: fixed;
27
- z-index: -1 !important;
28
- background-size: cover;
29
- }
30
 
31
- body {
32
- background: #000 !important;
33
- }
34
 
35
  <?php endif;
36
- ?>
37
  </style>
38
  </head>
39
 
40
- <body style="background: <?php echo $the_cs_template_options['bg_color']; ?>; color:<?php echo $the_cs_template_options['font_color']; ?> !important;">
41
  <div class="container-fluid main-container">
42
  <div class="row">
43
  <div class="col-sm-8">
44
  <div class='logo'><?php
45
  $logo = $the_cs_template_options['logo'];
46
  ?>
47
- <img src="<?php echo $logo; ?>" class="img-responsive"></div>
 
48
  <div class="">
49
  <p class="title-top">
50
- <?php echo $the_cs_template_options['title_top']; ?>
51
  </p>
52
  <p class="title-bottom">
53
- <?php echo $the_cs_template_options['main_title']; ?>
54
  </p>
55
- <p class="paragraph"><?php echo $the_cs_template_options['paragraph']; ?>
56
  </p>
57
  </div>
58
  <ul class="social-icon">
@@ -60,7 +61,7 @@
60
  foreach ($the_cs_template_options['social_icon_map'] as $key => $item) :
61
  if (empty($the_cs_template_options[$key]))
62
  continue;
63
- echo '<li><a href="' . $the_cs_template_options[$key] . '" target="_blank"><span class = "fab fa-' . $item . '"></span></a></li>';
64
  endforeach; ?>
65
  </ul>
66
  </div>
@@ -78,7 +79,7 @@
78
  $class = "hidden";
79
  }
80
  ?>
81
- <div class="<?php echo $class; ?> text-center" id="powered-by">
82
  Powered by <a href="https://wordpress.org/plugins/igniteup/" target="_blank">IgniteUp</a>
83
  </div>
84
  </div>
3
  <html lang="en">
4
 
5
  <head>
6
+ <title> <?php echo esc_html(!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | ' . get_bloginfo('name')); ?> </title>
7
  <meta charset="UTF-8">
8
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
9
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
10
  <?php igniteup_head(); ?>
11
  <style>
12
  a {
13
+ color: <?php echo esc_attr($the_cs_template_options['font_color']);
14
  ?> !important;
15
  transition: all ease 400ms;
16
  }
17
 
18
  <?php if (!empty($the_cs_template_options['bg_image'])) : ?>body::after {
19
+ content: '';
20
+ background: url('<?php echo esc_attr($the_cs_template_options['bg_image']); ?>') !important;
21
+ opacity: 0.5;
22
+ top: 0px;
23
+ left: 0px;
24
+ bottom: 0px;
25
+ right: 0px;
26
+ position: fixed;
27
+ z-index: -1 !important;
28
+ background-size: cover;
29
+ }
30
 
31
+ body {
32
+ background: #000 !important;
33
+ }
34
 
35
  <?php endif;
36
+ ?>
37
  </style>
38
  </head>
39
 
40
+ <body style="background: <?php echo esc_attr($the_cs_template_options['bg_color']); ?>; color:<?php echo esc_attr($the_cs_template_options['font_color']); ?> !important;">
41
  <div class="container-fluid main-container">
42
  <div class="row">
43
  <div class="col-sm-8">
44
  <div class='logo'><?php
45
  $logo = $the_cs_template_options['logo'];
46
  ?>
47
+ <img src="<?php echo esc_url($logo); ?>" class="img-responsive">
48
+ </div>
49
  <div class="">
50
  <p class="title-top">
51
+ <?php echo wp_kses_post($the_cs_template_options['title_top']); ?>
52
  </p>
53
  <p class="title-bottom">
54
+ <?php echo wp_kses_post($the_cs_template_options['main_title']); ?>
55
  </p>
56
+ <p class="paragraph"><?php echo wp_kses_post($the_cs_template_options['paragraph']); ?>
57
  </p>
58
  </div>
59
  <ul class="social-icon">
61
  foreach ($the_cs_template_options['social_icon_map'] as $key => $item) :
62
  if (empty($the_cs_template_options[$key]))
63
  continue;
64
+ echo '<li><a href="' . esc_url($the_cs_template_options[$key]) . '" target="_blank"><span class = "fab fa-' . esc_attr($item) . '"></span></a></li>';
65
  endforeach; ?>
66
  </ul>
67
  </div>
79
  $class = "hidden";
80
  }
81
  ?>
82
+ <div class="<?php echo esc_attr($class); ?> text-center" id="powered-by">
83
  Powered by <a href="https://wordpress.org/plugins/igniteup/" target="_blank">IgniteUp</a>
84
  </div>
85
  </div>
includes/templates/cleaner/cleaner.php CHANGED
@@ -3,7 +3,7 @@
3
  <html lang="en">
4
 
5
  <head>
6
- <title><?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | ' . get_bloginfo('name')); ?></title>
7
  <meta charset="UTF-8">
8
  <?php igniteup_head(); ?>
9
 
@@ -15,26 +15,26 @@
15
  <?php $featured = $the_cs_template_options['featured'];
16
  if (!empty($featured)) : ?>
17
  <div class="flex-item img-container">
18
- <img src="<?php echo $featured; ?>">
19
  </div>
20
  <?php endif; ?>
21
 
22
  <div class="flex-item text-container">
23
  <?php $logo = $the_cs_template_options['logo'];
24
  if (!empty($logo)) :
25
- echo '<img src="' . $logo . '">';
26
  endif;
27
  ?>
28
- <h1><?php echo $the_cs_template_options['main_title'] ?></h1>
29
- <h2><?php echo $the_cs_template_options['secondary_title'] ?></h2>
30
- <p><?php echo $the_cs_template_options['paragraph_title'] ?></p>
31
  <div class="subscribe-section subscribe-form">
32
  <input type="text" name="email_address" id="cs_email" placeholder="Type your email address">
33
  <?php $subscribebtn_text = CSAdminOptions::getDefaultStrings('subscribe_text'); ?>
34
- <input type="button" id="ign-subscribe-btn" value="<?php echo $subscribebtn_text; ?>">
35
  </div>
36
  <div id="ign-notifications">
37
- <div class="thankyou"><?php echo CSAdminOptions::getDefaultStrings('alert_thankyou'); ?></div>
38
  <div id="error-msg-text"></div>
39
  </div>
40
  <div class="social-connect">
@@ -42,13 +42,13 @@
42
  foreach ($the_cs_template_options['social_icon_map'] as $key => $item) :
43
  if (empty($the_cs_template_options[$key]))
44
  continue;
45
- echo '<a href="' . $the_cs_template_options[$key] . '" target="_blank"><span class="fab fa-' . $item . '"></span></a>';
46
  endforeach; ?>
47
  </div>
48
  <?php
49
  $powered_by = $the_cs_template_options['general_powered_by'];
50
  if ($powered_by == 1) :
51
- ?>
52
  <div id="powered-by">
53
  Powered by <a href="https://wordpress.org/plugins/igniteup/" target="_blank">IgniteUp</a>
54
  </div>
3
  <html lang="en">
4
 
5
  <head>
6
+ <title><?php echo esc_html(!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | ' . get_bloginfo('name')); ?></title>
7
  <meta charset="UTF-8">
8
  <?php igniteup_head(); ?>
9
 
15
  <?php $featured = $the_cs_template_options['featured'];
16
  if (!empty($featured)) : ?>
17
  <div class="flex-item img-container">
18
+ <img src="<?php echo esc_url($featured); ?>">
19
  </div>
20
  <?php endif; ?>
21
 
22
  <div class="flex-item text-container">
23
  <?php $logo = $the_cs_template_options['logo'];
24
  if (!empty($logo)) :
25
+ echo '<img src="' . esc_url($logo) . '">';
26
  endif;
27
  ?>
28
+ <h1><?php echo wp_kses_post($the_cs_template_options['main_title']); ?></h1>
29
+ <h2><?php echo wp_kses_post($the_cs_template_options['secondary_title']); ?></h2>
30
+ <p><?php echo wp_kses_post($the_cs_template_options['paragraph_title']); ?></p>
31
  <div class="subscribe-section subscribe-form">
32
  <input type="text" name="email_address" id="cs_email" placeholder="Type your email address">
33
  <?php $subscribebtn_text = CSAdminOptions::getDefaultStrings('subscribe_text'); ?>
34
+ <input type="button" id="ign-subscribe-btn" value="<?php echo esc_attr($subscribebtn_text); ?>">
35
  </div>
36
  <div id="ign-notifications">
37
+ <div class="thankyou"><?php echo wp_kses_post(CSAdminOptions::getDefaultStrings('alert_thankyou')); ?></div>
38
  <div id="error-msg-text"></div>
39
  </div>
40
  <div class="social-connect">
42
  foreach ($the_cs_template_options['social_icon_map'] as $key => $item) :
43
  if (empty($the_cs_template_options[$key]))
44
  continue;
45
+ echo '<a href="' . esc_url($the_cs_template_options[$key]) . '" target="_blank"><span class="fab fa-' . esc_attr($item) . '"></span></a>';
46
  endforeach; ?>
47
  </div>
48
  <?php
49
  $powered_by = $the_cs_template_options['general_powered_by'];
50
  if ($powered_by == 1) :
51
+ ?>
52
  <div id="powered-by">
53
  Powered by <a href="https://wordpress.org/plugins/igniteup/" target="_blank">IgniteUp</a>
54
  </div>
includes/templates/glass/glass.php CHANGED
@@ -6,47 +6,47 @@
6
  <meta charset="utf-8">
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9
- <title><?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | ' . get_bloginfo('name')); ?></title>
10
 
11
  <?php igniteup_head(); ?>
12
 
13
  <style>
14
  .main-container a {
15
- color: <?php echo $the_cs_template_options['font_color'];
16
  ?> !important;
17
  transition: all ease 400ms;
18
  }
19
 
20
  a:hover,
21
  a:focus {
22
- <?php echo 'color: ' . $the_cs_template_options['link_color'] . ' !important;' ?>
23
  }
24
 
25
  <?php if (!empty($the_cs_template_options['bg_image'])) : ?>body::after {
26
- background-image: url('<?php echo $the_cs_template_options['bg_image']; ?>');
27
- }
28
 
29
- body {
30
- background: #000 !important;
31
- }
32
 
33
  <?php endif;
34
- ?>
35
  </style>
36
 
37
  </head>
38
 
39
- <body style=" color:<?php echo $the_cs_template_options['font_color']; ?>;">
40
  <div class="main-container">
41
  <div class="glass-wrapper">
42
  <?php if (!empty($the_cs_template_options['logo'])) : ?>
43
- <img class="img-responsive logo" src="<?php echo $the_cs_template_options['logo']; ?>">
44
  <?php endif; ?>
45
- <h2 class="text-center"> <?php echo $the_cs_template_options['title_top']; ?></h2>
46
- <p class="text-center"><?php echo $the_cs_template_options['paragraph']; ?></p>
47
  <div class="thankyou hidden" style="margin-bottom: -70px;">
48
  <div class="alert alert-success alert-dismissible" role="alert">
49
- <div class="text-center"> <?php echo CSAdminOptions::getDefaultStrings('alert_thankyou'); ?></div>
50
  </div>
51
  </div>
52
  <div class="error-msg hidden" style="margin-top: 0px;">
@@ -59,7 +59,7 @@
59
  <div class="subscribe input-group">
60
  <input type="email" id="cs_email" class="form-control" placeholder="<?php _e('Your email address', CSCS_TEXT_DOMAIN); ?>">
61
  <span class="input-group-btn">
62
- <button class="btn btn-default subscribe-btn" id="subscribe-btn" type="button"><?php echo CSAdminOptions::getDefaultStrings('subscribe_text'); ?></button>
63
  </span>
64
  </div>
65
  </div>
@@ -70,7 +70,7 @@
70
  foreach ($the_cs_template_options['social_icon_map'] as $key => $icon) :
71
  if (empty($the_cs_template_options[$key]))
72
  continue;
73
- echo '<li><a href="' . $the_cs_template_options[$key] . '"><span class="fab fa-' . $icon . '"></span></a></li>';
74
  endforeach;
75
  ?>
76
  </ul>
@@ -78,7 +78,7 @@
78
  $powered_by = $the_cs_template_options['general_powered_by'];
79
  ($powered_by == 1) ? $class = "visible" : $class = "hidden";
80
  ?>
81
- <div class="<?php echo $class; ?> text-center" id="powered-by">
82
  Powered by <a href="https://wordpress.org/plugins/igniteup/" target="_blank">IgniteUp</a>
83
  </div>
84
  </div>
6
  <meta charset="utf-8">
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9
+ <title><?php echo esc_html(!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | ' . get_bloginfo('name')); ?></title>
10
 
11
  <?php igniteup_head(); ?>
12
 
13
  <style>
14
  .main-container a {
15
+ color: <?php echo esc_attr($the_cs_template_options['font_color']);
16
  ?> !important;
17
  transition: all ease 400ms;
18
  }
19
 
20
  a:hover,
21
  a:focus {
22
+ <?php echo 'color: ' . esc_attr($the_cs_template_options['link_color']) . ' !important;' ?>
23
  }
24
 
25
  <?php if (!empty($the_cs_template_options['bg_image'])) : ?>body::after {
26
+ background-image: url('<?php echo esc_attr($the_cs_template_options['bg_image']); ?>');
27
+ }
28
 
29
+ body {
30
+ background: #000 !important;
31
+ }
32
 
33
  <?php endif;
34
+ ?>
35
  </style>
36
 
37
  </head>
38
 
39
+ <body style=" color:<?php echo esc_attr($the_cs_template_options['font_color']); ?>;">
40
  <div class="main-container">
41
  <div class="glass-wrapper">
42
  <?php if (!empty($the_cs_template_options['logo'])) : ?>
43
+ <img class="img-responsive logo" src="<?php echo esc_url($the_cs_template_options['logo']); ?>">
44
  <?php endif; ?>
45
+ <h2 class="text-center"> <?php echo wp_kses_post($the_cs_template_options['title_top']); ?></h2>
46
+ <p class="text-center"><?php echo wp_kses_post($the_cs_template_options['paragraph']); ?></p>
47
  <div class="thankyou hidden" style="margin-bottom: -70px;">
48
  <div class="alert alert-success alert-dismissible" role="alert">
49
+ <div class="text-center"> <?php echo wp_kses_post(CSAdminOptions::getDefaultStrings('alert_thankyou')); ?></div>
50
  </div>
51
  </div>
52
  <div class="error-msg hidden" style="margin-top: 0px;">
59
  <div class="subscribe input-group">
60
  <input type="email" id="cs_email" class="form-control" placeholder="<?php _e('Your email address', CSCS_TEXT_DOMAIN); ?>">
61
  <span class="input-group-btn">
62
+ <button class="btn btn-default subscribe-btn" id="subscribe-btn" type="button"><?php echo esc_html(CSAdminOptions::getDefaultStrings('subscribe_text')); ?></button>
63
  </span>
64
  </div>
65
  </div>
70
  foreach ($the_cs_template_options['social_icon_map'] as $key => $icon) :
71
  if (empty($the_cs_template_options[$key]))
72
  continue;
73
+ echo '<li><a href="' . esc_url($the_cs_template_options[$key]) . '"><span class="fab fa-' . esc_attr($icon) . '"></span></a></li>';
74
  endforeach;
75
  ?>
76
  </ul>
78
  $powered_by = $the_cs_template_options['general_powered_by'];
79
  ($powered_by == 1) ? $class = "visible" : $class = "hidden";
80
  ?>
81
+ <div class="<?php echo esc_attr($class); ?> text-center" id="powered-by">
82
  Powered by <a href="https://wordpress.org/plugins/igniteup/" target="_blank">IgniteUp</a>
83
  </div>
84
  </div>
includes/templates/launcher/launcher.php CHANGED
@@ -6,45 +6,45 @@
6
  <meta charset="utf-8">
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9
- <title> <?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | ' . get_bloginfo('name')); ?> </title>
10
 
11
  <?php igniteup_head(); ?>
12
 
13
  <style>
14
  .main-container a {
15
- color: <?php echo $the_cs_template_options['font_color'];
16
  ?> !important;
17
  transition: all ease 400ms;
18
  }
19
 
20
  a:hover {
21
- color: <?php echo $the_cs_template_options['link_color'];
22
  ?> !important;
23
  }
24
 
25
  <?php if (!empty($the_cs_template_options['bg_image'])) : ?>body::after {
26
- content: '';
27
- background: url('<?php echo $the_cs_template_options['bg_image']; ?>') !important;
28
- opacity: 0.5;
29
- top: 0px;
30
- left: 0px;
31
- bottom: 0px;
32
- right: 0px;
33
- position: fixed;
34
- z-index: -1;
35
- background-size: cover;
36
- }
37
 
38
- body {
39
- background: #000 !important;
40
- }
41
 
42
  <?php endif;
43
- ?>
44
  </style>
45
  </head>
46
 
47
- <body style="background: <?php echo $the_cs_template_options['bg_color']; ?>; color:<?php echo $the_cs_template_options['font_color']; ?>;">
48
  <?php if ($the_cs_template_options['show_rocket'] == 1) : ?>
49
  <div id="rocket-wrapper">
50
  <img id="rocketimg" class="img-responsive" src="<?php echo plugins_url('img/rocket.png', __FILE__); ?>">
@@ -54,10 +54,10 @@
54
  <div class="row">
55
  <div class="col-sm-12">
56
  <h1 class="text-uppercase text-center">
57
- <?php echo $the_cs_template_options['title_top']; ?>
58
  </h1>
59
  <div class="text-center text-uppercase sub-text">
60
- <?php echo $the_cs_template_options['title']; ?>
61
  </div>
62
  <?php if (!empty($the_cs_template_options['launch_date']) || !empty($the_cs_template_options['launch_time'])) : ?>
63
  <div class="container-fluid" id="countdown">
@@ -78,16 +78,16 @@
78
  </div>
79
  <?php endif; ?>
80
  <p class="text-center description">
81
- <?php echo $the_cs_template_options['paragraph']; ?>
82
  </p>
83
  <div class="subscribe">
84
  <div class="input-group">
85
  <input type="email" class="form-control text-box" id="cs_email" placeholder="<?php _e('Enter your email...', CSCS_TEXT_DOMAIN); ?>">
86
  <span class="input-group-btn">
87
- <button class="btn btn-default subscribe-btn" type="button" style="color: <?php echo $the_cs_template_options['subscribe_text_color']; ?>; background: <?php echo $the_cs_template_options['subscribe_bg_color']; ?>;">
88
  <?php
89
  $subscribe = CSAdminOptions::getDefaultStrings('subscribe_text');
90
- $post = substr($subscribe, 0, 20);
91
  if (strlen($post) > 15) {
92
  echo $post;
93
  echo "...";
@@ -101,7 +101,7 @@
101
  </div>
102
  <div class="thankyou hidden" style="margin-top: -90px;">
103
  <div class="alert alert-success alert-dismissible" role="alert">
104
- <div class="text-center"> <?php echo CSAdminOptions::getDefaultStrings('alert_thankyou'); ?></div>
105
  </div>
106
  </div>
107
  <div class="error-msg hidden" style="margin-top: 0px;">
@@ -114,171 +114,171 @@
114
  <?php foreach ($the_cs_template_options['social_icon_map'] as $key => $icon) :
115
  if (empty($the_cs_template_options[$key]))
116
  continue;
117
- echo '<li><a href="' . $the_cs_template_options[$key] . '"><div class="social-icon"><span class="fab fa-' . $icon . '"></span></div></a></li>';
118
- endforeach; ?>
119
- </ul>
120
- </div>
121
- <div class="row">
122
- <div class="col-sm-6 col-sm-offset-3">
123
- <?php
124
- $powered_by = $the_cs_template_options['general_powered_by'];
125
- if ($powered_by == 1) {
126
- $class = "visible";
127
- } else {
128
- $class = "hidden";
129
- }
130
- ?>
131
- <div class="<?php echo $class; ?> text-center" id="powered-by">
132
- Powered by <a href="https://wordpress.org/plugins/igniteup/" target="_blank">IgniteUp</a>
133
- </div>
134
  </div>
135
  </div>
136
  </div>
137
  </div>
138
-
139
  </div>
140
- <script src='<?php echo plugins_url('includes/js/jquery.min.js', CSCS_FILE) ?>' type="text/javascript"></script>
141
- <script src='<?php echo plugins_url('includes/templates/launcher/js/jquery.countdown.js', CSCS_FILE) ?>' type="text/javascript"></script>
142
- <script type="text/javascript">
143
- var count_completed = false;
144
- $countdown = "<?php
145
- echo $the_cs_template_options['launch_date'];
146
- echo ' ';
147
- echo $the_cs_template_options['launch_time'];
148
- ?>";
149
- jQuery("#secs").countdown($countdown, function(event) {
150
- jQuery(this).text(event.strftime('%S'));
151
- checkSeconds(jQuery(this).text());
152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  });
155
- jQuery("#mins")
156
- .countdown($countdown, function(event) {
157
- jQuery(this).text(
158
- event.strftime('%M')
159
- );
160
- checkMins(jQuery(this).text());
161
- });
162
- jQuery("#hrs")
163
- .countdown($countdown, function(event) {
164
- jQuery(this).text(
165
- event.strftime('%H')
166
- );
167
- checkHours(jQuery(this).text());
168
- });
169
- jQuery("#days")
170
- .countdown($countdown, function(event) {
171
- jQuery(this).text(
172
- event.strftime('%D')
173
- );
174
- checkDays(jQuery(this).text());
175
- });
176
 
177
- function checkSeconds(sec) {
178
- if (sec === '01') {
179
- jQuery("#sec-s").addClass('hidden');
180
- } else {
181
- jQuery("#sec-s").removeClass('hidden');
182
- }
183
  }
 
184
 
185
- function checkMins(min) {
186
- if (min === '01') {
187
- jQuery("#min-s").addClass('hidden');
188
- } else {
189
- jQuery("#min-s").removeClass('hidden');
190
- }
191
  }
 
192
 
193
- function checkHours(hrs) {
194
- if (hrs === '01') {
195
- jQuery("#hrs-s").addClass('hidden');
196
- } else {
197
- jQuery("#hrs-s").removeClass('hidden');
198
- }
199
  }
 
200
 
201
- function checkDays(days) {
202
- if (days === '01') {
203
- jQuery("#day-s").addClass('hidden');
204
- } else {
205
- jQuery("#day-s").removeClass('hidden');
206
- }
207
  }
208
- jQuery(document).ready(function() {
209
- <?php if (!empty($the_cs_template_options['launch_date']) || !empty($the_cs_template_options['launch_ time'])): ?>
210
- jQuery('#secs').countdown($countdown).on('finish.countdown', function() {
211
- jQuery('#countdown').hide();
212
- count_completed = true;
213
- });
214
- <?php endif; ?>
215
- });
 
216
 
217
- jQuery('.subscribe-btn').on('click', function() {
 
 
 
 
218
  subscribe();
219
- });
220
- jQuery('#cs_email').on('keypress', function(e) {
221
- if (e.which == 13) {
222
- subscribe();
223
- }
224
- });
225
 
226
- function subscribe() {
227
- jQuery('.subscribe-btn, #cs_email').attr('disabled', true);
228
- jQuery.ajax({
229
- url: '<?php echo admin_url('admin-ajax.php'); ?>',
230
- data: {
231
- action: 'subscribe_email',
232
- cs_email: jQuery("#cs_email").val()
233
- },
234
- dataType: 'json',
235
- success: function(data) {
236
- if (data['error']) {
237
- jQuery('.error-msg #error-msg-text').html(data['message']);
238
- jQuery('.error-msg').removeClass('hidden');
239
- jQuery('.error-msg').addClass('animated fadeIn');
240
 
241
- function hideMsg() {
242
- jQuery('.error-msg').addClass('fadeOut');
243
- }
244
- setTimeout(hideMsg, 4000);
245
 
246
- function showMsg() {
247
- jQuery('.error-msg').addClass('hidden');
248
- jQuery('.error-msg').removeClass('animated fadeIn fadeOut');
249
- }
250
- setTimeout(showMsg, 4500);
251
- jQuery('.subscribe-btn, #cs_email').attr('disabled', false);
252
- } else {
253
- jQuery('.subscribe').addClass('animated fadeOutDown');
254
- jQuery('.thankyou').removeClass('hidden');
255
- jQuery('.thankyou').addClass('animated fadeIn');
256
  }
 
 
 
 
 
 
257
  }
 
 
 
 
 
 
 
 
 
 
258
  });
259
- }
260
- jQuery(function($) {
261
- $('#rocketimg').animate({
262
- 'margin-top': "0px"
263
- });
264
- $('#rocketimg').hover(function() {
265
  $(this).animate({
266
- 'margin-top': "-=50"
267
  });
268
- }, function() {
269
- if (count_completed) {
270
- $(this).animate({
271
- 'margin-top': "30px"
272
- });
273
- } else {
274
- $(this).animate({
275
- 'margin-top': "150px"
276
- });
277
- }
278
- });
279
  });
280
- </script>
281
- <?php igniteup_footer(); ?>
282
- </body>
 
283
 
284
- </html>
6
  <meta charset="utf-8">
7
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9
+ <title> <?php echo esc_html(!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | ' . get_bloginfo('name')); ?> </title>
10
 
11
  <?php igniteup_head(); ?>
12
 
13
  <style>
14
  .main-container a {
15
+ color: <?php echo esc_attr($the_cs_template_options['font_color']);
16
  ?> !important;
17
  transition: all ease 400ms;
18
  }
19
 
20
  a:hover {
21
+ color: <?php echo esc_attr($the_cs_template_options['link_color']);
22
  ?> !important;
23
  }
24
 
25
  <?php if (!empty($the_cs_template_options['bg_image'])) : ?>body::after {
26
+ content: '';
27
+ background: url('<?php echo esc_attr($the_cs_template_options['bg_image']); ?>') !important;
28
+ opacity: 0.5;
29
+ top: 0px;
30
+ left: 0px;
31
+ bottom: 0px;
32
+ right: 0px;
33
+ position: fixed;
34
+ z-index: -1;
35
+ background-size: cover;
36
+ }
37
 
38
+ body {
39
+ background: #000 !important;
40
+ }
41
 
42
  <?php endif;
43
+ ?>
44
  </style>
45
  </head>
46
 
47
+ <body style="background: <?php echo esc_attr($the_cs_template_options['bg_color']); ?>; color:<?php echo esc_attr($the_cs_template_options['font_color']); ?>;">
48
  <?php if ($the_cs_template_options['show_rocket'] == 1) : ?>
49
  <div id="rocket-wrapper">
50
  <img id="rocketimg" class="img-responsive" src="<?php echo plugins_url('img/rocket.png', __FILE__); ?>">
54
  <div class="row">
55
  <div class="col-sm-12">
56
  <h1 class="text-uppercase text-center">
57
+ <?php echo wp_kses_post($the_cs_template_options['title_top']); ?>
58
  </h1>
59
  <div class="text-center text-uppercase sub-text">
60
+ <?php echo wp_kses_post($the_cs_template_options['title']); ?>
61
  </div>
62
  <?php if (!empty($the_cs_template_options['launch_date']) || !empty($the_cs_template_options['launch_time'])) : ?>
63
  <div class="container-fluid" id="countdown">
78
  </div>
79
  <?php endif; ?>
80
  <p class="text-center description">
81
+ <?php echo wp_kses_post($the_cs_template_options['paragraph']); ?>
82
  </p>
83
  <div class="subscribe">
84
  <div class="input-group">
85
  <input type="email" class="form-control text-box" id="cs_email" placeholder="<?php _e('Enter your email...', CSCS_TEXT_DOMAIN); ?>">
86
  <span class="input-group-btn">
87
+ <button class="btn btn-default subscribe-btn" type="button" style="color: <?php echo esc_attr($the_cs_template_options['subscribe_text_color']); ?>; background: <?php echo esc_attr($the_cs_template_options['subscribe_bg_color']); ?>;">
88
  <?php
89
  $subscribe = CSAdminOptions::getDefaultStrings('subscribe_text');
90
+ $post = esc_html(substr($subscribe, 0, 20));
91
  if (strlen($post) > 15) {
92
  echo $post;
93
  echo "...";
101
  </div>
102
  <div class="thankyou hidden" style="margin-top: -90px;">
103
  <div class="alert alert-success alert-dismissible" role="alert">
104
+ <div class="text-center"> <?php echo wp_kses_post(CSAdminOptions::getDefaultStrings('alert_thankyou')); ?></div>
105
  </div>
106
  </div>
107
  <div class="error-msg hidden" style="margin-top: 0px;">
114
  <?php foreach ($the_cs_template_options['social_icon_map'] as $key => $icon) :
115
  if (empty($the_cs_template_options[$key]))
116
  continue;
117
+ echo '<li><a href="' . esc_url($the_cs_template_options[$key]) . '"><div class="social-icon"><span class="fab fa-' . esc_attr($icon) . '"></span></div></a></li>';
118
+ endforeach; ?>
119
+ </ul>
120
+ </div>
121
+ <div class="row">
122
+ <div class="col-sm-6 col-sm-offset-3">
123
+ <?php
124
+ $powered_by = $the_cs_template_options['general_powered_by'];
125
+ if ($powered_by == 1) {
126
+ $class = "visible";
127
+ } else {
128
+ $class = "hidden";
129
+ }
130
+ ?>
131
+ <div class="<?php echo esc_attr($class); ?> text-center" id="powered-by">
132
+ Powered by <a href="https://wordpress.org/plugins/igniteup/" target="_blank">IgniteUp</a>
 
133
  </div>
134
  </div>
135
  </div>
136
  </div>
 
137
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
138
 
139
+ </div>
140
+ <script src='<?php echo plugins_url('includes/js/jquery.min.js', CSCS_FILE) ?>' type="text/javascript"></script>
141
+ <script src='<?php echo plugins_url('includes/templates/launcher/js/jquery.countdown.js', CSCS_FILE) ?>' type="text/javascript"></script>
142
+ <script type="text/javascript">
143
+ var count_completed = false;
144
+ $countdown = "<?php
145
+ echo esc_js($the_cs_template_options['launch_date']);
146
+ echo ' ';
147
+ echo esc_js($the_cs_template_options['launch_time']);
148
+ ?>";
149
+ jQuery("#secs").countdown($countdown, function(event) {
150
+ jQuery(this).text(event.strftime('%S'));
151
+ checkSeconds(jQuery(this).text());
152
 
153
+
154
+ });
155
+ jQuery("#mins")
156
+ .countdown($countdown, function(event) {
157
+ jQuery(this).text(
158
+ event.strftime('%M')
159
+ );
160
+ checkMins(jQuery(this).text());
161
+ });
162
+ jQuery("#hrs")
163
+ .countdown($countdown, function(event) {
164
+ jQuery(this).text(
165
+ event.strftime('%H')
166
+ );
167
+ checkHours(jQuery(this).text());
168
+ });
169
+ jQuery("#days")
170
+ .countdown($countdown, function(event) {
171
+ jQuery(this).text(
172
+ event.strftime('%D')
173
+ );
174
+ checkDays(jQuery(this).text());
175
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
 
177
+ function checkSeconds(sec) {
178
+ if (sec === '01') {
179
+ jQuery("#sec-s").addClass('hidden');
180
+ } else {
181
+ jQuery("#sec-s").removeClass('hidden');
 
182
  }
183
+ }
184
 
185
+ function checkMins(min) {
186
+ if (min === '01') {
187
+ jQuery("#min-s").addClass('hidden');
188
+ } else {
189
+ jQuery("#min-s").removeClass('hidden');
 
190
  }
191
+ }
192
 
193
+ function checkHours(hrs) {
194
+ if (hrs === '01') {
195
+ jQuery("#hrs-s").addClass('hidden');
196
+ } else {
197
+ jQuery("#hrs-s").removeClass('hidden');
 
198
  }
199
+ }
200
 
201
+ function checkDays(days) {
202
+ if (days === '01') {
203
+ jQuery("#day-s").addClass('hidden');
204
+ } else {
205
+ jQuery("#day-s").removeClass('hidden');
 
206
  }
207
+ }
208
+ jQuery(document).ready(function() {
209
+ <?php if (!empty($the_cs_template_options['launch_date']) || !empty($the_cs_template_options['launch_ time'])) : ?>
210
+ jQuery('#secs').countdown($countdown).on('finish.countdown', function() {
211
+ jQuery('#countdown').hide();
212
+ count_completed = true;
213
+ });
214
+ <?php endif; ?>
215
+ });
216
 
217
+ jQuery('.subscribe-btn').on('click', function() {
218
+ subscribe();
219
+ });
220
+ jQuery('#cs_email').on('keypress', function(e) {
221
+ if (e.which == 13) {
222
  subscribe();
223
+ }
224
+ });
 
 
 
 
225
 
226
+ function subscribe() {
227
+ jQuery('.subscribe-btn, #cs_email').attr('disabled', true);
228
+ jQuery.ajax({
229
+ url: '<?php echo admin_url('admin-ajax.php'); ?>',
230
+ data: {
231
+ action: 'subscribe_email',
232
+ cs_email: jQuery("#cs_email").val()
233
+ },
234
+ dataType: 'json',
235
+ success: function(data) {
236
+ if (data['error']) {
237
+ jQuery('.error-msg #error-msg-text').html(data['message']);
238
+ jQuery('.error-msg').removeClass('hidden');
239
+ jQuery('.error-msg').addClass('animated fadeIn');
240
 
241
+ function hideMsg() {
242
+ jQuery('.error-msg').addClass('fadeOut');
243
+ }
244
+ setTimeout(hideMsg, 4000);
245
 
246
+ function showMsg() {
247
+ jQuery('.error-msg').addClass('hidden');
248
+ jQuery('.error-msg').removeClass('animated fadeIn fadeOut');
 
 
 
 
 
 
 
249
  }
250
+ setTimeout(showMsg, 4500);
251
+ jQuery('.subscribe-btn, #cs_email').attr('disabled', false);
252
+ } else {
253
+ jQuery('.subscribe').addClass('animated fadeOutDown');
254
+ jQuery('.thankyou').removeClass('hidden');
255
+ jQuery('.thankyou').addClass('animated fadeIn');
256
  }
257
+ }
258
+ });
259
+ }
260
+ jQuery(function($) {
261
+ $('#rocketimg').animate({
262
+ 'margin-top': "0px"
263
+ });
264
+ $('#rocketimg').hover(function() {
265
+ $(this).animate({
266
+ 'margin-top': "-=50"
267
  });
268
+ }, function() {
269
+ if (count_completed) {
 
 
 
 
270
  $(this).animate({
271
+ 'margin-top': "30px"
272
  });
273
+ } else {
274
+ $(this).animate({
275
+ 'margin-top': "150px"
276
+ });
277
+ }
 
 
 
 
 
 
278
  });
279
+ });
280
+ </script>
281
+ <?php igniteup_footer(); ?>
282
+ </body>
283
 
284
+ </html>
includes/templates/offline/offline.php CHANGED
@@ -1,82 +1,87 @@
1
  <?php global $the_cs_template_options; ?>
2
  <!DOCTYPE html>
3
  <html lang="en">
4
- <head>
5
- <meta charset="utf-8">
6
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8
- <title><?php echo (!empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | ' . get_bloginfo('name')); ?></title>
9
 
10
- <style>
11
- .main-container a{
12
- color:<?php echo $the_cs_template_options['font_color']; ?> !important;
13
- transition: all ease 400ms;
14
- }
15
- a:hover{
16
- color:<?php echo $the_cs_template_options['link_color']; ?> !important;
17
- }
18
- <?php if (!empty($the_cs_template_options['bg_image'])): ?>
19
- body::after{
20
- content: '';
21
- background: url('<?php echo $the_cs_template_options['bg_image']; ?>');
22
- opacity: 0.5;
23
- top: 0px;
24
- left: 0px;
25
- bottom: 0px;
26
- right: 0px;
27
- position: fixed;
28
- z-index: -1;
29
- background-size:cover;
30
- }
31
- body{
32
- background: #000 !important;
33
- }
34
- <?php endif; ?>
35
-
36
- </style>
37
- <?php igniteup_head(); ?>
38
- </head>
39
- <body style="background: <?php echo $the_cs_template_options['bg_color']; ?>; color:<?php echo $the_cs_template_options['font_color']; ?>;">
40
- <div class="container-fluid main-container">
41
- <div class="row">
42
- <div class="col-xs-2 visible-xs"></div>
43
- <div class="col-sm-12 col-xs-8">
44
- <img class="img-responsive logo" src="<?php echo $the_cs_template_options['logo']; ?>">
45
- </div>
 
 
 
 
 
 
 
 
46
  </div>
47
- <div class="row">
48
- <div class="col-sm-12 ">
49
- <div class="title-top text-center">
50
- <?php echo $the_cs_template_options['title_top']; ?>
51
- </div>
52
  </div>
53
  </div>
54
- <div class="row">
55
- <div class="col-lg-6 col-lg-offset-3 col-sm-12">
56
- <div class="text-center sub-text trans">
57
- <?php echo $the_cs_template_options['paragraph']; ?>
58
- </div>
59
- <p class="text-center contact trans">
60
- <?php echo $the_cs_template_options['contact']; ?> <a href="mailto:<?php echo $the_cs_template_options['email']; ?>" > <?php echo $the_cs_template_options['email']; ?> </a>
61
- </p>
62
  </div>
 
 
 
63
  </div>
64
- <div class="row">
65
- <div class="col-sm-6 col-sm-offset-3">
66
- <?php
67
- $powered_by = $the_cs_template_options['general_powered_by'];
68
- if ($powered_by == 1) {
69
- $class = "visible";
70
- } else {
71
- $class = "hidden";
72
- }
73
- ?>
74
- <div class="<?php echo $class; ?> text-center" id="powered-by">
75
- Powered by <a href="https://wordpress.org/plugins/igniteup/" target="_blank">IgniteUp</a>
76
- </div>
77
  </div>
78
  </div>
79
  </div>
80
- <?php igniteup_footer(); ?>
81
- </body>
82
- </html>
 
 
1
  <?php global $the_cs_template_options; ?>
2
  <!DOCTYPE html>
3
  <html lang="en">
 
 
 
 
 
4
 
5
+ <head>
6
+ <meta charset="utf-8">
7
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9
+ <title><?php echo esc_html( !empty($the_cs_template_options["general_cs_page_title"]) ? $the_cs_template_options["general_cs_page_title"] : 'Almost Ready to Launch | ' . get_bloginfo('name')); ?></title>
10
+
11
+ <style>
12
+ .main-container a {
13
+ color: <?php echo esc_attr($the_cs_template_options['font_color']); ?> !important;
14
+ transition: all ease 400ms;
15
+ }
16
+
17
+ a:hover {
18
+ color: <?php echo esc_attr($the_cs_template_options['link_color']); ?> !important;
19
+ }
20
+
21
+ <?php if (!empty($the_cs_template_options['bg_image'])) : ?>body::after {
22
+ content: '';
23
+ background: url('<?php echo esc_attr($the_cs_template_options['bg_image']); ?>');
24
+ opacity: 0.5;
25
+ top: 0px;
26
+ left: 0px;
27
+ bottom: 0px;
28
+ right: 0px;
29
+ position: fixed;
30
+ z-index: -1;
31
+ background-size: cover;
32
+ }
33
+
34
+ body {
35
+ background: #000 !important;
36
+ }
37
+
38
+ <?php endif; ?>
39
+ </style>
40
+ <?php igniteup_head(); ?>
41
+ </head>
42
+
43
+ <body style="background: <?php echo esc_attr($the_cs_template_options['bg_color']); ?>; color:<?php echo esc_attr($the_cs_template_options['font_color']); ?>;">
44
+ <div class="container-fluid main-container">
45
+ <div class="row">
46
+ <div class="col-xs-2 visible-xs"></div>
47
+ <div class="col-sm-12 col-xs-8">
48
+ <img class="img-responsive logo" src="<?php echo esc_url($the_cs_template_options['logo']); ?>">
49
  </div>
50
+ </div>
51
+ <div class="row">
52
+ <div class="col-sm-12 ">
53
+ <div class="title-top text-center">
54
+ <?php echo wp_kses_post($the_cs_template_options['title_top']); ?>
55
  </div>
56
  </div>
57
+ </div>
58
+ <div class="row">
59
+ <div class="col-lg-6 col-lg-offset-3 col-sm-12">
60
+ <div class="text-center sub-text trans">
61
+ <?php echo wp_kses_post($the_cs_template_options['paragraph']); ?>
 
 
 
62
  </div>
63
+ <p class="text-center contact trans">
64
+ <?php echo esc_html($the_cs_template_options['contact']); ?> <a href="mailto:<?php echo esc_attr($the_cs_template_options['email']); ?>"> <?php echo esc_html($the_cs_template_options['email']); ?> </a>
65
+ </p>
66
  </div>
67
+ </div>
68
+ <div class="row">
69
+ <div class="col-sm-6 col-sm-offset-3">
70
+ <?php
71
+ $powered_by = $the_cs_template_options['general_powered_by'];
72
+ if ($powered_by == 1) {
73
+ $class = "visible";
74
+ } else {
75
+ $class = "hidden";
76
+ }
77
+ ?>
78
+ <div class="<?php echo esc_attr($class); ?> text-center" id="powered-by">
79
+ Powered by <a href="https://wordpress.org/plugins/igniteup/" target="_blank">IgniteUp</a>
80
  </div>
81
  </div>
82
  </div>
83
+ </div>
84
+ <?php igniteup_footer(); ?>
85
+ </body>
86
+
87
+ </html>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: ceylonsystems
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=X9AFALLGD43AE
4
  Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, subscribe, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction, igniter
5
  Requires at least: 3.0.1
6
- Tested up to: 5.2.4
7
- Stable tag: 3.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=X9AFALLGD43AE
4
  Tags: coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, subscribe, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction, igniter
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.9.2
7
+ Stable tag: 3.4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10