CMP – Coming Soon & Maintenance Plugin by NiteoThemes - Version 2.8.5

Version Description

Download this release

Release Info

Developer niteo
Plugin Icon 128x128 CMP – Coming Soon & Maintenance Plugin by NiteoThemes
Version 2.8.5
Comparing to
See all releases

Code changes from version 2.8.4 to 2.8.5

cmp-advanced.php CHANGED
@@ -146,7 +146,8 @@ $bypass_expire = get_option('niteoCS_bypass_expire', '172800');
146
  <div id="icon-users" class="icon32"></div>
147
 
148
  <form method="post" action="admin.php?page=cmp-advanced&status=settings-saved" id="csoptions">
149
-
 
150
  <div class="cmp-advanced">
151
 
152
  <div class="cmp-inputs-wrapper">
@@ -385,18 +386,16 @@ $bypass_expire = get_option('niteoCS_bypass_expire', '172800');
385
 
386
  </div> <!-- <div class="cmp-inputs-wrapper"> -->
387
 
388
- <?php
389
- // get sidebar with "widgets"
390
- if ( file_exists(dirname(__FILE__) . '/cmp-sidebar.php') ) {
391
- require (dirname(__FILE__) . '/cmp-sidebar.php');
392
- }
393
-
394
- ?>
395
-
396
  </div> <!-- <div class="cmp-settings-wrapper"> -->
397
 
398
  </form>
 
 
 
 
 
399
 
 
400
  </div> <!-- <div id="wrap"> -->
401
 
402
  <script>
146
  <div id="icon-users" class="icon32"></div>
147
 
148
  <form method="post" action="admin.php?page=cmp-advanced&status=settings-saved" id="csoptions">
149
+ <?php wp_nonce_field('save_options','save_options_field'); ?>
150
+
151
  <div class="cmp-advanced">
152
 
153
  <div class="cmp-inputs-wrapper">
386
 
387
  </div> <!-- <div class="cmp-inputs-wrapper"> -->
388
 
 
 
 
 
 
 
 
 
389
  </div> <!-- <div class="cmp-settings-wrapper"> -->
390
 
391
  </form>
392
+ <?php
393
+ // get sidebar with "widgets"
394
+ if ( file_exists(dirname(__FILE__) . '/cmp-sidebar.php') ) {
395
+ require (dirname(__FILE__) . '/cmp-sidebar.php');
396
+ }
397
 
398
+ ?>
399
  </div> <!-- <div id="wrap"> -->
400
 
401
  <script>
cmp-settings.php CHANGED
@@ -1,282 +1,298 @@
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
 
 
 
 
4
  // check onces and wordpress rights, else DIE
5
  if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
 
6
  if( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
7
  die('Sorry, but this request is invalid');
8
  }
9
 
10
- }
 
 
11
 
12
- if ( isset($_POST['niteoCS_select_theme']) && in_array($_POST['niteoCS_select_theme'], $this->cmp_themes_available())) {
13
- update_option('niteoCS_theme', sanitize_text_field($_POST['niteoCS_select_theme']));
14
- }
15
 
16
- $themeslug = $this->cmp_selectedTheme();
17
- $downloadable_themes = $this->cmp_downloadable_themes();
18
- $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
19
 
20
- if (isset($_POST['niteoCS_logo_id_'.$themeslug]) && ( is_numeric($_POST['niteoCS_logo_id_'.$themeslug]) || empty($_POST['niteoCS_logo_id_'.$themeslug]))) {
21
- update_option('niteoCS_logo_id['.$themeslug.']', sanitize_text_field($_POST['niteoCS_logo_id_'.$themeslug]));
22
- }
23
 
24
- if (isset($_POST['niteoCS_logo_type_'.$themeslug])) {
25
- update_option('niteoCS_logo_type['.$themeslug.']', sanitize_text_field($_POST['niteoCS_logo_type_'.$themeslug]));
26
- }
27
 
28
- if (isset($_POST['niteoCS_text_logo_'.$themeslug])) {
29
- update_option('niteoCS_text_logo['.$themeslug.']', sanitize_text_field($_POST['niteoCS_text_logo_'.$themeslug]));
30
- }
31
 
32
- if (isset($_POST['niteoCS_font_headings_'.$themeslug])) {
33
- update_option('niteoCS_font_headings['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_'.$themeslug]));
34
- }
35
 
36
- if (isset($_POST['niteoCS_font_headings_variant_'.$themeslug])) {
37
- update_option('niteoCS_font_headings_variant['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_variant_'.$themeslug]));
38
- }
39
 
40
- if (isset($_POST['niteoCS_font_headings_size_'.$themeslug])) {
41
- update_option('niteoCS_font_headings_size['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_size_'.$themeslug]));
42
- }
43
 
 
 
 
44
 
45
- if (isset($_POST['niteoCS_font_headings_spacing_'.$themeslug])) {
46
- update_option('niteoCS_font_headings_spacing['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_spacing_'.$themeslug]));
47
- }
48
 
49
- if (isset($_POST['niteoCS_font_content_'.$themeslug])) {
50
- update_option('niteoCS_font_content['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_'.$themeslug]));
51
- }
52
 
53
- if (isset($_POST['niteoCS_font_content_variant_'.$themeslug])) {
54
- update_option('niteoCS_font_content_variant['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_variant_'.$themeslug]));
55
- }
56
 
57
- if (isset($_POST['niteoCS_font_content_size_'.$themeslug])) {
58
- update_option('niteoCS_font_content_size['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_size_'.$themeslug]));
59
- }
60
 
61
- if (isset($_POST['niteoCS_font_content_lineheight_'.$themeslug])) {
62
- update_option('niteoCS_font_content_lineheight['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_lineheight_'.$themeslug]));
63
- }
64
 
65
- if (isset($_POST['niteoCS_font_content_spacing_'.$themeslug])) {
66
- update_option('niteoCS_font_content_spacing['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_spacing_'.$themeslug]));
67
- }
68
 
69
- if (isset($_POST['niteoCS_heading_animation_'.$themeslug])) {
70
- update_option('niteoCS_heading_animation['.$themeslug.']', sanitize_text_field($_POST['niteoCS_heading_animation_'.$themeslug]) );
71
- }
72
 
73
- if (isset($_POST['niteoCS_content_animation_'.$themeslug])) {
74
- update_option('niteoCS_content_animation['.$themeslug.']', sanitize_text_field($_POST['niteoCS_content_animation_'.$themeslug]) );
75
- }
76
 
 
 
 
77
 
78
- if (isset($_POST['niteoCS_banner_'.$themeslug]) && is_numeric($_POST['niteoCS_banner_'.$themeslug])) {
79
- update_option('niteoCS_banner['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_'.$themeslug]));
80
- }
81
 
82
- if (isset($_POST['niteoCS_banner_color_'.$themeslug])) {
83
- update_option('niteoCS_banner_color['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_color_'.$themeslug]));
84
- }
85
 
 
 
 
86
 
87
- if (isset($_POST['niteoCS_gradient_'.$themeslug])) {
88
- update_option('niteoCS_gradient['.$themeslug.']', sanitize_text_field($_POST['niteoCS_gradient_'.$themeslug]));
89
- }
90
 
91
- if (isset($_POST['niteoCS_banner_gradient_one_'.$themeslug])) {
92
- update_option('niteoCS_banner_gradient_one['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_gradient_one_'.$themeslug]));
93
- }
94
 
95
- if (isset($_POST['niteoCS_banner_gradient_two_'.$themeslug])) {
96
- update_option('niteoCS_banner_gradient_two['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_gradient_two_'.$themeslug]));
97
- }
98
 
99
- if (isset($_POST['niteoCS_banner_pattern_'.$themeslug])) {
100
- update_option('niteoCS_banner_pattern['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_pattern_'.$themeslug]));
101
- }
102
 
103
- if (isset($_POST['niteoCS_banner_pattern_custom_'.$themeslug])) {
104
- update_option('niteoCS_banner_pattern_custom['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_pattern_custom_'.$themeslug]));
105
- }
106
 
107
- if (isset($_POST['niteoCS_banner_video_'.$themeslug])) {
108
- update_option('niteoCS_banner_video['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_video_'.$themeslug]));
109
- }
110
 
111
- if (isset($_POST['niteoCS_youtube_url_'.$themeslug])) {
112
- update_option('niteoCS_youtube_url['.$themeslug.']', sanitize_text_field($_POST['niteoCS_youtube_url_'.$themeslug]));
113
- }
114
 
115
- if (isset($_POST['niteoCS_vimeo_url_'.$themeslug])) {
116
- update_option('niteoCS_vimeo_url['.$themeslug.']', sanitize_text_field($_POST['niteoCS_vimeo_url_'.$themeslug]));
117
- }
118
 
119
- if (isset($_POST['niteoCS_video_thumb_'.$themeslug])) {
120
- update_option('niteoCS_video_thumb['.$themeslug.']', sanitize_text_field($_POST['niteoCS_video_thumb_'.$themeslug]));
121
- }
122
 
123
- if (isset($_POST['niteoCS_video_file_url'.$themeslug])) {
124
- update_option('niteoCS_video_file_url['.$themeslug.']', sanitize_text_field($_POST['niteoCS_video_file_url'.$themeslug]));
125
- }
126
 
127
- if (isset($_POST['niteoCS_banner_id_'.$themeslug])) {
128
- $allnums = true;
129
-
130
- $ids = explode( ',', $_POST['niteoCS_banner_id_'.$themeslug] );
131
- foreach ( $ids as $id ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
 
133
- if ( !is_numeric($id) ) {
134
- $allnums = false;
 
135
  }
 
 
 
136
  }
137
 
138
- if ( $allnums === true || $_POST['niteoCS_banner_id_'.$themeslug] == '' ) {
139
- update_option('niteoCS_banner_id['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_id_'.$themeslug]));
140
  }
141
 
142
- }
143
-
144
- if (isset($_POST['unsplash_feed_'.$themeslug]) && is_numeric($_POST['unsplash_feed_'.$themeslug])) {
145
- update_option('niteoCS_unsplash_feed['.$themeslug.']', sanitize_text_field($_POST['unsplash_feed_'.$themeslug]));
146
- }
147
 
148
- if (isset($_POST['niteoCS_unsplash_0_'.$themeslug])) {
149
- $url = $_POST['niteoCS_unsplash_0_'.$themeslug];
150
- // if we have url sanitize url
151
- if (strpos($url, 'http://') !== false || strpos($url, 'https://') !== false) {
152
- update_option('niteoCS_unsplash_0['.$themeslug.']', esc_url_raw($_POST['niteoCS_unsplash_0_'.$themeslug]));
153
- } else {
154
- // sanitize string
155
- update_option('niteoCS_unsplash_0['.$themeslug.']', sanitize_text_field($_POST['niteoCS_unsplash_0_'.$themeslug]));
 
156
  }
157
- }
158
 
159
- if (isset($_POST['niteoCS_unsplash_2_'.$themeslug])) {
160
- $url = $_POST['niteoCS_unsplash_2_'.$themeslug];
161
- // if we have url sanitize url
162
- if (strpos($url, 'http://') !== false || strpos($url, 'https://') !== false) {
163
- update_option('niteoCS_unsplash_2['.$themeslug.']', esc_url_raw($_POST['niteoCS_unsplash_2_'.$themeslug]));
164
- } else {
165
- // sanitize string
166
- update_option('niteoCS_unsplash_2['.$themeslug.']', sanitize_text_field($_POST['niteoCS_unsplash_2_'.$themeslug]));
 
167
  }
168
- }
169
 
170
- if (isset($_POST['niteoCS_unsplash_3_'.$themeslug])) {
171
- update_option('niteoCS_unsplash_3['.$themeslug.']', sanitize_text_field($_POST['niteoCS_unsplash_3_'.$themeslug]));
172
- }
173
 
174
- if (isset($_POST['niteoCS_unsplash_1_'.$themeslug])) {
175
- update_option('niteoCS_unsplash_1['.$themeslug.']', sanitize_text_field($_POST['niteoCS_unsplash_1_'.$themeslug]));
176
- }
177
 
178
- if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
179
 
180
- if (isset($_POST['niteoCS_unsplash_feat_'.$themeslug])) {
181
- update_option('niteoCS_unsplash_feat['.$themeslug.']', $this->sanitize_checkbox($_POST['niteoCS_unsplash_feat_'.$themeslug]));
182
- } else {
183
- update_option('niteoCS_unsplash_feat['.$themeslug.']', false);
 
184
  }
185
- }
186
 
187
- if (isset($_POST['niteoCS_favicon_id']) && ( is_numeric($_POST['niteoCS_favicon_id']) || empty($_POST['niteoCS_favicon_id']))) {
188
- update_option('niteoCS_favicon_id', sanitize_text_field($_POST['niteoCS_favicon_id']));
189
- }
190
 
191
 
192
- if (isset($_POST['niteoCS_title'])) {
193
- update_option('niteoCS_title', sanitize_text_field($_POST['niteoCS_title']));
194
- }
195
 
196
- if (isset($_POST['niteoCS_descr'])) {
197
- update_option('niteoCS_descr', sanitize_text_field($_POST['niteoCS_descr']));
198
- }
199
 
200
- if (isset($_POST['niteoCS_analytics'])) {
201
- update_option('niteoCS_analytics', sanitize_text_field($_POST['niteoCS_analytics']));
202
- }
203
 
204
- if (isset($_POST['niteoCS_analytics_status'])) {
205
- update_option('niteoCS_analytics_status', sanitize_text_field($_POST['niteoCS_analytics_status']));
206
- }
207
 
208
 
209
- if (isset($_POST['niteoCS_analytics_other'])) {
210
- $replace = array('<script>', '</script>');
211
- $js_code = str_replace($replace, '', $_POST['niteoCS_analytics_other']);
212
- update_option('niteoCS_analytics_other', sanitize_text_field($js_code));
213
- }
214
 
215
 
216
- if (isset($_POST['niteoCS_custom_css'])) {
217
- update_option('niteoCS_custom_css', $_POST['niteoCS_custom_css']);
218
- }
219
 
220
 
221
- if (isset($_POST['niteoCS_soc_title'])) {
222
- update_option('niteoCS_soc_title', sanitize_text_field($_POST['niteoCS_soc_title']));
223
- }
224
 
225
- if (isset($_POST['niteoCS_socialmedia'])) {
226
- update_option('niteoCS_socialmedia', sanitize_text_field($_POST['niteoCS_socialmedia']));
227
- }
228
 
229
 
230
- if (isset($_POST['niteoCS_body_title'])) {
231
- update_option('niteoCS_body_title', sanitize_text_field($_POST['niteoCS_body_title']));
232
- }
233
 
234
- if (isset($_POST['niteoCS_body'])) {
235
- update_option('niteoCS_body', $this->niteo_sanitize_html( $_POST['niteoCS_body']));
236
- }
237
 
238
 
239
- if (isset($_POST['niteoCS_copyright'])) {
240
- update_option('niteoCS_copyright', $this->niteo_sanitize_html( $_POST['niteoCS_copyright']));
241
- }
242
 
243
- if (isset($_POST['niteoCS_URL_redirect'])) {
244
- update_option('niteoCS_URL_redirect', esc_url_raw( $_POST['niteoCS_URL_redirect']));
245
- }
246
 
247
- if (isset($_POST['niteoCS_redirect_time'])) {
248
- update_option('niteoCS_redirect_time', sanitize_text_field( $_POST['niteoCS_redirect_time']));
249
- }
250
 
251
 
252
- // background overlay
253
- if ( isset( $_POST['niteoCS_overlay_'.$themeslug] ) ) {
254
- update_option( 'niteoCS_overlay['.$themeslug.']', sanitize_text_field( $_POST['niteoCS_overlay_'.$themeslug] ) );
255
- }
256
 
257
- if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_color'] ) ) {
258
- update_option( 'niteoCS_overlay['.$themeslug.'][color]', sanitize_hex_color( $_POST['niteoCS_overlay_'.$themeslug.'_color'] ) );
259
- }
260
 
261
 
262
- if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_opacity'] ) ) {
263
- update_option( 'niteoCS_overlay['.$themeslug.'][opacity]', sanitize_text_field( $_POST['niteoCS_overlay_'.$themeslug.'_opacity'] ) );
264
- }
265
 
266
- if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_gradient'] ) ) {
267
- update_option('niteoCS_overlay['.$themeslug.'][gradient]', sanitize_text_field( $_POST['niteoCS_overlay_'.$themeslug.'_gradient'] ) );
268
- }
269
 
270
- if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_gradient_one'] ) ) {
271
- update_option('niteoCS_overlay['.$themeslug.'][gradient_one]', sanitize_hex_color( $_POST['niteoCS_overlay_'.$themeslug.'_gradient_one'] ) );
272
- }
273
 
274
- if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_gradient_two'] ) ) {
275
- update_option('niteoCS_overlay['.$themeslug.'][gradient_two]', sanitize_hex_color( $_POST['niteoCS_overlay_'.$themeslug.'_gradient_two'] ) );
276
- }
277
 
278
- if (isset($_POST['niteoCS_effect_blur_'.$themeslug]) && is_numeric($_POST['niteoCS_effect_blur_'.$themeslug])) {
279
- update_option('niteoCS_effect_blur['.$themeslug.']', sanitize_text_field($_POST['niteoCS_effect_blur_'.$themeslug]));
 
280
  }
281
 
282
  $overlay = get_option('niteoCS_overlay['.$themeslug.']', 'disabled');
@@ -438,13 +454,13 @@ add_thickbox();
438
  <p class="error"><?php _e('JavaScript appears to be disabled in your browser. For this plugin to work correctly, please enable JavaScript or switch to a more modern browser.', 'cmp-coming-soon-maintenance');?></p>
439
  </div>
440
  <style>
441
- .themes{display: :none;}
442
  </style>
443
  </noscript>
444
 
445
 
446
 
447
- <div class="wrap cmp-coming-soon-maintenance">
448
 
449
  <h1></h1>
450
 
@@ -452,7 +468,8 @@ add_thickbox();
452
  <br />
453
  </div>
454
  <form method="post" action="admin.php?page=cmp-settings&status=settings-saved" id="csoptions">
455
-
 
456
  <h2 class="nav-tab-wrapper">
457
  <a class="nav-tab nav-tab-active general" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="general"><i class="fa fa-cog" aria-hidden="true"></i><?php _e('Settings', 'cmp-coming-soon-maintenance');?></a>
458
 
@@ -477,7 +494,7 @@ add_thickbox();
477
  <table class="general">
478
  <tbody>
479
  <tr>
480
- <th><h4><?php _e('Status', 'cmp-coming-soon-maintenance');?></h4></th>
481
  <td>
482
  <fieldset class="cmp-status">
483
 
@@ -491,22 +508,28 @@ add_thickbox();
491
  </tr>
492
 
493
  <tr>
494
- <th><h4><?php _e('Mode', 'cmp-coming-soon-maintenance');?></h4></th>
495
  <td>
496
  <fieldset class="cmp-status">
497
 
498
  <legend title="cmp" <?php echo ($this->cmp_status() == 2) ? 'class="active"' : '';?>>
499
- <input type="radio" name="activate" value="2" <?php checked( '2', get_option('niteoCS_activation', '2') ); ?> <?php disabled( '', get_option('niteoCS_status', '') ); ?>>&nbsp;<?php _e('Coming Soon & Landing Page', 'cmp-coming-soon-maintenance');?><br>
500
  <span class="info"><?php _e('Returns standard 200 HTTP OK response code to indexing robots. Set this option if you want to use our plugin as "Coming Soon" page.','cmp-coming-soon-maintenance')?></span>
501
  </legend><br>
 
 
 
502
 
503
  <legend title="maintanance" <?php echo ( $this->cmp_status() == 1 ) ? 'class="active"' : '';?>>
504
- <input type="radio" name="activate" value="1" <?php checked( '1', get_option('niteoCS_activation', '2') ); ?> <?php disabled( '', get_option('niteoCS_status', '') ); ?>>&nbsp;<?php _e('Maintanance Mode', 'cmp-coming-soon-maintenance');?><br>
505
  <span class="info"><?php _e('Returns 503 HTTP Service unavailable code to indexing robots. Set this option if your site is down due to maintanance and you want to display Maintanance page.','cmp-coming-soon-maintenance')?></span>
506
  </legend><br>
 
 
 
507
 
508
  <legend title="maintanance" <?php echo ( $this->cmp_status() == 3 ) ? 'class="active"' : '';?>>
509
- <input type="radio" name="activate" value="3" <?php checked( '3', get_option('niteoCS_activation', '2') ); ?> <?php disabled( '', get_option('niteoCS_status', '') ); ?>>&nbsp;<?php _e('Redirect Mode', 'cmp-coming-soon-maintenance');?><br>
510
  <span class="info redirect"><?php _e('Choose Redirect Mode if you want to redirect your website to another URL.','cmp-coming-soon-maintenance')?></span>
511
  <div class="redirect-inputs" <?php echo ( $this->cmp_status() == 3 ) ? 'style="display: block"' : 'style="display: none"';?>>
512
  <input type="text" id="niteoCS_URL_redirect" name="niteoCS_URL_redirect" value="<?php echo esc_url( $niteoCS_URL_redirect ); ?>" class="regular-text code"><br>
@@ -662,7 +685,7 @@ add_thickbox();
662
  <table class="content">
663
  <tbody>
664
  <tr class="body-title">
665
- <th><h4><?php _e('Title', 'cmp-coming-soon-maintenance');?></h4></th>
666
  <td>
667
  <fieldset>
668
  <input type="text" name="niteoCS_body_title" id="niteoCS_body_title" value="<?php echo esc_attr( $niteoCS_body_title ); ?>" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>">
@@ -671,7 +694,7 @@ add_thickbox();
671
  </tr>
672
 
673
  <tr>
674
- <th><h4><?php _e('Message', 'cmp-coming-soon-maintenance');?></h4></th>
675
  <td>
676
  <?php wp_editor( $this->niteo_sanitize_html( $niteoCS_body ), 'niteoCS_body', $settings = array('textarea_name'=>'niteoCS_body', 'editor_height'=>'300') ); ?>
677
  </td>
@@ -731,7 +754,7 @@ add_thickbox();
731
  <table class="content">
732
  <tbody>
733
  <tr>
734
- <th><h4><?php _e('Social Section Title', 'cmp-coming-soon-maintenance');?></h4></th>
735
  <td>
736
  <fieldset>
737
  <input type="text" name="niteoCS_soc_title" id="niteoCS_soc_title" value="<?php echo esc_attr( $niteoCS_soc_title); ?>" class="regular-text code">
@@ -740,7 +763,7 @@ add_thickbox();
740
  </tr>
741
 
742
  <tr>
743
- <th><h4><?php _e('Social Media Icons', 'cmp-coming-soon-maintenance');?></h4></th>
744
  <td>
745
  <p class="social-description"><?php _e('Click on Social Icons below to enable Social Media settings.', 'cmp-coming-soon-maintenance');?></p>
746
  <ul class="social-media">
@@ -781,13 +804,15 @@ add_thickbox();
781
  </ul>
782
 
783
  <ul class="social-inputs">
784
- <span class="label"><?php _e('Position', 'cmp-coming-soon-maintenance');?></span><span class="label"><?php _e('Active', 'cmp-coming-soon-maintenance');?></span><span class="label"><?php _e('Website URL', 'cmp-coming-soon-maintenance');?></span>
785
  <?php
786
  foreach ( $socialmedia as $social ) {
787
 
788
  ( $social['hidden'] == '0' ) ? $active = 'active ' : $active = '';
789
 
790
- ( $social['active'] == '0' ) ? $disabled = 'disabled ' : $disabled = '';
 
 
791
 
792
  switch ( $social['name'] ) {
793
  case 'envelope-o':
@@ -818,14 +843,19 @@ add_thickbox();
818
  $title = ucfirst( $social['name'] );
819
  $url = 'https://'.$social['name'].'.com/profile';
820
  break;
821
- } ?>
822
- <li class="<?php echo esc_attr( $active ) . esc_attr( $social['name'] );?>">
823
- <p> <i class="fa fa-sort" aria-hidden="true"></i>
824
- <label for="niteoCS_<?php echo esc_attr( $social['name'] );?>" class="<?php echo esc_attr( $social['name'] );?>"><?php echo esc_html( $title );?></label>
825
 
826
- <input type="text" <?php echo $disabled;?>name="niteoCS_<?php echo esc_attr( $social['name'] );?>" id="niteoCS_<?php echo esc_attr( $social['name'] );?>" value="<?php echo ( $social['url'] == '' ) ? esc_attr( $url ) : esc_attr( $social['url'] ); ?>" class="regular-text code <?php echo esc_attr( $social['name'] );?>" data-name="<?php echo esc_attr( $social['name'] );?>">
 
 
 
827
 
828
- <input type="checkbox" name="niteoCS_<?php echo esc_attr( $social['name'] );?>_checkbox" id="niteoCS_<?php echo esc_attr( $social['name'] );?>_checkbox" class="<?php echo esc_attr( $social['name'] );?>" data-name="<?php echo esc_attr( $social['name'] );?>" <?php checked( '1', $social['active'] ); ?>>
 
 
 
 
829
  </p>
830
  </li>
831
  <?php
@@ -919,29 +949,29 @@ add_thickbox();
919
  <table class="theme-setup">
920
  <tbody>
921
  <tr>
922
- <th><h4><?php _e('Headings Font', 'cmp-coming-soon-maintenance');?></h4></th>
923
  <td>
924
  <fieldset>
925
- <label for="niteoCS_font_headings_<?php echo esc_attr( $themeslug );?>"><?php _e('Font Family from ', 'cmp-coming-soon-maintenance');?><a href="https://fonts.google.com" target="_blank">Google Fonts</a></label></br>
926
  <select class="headings-google-font" name ="niteoCS_font_headings_<?php echo esc_attr( $themeslug );?>">
927
  <option value="<?php echo esc_attr( $heading_font['family'] ); ?>" selected="selected"><?php echo esc_html( $heading_font['family'] ); ?></option>
928
  </select>
929
  </fieldset>
930
 
931
  <fieldset>
932
- <label for="niteoCS_font_headings_variant_<?php echo esc_attr( $themeslug );?>"><?php _e('Variant', 'cmp-coming-soon-maintenance');?></label></br>
933
  <select class="headings-google-font-variant" name ="niteoCS_font_headings_variant_<?php echo esc_attr( $themeslug );?>">
934
  <option value="<?php echo esc_attr( $heading_font['variant'] ); ?>" selected="selected"><?php echo esc_html( $this->cmp_google_variant_title( $heading_font['variant'] ) ); ?></option>
935
  </select>
936
  </fieldset>
937
 
938
  <fieldset>
939
- <label for="niteoCS_font_headings_size_<?php echo esc_attr( $themeslug );?>"><?php _e('Font Size', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $heading_font['size'] ); ?></span>px</label></br>
940
  <input type="range" name="niteoCS_font_headings_size_<?php echo esc_attr( $themeslug );?>" min="10" max="75" step="1" value="<?php echo esc_attr( $heading_font['size'] ); ?>" data-css="font-size" data-type="heading" />
941
  </fieldset>
942
 
943
  <fieldset>
944
- <label for="niteoCS_font_headings_spacing_<?php echo esc_attr( $themeslug );?>"><?php _e('Letter Spacing', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $heading_font['spacing'] ); ?></span>px</label></br>
945
  <input type="range" name="niteoCS_font_headings_spacing_<?php echo esc_attr( $themeslug );?>" min="0" max="10" step="0.5" value="<?php echo esc_attr( $heading_font['spacing'] ); ?>" data-css="letter-spacing" data-type="heading" />
946
  </fieldset>
947
 
@@ -950,7 +980,7 @@ add_thickbox();
950
  if ( in_array( $this->cmp_selectedTheme(), $this->cmp_font_animation_themes() ) ) { ?>
951
 
952
  <fieldset>
953
- <label for="niteoCS_heading_animation_<?php echo esc_attr( $themeslug );?>"><?php _e('Animation', 'cmp-coming-soon-maintenance');?></label></br>
954
  <select name="niteoCS_heading_animation_<?php echo esc_attr( $themeslug );?>" class="heading-animation">
955
  <option value="none" <?php if ( $niteoCS_heading_animation == 'none' ) { echo ' selected="selected"'; } ?>><?php _e('No animation', 'cmp-coming-soon-maintenance');?></option>
956
  <option value="fadeInDown" <?php if ( $niteoCS_heading_animation == 'fadeInDown' ) { echo ' selected="selected"'; } ?>><?php _e('Fade In Down', 'cmp-coming-soon-maintenance');?></option>
@@ -966,11 +996,11 @@ add_thickbox();
966
  </tr>
967
 
968
  <tr>
969
- <th><h4><?php _e('Content Font', 'cmp-coming-soon-maintenance');?></h4></th>
970
  <td>
971
 
972
  <fieldset>
973
- <label for="niteoCS_font_content_<?php echo esc_attr( $themeslug );?>"><?php _e('Select Font Family from ', 'cmp-coming-soon-maintenance');?><a href="https://fonts.google.com" target="_blank">Google Fonts</a></label></br>
974
 
975
  <select class="content-google-font" name ="niteoCS_font_content_<?php echo esc_attr( $themeslug );?>">
976
  <option value="<?php echo esc_attr( $content_font['family'] ); ?>" selected="selected"><?php echo esc_html( $content_font['family'] ); ?></option>
@@ -978,24 +1008,24 @@ add_thickbox();
978
  </fieldset>
979
 
980
  <fieldset>
981
- <label for="niteoCS_font_content_variant_<?php echo esc_attr( $themeslug );?>"><?php _e('Variant', 'cmp-coming-soon-maintenance');?></label></br>
982
  <select class="content-google-font-variant" name ="niteoCS_font_content_variant_<?php echo esc_attr( $themeslug );?>">
983
  <option value="<?php echo esc_attr( $content_font['variant'] ); ?>" selected="selected"><?php echo esc_html( $this->cmp_google_variant_title( $content_font['variant'] ) ); ?></option>
984
  </select>
985
  </fieldset>
986
 
987
  <fieldset>
988
- <label for="niteoCS_font_content_size_<?php echo esc_attr( $themeslug );?>"><?php _e('Font Size', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $content_font['size'] ); ?></span>px</label></br>
989
  <input type="range" name="niteoCS_font_content_size_<?php echo esc_attr( $themeslug );?>" min="10" max="50" step="1" value="<?php echo esc_attr( $content_font['size'] ); ?>" data-css="font-size" data-type="content" />
990
  </fieldset>
991
 
992
  <fieldset>
993
- <label for="niteoCS_font_content_spacing_<?php echo esc_attr( $themeslug );?>"><?php _e('Letter Spacing', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $content_font['spacing'] ); ?></span>px</label></br>
994
  <input type="range" name="niteoCS_font_content_spacing_<?php echo esc_attr( $themeslug );?>" min="0" max="10" step="0.5" value="<?php echo esc_attr( $content_font['spacing'] ); ?>" data-css="letter-spacing" data-type="content" />
995
  </fieldset>
996
 
997
  <fieldset>
998
- <label for="niteoCS_font_content_lineheight_<?php echo esc_attr( $themeslug );?>"><?php _e('Line Height', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $content_font['line-height'] ); ?></span></label></br>
999
  <input type="range" name="niteoCS_font_content_lineheight_<?php echo esc_attr( $themeslug );?>" min="1.3" max="3" step="0.1" value="<?php echo esc_attr( $content_font['line-height'] ); ?>" data-css="line-height" data-type="content" />
1000
  </fieldset>
1001
  <?php
@@ -1003,7 +1033,7 @@ add_thickbox();
1003
  if ( in_array( $this->cmp_selectedTheme(), $this->cmp_font_animation_themes() ) ) { ?>
1004
 
1005
  <fieldset>
1006
- <label for="niteoCS_content_animation_<?php echo esc_attr( $themeslug );?>"><?php _e('Select Animation', 'cmp-coming-soon-maintenance');?></label></br>
1007
  <select name="niteoCS_content_animation_<?php echo esc_attr( $themeslug );?>" class="content-animation">
1008
  <option value="none" <?php if ( $niteoCS_content_animation == 'none' ) { echo ' selected="selected"'; } ?>><?php _e('No animation', 'cmp-coming-soon-maintenance');?></option>
1009
  <option value="fadeInDown" <?php if ( $niteoCS_content_animation == 'fadeInDown' ) { echo ' selected="selected"'; } ?>><?php _e('Fade In Down', 'cmp-coming-soon-maintenance');?></option>
@@ -1038,10 +1068,10 @@ add_thickbox();
1038
  <tbody>
1039
 
1040
  <tr>
1041
- <th><h4><?php _e('Favicon', 'cmp-coming-soon-maintenance');?></h4></th>
1042
  <td>
1043
  <fieldset>
1044
- <input type="hidden" class="widefat" id="niteoCS-favicon-id" name="niteoCS_favicon_id" type="text" value="<?php echo esc_attr( $niteoCS_favicon_id ); ?>" />
1045
  <input id="add-favicon" type="button" class="button" value="Select Favicon" />
1046
 
1047
  <div class="favicon-wrapper">
@@ -1057,7 +1087,7 @@ add_thickbox();
1057
  </tr>
1058
 
1059
  <tr class="seo-title">
1060
- <th><h4><?php _e('Header Title', 'cmp-coming-soon-maintenance');?></h4></th>
1061
  <td>
1062
  <fieldset>
1063
  <input type="text" name="niteoCS_title" id="niteoCS_title" value="<?php echo esc_attr( $niteoCS_title); ?>" class="regular-text code">
@@ -1066,7 +1096,7 @@ add_thickbox();
1066
  </tr>
1067
 
1068
  <tr>
1069
- <th><h4><?php _e('Description', 'cmp-coming-soon-maintenance');?></h4></th>
1070
  <td>
1071
  <fieldset>
1072
  <textarea name="niteoCS_descr" id="niteoCS_descr" class="code"><?php echo esc_attr( $niteoCS_descr); ?></textarea>
@@ -1148,26 +1178,32 @@ add_thickbox();
1148
 
1149
  <textarea name="niteoCS_custom_css" rows="20" id="niteoCS_custom_css" class="code"><?php echo esc_attr( $niteoCS_custom_css ); ?></textarea>
1150
 
1151
- <?php echo $this->render_settings->submit(); ?>
 
 
1152
  </div>
1153
 
1154
 
1155
 
1156
 
1157
- </form>
1158
 
1159
 
1160
  </div> <!-- <div class="cmp-settings-wrapper"> -->
1161
 
1162
- <?php
1163
- // get sidebar with "widgets"
1164
- if ( file_exists(dirname(__FILE__) . '/cmp-sidebar.php') ) {
1165
- require (dirname(__FILE__) . '/cmp-sidebar.php');
1166
- }
1167
 
1168
- ?>
1169
 
1170
  </div> <!-- <div class="cmp-inputs-wrapper"> -->
1171
 
 
 
 
 
 
 
 
 
 
 
1172
  </div> <!-- <div id="wrap"> -->
1173
 
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
4
+ $themeslug = $this->cmp_selectedTheme();
5
+ $downloadable_themes = $this->cmp_downloadable_themes();
6
+ $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
7
+
8
  // check onces and wordpress rights, else DIE
9
  if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
10
+
11
  if( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
12
  die('Sorry, but this request is invalid');
13
  }
14
 
15
+ if ( isset($_POST['cmp-activate']) && is_numeric($_POST['cmp-activate']) ) {
16
+ update_option('niteoCS_activation', sanitize_text_field($_POST['cmp-activate']));
17
+ }
18
 
19
+ if ( isset($_POST['cmp_status']) ) {
20
+ update_option('niteoCS_status', $this->sanitize_checkbox($_POST['cmp_status']) );
21
+ } else {
22
 
23
+ update_option('niteoCS_status', false);
24
+ }
 
25
 
26
+ $this->cmp_purge_cache();
 
 
27
 
 
 
 
28
 
29
+ if ( isset($_POST['niteoCS_select_theme']) && in_array($_POST['niteoCS_select_theme'], $this->cmp_themes_available())) {
30
+ update_option('niteoCS_theme', sanitize_text_field($_POST['niteoCS_select_theme']));
31
+ }
32
 
 
 
 
33
 
 
 
 
34
 
35
+ if (isset($_POST['niteoCS_logo_id_'.$themeslug]) && ( is_numeric($_POST['niteoCS_logo_id_'.$themeslug]) || empty($_POST['niteoCS_logo_id_'.$themeslug]))) {
36
+ update_option('niteoCS_logo_id['.$themeslug.']', sanitize_text_field($_POST['niteoCS_logo_id_'.$themeslug]));
37
+ }
38
 
39
+ if (isset($_POST['niteoCS_logo_type_'.$themeslug])) {
40
+ update_option('niteoCS_logo_type['.$themeslug.']', sanitize_text_field($_POST['niteoCS_logo_type_'.$themeslug]));
41
+ }
42
 
43
+ if (isset($_POST['niteoCS_text_logo_'.$themeslug])) {
44
+ update_option('niteoCS_text_logo['.$themeslug.']', sanitize_text_field($_POST['niteoCS_text_logo_'.$themeslug]));
45
+ }
46
 
47
+ if (isset($_POST['niteoCS_font_headings_'.$themeslug])) {
48
+ update_option('niteoCS_font_headings['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_'.$themeslug]));
49
+ }
50
 
51
+ if (isset($_POST['niteoCS_font_headings_variant_'.$themeslug])) {
52
+ update_option('niteoCS_font_headings_variant['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_variant_'.$themeslug]));
53
+ }
54
 
55
+ if (isset($_POST['niteoCS_font_headings_size_'.$themeslug])) {
56
+ update_option('niteoCS_font_headings_size['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_size_'.$themeslug]));
57
+ }
58
 
 
 
 
59
 
60
+ if (isset($_POST['niteoCS_font_headings_spacing_'.$themeslug])) {
61
+ update_option('niteoCS_font_headings_spacing['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_headings_spacing_'.$themeslug]));
62
+ }
63
 
64
+ if (isset($_POST['niteoCS_font_content_'.$themeslug])) {
65
+ update_option('niteoCS_font_content['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_'.$themeslug]));
66
+ }
67
 
68
+ if (isset($_POST['niteoCS_font_content_variant_'.$themeslug])) {
69
+ update_option('niteoCS_font_content_variant['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_variant_'.$themeslug]));
70
+ }
71
 
72
+ if (isset($_POST['niteoCS_font_content_size_'.$themeslug])) {
73
+ update_option('niteoCS_font_content_size['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_size_'.$themeslug]));
74
+ }
75
 
76
+ if (isset($_POST['niteoCS_font_content_lineheight_'.$themeslug])) {
77
+ update_option('niteoCS_font_content_lineheight['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_lineheight_'.$themeslug]));
78
+ }
79
 
80
+ if (isset($_POST['niteoCS_font_content_spacing_'.$themeslug])) {
81
+ update_option('niteoCS_font_content_spacing['.$themeslug.']', sanitize_text_field($_POST['niteoCS_font_content_spacing_'.$themeslug]));
82
+ }
83
 
84
+ if (isset($_POST['niteoCS_heading_animation_'.$themeslug])) {
85
+ update_option('niteoCS_heading_animation['.$themeslug.']', sanitize_text_field($_POST['niteoCS_heading_animation_'.$themeslug]) );
86
+ }
87
 
88
+ if (isset($_POST['niteoCS_content_animation_'.$themeslug])) {
89
+ update_option('niteoCS_content_animation['.$themeslug.']', sanitize_text_field($_POST['niteoCS_content_animation_'.$themeslug]) );
90
+ }
91
 
 
 
 
92
 
93
+ if (isset($_POST['niteoCS_banner_'.$themeslug]) && is_numeric($_POST['niteoCS_banner_'.$themeslug])) {
94
+ update_option('niteoCS_banner['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_'.$themeslug]));
95
+ }
96
 
97
+ if (isset($_POST['niteoCS_banner_color_'.$themeslug])) {
98
+ update_option('niteoCS_banner_color['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_color_'.$themeslug]));
99
+ }
100
 
 
 
 
101
 
102
+ if (isset($_POST['niteoCS_gradient_'.$themeslug])) {
103
+ update_option('niteoCS_gradient['.$themeslug.']', sanitize_text_field($_POST['niteoCS_gradient_'.$themeslug]));
104
+ }
105
 
106
+ if (isset($_POST['niteoCS_banner_gradient_one_'.$themeslug])) {
107
+ update_option('niteoCS_banner_gradient_one['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_gradient_one_'.$themeslug]));
108
+ }
109
 
110
+ if (isset($_POST['niteoCS_banner_gradient_two_'.$themeslug])) {
111
+ update_option('niteoCS_banner_gradient_two['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_gradient_two_'.$themeslug]));
112
+ }
113
 
114
+ if (isset($_POST['niteoCS_banner_pattern_'.$themeslug])) {
115
+ update_option('niteoCS_banner_pattern['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_pattern_'.$themeslug]));
116
+ }
117
 
118
+ if (isset($_POST['niteoCS_banner_pattern_custom_'.$themeslug])) {
119
+ update_option('niteoCS_banner_pattern_custom['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_pattern_custom_'.$themeslug]));
120
+ }
121
 
122
+ if (isset($_POST['niteoCS_banner_video_'.$themeslug])) {
123
+ update_option('niteoCS_banner_video['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_video_'.$themeslug]));
124
+ }
125
+
126
+ if (isset($_POST['niteoCS_youtube_url_'.$themeslug])) {
127
+ update_option('niteoCS_youtube_url['.$themeslug.']', sanitize_text_field($_POST['niteoCS_youtube_url_'.$themeslug]));
128
+ }
129
+
130
+ if (isset($_POST['niteoCS_vimeo_url_'.$themeslug])) {
131
+ update_option('niteoCS_vimeo_url['.$themeslug.']', sanitize_text_field($_POST['niteoCS_vimeo_url_'.$themeslug]));
132
+ }
133
+
134
+ if (isset($_POST['niteoCS_video_thumb_'.$themeslug])) {
135
+ update_option('niteoCS_video_thumb['.$themeslug.']', sanitize_text_field($_POST['niteoCS_video_thumb_'.$themeslug]));
136
+ }
137
+
138
+ if (isset($_POST['niteoCS_video_file_url'.$themeslug])) {
139
+ update_option('niteoCS_video_file_url['.$themeslug.']', sanitize_text_field($_POST['niteoCS_video_file_url'.$themeslug]));
140
+ }
141
+
142
+ if (isset($_POST['niteoCS_banner_id_'.$themeslug])) {
143
+ $allnums = true;
144
+
145
+ $ids = explode( ',', $_POST['niteoCS_banner_id_'.$themeslug] );
146
+ foreach ( $ids as $id ) {
147
 
148
+ if ( !is_numeric($id) ) {
149
+ $allnums = false;
150
+ }
151
  }
152
+
153
+ if ( $allnums === true || $_POST['niteoCS_banner_id_'.$themeslug] == '' ) {
154
+ update_option('niteoCS_banner_id['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_id_'.$themeslug]));
155
  }
156
 
 
 
157
  }
158
 
159
+ if (isset($_POST['unsplash_feed_'.$themeslug]) && is_numeric($_POST['unsplash_feed_'.$themeslug])) {
160
+ update_option('niteoCS_unsplash_feed['.$themeslug.']', sanitize_text_field($_POST['unsplash_feed_'.$themeslug]));
161
+ }
 
 
162
 
163
+ if (isset($_POST['niteoCS_unsplash_0_'.$themeslug])) {
164
+ $url = $_POST['niteoCS_unsplash_0_'.$themeslug];
165
+ // if we have url sanitize url
166
+ if (strpos($url, 'http://') !== false || strpos($url, 'https://') !== false) {
167
+ update_option('niteoCS_unsplash_0['.$themeslug.']', esc_url_raw($_POST['niteoCS_unsplash_0_'.$themeslug]));
168
+ } else {
169
+ // sanitize string
170
+ update_option('niteoCS_unsplash_0['.$themeslug.']', sanitize_text_field($_POST['niteoCS_unsplash_0_'.$themeslug]));
171
+ }
172
  }
 
173
 
174
+ if (isset($_POST['niteoCS_unsplash_2_'.$themeslug])) {
175
+ $url = $_POST['niteoCS_unsplash_2_'.$themeslug];
176
+ // if we have url sanitize url
177
+ if (strpos($url, 'http://') !== false || strpos($url, 'https://') !== false) {
178
+ update_option('niteoCS_unsplash_2['.$themeslug.']', esc_url_raw($_POST['niteoCS_unsplash_2_'.$themeslug]));
179
+ } else {
180
+ // sanitize string
181
+ update_option('niteoCS_unsplash_2['.$themeslug.']', sanitize_text_field($_POST['niteoCS_unsplash_2_'.$themeslug]));
182
+ }
183
  }
 
184
 
185
+ if (isset($_POST['niteoCS_unsplash_3_'.$themeslug])) {
186
+ update_option('niteoCS_unsplash_3['.$themeslug.']', sanitize_text_field($_POST['niteoCS_unsplash_3_'.$themeslug]));
187
+ }
188
 
189
+ if (isset($_POST['niteoCS_unsplash_1_'.$themeslug])) {
190
+ update_option('niteoCS_unsplash_1['.$themeslug.']', sanitize_text_field($_POST['niteoCS_unsplash_1_'.$themeslug]));
191
+ }
192
 
193
+ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
194
 
195
+ if (isset($_POST['niteoCS_unsplash_feat_'.$themeslug])) {
196
+ update_option('niteoCS_unsplash_feat['.$themeslug.']', $this->sanitize_checkbox($_POST['niteoCS_unsplash_feat_'.$themeslug]));
197
+ } else {
198
+ update_option('niteoCS_unsplash_feat['.$themeslug.']', false);
199
+ }
200
  }
 
201
 
202
+ if (isset($_POST['niteoCS_favicon_id']) && ( is_numeric($_POST['niteoCS_favicon_id']) || empty($_POST['niteoCS_favicon_id']))) {
203
+ update_option('niteoCS_favicon_id', sanitize_text_field($_POST['niteoCS_favicon_id']));
204
+ }
205
 
206
 
207
+ if (isset($_POST['niteoCS_title'])) {
208
+ update_option('niteoCS_title', sanitize_text_field($_POST['niteoCS_title']));
209
+ }
210
 
211
+ if (isset($_POST['niteoCS_descr'])) {
212
+ update_option('niteoCS_descr', sanitize_text_field($_POST['niteoCS_descr']));
213
+ }
214
 
215
+ if (isset($_POST['niteoCS_analytics'])) {
216
+ update_option('niteoCS_analytics', sanitize_text_field($_POST['niteoCS_analytics']));
217
+ }
218
 
219
+ if (isset($_POST['niteoCS_analytics_status'])) {
220
+ update_option('niteoCS_analytics_status', sanitize_text_field($_POST['niteoCS_analytics_status']));
221
+ }
222
 
223
 
224
+ if (isset($_POST['niteoCS_analytics_other'])) {
225
+ $replace = array('<script>', '</script>');
226
+ $js_code = str_replace($replace, '', $_POST['niteoCS_analytics_other']);
227
+ update_option('niteoCS_analytics_other', sanitize_text_field($js_code));
228
+ }
229
 
230
 
231
+ if (isset($_POST['niteoCS_custom_css'])) {
232
+ update_option('niteoCS_custom_css', $_POST['niteoCS_custom_css']);
233
+ }
234
 
235
 
236
+ if (isset($_POST['niteoCS_soc_title'])) {
237
+ update_option('niteoCS_soc_title', sanitize_text_field($_POST['niteoCS_soc_title']));
238
+ }
239
 
240
+ if (isset($_POST['niteoCS_socialmedia'])) {
241
+ update_option('niteoCS_socialmedia', sanitize_text_field($_POST['niteoCS_socialmedia']));
242
+ }
243
 
244
 
245
+ if (isset($_POST['niteoCS_body_title'])) {
246
+ update_option('niteoCS_body_title', sanitize_text_field($_POST['niteoCS_body_title']));
247
+ }
248
 
249
+ if (isset($_POST['niteoCS_body'])) {
250
+ update_option('niteoCS_body', $this->niteo_sanitize_html( $_POST['niteoCS_body']));
251
+ }
252
 
253
 
254
+ if (isset($_POST['niteoCS_copyright'])) {
255
+ update_option('niteoCS_copyright', $this->niteo_sanitize_html( $_POST['niteoCS_copyright']));
256
+ }
257
 
258
+ if (isset($_POST['niteoCS_URL_redirect'])) {
259
+ update_option('niteoCS_URL_redirect', esc_url_raw( $_POST['niteoCS_URL_redirect']));
260
+ }
261
 
262
+ if (isset($_POST['niteoCS_redirect_time'])) {
263
+ update_option('niteoCS_redirect_time', sanitize_text_field( $_POST['niteoCS_redirect_time']));
264
+ }
265
 
266
 
267
+ // background overlay
268
+ if ( isset( $_POST['niteoCS_overlay_'.$themeslug] ) ) {
269
+ update_option( 'niteoCS_overlay['.$themeslug.']', sanitize_text_field( $_POST['niteoCS_overlay_'.$themeslug] ) );
270
+ }
271
 
272
+ if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_color'] ) ) {
273
+ update_option( 'niteoCS_overlay['.$themeslug.'][color]', sanitize_hex_color( $_POST['niteoCS_overlay_'.$themeslug.'_color'] ) );
274
+ }
275
 
276
 
277
+ if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_opacity'] ) ) {
278
+ update_option( 'niteoCS_overlay['.$themeslug.'][opacity]', sanitize_text_field( $_POST['niteoCS_overlay_'.$themeslug.'_opacity'] ) );
279
+ }
280
 
281
+ if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_gradient'] ) ) {
282
+ update_option('niteoCS_overlay['.$themeslug.'][gradient]', sanitize_text_field( $_POST['niteoCS_overlay_'.$themeslug.'_gradient'] ) );
283
+ }
284
 
285
+ if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_gradient_one'] ) ) {
286
+ update_option('niteoCS_overlay['.$themeslug.'][gradient_one]', sanitize_hex_color( $_POST['niteoCS_overlay_'.$themeslug.'_gradient_one'] ) );
287
+ }
288
 
289
+ if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_gradient_two'] ) ) {
290
+ update_option('niteoCS_overlay['.$themeslug.'][gradient_two]', sanitize_hex_color( $_POST['niteoCS_overlay_'.$themeslug.'_gradient_two'] ) );
291
+ }
292
 
293
+ if (isset($_POST['niteoCS_effect_blur_'.$themeslug]) && is_numeric($_POST['niteoCS_effect_blur_'.$themeslug])) {
294
+ update_option('niteoCS_effect_blur['.$themeslug.']', sanitize_text_field($_POST['niteoCS_effect_blur_'.$themeslug]));
295
+ }
296
  }
297
 
298
  $overlay = get_option('niteoCS_overlay['.$themeslug.']', 'disabled');
454
  <p class="error"><?php _e('JavaScript appears to be disabled in your browser. For this plugin to work correctly, please enable JavaScript or switch to a more modern browser.', 'cmp-coming-soon-maintenance');?></p>
455
  </div>
456
  <style>
457
+ .themes{display:none;}
458
  </style>
459
  </noscript>
460
 
461
 
462
 
463
+ <div class="wrap cmp-coming-soon-maintenance content-settings">
464
 
465
  <h1></h1>
466
 
468
  <br />
469
  </div>
470
  <form method="post" action="admin.php?page=cmp-settings&status=settings-saved" id="csoptions">
471
+
472
+ <?php wp_nonce_field('save_options','save_options_field'); ?>
473
  <h2 class="nav-tab-wrapper">
474
  <a class="nav-tab nav-tab-active general" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="general"><i class="fa fa-cog" aria-hidden="true"></i><?php _e('Settings', 'cmp-coming-soon-maintenance');?></a>
475
 
494
  <table class="general">
495
  <tbody>
496
  <tr>
497
+ <th><?php _e('Status', 'cmp-coming-soon-maintenance');?></th>
498
  <td>
499
  <fieldset class="cmp-status">
500
 
508
  </tr>
509
 
510
  <tr>
511
+ <th><?php _e('Mode', 'cmp-coming-soon-maintenance');?></th>
512
  <td>
513
  <fieldset class="cmp-status">
514
 
515
  <legend title="cmp" <?php echo ($this->cmp_status() == 2) ? 'class="active"' : '';?>>
516
+ <input type="radio" name="cmp-activate" value="2" <?php checked( '2', get_option('niteoCS_activation', '2') ); ?> <?php disabled( '', get_option('niteoCS_status', '') ); ?>>&nbsp;<?php _e('Coming Soon & Landing Page', 'cmp-coming-soon-maintenance');?><br>
517
  <span class="info"><?php _e('Returns standard 200 HTTP OK response code to indexing robots. Set this option if you want to use our plugin as "Coming Soon" page.','cmp-coming-soon-maintenance')?></span>
518
  </legend><br>
519
+ </fieldset>
520
+
521
+ <fieldset class="cmp-status">
522
 
523
  <legend title="maintanance" <?php echo ( $this->cmp_status() == 1 ) ? 'class="active"' : '';?>>
524
+ <input type="radio" name="cmp-activate" value="1" <?php checked( '1', get_option('niteoCS_activation', '2') ); ?> <?php disabled( '', get_option('niteoCS_status', '') ); ?>>&nbsp;<?php _e('Maintanance Mode', 'cmp-coming-soon-maintenance');?><br>
525
  <span class="info"><?php _e('Returns 503 HTTP Service unavailable code to indexing robots. Set this option if your site is down due to maintanance and you want to display Maintanance page.','cmp-coming-soon-maintenance')?></span>
526
  </legend><br>
527
+ </fieldset>
528
+
529
+ <fieldset class="cmp-status">
530
 
531
  <legend title="maintanance" <?php echo ( $this->cmp_status() == 3 ) ? 'class="active"' : '';?>>
532
+ <input type="radio" name="cmp-activate" value="3" <?php checked( '3', get_option('niteoCS_activation', '2') ); ?> <?php disabled( '', get_option('niteoCS_status', '') ); ?>>&nbsp;<?php _e('Redirect Mode', 'cmp-coming-soon-maintenance');?><br>
533
  <span class="info redirect"><?php _e('Choose Redirect Mode if you want to redirect your website to another URL.','cmp-coming-soon-maintenance')?></span>
534
  <div class="redirect-inputs" <?php echo ( $this->cmp_status() == 3 ) ? 'style="display: block"' : 'style="display: none"';?>>
535
  <input type="text" id="niteoCS_URL_redirect" name="niteoCS_URL_redirect" value="<?php echo esc_url( $niteoCS_URL_redirect ); ?>" class="regular-text code"><br>
685
  <table class="content">
686
  <tbody>
687
  <tr class="body-title">
688
+ <th><?php _e('Title', 'cmp-coming-soon-maintenance');?></th>
689
  <td>
690
  <fieldset>
691
  <input type="text" name="niteoCS_body_title" id="niteoCS_body_title" value="<?php echo esc_attr( $niteoCS_body_title ); ?>" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>">
694
  </tr>
695
 
696
  <tr>
697
+ <th><?php _e('Message', 'cmp-coming-soon-maintenance');?></th>
698
  <td>
699
  <?php wp_editor( $this->niteo_sanitize_html( $niteoCS_body ), 'niteoCS_body', $settings = array('textarea_name'=>'niteoCS_body', 'editor_height'=>'300') ); ?>
700
  </td>
754
  <table class="content">
755
  <tbody>
756
  <tr>
757
+ <th><?php _e('Social Section Title', 'cmp-coming-soon-maintenance');?></th>
758
  <td>
759
  <fieldset>
760
  <input type="text" name="niteoCS_soc_title" id="niteoCS_soc_title" value="<?php echo esc_attr( $niteoCS_soc_title); ?>" class="regular-text code">
763
  </tr>
764
 
765
  <tr>
766
+ <th><?php _e('Social Media Icons', 'cmp-coming-soon-maintenance');?></th>
767
  <td>
768
  <p class="social-description"><?php _e('Click on Social Icons below to enable Social Media settings.', 'cmp-coming-soon-maintenance');?></p>
769
  <ul class="social-media">
804
  </ul>
805
 
806
  <ul class="social-inputs">
807
+ <li class="social-labels"><span class="label"><?php _e('Position', 'cmp-coming-soon-maintenance');?></span><span class="label"><?php _e('Active', 'cmp-coming-soon-maintenance');?></span><span class="label"><?php _e('Website URL', 'cmp-coming-soon-maintenance');?></span></li>
808
  <?php
809
  foreach ( $socialmedia as $social ) {
810
 
811
  ( $social['hidden'] == '0' ) ? $active = 'active ' : $active = '';
812
 
813
+ ( $social['active'] == '0' ) ? $disabled = ' disabled' : $disabled = '';
814
+
815
+ $url = '';
816
 
817
  switch ( $social['name'] ) {
818
  case 'envelope-o':
843
  $title = ucfirst( $social['name'] );
844
  $url = 'https://'.$social['name'].'.com/profile';
845
  break;
846
+ }
847
+
 
 
848
 
849
+ // if no URL set, change it to default profile
850
+ if ( $social['url'] && $social['url'] !== '' ) {
851
+ $url = $social['url'];
852
+ } ?>
853
 
854
+ <li class="<?php echo esc_attr( $active . $social['name'] );?>">
855
+ <p><i class="fa fa-sort" aria-hidden="true"></i>
856
+ <label for="niteoCS_<?php echo esc_attr( $social['name'] );?>" class="<?php echo esc_attr( $social['name'] );?>"><?php echo esc_html( $title );?></label>
857
+ <input type="text" id="niteoCS_<?php echo esc_attr( $social['name'] );?>" value="<?php echo esc_attr( $url );?>" class="regular-text code <?php echo esc_attr( $social['name'] );?>" data-name="<?php echo esc_attr( $social['name'] );?>"<?php echo $disabled;?>/>
858
+ <input type="checkbox" name="niteoCS_<?php echo esc_attr( $social['name'] );?>_checkbox" id="niteoCS_<?php echo esc_attr( $social['name'] );?>_checkbox" class="<?php echo esc_attr( $social['name'] );?>" data-name="<?php echo esc_attr( $social['name'] );?>"<?php checked( '1', $social['active'] ); ?>/>
859
  </p>
860
  </li>
861
  <?php
949
  <table class="theme-setup">
950
  <tbody>
951
  <tr>
952
+ <th><?php _e('Headings Font', 'cmp-coming-soon-maintenance');?></th>
953
  <td>
954
  <fieldset>
955
+ <label for="niteoCS_font_headings_<?php echo esc_attr( $themeslug );?>"><?php _e('Font Family from ', 'cmp-coming-soon-maintenance');?><a href="https://fonts.google.com" target="_blank">Google Fonts</a></label><br>
956
  <select class="headings-google-font" name ="niteoCS_font_headings_<?php echo esc_attr( $themeslug );?>">
957
  <option value="<?php echo esc_attr( $heading_font['family'] ); ?>" selected="selected"><?php echo esc_html( $heading_font['family'] ); ?></option>
958
  </select>
959
  </fieldset>
960
 
961
  <fieldset>
962
+ <label for="niteoCS_font_headings_variant_<?php echo esc_attr( $themeslug );?>"><?php _e('Variant', 'cmp-coming-soon-maintenance');?></label><br>
963
  <select class="headings-google-font-variant" name ="niteoCS_font_headings_variant_<?php echo esc_attr( $themeslug );?>">
964
  <option value="<?php echo esc_attr( $heading_font['variant'] ); ?>" selected="selected"><?php echo esc_html( $this->cmp_google_variant_title( $heading_font['variant'] ) ); ?></option>
965
  </select>
966
  </fieldset>
967
 
968
  <fieldset>
969
+ <label for="niteoCS_font_headings_size_<?php echo esc_attr( $themeslug );?>"><?php _e('Font Size', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $heading_font['size'] ); ?></span>px</label><br>
970
  <input type="range" name="niteoCS_font_headings_size_<?php echo esc_attr( $themeslug );?>" min="10" max="75" step="1" value="<?php echo esc_attr( $heading_font['size'] ); ?>" data-css="font-size" data-type="heading" />
971
  </fieldset>
972
 
973
  <fieldset>
974
+ <label for="niteoCS_font_headings_spacing_<?php echo esc_attr( $themeslug );?>"><?php _e('Letter Spacing', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $heading_font['spacing'] ); ?></span>px</label><br>
975
  <input type="range" name="niteoCS_font_headings_spacing_<?php echo esc_attr( $themeslug );?>" min="0" max="10" step="0.5" value="<?php echo esc_attr( $heading_font['spacing'] ); ?>" data-css="letter-spacing" data-type="heading" />
976
  </fieldset>
977
 
980
  if ( in_array( $this->cmp_selectedTheme(), $this->cmp_font_animation_themes() ) ) { ?>
981
 
982
  <fieldset>
983
+ <label for="niteoCS_heading_animation_<?php echo esc_attr( $themeslug );?>"><?php _e('Animation', 'cmp-coming-soon-maintenance');?></label><br>
984
  <select name="niteoCS_heading_animation_<?php echo esc_attr( $themeslug );?>" class="heading-animation">
985
  <option value="none" <?php if ( $niteoCS_heading_animation == 'none' ) { echo ' selected="selected"'; } ?>><?php _e('No animation', 'cmp-coming-soon-maintenance');?></option>
986
  <option value="fadeInDown" <?php if ( $niteoCS_heading_animation == 'fadeInDown' ) { echo ' selected="selected"'; } ?>><?php _e('Fade In Down', 'cmp-coming-soon-maintenance');?></option>
996
  </tr>
997
 
998
  <tr>
999
+ <th><?php _e('Content Font', 'cmp-coming-soon-maintenance');?></th>
1000
  <td>
1001
 
1002
  <fieldset>
1003
+ <label for="niteoCS_font_content_<?php echo esc_attr( $themeslug );?>"><?php _e('Select Font Family from ', 'cmp-coming-soon-maintenance');?><a href="https://fonts.google.com" target="_blank">Google Fonts</a></label><br>
1004
 
1005
  <select class="content-google-font" name ="niteoCS_font_content_<?php echo esc_attr( $themeslug );?>">
1006
  <option value="<?php echo esc_attr( $content_font['family'] ); ?>" selected="selected"><?php echo esc_html( $content_font['family'] ); ?></option>
1008
  </fieldset>
1009
 
1010
  <fieldset>
1011
+ <label for="niteoCS_font_content_variant_<?php echo esc_attr( $themeslug );?>"><?php _e('Variant', 'cmp-coming-soon-maintenance');?></label><br>
1012
  <select class="content-google-font-variant" name ="niteoCS_font_content_variant_<?php echo esc_attr( $themeslug );?>">
1013
  <option value="<?php echo esc_attr( $content_font['variant'] ); ?>" selected="selected"><?php echo esc_html( $this->cmp_google_variant_title( $content_font['variant'] ) ); ?></option>
1014
  </select>
1015
  </fieldset>
1016
 
1017
  <fieldset>
1018
+ <label for="niteoCS_font_content_size_<?php echo esc_attr( $themeslug );?>"><?php _e('Font Size', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $content_font['size'] ); ?></span>px</label><br>
1019
  <input type="range" name="niteoCS_font_content_size_<?php echo esc_attr( $themeslug );?>" min="10" max="50" step="1" value="<?php echo esc_attr( $content_font['size'] ); ?>" data-css="font-size" data-type="content" />
1020
  </fieldset>
1021
 
1022
  <fieldset>
1023
+ <label for="niteoCS_font_content_spacing_<?php echo esc_attr( $themeslug );?>"><?php _e('Letter Spacing', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $content_font['spacing'] ); ?></span>px</label><br>
1024
  <input type="range" name="niteoCS_font_content_spacing_<?php echo esc_attr( $themeslug );?>" min="0" max="10" step="0.5" value="<?php echo esc_attr( $content_font['spacing'] ); ?>" data-css="letter-spacing" data-type="content" />
1025
  </fieldset>
1026
 
1027
  <fieldset>
1028
+ <label for="niteoCS_font_content_lineheight_<?php echo esc_attr( $themeslug );?>"><?php _e('Line Height', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $content_font['line-height'] ); ?></span></label><br>
1029
  <input type="range" name="niteoCS_font_content_lineheight_<?php echo esc_attr( $themeslug );?>" min="1.3" max="3" step="0.1" value="<?php echo esc_attr( $content_font['line-height'] ); ?>" data-css="line-height" data-type="content" />
1030
  </fieldset>
1031
  <?php
1033
  if ( in_array( $this->cmp_selectedTheme(), $this->cmp_font_animation_themes() ) ) { ?>
1034
 
1035
  <fieldset>
1036
+ <label for="niteoCS_content_animation_<?php echo esc_attr( $themeslug );?>"><?php _e('Select Animation', 'cmp-coming-soon-maintenance');?></label><br>
1037
  <select name="niteoCS_content_animation_<?php echo esc_attr( $themeslug );?>" class="content-animation">
1038
  <option value="none" <?php if ( $niteoCS_content_animation == 'none' ) { echo ' selected="selected"'; } ?>><?php _e('No animation', 'cmp-coming-soon-maintenance');?></option>
1039
  <option value="fadeInDown" <?php if ( $niteoCS_content_animation == 'fadeInDown' ) { echo ' selected="selected"'; } ?>><?php _e('Fade In Down', 'cmp-coming-soon-maintenance');?></option>
1068
  <tbody>
1069
 
1070
  <tr>
1071
+ <th><?php _e('Favicon', 'cmp-coming-soon-maintenance');?></th>
1072
  <td>
1073
  <fieldset>
1074
+ <input type="hidden" class="widefat" id="niteoCS-favicon-id" name="niteoCS_favicon_id" value="<?php echo esc_attr( $niteoCS_favicon_id ); ?>" />
1075
  <input id="add-favicon" type="button" class="button" value="Select Favicon" />
1076
 
1077
  <div class="favicon-wrapper">
1087
  </tr>
1088
 
1089
  <tr class="seo-title">
1090
+ <th><?php _e('Header Title', 'cmp-coming-soon-maintenance');?></th>
1091
  <td>
1092
  <fieldset>
1093
  <input type="text" name="niteoCS_title" id="niteoCS_title" value="<?php echo esc_attr( $niteoCS_title); ?>" class="regular-text code">
1096
  </tr>
1097
 
1098
  <tr>
1099
+ <th><?php _e('Description', 'cmp-coming-soon-maintenance');?></th>
1100
  <td>
1101
  <fieldset>
1102
  <textarea name="niteoCS_descr" id="niteoCS_descr" class="code"><?php echo esc_attr( $niteoCS_descr); ?></textarea>
1178
 
1179
  <textarea name="niteoCS_custom_css" rows="20" id="niteoCS_custom_css" class="code"><?php echo esc_attr( $niteoCS_custom_css ); ?></textarea>
1180
 
1181
+ <p class="cmp-submit">
1182
+ <input type="submit" name="submit" class="button cmp-button submit" value="Save All Changes"/>
1183
+ </p>
1184
  </div>
1185
 
1186
 
1187
 
1188
 
1189
+
1190
 
1191
 
1192
  </div> <!-- <div class="cmp-settings-wrapper"> -->
1193
 
 
 
 
 
 
1194
 
 
1195
 
1196
  </div> <!-- <div class="cmp-inputs-wrapper"> -->
1197
 
1198
+ </form>
1199
+
1200
+ <?php
1201
+ // get sidebar with "widgets"
1202
+ if ( file_exists(dirname(__FILE__) . '/cmp-sidebar.php') ) {
1203
+ require (dirname(__FILE__) . '/cmp-sidebar.php');
1204
+ }
1205
+
1206
+ ?>
1207
+
1208
  </div> <!-- <div id="wrap"> -->
1209
 
css/cmp-admin-head.css CHANGED
@@ -21,7 +21,7 @@
21
  #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-wrapper {
22
  display: inline-block;
23
  }
24
- #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle {
25
  cursor: pointer;
26
  display: inline-block;
27
  position: relative;
@@ -35,7 +35,7 @@
35
  border: none;
36
  }
37
 
38
- #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle:before, #wpadminbar .toggle:after {
39
  position: absolute;
40
  line-height: 32px;
41
  font-size: 11px;
@@ -63,7 +63,7 @@
63
  transform: translateX(0px);
64
  }
65
 
66
- #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-checkbox:checked + .toggle .toggle_handler {
67
  -webkit-transform: translateX(40px);
68
  transform: translateX(40px);
69
  background: #27ae60;
@@ -73,28 +73,28 @@
73
  background: #e74c3c;
74
  }
75
 
76
- #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-wrapper:hover .toggle-checkbox:checked + .toggle .toggle_handler {
77
  background: #2ecc71;
78
  }
79
 
80
 
81
- #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle:before {
82
  content: "OFF";
83
  left: 15px;
84
  color: #ffffff;
85
  }
86
 
87
- #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle:after {
88
  content: "ON";
89
  right: 16px;
90
  color: #ffffff;
91
  }
92
 
93
- #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-checkbox:checked + .toggle:before {
94
  color: #ffffff;
95
  }
96
 
97
- #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-checkbox:checked + .toggle:after {
98
  color: #ffffff;
99
  }
100
 
21
  #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-wrapper {
22
  display: inline-block;
23
  }
24
+ #wpadminbar #wp-admin-bar-cmp-admin-notice #cmp-toggle-adminbar {
25
  cursor: pointer;
26
  display: inline-block;
27
  position: relative;
35
  border: none;
36
  }
37
 
38
+ #wpadminbar #wp-admin-bar-cmp-admin-notice #cmp-toggle-adminbar:before, #wpadminbar #cmp-toggle-adminbar:after {
39
  position: absolute;
40
  line-height: 32px;
41
  font-size: 11px;
63
  transform: translateX(0px);
64
  }
65
 
66
+ #wpadminbar #wp-admin-bar-cmp-admin-notice #cmp-toggle-adminbar.status-1 .toggle_handler {
67
  -webkit-transform: translateX(40px);
68
  transform: translateX(40px);
69
  background: #27ae60;
73
  background: #e74c3c;
74
  }
75
 
76
+ #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-wrapper:hover #cmp-toggle-adminbar.status-1 .toggle_handler {
77
  background: #2ecc71;
78
  }
79
 
80
 
81
+ #wpadminbar #wp-admin-bar-cmp-admin-notice #cmp-toggle-adminbar:before {
82
  content: "OFF";
83
  left: 15px;
84
  color: #ffffff;
85
  }
86
 
87
+ #wpadminbar #wp-admin-bar-cmp-admin-notice #cmp-toggle-adminbar:after {
88
  content: "ON";
89
  right: 16px;
90
  color: #ffffff;
91
  }
92
 
93
+ #wpadminbar #wp-admin-bar-cmp-admin-notice #cmp-toggle-adminbar.status-1:before {
94
  color: #ffffff;
95
  }
96
 
97
+ #wpadminbar #wp-admin-bar-cmp-admin-notice #cmp-toggle-adminbar.status-1:after {
98
  color: #ffffff;
99
  }
100
 
css/cmp-settings-style.css CHANGED
@@ -37,7 +37,6 @@
37
  border-radius: 4px;
38
  line-height: 2.5em;
39
  height: 2.5em;
40
- -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
41
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03)
42
  }
43
 
@@ -76,7 +75,6 @@
76
  border-radius: 50%;
77
  border: 1px solid #d4d4d4;
78
  cursor: pointer;
79
- -webkit-transition: .3s ease-in-out;
80
  transition: .3s ease-in-out
81
  }
82
 
@@ -155,7 +153,8 @@
155
  width: 100%;
156
  }
157
 
158
- .cmp-coming-soon-maintenance .cmp-inputs-wrapper {
 
159
  display: inline-block;
160
  max-width: 920px;
161
  min-width: 920px
@@ -244,7 +243,8 @@
244
  .cmp-coming-soon-maintenance .table-wrapper th {
245
  vertical-align: top;
246
  width: 180px;
247
- text-align: left
 
248
  }
249
 
250
  .cmp-coming-soon-maintenance #delete-banner,
@@ -254,6 +254,10 @@
254
  display: none
255
  }
256
 
 
 
 
 
257
  .cmp-coming-soon-maintenance .social-media {
258
  margin-top: 0;
259
  margin-bottom: 3em
@@ -273,7 +277,6 @@
273
 
274
  .cmp-coming-soon-maintenance #niteoCS-text-logo {
275
  border: none;
276
- -webkit-box-shadow: none;
277
  box-shadow: none;
278
  font-size: 3em
279
  }
@@ -443,17 +446,21 @@
443
  }
444
 
445
  .cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2) {
 
446
  display: grid;
447
  height: auto;
448
- grid-template-columns: 1fr 1fr 1fr;
449
- grid-template-rows: 1fr auto;
450
- grid-template-areas: "Big Big Big" "small-3 small-2 small-1";
 
 
451
  grid-gap: 10px;
452
  }
453
 
454
  .cmp-coming-soon-maintenance .custom-gallery.gallery-3 {
455
- grid-template-columns: 1fr 1fr!important;
456
- grid-template-areas: "Big Big" "small-2 small-1"!important;
 
457
 
458
  }
459
 
@@ -522,7 +529,6 @@
522
  content: '';
523
  display: block;
524
  padding-top: 56.25%;
525
- -webkit-transition: background-color .1s;
526
  transition: background-color .1s;
527
  border-top-left-radius: 5px;
528
  border-top-right-radius: 5px;
@@ -549,13 +555,11 @@
549
 
550
  .cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected) {
551
  opacity: 0;
552
- -webkit-transition: opacity .1s, background-color .1s;
553
  transition: opacity .1s, background-color .1s;
554
  }
555
 
556
  .cmp-coming-soon-maintenance .theme-wrapper:hover .hide {
557
  opacity: 1;
558
- -webkit-transition: opacity .1s, background-color .1s;
559
  transition: opacity .1s, background-color .1s;
560
  }
561
 
@@ -602,7 +606,6 @@
602
  color: #fff!important;
603
  -moz-appearance: none;
604
  -webkit-appearance: none;
605
- -webkit-transition: background-color .5s;
606
  transition: background-color .5s;
607
  border: none!important;
608
  box-shadow: none;
@@ -616,15 +619,13 @@
616
  background-color: #c0392b;
617
  color: #fff;
618
  border: none;
619
- -webkit-transition: background-color .5s;
620
  transition: background-color .5s
621
  }
622
 
623
  .cmp-coming-soon-maintenance .theme-wrapper a.button:visited,
624
  .cmp-coming-soon-maintenance .theme-wrapper a.button:focus {
625
  background: transparent;
626
- -webkit-box-shadow: none;
627
- box-shadow: none;
628
  }
629
 
630
  .cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase {
@@ -654,8 +655,7 @@
654
  background: transparent;
655
  border: none;
656
  outline: none;
657
- -webkit-box-shadow: none;
658
- box-shadow: none;
659
  }
660
 
661
  .cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before {
@@ -752,7 +752,6 @@
752
  }
753
 
754
  .cmp-coming-soon-maintenance .theme-overlay .screenshot {
755
- -webkit-transition: background-image .2s ease-in-out;
756
  transition: background-image .2s ease-in-out
757
  }
758
 
@@ -770,7 +769,6 @@
770
  background-color: #000;
771
  line-height: 40px;
772
  opacity: .7;
773
- -webkit-transition: opacity .5s;
774
  transition: opacity .5s
775
  }
776
 
@@ -816,7 +814,7 @@
816
  }
817
 
818
  .cmp-coming-soon-maintenance .cmp-status {
819
- margin-bottom: 3em
820
  }
821
 
822
  .cmp-coming-soon-maintenance .toggle {
@@ -826,7 +824,6 @@
826
  font-weight: 600;
827
  background: 0 0;
828
  border: 2px solid #f1f1f1;
829
- -webkit-transition: all .2s ease-in-out;
830
  transition: all .2s ease-in-out;
831
  border-radius: 15px
832
  }
@@ -837,7 +834,6 @@
837
  line-height: 30px;
838
  font-size: 14px;
839
  z-index: 2;
840
- -webkit-transition: all .2s ease-in-out;
841
  transition: all .2s ease-in-out
842
  }
843
 
@@ -854,7 +850,6 @@
854
  height: 24px;
855
  top: 3px;
856
  left: 5px;
857
- -webkit-transition: all .2s ease-in-out;
858
  transition: all .2s ease-in-out;
859
  -webkit-transform: translateX(0);
860
  transform: translateX(0);
@@ -927,7 +922,11 @@
927
  margin-left: 1em;
928
  padding-top: 0;
929
  vertical-align: top;
930
- text-align: center
 
 
 
 
931
  }
932
 
933
  .cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget {
@@ -973,11 +972,13 @@
973
  }
974
 
975
  @media screen and (max-width:1450px) {
976
- .cmp-coming-soon-maintenance .cmp-inputs-wrapper {
 
977
  min-width: 70%
978
  }
979
  .cmp-coming-soon-maintenance .cmp-sidebar-wrapper {
980
- width: calc(30% - 2em + 7px)
 
981
  }
982
  .cmp-coming-soon-maintenance .theme-wrapper,
983
  .cmp-coming-soon-maintenance .theme-wrapper.premium {
@@ -986,7 +987,8 @@
986
  }
987
 
988
  @media screen and (max-width:1270px) {
989
- .cmp-coming-soon-maintenance .cmp-inputs-wrapper {
 
990
  min-width: 100%
991
  }
992
  }
37
  border-radius: 4px;
38
  line-height: 2.5em;
39
  height: 2.5em;
 
40
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03)
41
  }
42
 
75
  border-radius: 50%;
76
  border: 1px solid #d4d4d4;
77
  cursor: pointer;
 
78
  transition: .3s ease-in-out
79
  }
80
 
153
  width: 100%;
154
  }
155
 
156
+ .cmp-coming-soon-maintenance .cmp-inputs-wrapper,
157
+ .cmp-coming-soon-maintenance #csoptions {
158
  display: inline-block;
159
  max-width: 920px;
160
  min-width: 920px
243
  .cmp-coming-soon-maintenance .table-wrapper th {
244
  vertical-align: top;
245
  width: 180px;
246
+ text-align: left;
247
+ font-weight: 600;
248
  }
249
 
250
  .cmp-coming-soon-maintenance #delete-banner,
254
  display: none
255
  }
256
 
257
+ .cmp-coming-soon-maintenance .social-inputs li.social-labels {
258
+ display: block;
259
+ }
260
+
261
  .cmp-coming-soon-maintenance .social-media {
262
  margin-top: 0;
263
  margin-bottom: 3em
277
 
278
  .cmp-coming-soon-maintenance #niteoCS-text-logo {
279
  border: none;
 
280
  box-shadow: none;
281
  font-size: 3em
282
  }
446
  }
447
 
448
  .cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2) {
449
+ display: -ms-grid;
450
  display: grid;
451
  height: auto;
452
+ -ms-grid-columns: 1fr 1fr 1fr;
453
+ grid-template-columns: 1fr 1fr 1fr;
454
+ -ms-grid-rows: 1fr auto;
455
+ grid-template-rows: 1fr auto;
456
+ grid-template-areas: "Big Big Big" "small-3 small-2 small-1";
457
  grid-gap: 10px;
458
  }
459
 
460
  .cmp-coming-soon-maintenance .custom-gallery.gallery-3 {
461
+ -ms-grid-columns: 1fr 1fr!important;
462
+ grid-template-columns: 1fr 1fr!important;
463
+ grid-template-areas: "Big Big" "small-2 small-1"!important;
464
 
465
  }
466
 
529
  content: '';
530
  display: block;
531
  padding-top: 56.25%;
 
532
  transition: background-color .1s;
533
  border-top-left-radius: 5px;
534
  border-top-right-radius: 5px;
555
 
556
  .cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected) {
557
  opacity: 0;
 
558
  transition: opacity .1s, background-color .1s;
559
  }
560
 
561
  .cmp-coming-soon-maintenance .theme-wrapper:hover .hide {
562
  opacity: 1;
 
563
  transition: opacity .1s, background-color .1s;
564
  }
565
 
606
  color: #fff!important;
607
  -moz-appearance: none;
608
  -webkit-appearance: none;
 
609
  transition: background-color .5s;
610
  border: none!important;
611
  box-shadow: none;
619
  background-color: #c0392b;
620
  color: #fff;
621
  border: none;
 
622
  transition: background-color .5s
623
  }
624
 
625
  .cmp-coming-soon-maintenance .theme-wrapper a.button:visited,
626
  .cmp-coming-soon-maintenance .theme-wrapper a.button:focus {
627
  background: transparent;
628
+ box-shadow: none;
 
629
  }
630
 
631
  .cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase {
655
  background: transparent;
656
  border: none;
657
  outline: none;
658
+ box-shadow: none;
 
659
  }
660
 
661
  .cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before {
752
  }
753
 
754
  .cmp-coming-soon-maintenance .theme-overlay .screenshot {
 
755
  transition: background-image .2s ease-in-out
756
  }
757
 
769
  background-color: #000;
770
  line-height: 40px;
771
  opacity: .7;
 
772
  transition: opacity .5s
773
  }
774
 
814
  }
815
 
816
  .cmp-coming-soon-maintenance .cmp-status {
817
+ margin-bottom: 1em
818
  }
819
 
820
  .cmp-coming-soon-maintenance .toggle {
824
  font-weight: 600;
825
  background: 0 0;
826
  border: 2px solid #f1f1f1;
 
827
  transition: all .2s ease-in-out;
828
  border-radius: 15px
829
  }
834
  line-height: 30px;
835
  font-size: 14px;
836
  z-index: 2;
 
837
  transition: all .2s ease-in-out
838
  }
839
 
850
  height: 24px;
851
  top: 3px;
852
  left: 5px;
 
853
  transition: all .2s ease-in-out;
854
  -webkit-transform: translateX(0);
855
  transform: translateX(0);
922
  margin-left: 1em;
923
  padding-top: 0;
924
  vertical-align: top;
925
+ text-align: center;
926
+ }
927
+
928
+ .content-settings .cmp-sidebar-wrapper {
929
+ margin-top: 58px;
930
  }
931
 
932
  .cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget {
972
  }
973
 
974
  @media screen and (max-width:1450px) {
975
+ .cmp-coming-soon-maintenance .cmp-inputs-wrapper,
976
+ .cmp-coming-soon-maintenance #csoptions {
977
  min-width: 70%
978
  }
979
  .cmp-coming-soon-maintenance .cmp-sidebar-wrapper {
980
+ width: calc(30% - 2em + 7px);
981
+ margin: 0;
982
  }
983
  .cmp-coming-soon-maintenance .theme-wrapper,
984
  .cmp-coming-soon-maintenance .theme-wrapper.premium {
987
  }
988
 
989
  @media screen and (max-width:1270px) {
990
+ .cmp-coming-soon-maintenance .cmp-inputs-wrapper,
991
+ .cmp-coming-soon-maintenance #csoptions {
992
  min-width: 100%
993
  }
994
  }
css/cmp-settings-style.min.css CHANGED
@@ -1 +1 @@
1
- .cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:1em}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.03);box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:5px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}​.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance #niteoCS_countdown_redirect,.cmp-coming-soon-maintenance #niteoCS_countdown_text,.cmp-coming-soon-maintenance .table-wrapper.content,.cmp-coming-soon-maintenance .table-wrapper.install,.cmp-coming-soon-maintenance .table-wrapper.seo,.cmp-coming-soon-maintenance .table-wrapper.theme-setup{display:none}.cmp-coming-soon-maintenance .wp-upload-form.cmp{padding:4em;display:block}.cmp-coming-soon-maintenance .cmp-status legend{width:95%;padding:10px;cursor:pointer}.cmp-coming-soon-maintenance .cmp-status .active{background-color:#ddd}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{margin-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;-webkit-box-shadow:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.5em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .unsplash-feed{display:none}.cmp-coming-soon-maintenance .social-inputs p{position:relative;padding-left:50px;height:50px}.cmp-coming-soon-maintenance .social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.cmp-coming-soon-maintenance .theme-details,.cmp-coming-soon-maintenance .toggle{cursor:pointer}.cmp-coming-soon-maintenance .social-inputs label{padding-left:100px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}.cmp-coming-soon-maintenance .color-preview,.cmp-coming-soon-maintenance .gradient-preview,.cmp-coming-soon-maintenance .pattern-wrapper{position:relative;background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.cmp-coming-soon-maintenance .theme-overlay .screenshot,.cmp-coming-soon-maintenance .thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.cmp-coming-soon-maintenance .video-local-wrapper,.cmp-coming-soon-maintenance .video-yt-wrapper{position:relative;width:100%;margin-top:1em}.cmp-coming-soon-maintenance #add-pattern{margin-bottom:1em}.cmp-coming-soon-maintenance .info{font-size:12px}.cmp-coming-soon-maintenance .nav-tab i{padding-right:3px}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper{margin:1em 0}.cmp-coming-soon-maintenance .favicon-wrapper img,.cmp-coming-soon-maintenance .logo-wrapper img{background-color:#efefef;padding:1em}.cmp-coming-soon-maintenance .favicon-wrapper img{max-width:32px}.cmp-coming-soon-maintenance .background-media img,.cmp-coming-soon-maintenance .logo-wrapper img{max-width:100%;width:100%;vertical-align:top}.cmp-coming-soon-maintenance .background-thumb-wrapper,.cmp-coming-soon-maintenance .video-thumb-wrapper{position:relative;margin:1em 0;overflow:hidden}.cmp-coming-soon-maintenance .thumbnail-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2){display:grid;height:auto;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr auto;grid-template-areas:"Big Big Big" "small-3 small-2 small-1";grid-gap:10px}.cmp-coming-soon-maintenance .custom-gallery.gallery-3{grid-template-columns:1fr 1fr!important;grid-template-areas:"Big Big" "small-2 small-1"!important}.cmp-coming-soon-maintenance .gallery-2 .big-thumb{margin-bottom:1em}.cmp-coming-soon-maintenance .big-thumb{grid-area:Big/Big;overflow:hidden;position:relative}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden}.cmp-coming-soon-maintenance #heading-example{border-bottom:none;line-height:1.5;padding:0}.cmp-coming-soon-maintenance .font-selector td:first-of-type{padding-bottom:2em}.cmp-coming-soon-maintenance .font-selector fieldset{padding:.5em 0}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;-webkit-transition:background-color .1s;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;-webkit-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-webkit-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px 10px 5px 5px;height:2em;background:#656565;line-height:2em;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#27ae60}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-webkit-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#c0392b;color:#fff;border:none;-webkit-transition:background-color .5s;transition:background-color .5s}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;-webkit-box-shadow:none;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;width:180px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;-webkit-box-shadow:none;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#32b2ff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{-webkit-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-webkit-transition:opacity .5s;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:3em}.cmp-coming-soon-maintenance .toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle_handler{background:#e74c3c}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:22px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#23282d}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:26px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}@media screen and (max-width:1450px){.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:70%}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{width:calc(30% - 2em + 7px)}.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{width:calc(50% - 3em - 5px)}}@media screen and (max-width:1270px){.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:100%}}@media screen and (max-width:1110px){.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.cmp-coming-soon-maintenance .table-wrapper th{display:block}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:1em}}@media screen and (max-width:1024px){.cmp-coming-soon-maintenance .table-wrapper table{width:100%}.cmp-coming-soon-maintenance .table-wrapper th{width:140px}}@media screen and (max-width:782px){.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;margin-bottom:1em!important}.cmp-coming-soon-maintenance .theme-overlay .theme-info,.cmp-coming-soon-maintenance .theme-overlay .theme-screenshots{width:100%;float:none}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{font-size:13px}}@media screen and (max-width:560px){.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:50px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:105px}.cmp-coming-soon-maintenance .social-inputs p i{top:22px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{top:28px;left:53px}.cmp-coming-soon-maintenance .social-inputs label{padding-left:55px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
1
+ .cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:1em}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:5px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;transition:.3s ease-in-out}​.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance #niteoCS_countdown_redirect,.cmp-coming-soon-maintenance #niteoCS_countdown_text,.cmp-coming-soon-maintenance .table-wrapper.content,.cmp-coming-soon-maintenance .table-wrapper.install,.cmp-coming-soon-maintenance .table-wrapper.seo,.cmp-coming-soon-maintenance .table-wrapper.theme-setup{display:none}.cmp-coming-soon-maintenance .wp-upload-form.cmp{padding:4em;display:block}.cmp-coming-soon-maintenance .cmp-status legend{width:95%;padding:10px;cursor:pointer}.cmp-coming-soon-maintenance .cmp-status .active{background-color:#ddd}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{margin-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left;font-weight:600}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-inputs li.social-labels{display:block}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.5em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .unsplash-feed{display:none}.cmp-coming-soon-maintenance .social-inputs p{position:relative;padding-left:50px;height:50px}.cmp-coming-soon-maintenance .social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.cmp-coming-soon-maintenance .theme-details,.cmp-coming-soon-maintenance .toggle{cursor:pointer}.cmp-coming-soon-maintenance .social-inputs label{padding-left:100px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}.cmp-coming-soon-maintenance .color-preview,.cmp-coming-soon-maintenance .gradient-preview,.cmp-coming-soon-maintenance .pattern-wrapper{position:relative;background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.cmp-coming-soon-maintenance .theme-overlay .screenshot,.cmp-coming-soon-maintenance .thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.cmp-coming-soon-maintenance .video-local-wrapper,.cmp-coming-soon-maintenance .video-yt-wrapper{position:relative;width:100%;margin-top:1em}.cmp-coming-soon-maintenance #add-pattern{margin-bottom:1em}.cmp-coming-soon-maintenance .info{font-size:12px}.cmp-coming-soon-maintenance .nav-tab i{padding-right:3px}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper{margin:1em 0}.cmp-coming-soon-maintenance .favicon-wrapper img,.cmp-coming-soon-maintenance .logo-wrapper img{background-color:#efefef;padding:1em}.cmp-coming-soon-maintenance .favicon-wrapper img{max-width:32px}.cmp-coming-soon-maintenance .background-media img,.cmp-coming-soon-maintenance .logo-wrapper img{max-width:100%;width:100%;vertical-align:top}.cmp-coming-soon-maintenance .background-thumb-wrapper,.cmp-coming-soon-maintenance .video-thumb-wrapper{position:relative;margin:1em 0;overflow:hidden}.cmp-coming-soon-maintenance .thumbnail-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2){display:-ms-grid;display:grid;height:auto;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;-ms-grid-rows:1fr auto;grid-template-rows:1fr auto;grid-template-areas:"Big Big Big" "small-3 small-2 small-1";grid-gap:10px}.cmp-coming-soon-maintenance .custom-gallery.gallery-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"Big Big" "small-2 small-1"!important}.cmp-coming-soon-maintenance .gallery-2 .big-thumb{margin-bottom:1em}.cmp-coming-soon-maintenance .big-thumb{grid-area:Big/Big;overflow:hidden;position:relative}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden}.cmp-coming-soon-maintenance #heading-example{border-bottom:none;line-height:1.5;padding:0}.cmp-coming-soon-maintenance .font-selector td:first-of-type{padding-bottom:2em}.cmp-coming-soon-maintenance .font-selector fieldset{padding:.5em 0}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px 10px 5px 5px;height:2em;background:#656565;line-height:2em;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#27ae60}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#c0392b;color:#fff;border:none;transition:background-color .5s}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;width:180px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#32b2ff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{-webkit-transition:all .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:1em}.cmp-coming-soon-maintenance .toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;transition:all .2s ease-in-out;-webkit-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle_handler{background:#e74c3c}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:22px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#23282d}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:26px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.content-settings .cmp-sidebar-wrapper{margin-top:58px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}@media screen and (max-width:1450px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:70%}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{width:calc(30% - 2em + 7px);margin:0}.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{width:calc(50% - 3em - 5px)}}@media screen and (max-width:1270px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:100%}}@media screen and (max-width:1110px){.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.cmp-coming-soon-maintenance .table-wrapper th{display:block}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:1em}}@media screen and (max-width:1024px){.cmp-coming-soon-maintenance .table-wrapper table{width:100%}.cmp-coming-soon-maintenance .table-wrapper th{width:140px}}@media screen and (max-width:782px){.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;margin-bottom:1em!important}.cmp-coming-soon-maintenance .theme-overlay .theme-info,.cmp-coming-soon-maintenance .theme-overlay .theme-screenshots{width:100%;float:none}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{font-size:13px}}@media screen and (max-width:560px){.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:50px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:105px}.cmp-coming-soon-maintenance .social-inputs p i{top:22px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{top:28px;left:53px}.cmp-coming-soon-maintenance .social-inputs label{padding-left:55px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
inc/class-cmp-render_html.php CHANGED
@@ -663,7 +663,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
663
 
664
  httpRequest.open(formMethod, ajaxurl, true);
665
  httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
666
- httpRequest.send('action=niteo_subscribe&check=true&form_honeypot=&email=' + emailInput.value + '&firstname=' + firstname + '&lastname=' + lastname);
667
  }
668
 
669
  selectButton.onclick = function(){ // If clicked on the button.
663
 
664
  httpRequest.open(formMethod, ajaxurl, true);
665
  httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
666
+ httpRequest.send('action=niteo_subscribe&ajax=true&form_honeypot=&email=' + emailInput.value + '&firstname=' + firstname + '&lastname=' + lastname);
667
  }
668
 
669
  selectButton.onclick = function(){ // If clicked on the button.
inc/class-cmp-render_settings.php CHANGED
@@ -32,8 +32,7 @@ if ( ! class_exists( 'cmp_render_settings' ) ) {
32
 
33
  <tr><th>
34
  <p class="cmp-submit">
35
- <?php wp_nonce_field('save_options','save_options_field'); ?>
36
- <input type="submit" name="submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
37
  </p>
38
  </th></tr>
39
 
32
 
33
  <tr><th>
34
  <p class="cmp-submit">
35
+ <input type="submit" name="submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>"/>
 
36
  </p>
37
  </th></tr>
38
 
inc/settings/settings-background.php CHANGED
@@ -94,7 +94,7 @@ $gradient_array = array(
94
  <!-- CUSTOM BACKGROUND -->
95
  <fieldset class="background-type-switch custom_banner x0">
96
 
97
- <input type="hidden" class="widefat" id="niteoCS-images-id" name="niteoCS_banner_id_<?php echo esc_attr( $themeslug );?>" type="text" value="<?php echo esc_attr( $niteoCS_banner_custom_id ); ?>" />
98
 
99
  <input id="add-images" type="button" class="button" value="Media Library" />
100
 
@@ -168,26 +168,28 @@ $gradient_array = array(
168
 
169
  <p class="unsplash-feed" id="unsplash-feed-0">
170
  <label for="niteoCS_unsplash_0_<?php echo esc_attr( $themeslug );?>"><?php _e('Enter Unsplash Photo URL or Unsplash Photo ID', 'cmp-coming-soon-maintenance');?></label>
171
- <input type="text" class="widefat" id="niteoCS-unsplash-0" name="niteoCS_unsplash_0_<?php echo esc_attr( $themeslug );?>" type="text" value="<?php echo esc_attr( $niteoCS_unsplash_0 ); ?>" />
172
  </p>
173
 
174
  <p class="unsplash-feed" id="unsplash-feed-2">
175
  <label for="niteoCS_unsplash_2_<?php echo esc_attr( $themeslug );?>"><?php printf(__('Enter <a href="%s">Unsplash Collection</a> URL or Collection ID.', 'cmp-coming-soon-maintenance'), 'https://unsplash.com/collections/');?></label>
176
- <input type="text" class="widefat" id="niteoCS-unsplash-2" name="niteoCS_unsplash_2_<?php echo esc_attr( $themeslug );?>" type="text" value="<?php echo esc_attr( $niteoCS_unsplash_2 ); ?>" />
177
  </p>
178
 
179
- <p><div class="unsplash-feed" id="unsplash-feed-3">
180
  <label for="niteoCS_unsplash_3_<?php echo esc_attr( $themeslug );?>"><?php _e('Limit photos to specific keyword (fashion, nature, technology..)', 'cmp-coming-soon-maintenance');?></label>
181
- <input type="text" class="widefat" id="niteoCS-unsplash-3" name="niteoCS_unsplash_3_<?php echo esc_attr( $themeslug );?>" type="text" value="<?php echo esc_attr( $niteoCS_unsplash_3 ); ?>" />
182
 
183
  <br><br>
184
 
185
  <input type="checkbox" name="niteoCS_unsplash_feat_<?php echo esc_attr( $themeslug );?>" id="niteoCS_unsplash_feat" value="1" <?php checked( '1', get_option( 'niteoCS_unsplash_feat['.esc_attr( $themeslug ).']', '0' ) ); ?> class="regular-text code"><label for="niteoCS_unsplash_feat"><?php _e('Only Unsplash Featured Photos', 'cmp-coming-soon-maintenance');?></label>
186
- </div></p>
 
 
187
 
188
  <p class="unsplash-feed" id="unsplash-feed-1">
189
  <label for="niteoCS_unsplash_1_<?php echo esc_attr( $themeslug );?>"><?php _e('Enter Unsplash User ID', 'cmp-coming-soon-maintenance');?></label>
190
- <input type="text" class="widefat" id="niteoCS-unsplash-1" name="niteoCS_unsplash_1_<?php echo esc_attr( $themeslug );?>" type="text" value="<?php echo esc_attr( $niteoCS_unsplash_1 ); ?>" placeholder="@"/>
191
  </p>
192
 
193
  <button id="test-unsplash" class="button" data-security="<?php echo esc_attr( $ajax_nonce );?>"><?php _e('Display Unsplash Photo', 'cmp-coming-soon-maintenance');?></button>
@@ -217,19 +219,19 @@ $gradient_array = array(
217
 
218
  <p class="banner-video-source youtube">
219
  <label for="niteoCS_youtube_url_<?php echo esc_attr( $themeslug );?>"><?php _e('Enter Youtube URL', 'cmp-coming-soon-maintenance');?></label>
220
- <input type="text" class="widefat" id="niteoCS-youtube-url" name="niteoCS_youtube_url_<?php echo esc_attr( $themeslug );?>" type="text" value="<?php echo esc_attr( $niteoCS_youtube_url ); ?>" />
221
 
222
  </p>
223
 
224
  <p class="banner-video-source vimeo">
225
  <label for="niteoCS_vimeo_url_<?php echo esc_attr( $themeslug );?>"><?php _e('Enter Vimeo URL', 'cmp-coming-soon-maintenance');?></label>
226
- <input type="text" class="widefat" id="niteoCS-vimeo-url" name="niteoCS_vimeo_url_<?php echo esc_attr( $themeslug );?>" type="text" value="<?php echo esc_attr( $niteoCS_vimeo_url ); ?>" />
227
  </p>
228
 
229
  <p class="banner-video-source local">
230
  <label for="niteoCS_file_url_<?php echo esc_attr( $themeslug );?>"><?php _e('Select or Upload custom Video file', 'cmp-coming-soon-maintenance');?></label>
231
  <input id="add-video-local" type="button" class="button" value="Media Library"/>
232
- <input type="hidden" class="widefat" id="niteoCS-video-local-id" name="niteoCS_video_file_url<?php echo esc_attr( $themeslug );?>" type="text" value="<?php echo esc_attr( $niteoCS_video_file_url ); ?>" data-url="<?php echo esc_url( wp_get_attachment_url( $niteoCS_video_file_url ) ); ?>"/>
233
  </p>
234
 
235
  <!-- Local video image -->
@@ -257,7 +259,7 @@ $gradient_array = array(
257
  <div class="banner-video-source youtube local">
258
 
259
  <p><?php _e('Video backgrounds doesn`t work on mobile devices therefore only thumbnail video image will be displayed on mobile devices. Upload custom thumbnail image by pressing button below. ', 'cmp-coming-soon-maintenance');?></p>
260
- <input type="hidden" class="widefat" id="niteoCS-video-thumb-id" name="niteoCS_video_thumb_<?php echo esc_attr( $themeslug );?>" type="text" value="<?php echo esc_attr( $niteoCS_video_thumb ); ?>" />
261
  <input id="add-video-thumb" type="button" class="button" value="<?php _e('Media Library', 'cmp-coming-soon-maintenance');?>" /><br><br>
262
 
263
  <div class="video-thumb-wrapper background-thumb-wrapper">
@@ -290,7 +292,7 @@ $gradient_array = array(
290
  <option value="custom" <?php selected( 'custom', $niteoCS_banner_pattern ); ?>><?php _e('Custom Pattern...', 'cmp-coming-soon-maintenance');?></option>
291
  </select><br>
292
 
293
- <input type="hidden" class="widefat" id="niteoCS-pattern-id" name="niteoCS_banner_pattern_custom_<?php echo esc_attr( $themeslug );?>" type="text" value="<?php echo esc_attr( $niteoCS_banner_pattern_custom ); ?>" />
294
 
295
  <input id="add-pattern" type="button" class="button" value="Media Library" style="display:<?php echo ( $niteoCS_banner_pattern == 'custom' ) ? 'block' : 'none'?>;"/>
296
 
@@ -344,7 +346,7 @@ $gradient_array = array(
344
 
345
  <label for="unsplash_feed_<?php echo esc_attr( $themeslug );?>"><?php _e('Select Background Overlay', 'cmp-coming-soon-maintenance');?></label><br>
346
 
347
- <select name="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>" class="background-overlay">
348
 
349
  <option value="solid-color" <?php selected( 'solid-color', $overlay ); ?>><?php _e('Solid Color', 'cmp-coming-soon-maintenance');?></option>
350
 
@@ -393,17 +395,16 @@ $gradient_array = array(
393
  </p>
394
 
395
  </fieldset>
396
- </fieldset>
397
 
398
  <fieldset class="background-overlay solid-color gradient">
399
  <label for="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_opacity"><?php _e('Background Overlay Opacity', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $overlay_opa ); ?></span></label><br>
400
- <input type="range" class="background-overlay-opacity" name="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_opacity" min="0" max="1" step="0.1"value="<?php echo esc_attr( $overlay_opa ); ?>" />
401
  </fieldset>
402
 
403
 
404
  <fieldset class="background-effect blur">
405
 
406
- <label for="niteoCS_effect_blur_<?php echo esc_attr( $themeslug );?>"><?php _e('Background Blur Amount', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $effect_blur ); ?></span>px</label></br>
407
  <input type="range" class="blur-range" name="niteoCS_effect_blur_<?php echo esc_attr( $themeslug );?>" min="0.0" max="10" step="0.5" value="<?php echo esc_attr( $effect_blur ); ?>" />
408
  </fieldset>
409
 
94
  <!-- CUSTOM BACKGROUND -->
95
  <fieldset class="background-type-switch custom_banner x0">
96
 
97
+ <input type="hidden" class="widefat" id="niteoCS-images-id" name="niteoCS_banner_id_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_banner_custom_id ); ?>" />
98
 
99
  <input id="add-images" type="button" class="button" value="Media Library" />
100
 
168
 
169
  <p class="unsplash-feed" id="unsplash-feed-0">
170
  <label for="niteoCS_unsplash_0_<?php echo esc_attr( $themeslug );?>"><?php _e('Enter Unsplash Photo URL or Unsplash Photo ID', 'cmp-coming-soon-maintenance');?></label>
171
+ <input type="text" class="widefat" id="niteoCS-unsplash-0" name="niteoCS_unsplash_0_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_0 ); ?>" />
172
  </p>
173
 
174
  <p class="unsplash-feed" id="unsplash-feed-2">
175
  <label for="niteoCS_unsplash_2_<?php echo esc_attr( $themeslug );?>"><?php printf(__('Enter <a href="%s">Unsplash Collection</a> URL or Collection ID.', 'cmp-coming-soon-maintenance'), 'https://unsplash.com/collections/');?></label>
176
+ <input type="text" class="widefat" id="niteoCS-unsplash-2" name="niteoCS_unsplash_2_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_2 ); ?>" />
177
  </p>
178
 
179
+ <div class="unsplash-feed" id="unsplash-feed-3">
180
  <label for="niteoCS_unsplash_3_<?php echo esc_attr( $themeslug );?>"><?php _e('Limit photos to specific keyword (fashion, nature, technology..)', 'cmp-coming-soon-maintenance');?></label>
181
+ <input type="text" class="widefat" id="niteoCS-unsplash-3" name="niteoCS_unsplash_3_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_3 ); ?>" />
182
 
183
  <br><br>
184
 
185
  <input type="checkbox" name="niteoCS_unsplash_feat_<?php echo esc_attr( $themeslug );?>" id="niteoCS_unsplash_feat" value="1" <?php checked( '1', get_option( 'niteoCS_unsplash_feat['.esc_attr( $themeslug ).']', '0' ) ); ?> class="regular-text code"><label for="niteoCS_unsplash_feat"><?php _e('Only Unsplash Featured Photos', 'cmp-coming-soon-maintenance');?></label>
186
+ </div>
187
+
188
+ <br>
189
 
190
  <p class="unsplash-feed" id="unsplash-feed-1">
191
  <label for="niteoCS_unsplash_1_<?php echo esc_attr( $themeslug );?>"><?php _e('Enter Unsplash User ID', 'cmp-coming-soon-maintenance');?></label>
192
+ <input type="text" class="widefat" id="niteoCS-unsplash-1" name="niteoCS_unsplash_1_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_1 ); ?>" placeholder="@"/>
193
  </p>
194
 
195
  <button id="test-unsplash" class="button" data-security="<?php echo esc_attr( $ajax_nonce );?>"><?php _e('Display Unsplash Photo', 'cmp-coming-soon-maintenance');?></button>
219
 
220
  <p class="banner-video-source youtube">
221
  <label for="niteoCS_youtube_url_<?php echo esc_attr( $themeslug );?>"><?php _e('Enter Youtube URL', 'cmp-coming-soon-maintenance');?></label>
222
+ <input type="text" class="widefat" id="niteoCS-youtube-url" name="niteoCS_youtube_url_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_youtube_url ); ?>" />
223
 
224
  </p>
225
 
226
  <p class="banner-video-source vimeo">
227
  <label for="niteoCS_vimeo_url_<?php echo esc_attr( $themeslug );?>"><?php _e('Enter Vimeo URL', 'cmp-coming-soon-maintenance');?></label>
228
+ <input type="text" class="widefat" id="niteoCS-vimeo-url" name="niteoCS_vimeo_url_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_vimeo_url ); ?>" />
229
  </p>
230
 
231
  <p class="banner-video-source local">
232
  <label for="niteoCS_file_url_<?php echo esc_attr( $themeslug );?>"><?php _e('Select or Upload custom Video file', 'cmp-coming-soon-maintenance');?></label>
233
  <input id="add-video-local" type="button" class="button" value="Media Library"/>
234
+ <input type="hidden" class="widefat" id="niteoCS-video-local-id" name="niteoCS_video_file_url<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_video_file_url ); ?>" data-url="<?php echo esc_url( wp_get_attachment_url( $niteoCS_video_file_url ) ); ?>"/>
235
  </p>
236
 
237
  <!-- Local video image -->
259
  <div class="banner-video-source youtube local">
260
 
261
  <p><?php _e('Video backgrounds doesn`t work on mobile devices therefore only thumbnail video image will be displayed on mobile devices. Upload custom thumbnail image by pressing button below. ', 'cmp-coming-soon-maintenance');?></p>
262
+ <input type="hidden" class="widefat" id="niteoCS-video-thumb-id" name="niteoCS_video_thumb_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_video_thumb ); ?>" />
263
  <input id="add-video-thumb" type="button" class="button" value="<?php _e('Media Library', 'cmp-coming-soon-maintenance');?>" /><br><br>
264
 
265
  <div class="video-thumb-wrapper background-thumb-wrapper">
292
  <option value="custom" <?php selected( 'custom', $niteoCS_banner_pattern ); ?>><?php _e('Custom Pattern...', 'cmp-coming-soon-maintenance');?></option>
293
  </select><br>
294
 
295
+ <input type="hidden" class="widefat" id="niteoCS-pattern-id" name="niteoCS_banner_pattern_custom_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_banner_pattern_custom ); ?>" />
296
 
297
  <input id="add-pattern" type="button" class="button" value="Media Library" style="display:<?php echo ( $niteoCS_banner_pattern == 'custom' ) ? 'block' : 'none'?>;"/>
298
 
346
 
347
  <label for="unsplash_feed_<?php echo esc_attr( $themeslug );?>"><?php _e('Select Background Overlay', 'cmp-coming-soon-maintenance');?></label><br>
348
 
349
+ <select name="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>" id="unsplash_feed_<?php echo esc_attr( $themeslug );?>" class="background-overlay">
350
 
351
  <option value="solid-color" <?php selected( 'solid-color', $overlay ); ?>><?php _e('Solid Color', 'cmp-coming-soon-maintenance');?></option>
352
 
395
  </p>
396
 
397
  </fieldset>
 
398
 
399
  <fieldset class="background-overlay solid-color gradient">
400
  <label for="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_opacity"><?php _e('Background Overlay Opacity', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $overlay_opa ); ?></span></label><br>
401
+ <input type="range" class="background-overlay-opacity" name="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_opacity" min="0" max="1" step="0.1" value="<?php echo esc_attr( $overlay_opa ); ?>" />
402
  </fieldset>
403
 
404
 
405
  <fieldset class="background-effect blur">
406
 
407
+ <label for="niteoCS_effect_blur_<?php echo esc_attr( $themeslug );?>"><?php _e('Background Blur Amount', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $effect_blur ); ?></span>px</label><br>
408
  <input type="range" class="blur-range" name="niteoCS_effect_blur_<?php echo esc_attr( $themeslug );?>" min="0.0" max="10" step="0.5" value="<?php echo esc_attr( $effect_blur ); ?>" />
409
  </fieldset>
410
 
inc/settings/settings-counter.php CHANGED
@@ -1,13 +1,6 @@
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
4
- // check onces and wordpress rights, else DIE
5
- if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
6
- if( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
7
- die('Sorry, but this request is invalid');
8
- }
9
- }
10
-
11
  if (isset($_POST['niteoCS_counter']) && is_numeric($_POST['niteoCS_counter'])) {
12
  update_option('niteoCS_counter', sanitize_text_field($_POST['niteoCS_counter']));
13
  }
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
 
 
 
 
 
 
 
4
  if (isset($_POST['niteoCS_counter']) && is_numeric($_POST['niteoCS_counter'])) {
5
  update_option('niteoCS_counter', sanitize_text_field($_POST['niteoCS_counter']));
6
  }
inc/settings/settings-footer-disabled.php CHANGED
@@ -3,7 +3,7 @@
3
  <table class="content">
4
  <tbody>
5
  <tr>
6
- <th><h4><?php _e('Disabled', 'cmp-coming-soon-maintenance');?></h4></th>
7
  <td>
8
  <p class="no-margin"><?php _e('Footer is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
9
  </td>
3
  <table class="content">
4
  <tbody>
5
  <tr>
6
+ <th><?php _e('Disabled', 'cmp-coming-soon-maintenance');?></th>
7
  <td>
8
  <p class="no-margin"><?php _e('Footer is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
9
  </td>
inc/settings/settings-footer.php CHANGED
@@ -13,7 +13,7 @@ $niteoCS_contact_email = get_option('niteoCS_contact_email['.$themeslug.']', '
13
  <table class="content">
14
  <tbody>
15
  <tr>
16
- <th><h4><?php _e('Copyright', 'cmp-coming-soon-maintenance');?></h4></th>
17
  <td>
18
  <fieldset>
19
  <input type="text" name="niteoCS_copyright" id="niteoCS_copyright" value="<?php echo esc_attr( $this->niteo_sanitize_html($niteoCS_copyright)); ?>" class="regular-text code">
@@ -23,7 +23,7 @@ $niteoCS_contact_email = get_option('niteoCS_contact_email['.$themeslug.']', '
23
 
24
  <?php if ( $this->cmp_selectedTheme() == 'stylo' ): ?>
25
  <tr>
26
- <th><h4><?php _e('Contact Email', 'cmp-coming-soon-maintenance');?></h4></th>
27
  <td>
28
  <fieldset>
29
  <input type="text" name="niteoCS_contact_email_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_email );?>" class="regular-text code">
@@ -64,7 +64,7 @@ $niteoCS_contact_email = get_option('niteoCS_contact_email['.$themeslug.']', '
64
  <table class="theme-setup">
65
 
66
  <tr>
67
- <th><h4><?php _e('Content', 'cmp-coming-soon-maintenance');?></h4></th>
68
  <td>
69
  <fieldset>
70
  <textarea name="niteoCS_contact_content_<?php echo esc_attr($themeslug);?>" rows="5"><?php echo esc_attr( $niteoCS_contact_content ); ?></textarea>
@@ -73,7 +73,7 @@ $niteoCS_contact_email = get_option('niteoCS_contact_email['.$themeslug.']', '
73
  </tr>
74
 
75
  <tr>
76
- <th><h4><?php _e('Contacts Title', 'cmp-coming-soon-maintenance');?></h4></th>
77
  <td>
78
  <fieldset>
79
  <input type="text" name="niteoCS_contact_title_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_title );?>" class="regular-text code">
@@ -82,7 +82,7 @@ $niteoCS_contact_email = get_option('niteoCS_contact_email['.$themeslug.']', '
82
  </tr>
83
 
84
  <tr>
85
- <th><h4><?php _e('Contact Email', 'cmp-coming-soon-maintenance');?></h4></th>
86
  <td>
87
  <fieldset>
88
  <input type="text" name="niteoCS_contact_email_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_email );?>" class="regular-text code">
@@ -91,7 +91,7 @@ $niteoCS_contact_email = get_option('niteoCS_contact_email['.$themeslug.']', '
91
  </tr>
92
 
93
  <tr>
94
- <th><h4><?php _e('Contact Phone', 'cmp-coming-soon-maintenance');?></h4></th>
95
  <td>
96
  <fieldset>
97
  <input type="text" name="niteoCS_contact_phone_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_phone );?>" class="regular-text code">
13
  <table class="content">
14
  <tbody>
15
  <tr>
16
+ <th><?php _e('Copyright', 'cmp-coming-soon-maintenance');?></th>
17
  <td>
18
  <fieldset>
19
  <input type="text" name="niteoCS_copyright" id="niteoCS_copyright" value="<?php echo esc_attr( $this->niteo_sanitize_html($niteoCS_copyright)); ?>" class="regular-text code">
23
 
24
  <?php if ( $this->cmp_selectedTheme() == 'stylo' ): ?>
25
  <tr>
26
+ <th><?php _e('Contact Email', 'cmp-coming-soon-maintenance');?></th>
27
  <td>
28
  <fieldset>
29
  <input type="text" name="niteoCS_contact_email_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_email );?>" class="regular-text code">
64
  <table class="theme-setup">
65
 
66
  <tr>
67
+ <th><?php _e('Content', 'cmp-coming-soon-maintenance');?></th>
68
  <td>
69
  <fieldset>
70
  <textarea name="niteoCS_contact_content_<?php echo esc_attr($themeslug);?>" rows="5"><?php echo esc_attr( $niteoCS_contact_content ); ?></textarea>
73
  </tr>
74
 
75
  <tr>
76
+ <th><?php _e('Contacts Title', 'cmp-coming-soon-maintenance');?></th>
77
  <td>
78
  <fieldset>
79
  <input type="text" name="niteoCS_contact_title_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_title );?>" class="regular-text code">
82
  </tr>
83
 
84
  <tr>
85
+ <th><?php _e('Contact Email', 'cmp-coming-soon-maintenance');?></th>
86
  <td>
87
  <fieldset>
88
  <input type="text" name="niteoCS_contact_email_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_email );?>" class="regular-text code">
91
  </tr>
92
 
93
  <tr>
94
+ <th><?php _e('Contact Phone', 'cmp-coming-soon-maintenance');?></th>
95
  <td>
96
  <fieldset>
97
  <input type="text" name="niteoCS_contact_phone_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_phone );?>" class="regular-text code">
inc/settings/settings-logo.php CHANGED
@@ -36,13 +36,13 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
36
  <td>
37
  <fieldset class="cmp-logo-switch text">
38
  <p>
39
- <input type="text" class="widefat" id="niteoCS-text-logo" name="niteoCS_text_logo_<?php echo esc_attr($themeslug);?>" type="text" placeholder="<?php _e('Click to set..', 'cmp-coming-soon-maintenance');?>" value="<?php echo esc_attr($niteoCS_text_logo); ?>" />
40
  </p>
41
  </fieldset>
42
 
43
  <fieldset class="cmp-logo-switch graphic">
44
 
45
- <input type="hidden" class="widefat" id="niteoCS-logo-id" name="niteoCS_logo_id_<?php echo esc_attr($themeslug);?>" type="text" value="<?php echo esc_attr( $niteoCS_logo_id ); ?>" />
46
  <input id="add-logo" type="button" class="button" value="Select Logo" />
47
 
48
  <div class="logo-wrapper">
36
  <td>
37
  <fieldset class="cmp-logo-switch text">
38
  <p>
39
+ <input type="text" class="widefat" id="niteoCS-text-logo" name="niteoCS_text_logo_<?php echo esc_attr($themeslug);?>" placeholder="<?php _e('Click to set..', 'cmp-coming-soon-maintenance');?>" value="<?php echo esc_attr($niteoCS_text_logo); ?>" />
40
  </p>
41
  </fieldset>
42
 
43
  <fieldset class="cmp-logo-switch graphic">
44
 
45
+ <input type="hidden" class="widefat" id="niteoCS-logo-id" name="niteoCS_logo_id_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_logo_id ); ?>" />
46
  <input id="add-logo" type="button" class="button" value="Select Logo" />
47
 
48
  <div class="logo-wrapper">
inc/settings/settings-slider.php CHANGED
@@ -1,13 +1,6 @@
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
4
- // check onces and wordpress rights, else DIE
5
- if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
6
- if( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
7
- die('Sorry, but this request is invalid');
8
- }
9
- }
10
-
11
  if (isset($_POST['niteoCS_slider_'.$themeslug]) && is_numeric($_POST['niteoCS_slider_'.$themeslug])) {
12
  update_option('niteoCS_slider['.$themeslug.']', sanitize_text_field($_POST['niteoCS_slider_'.$themeslug]));
13
  }
@@ -56,7 +49,7 @@ $niteoCS_slider_auto = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
56
 
57
  <p>
58
  <label title="Disabled">
59
- <input type="radio" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> name="niteoCS_slider_<?php echo esc_attr($themeslug);?>" value="0"<?php checked ( 0, $niteoCS_slider )?>;>&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
60
  </label>
61
  </p>
62
 
@@ -111,7 +104,7 @@ $niteoCS_slider_auto = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
111
  <input type="checkbox" name="niteoCS_slider_auto_<?php echo esc_attr( $themeslug );?>" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> id="niteoCS_slider_auto" value="1" <?php checked( '1', $niteoCS_slider_auto ); ?> class="regular-text code"><label for="niteoCS_slider_auto"><?php _e('Slider Autostart', 'cmp-coming-soon-maintenance');?></label><br>
112
  </p>
113
 
114
- <label for="niteoCS_slider_count"><?php _e('Number of Unplash media Slides (applies only for Unsplash photos)', 'cmp-coming-soon-maintenance');?></label></br>
115
  <select name="niteoCS_slider_count_<?php echo esc_attr($themeslug);?>" <?php echo ( $niteoCS_banner != '1' ) ? 'disabled' : '';?>>
116
  <option value="2" <?php if ( $niteoCS_slider_count == '2' ) { echo ' selected="selected"'; } ?>>2</option>
117
  <option value="3" <?php if ( $niteoCS_slider_count == '3' ) { echo ' selected="selected"'; } ?>>3</option>
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
 
 
 
 
 
 
 
4
  if (isset($_POST['niteoCS_slider_'.$themeslug]) && is_numeric($_POST['niteoCS_slider_'.$themeslug])) {
5
  update_option('niteoCS_slider['.$themeslug.']', sanitize_text_field($_POST['niteoCS_slider_'.$themeslug]));
6
  }
49
 
50
  <p>
51
  <label title="Disabled">
52
+ <input type="radio"<?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : ' disabled';?> name="niteoCS_slider_<?php echo esc_attr($themeslug);?>" value="0"<?php checked ( 0, $niteoCS_slider );?>>&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
53
  </label>
54
  </p>
55
 
104
  <input type="checkbox" name="niteoCS_slider_auto_<?php echo esc_attr( $themeslug );?>" <?php echo ( $niteoCS_banner == '1' || $niteoCS_banner == '0' ) ? '' : 'disabled';?> id="niteoCS_slider_auto" value="1" <?php checked( '1', $niteoCS_slider_auto ); ?> class="regular-text code"><label for="niteoCS_slider_auto"><?php _e('Slider Autostart', 'cmp-coming-soon-maintenance');?></label><br>
105
  </p>
106
 
107
+ <label for="niteoCS_slider_count"><?php _e('Number of Unplash media Slides (applies only for Unsplash photos)', 'cmp-coming-soon-maintenance');?></label><br>
108
  <select name="niteoCS_slider_count_<?php echo esc_attr($themeslug);?>" <?php echo ( $niteoCS_banner != '1' ) ? 'disabled' : '';?>>
109
  <option value="2" <?php if ( $niteoCS_slider_count == '2' ) { echo ' selected="selected"'; } ?>>2</option>
110
  <option value="3" <?php if ( $niteoCS_slider_count == '3' ) { echo ' selected="selected"'; } ?>>3</option>
inc/settings/settings-subscribe.php CHANGED
@@ -108,8 +108,8 @@ $mailchimp_lists = json_decode(get_option('niteoCS_mailchimp_lists', false),
108
  <input type="text" name="niteoCS_subscribe_label" id="niteoCS_subscribe_label" value="<?php echo esc_attr( $niteoCS_subscribe_label );?>" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>">
109
  </label><br><br>
110
 
111
- <label for="niteoCS_subscribe_method""><?php _e('Select how to store your Subscribers', 'cmp-coming-soon-maintenance');?>
112
- <select name="niteoCS_subscribe_method" class="subscribe-method">
113
  <option value="cmp" <?php selected( 'cmp', $subscribe_method ); ?>><?php _e('CMP Custom Subscribe List', 'cmp-coming-soon-maintenance');?></option>
114
  <option value="mailchimp" <?php selected( 'mailchimp', $subscribe_method ); ?>><?php _e('MailChimp Integration', 'cmp-coming-soon-maintenance');?></option>
115
  </select>
@@ -123,7 +123,7 @@ $mailchimp_lists = json_decode(get_option('niteoCS_mailchimp_lists', false),
123
  <div class="subscribe-method mailchimp">
124
  <br>
125
  <label for="niteoCS_mailchimp_apikey"><?php _e('MailChimp API key', 'cmp-coming-soon-maintenance');?>
126
- <input type="text" name="niteoCS_mailchimp_apikey" value="<?php echo esc_attr( $mailchimp_apikey );?>" class="regular-text code" placeholder="<?php _e('MailChimp API Key', 'cmp-coming-soon-maintenance');?>">
127
  </label><br><br>
128
 
129
  <button id="connect-mailchimp" class="button" data-security="<?php echo esc_attr($ajax_nonce);?>"><?php _e('Retrieve Lists', 'cmp-coming-soon-maintenance');?></button>
108
  <input type="text" name="niteoCS_subscribe_label" id="niteoCS_subscribe_label" value="<?php echo esc_attr( $niteoCS_subscribe_label );?>" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>">
109
  </label><br><br>
110
 
111
+ <label for="niteoCS_subscribe_method"><?php _e('Select how to store your Subscribers', 'cmp-coming-soon-maintenance');?>
112
+ <select name="niteoCS_subscribe_method" id ="niteoCS_subscribe_method" class="subscribe-method">
113
  <option value="cmp" <?php selected( 'cmp', $subscribe_method ); ?>><?php _e('CMP Custom Subscribe List', 'cmp-coming-soon-maintenance');?></option>
114
  <option value="mailchimp" <?php selected( 'mailchimp', $subscribe_method ); ?>><?php _e('MailChimp Integration', 'cmp-coming-soon-maintenance');?></option>
115
  </select>
123
  <div class="subscribe-method mailchimp">
124
  <br>
125
  <label for="niteoCS_mailchimp_apikey"><?php _e('MailChimp API key', 'cmp-coming-soon-maintenance');?>
126
+ <input type="text" id="niteoCS_mailchimp_apikey" name="niteoCS_mailchimp_apikey" value="<?php echo esc_attr( $mailchimp_apikey );?>" class="regular-text code" placeholder="<?php _e('MailChimp API Key', 'cmp-coming-soon-maintenance');?>">
127
  </label><br><br>
128
 
129
  <button id="connect-mailchimp" class="button" data-security="<?php echo esc_attr($ajax_nonce);?>"><?php _e('Retrieve Lists', 'cmp-coming-soon-maintenance');?></button>
js/cmp-admin-head.js CHANGED
@@ -1,7 +1,14 @@
1
- jQuery(document).ready(function($){
 
 
 
 
 
 
2
 
3
  // toggle cmp activation via menu bar ajax
4
- jQuery('#cmp-status-menubar').click(function() {
 
5
  var security = jQuery(this).data('security');
6
  var data = {
7
  action: 'cmp_toggle_activation',
@@ -12,10 +19,15 @@ jQuery(document).ready(function($){
12
 
13
  $.post(cmp_ajax.ajax_url, data, function(response) {
14
 
15
- if (response == 'success') {
 
16
  jQuery('.cmp-status input[type=radio]').prop('disabled', function (_, val) { return ! val; });
17
  jQuery('#cmp-status').prop('checked', function (_, val) { return ! val; });
18
- }
 
 
 
 
19
  });
20
 
21
  });
1
+ jQuery(document).ready(function($) {
2
+
3
+ if ( jQuery('#cmp-status').is(':checked') ) {
4
+ jQuery('#cmp-toggle-adminbar').addClass('status-1');
5
+ } else {
6
+ jQuery('#cmp-toggle-adminbar').removeClass('status-1');
7
+ }
8
 
9
  // toggle cmp activation via menu bar ajax
10
+ jQuery('#cmp-toggle-adminbar').click(function(e) {
11
+ e.preventDefault();
12
  var security = jQuery(this).data('security');
13
  var data = {
14
  action: 'cmp_toggle_activation',
19
 
20
  $.post(cmp_ajax.ajax_url, data, function(response) {
21
 
22
+ if ( response == 'success' ) {
23
+ jQuery('#cmp-toggle-adminbar').toggleClass('status-1');
24
  jQuery('.cmp-status input[type=radio]').prop('disabled', function (_, val) { return ! val; });
25
  jQuery('#cmp-status').prop('checked', function (_, val) { return ! val; });
26
+ } else {
27
+ console.log(response);
28
+ }
29
+
30
+
31
  });
32
 
33
  });
js/settings.js CHANGED
@@ -2,12 +2,7 @@ jQuery(document).ready(function($){
2
 
3
  var tab = document.location.hash.substring(1);
4
  var action = jQuery('#csoptions').attr('action');
5
-
6
- // ini custom css textarea to codeEditor
7
- if ( wp.codeEditor ) {
8
- wp.codeEditor.initialize('niteoCS_custom_css');
9
- }
10
-
11
  // function to tab navigation
12
  navtab = function(tab) {
13
  jQuery('.cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab').removeClass('nav-tab-active');
@@ -81,7 +76,7 @@ jQuery(document).ready(function($){
81
 
82
  jQuery('.cmp-coming-soon-maintenance #cmp-status').click(function(){
83
  jQuery('.cmp-coming-soon-maintenance .cmp-status input[type=radio]').prop('disabled', function (_, val) { return ! val; });
84
- jQuery('.cmp-coming-soon-maintenance #cmp-status-menubar').prop('checked', function (_, val) { return ! val; });
85
  });
86
 
87
  cmp_status_inputs();
@@ -417,7 +412,6 @@ jQuery(document).ready(function($){
417
  function gradientIni( gradient_type ) {
418
  switch ( gradient_type ) {
419
  case 'solid-color' :
420
- console.log( jQuery('.cmp-coming-soon-maintenance #niteoCS_overlay_color').val() );
421
  jQuery('.thumbnail-overlay').css('background', jQuery('#niteoCS_overlay_color').val() );
422
  break;
423
 
@@ -1041,6 +1035,11 @@ jQuery(document).ready(function($){
1041
  }
1042
  });
1043
 
 
 
 
 
 
1044
  });
1045
 
1046
 
2
 
3
  var tab = document.location.hash.substring(1);
4
  var action = jQuery('#csoptions').attr('action');
5
+
 
 
 
 
 
6
  // function to tab navigation
7
  navtab = function(tab) {
8
  jQuery('.cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab').removeClass('nav-tab-active');
76
 
77
  jQuery('.cmp-coming-soon-maintenance #cmp-status').click(function(){
78
  jQuery('.cmp-coming-soon-maintenance .cmp-status input[type=radio]').prop('disabled', function (_, val) { return ! val; });
79
+ jQuery('#cmp-toggle-adminbar').toggleClass('status-1');
80
  });
81
 
82
  cmp_status_inputs();
412
  function gradientIni( gradient_type ) {
413
  switch ( gradient_type ) {
414
  case 'solid-color' :
 
415
  jQuery('.thumbnail-overlay').css('background', jQuery('#niteoCS_overlay_color').val() );
416
  break;
417
 
1035
  }
1036
  });
1037
 
1038
+ // ini custom css textarea to codeEditor
1039
+ if ( wp.codeEditor ) {
1040
+ wp.codeEditor.initialize('niteoCS_custom_css');
1041
+ }
1042
+
1043
  });
1044
 
1045
 
js/settings.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(e){var n=document.location.hash.substring(1),a=jQuery("#csoptions").attr("action");wp.codeEditor&&wp.codeEditor.initialize("niteoCS_custom_css"),navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+e).addClass("nav-tab-active"),jQuery(".cmp-coming-soon-maintenance .table-wrapper."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .comingsoon."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(."+e+")").css("display","none"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(."+e).css("display","none"),jQuery(".cmp-coming-soon-maintenance .comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".cmp-coming-soon-maintenance .submit").css("display","none"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a)):(jQuery(".cmp-coming-soon-maintenance .submit").css("display","block"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a+"#"+e))},""!=n?navtab(n):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){n=document.location.hash.substring(1),navtab(n)},e(".cmp-coming-soon-maintenance .nav-tab:not(.theme-preview)").click(function(a){a.preventDefault(),n=e(this).data("tab"),document.location.hash=n}),p(".cmp-coming-soon-maintenance .blur-range"),p(".cmp-coming-soon-maintenance .background-overlay-opacity"),l("logo",!1,"image","img"),l("favicon",!1,"image","img"),l("images",!0,"image","img"),l("pattern",!1,"image","background"),l("video-thumb",!1,"image","img"),l("video-local",!1,"video","video"),m("analytics"),m("contact-form"),m("subscribe"),m("background-effect"),m("special-effect"),m("cmp-logo"),m("background-type"),u("subscribe-method"),u("background-overlay"),u("banner-video-source"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1}),jQuery(".cmp-coming-soon-maintenance #cmp-status").click(function(){jQuery(".cmp-coming-soon-maintenance .cmp-status input[type=radio]").prop("disabled",function(e,n){return!n}),jQuery(".cmp-coming-soon-maintenance #cmp-status-menubar").prop("checked",function(e,n){return!n})}),jQuery(".cmp-coming-soon-maintenance .cmp-status legend:not(.disabled)").click(function(){if(0!=jQuery(".cmp-coming-soon-maintenance #cmp-status").prop("checked")){var e=jQuery(this).children("input");e.prop("checked",!0),jQuery(".cmp-coming-soon-maintenance .cmp-status legend").removeClass("active"),jQuery(this).addClass("active"),e.trigger("change"),"3"==e.val()?jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeIn("fast"):jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeOut("fast")}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper h3").click(function(){jQuery(this).parent().toggleClass("closed")}),jQuery(".cmp-coming-soon-maintenance #test-unsplash").click(function(n){n.preventDefault();var a=jQuery(".cmp-coming-soon-maintenance #unsplash-media"),t=jQuery('.cmp-coming-soon-maintenance .unsplash_banner select[name^="unsplash_feed"] option:selected').val(),o="",i="",c="",r=jQuery(this).data("security");switch(t){case"0":o=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val();break;case"1":c=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-1").val();break;case"2":o=jQuery(".cmp-coming-soon-maintenance .cmp-coming-soon-maintenance #niteoCS-unsplash-2").val();break;case"3":o=jQuery("#niteoCS-unsplash-3").val(),i=jQuery(".cmp-coming-soon-maintenance #niteoCS_unsplash_feat").is(":checked")?"1":"0"}if(3==t||""!=o||""!=c){var s={feed:t,url:o,feat:i,custom_str:c};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var l={action:"niteo_unsplash",security:r,params:s};e.post(ajaxurl,l,function(e){var n=JSON.parse(e);jQuery("#unsplash_img").remove();var t=setTimeout(function(){jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5e3);if("200"==n.response){if((n=jQuery.parseJSON(n.body))[0])var o=n[0].urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",i=n[0].user.name,c=n[0].user.links.html,r=n[0].links.html,s=n[0].id;else o=n.urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",i=n.user.name,c=n.user.links.html,r=n.links.html,s=n.id;jQuery("<img />",{src:o,id:"unsplash_img"}).one("load",function(){jQuery(this).appendTo(a),jQuery(this).fadeIn(),jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").parent().after('<span><a href="'+r+'" target="_blank">Photo</a> (ID: '+s+') by <a href="'+c+'" target="_blank">'+i+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a></span>'),jQuery(".blur-range").trigger("input"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #test-unsplash").prop("disabled",!1),jQuery(".cmp-coming-soon-maintenance #test-unsplash").text("Display Unsplash Photo"),jQuery(".cmp-coming-soon-maintenance #unsplash-media").html("<p>Error "+n.response+': <span style="text-transform:lowercase;">'+n.body+"</span></p>"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #unsplash_img").remove()}),videoPreview=function(){if("5"==jQuery(".cmp-coming-soon-maintenance .background-type:checked").val()){var n=e(".cmp-coming-soon-maintenance .banner-video-source").val();if("youtube"==n){var a=e(".cmp-coming-soon-maintenance #niteoCS-youtube-url").val();if(""!=a){var t=a.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);if(t&&11==t[7].length){jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("");var o="https://img.youtube.com/vi/"+t[7]+"/maxresdefault.jpg";jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").append('<img src="'+o+'" alt=""/>'),jQuery(".cmp-coming-soon-maintenance .blur-range").trigger("input")}else jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("")}}if("local"==n){var i=jQuery("#niteoCS-video-local-id").data("url");""!=i&&e(".cmp-coming-soon-maintenance .video-local-wrapper").html('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>')}}},videoPreview(),jQuery(".cmp-coming-soon-maintenance .background-type").on("change",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").on("keyup",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance .banner-video-source").on("change",function(){videoPreview()});var t=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function o(e){switch(e){case"solid-color":console.log(jQuery(".cmp-coming-soon-maintenance #niteoCS_overlay_color").val()),jQuery(".thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val());break;case"gradient":jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").trigger("change");break;case"disabled":jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background","none")}}jQuery("#unsplash-feed-"+t).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){t=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery("#unsplash-feed-"+t).css("display","block"),jQuery("#test-unsplash").trigger("click")}),1==jQuery("#csoptions .niteoCS_banner:checked").val()&&jQuery("#test-unsplash").trigger("click"),jQuery(".cmp-coming-soon-maintenance select.background-gradient").on("change",function(){var e=jQuery(".cmp-coming-soon-maintenance select.background-gradient option:selected").val();"custom"==e?(jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","block"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})):(colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"}))}).trigger("change"),jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_color").wpColorPicker({change:function(e,n){jQuery(".color-preview").css("background-color",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_one").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_two").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_overlay_color").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css("background",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val()),jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").on("change",function(){var e=jQuery("select.overlay-gradient option:selected").val();if("custom"==e){jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","block");var n=jQuery("#niteoCS_overlay_gradient_one").val(),a=jQuery("#niteoCS_overlay_gradient_two").val();jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"linear-gradient(135deg, "+n+" 0%, "+a+" 100%)"})}else colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"})}),jQuery("#niteoCS_overlay_gradient_one").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)"})}}),jQuery("#niteoCS_overlay_gradient_two").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".background-overlay-opacity").on("input",function(){var e=jQuery(this).val();jQuery(".thumbnail-overlay").css("opacity",e)}).trigger("input"),o(jQuery(".cmp-coming-soon-maintenance .background-overlay").val()),jQuery(".cmp-coming-soon-maintenance .background-overlay").on("change",function(){o(jQuery(this).val())}),jQuery(".cmp-coming-soon-maintenance .blur-range").on("input",function(){var e=jQuery(this).val();jQuery(".cmp-coming-soon-maintenance .background-thumb-wrapper img:not(.no-blur)").css("filter","blur("+e+"px)")}).trigger("input"),jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"]').on("change",function(){var e=jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"] option:selected').val();if("custom"!=e){var n=jQuery(this).data("url");jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","none"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+e+".png')")}else{n=jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_pattern_custom").val();jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","block"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+"')")}}),jQuery(".cmp-coming-soon-maintenance .heading-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .heading-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #heading-example").removeClass().addClass("animated "+heading_anim)}),jQuery(".cmp-coming-soon-maintenance .content-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .content-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #content-example").removeClass().addClass("animated "+heading_anim)});var i,c=function(n,a,t){var o=e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value");o=e.parseJSON(o),e.each(o,function(e,o){o.name==n&&(o[a]=t)}),e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value",JSON.stringify(o))},r=e(".cmp-coming-soon-maintenance .social-inputs"),s=function(n,a){var t=r.find('input[type="text"]');a.item.index();t.each(function(n,a){var t=e(a).data("name");c(t,"order",n)})};function l(e,n,a,t){var o,i=jQuery("."+e+"-wrapper"),c=jQuery("#add-"+e),r=jQuery("#delete-"+e),s="",l=e.replace("-"," ");l=l[0].toUpperCase()+l.slice(1),""!=jQuery("#niteoCS-"+e+"-id").val()&&r.css("display","block"),c.click(function(c){if(c.preventDefault(),m)m.open();else var m=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=m.state().get("selection").toJSON();n.length>0&&(i.find("img").remove(),i.attr("class",e+"-wrapper custom-gallery"),i.addClass("gallery-"+n.length),jQuery(n).each(function(e){switch(o=n[e].sizes&&n[e].sizes.large?n[e].sizes.large.url:n[e].url,s+=(0===e?"":",")+n[e].id,t){case"video":i.append('<video width="600" height="400" controls><source src="'+o+'" type="video/mp4">Your browser does not support the video tag.</video>');break;case"background":i.css("background-image","url('"+o+"')");break;case"img":default:n.length>1&&0==e?jQuery(".big-thumb").append('<img src="'+o+'" alt=""/>'):n.length>1&&0!==e?i.append('<img src="'+o+'" alt="" class="no-blur"/>'):i.find(".big-thumb").length?jQuery(".big-thumb").append('<img src="'+o+'" alt=""/>'):i.append('<img src="'+o+'" alt=""/>'),jQuery(".blur-range").trigger("input")}}),r.css("display","block")),jQuery("#niteoCS-"+e+"-id").val(s).trigger("change")}).open()}),r.click(function(n){jQuery(this).css("display","none"),i.find("img").remove(),jQuery("#niteoCS-"+e+"-id").val(""),jQuery("#niteoCS-"+e+"-id").trigger("change")})}function m(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery(".cmp-coming-soon-maintenance ."+e+":checked").val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"-switch."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+"-switch:not(."+n+")").css("display","none")}),jQuery(".cmp-coming-soon-maintenance ."+e).first().trigger("change")}function u(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery("."+e).val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+":not(."+n+")").css("display","none")}),jQuery("."+e).first().trigger("change")}function p(e){jQuery(e).on("input",function(){var e=jQuery(this).val();jQuery(this).parent().find("span").html(e)})}r.sortable({stop:s}),r.on("sortchange",s),(i=jQuery).fn.toggleDisabled=function(){return this.each(function(){var e,n=i(this),a=n.data("name");n.attr("disabled")?(n.prop("disabled",!1),e="1"):(n.prop("disabled",!0),e="0"),c(a,"active",e)})},jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="text"]').focusout(function(){var e=jQuery(this).data("name"),n=jQuery(this).attr("value");c(e,"url",n)}),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="checkbox"]').click(function(n){e(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".cmp-coming-soon-maintenance .social-media i").click(function(){var e=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e+" input").trigger("change"),jQuery(this).hasClass("active")?c(e,"hidden","0"):c(e,"hidden","1"),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length?jQuery(".social-inputs .label").css("display","block"):jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","none")}),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length&&jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","block"),jQuery(".cmp-coming-soon-maintenance .view-release").click(function(e){e.preventDefault(),$this=jQuery(this);var n=$this.attr("href");jQuery.get(n,function(e){$this.closest(".notice").find(".release-note .notes").remove(),$this.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){$this.closest(".notice").find(".release-note p").remove(),$this.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".cmp-coming-soon-maintenance .update-theme").click(function(n){n.preventDefault();var a=e(this),t=a.parents(".notice"),o=a.data("security"),i=a.data("slug"),c=a.data("name"),r={action:"cmp_theme_update_install",security:o,file:{name:i,tmp_name:"",url:jQuery(this).data("remote_url")+"?action=download&slug="+i}};t.find(".message").html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'),e.post(ajaxurl,r,function(n){if("success"==(n=n.trim()))setTimeout(function(){t.removeClass("notice-warning").addClass("notice-success"),t.find(".message").html("<span> "+c+' CMP theme was updated sucessfully! </span><i class="fa fa-smile-o" aria-hidden="true"></i>')},1500);else{n=n.slice(0,-1);var a=e("p",e(n)).text();t.removeClass("notice-warning").addClass("notice-error"),t.find(".message").html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+a+"</span>")}})}),jQuery(".cmp-coming-soon-maintenance .theme-select").click(function(){jQuery(this).parent().find('input[name="niteoCS_select_theme"]').prop("checked",!0).trigger("change"),jQuery(".cmp-coming-soon-maintenance .theme-select").removeClass("selected"),jQuery(this).parent().find(".theme-select").addClass("selected")}),jQuery(".cmp-coming-soon-maintenance .theme-update.button").one("click",function(n){n.preventDefault();var a=e(this),t=a.closest(".theme-wrapper"),o=t.data("security"),i=t.data("slug"),c={action:"cmp_theme_update_install",security:o,file:{name:i,tmp_name:"",url:t.data("remote_url")+"?action=download&slug="+i}};a.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>'),e.post(ajaxurl,c,function(e){"success"==e?setTimeout(function(){a.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>'),setTimeout(function(){a.fadeOut()},1500)},1500):(e=e.slice(0,-1),a.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>'))})}),jQuery(".cmp-coming-soon-maintenance .theme-details").click(function(){var n=e(this),a=n.closest(".theme-wrapper"),t=a.data("slug"),o=a.data("version"),i=a.data("remote_url"),c=a.data("type"),r=a.data("purchased"),s=(a.data("freebie"),jQuery(".update-theme").data("security")),l=(a.data("price"),0),m={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};e.post(ajaxurl,m,function(m){var u="",p="",d="",g="";if("true"==(m=jQuery.parseJSON(m)).result){if(jQuery("body").addClass("modal-open"),"1"==r&&(d='<span class="theme-version">Version: '+o+"</span>",g='<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>',jQuery(".update-theme").length)){var y=jQuery(".update-theme").data("slug");if(t==y){var h=jQuery(".update-theme").data("new_ver");g='<div class="notice notice-warning notice-alt notice-large"><h3 class="notice-title">Update Available</h3><p class="message"><strong>There is a new version of '+m.name+' theme available. <a href="'+i+"readme/"+t+'-readme.php" class="view-release">View update '+h+' notes</a> or <a href="'+window.location.href+"&action=update-cmp-theme&theme="+t+'" class="update-theme" data-security="'+s+'" data-slug="'+t+'" data-remote_url="'+i+'">Update now.</a></strong></p><div class="release-note"></div></div>'}}if("1"!=r&&"premium"==c)u="disabled ",p='<button type="button" class="theme-purchase button hide"><a href="'+a.find("a").attr("href")+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';var v=m.screenshots,j="";Object.keys(v).length>1&&(j='<div class="screenshots-nav"><div class="left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div>');var Q=e(['<div class="theme-backdrop">','\t<div class="theme-wrap">','\t\t<div class="theme-header">','\t\t\t<button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',"\t\t</div>",'\t\t<div class="theme-about">','\t\t\t<div class="theme-screenshots">','\t\t\t\t<div class="screenshot" style="background-image:url(\''+v[0]+"')\">"+j+"</div>","\t\t\t</div>",'\t\t\t<div class="theme-info">','\t\t\t\t<h2 class="theme-name">'+m.name+d+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+m.author_homepage+'" target="_blank">'+m.author+"</a></p>",g,p,'\t\t\t\t<div class="theme-description">'+m.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<button type="submit" '+u+'class="button activate" name="Submit" aria-label="Select '+m.name+'">Activate</button>','\t\t\t<a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='+t+"&utm_source=cmp&utm_medium=referral&utm_campaign="+t+'" class="button cmp-preview" target="_blank" aria-label="Preview '+m.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(Q),jQuery(".theme-overlay.cmp .view-release").click(function(e){e.preventDefault();var a=(n=jQuery(this)).attr("href");jQuery.get(a,function(e){n.closest(".notice").find(".release-note .notes").remove(),n.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){n.closest(".notice").find(".release-note p").remove(),n.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".theme-overlay.cmp .close").click(function(e){e.preventDefault(),jQuery("body").removeClass("modal-open"),jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast")}),jQuery(".theme-overlay.cmp .activate").click(function(e){e.preventDefault(),jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_select_theme"]').each(function(){jQuery(this).val()==t&&(jQuery(this).prop("checked",!0),jQuery(".theme-select").removeClass("selected"),jQuery(this).parent().addClass("selected"))}),jQuery(this).submit()}),jQuery(".screenshots-nav .right").click(function(){++l==Object.keys(v).length&&(l=0),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")}),jQuery(".screenshots-nav .left").click(function(){--l<0&&(l=Object.keys(v).length-1),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")})}})}),jQuery(".cmp-coming-soon-maintenance #connect-mailchimp").click(function(n){n.preventDefault();var a=jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_mailchimp_apikey"]').val(),t=jQuery(this).data("security"),o=jQuery(this);if(""!=a){var i={apikey:a,security:t};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var c={action:"cmp_mailchimp_list_ajax",security:t,params:i};e.post(ajaxurl,c,function(n){var a=JSON.parse(n);200==a.response?(e("#mailchimp-lists-select").empty().prop("disabled",!1),e.each(a.lists,function(n,a){e("#mailchimp-lists-select").append('<option value="'+a.id+'">'+a.name+"</option>")})):e("#mailchimp-lists-select").empty().prop("disabled",!0).html('<option value="error">'+a.message+"</option>").trigger("change"),o.html("Retrieve Lists"),o.prop("disabled",!1)}).fail(function(){o.html("Retrieve Lists"),o.prop("disabled",!1)})}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper.theme-setup h4").each(function(){if("Overlay Color"==jQuery(this).html())return jQuery(this).parents("tr").remove(),!1})});
1
+ jQuery(document).ready(function(e){var n=document.location.hash.substring(1),a=jQuery("#csoptions").attr("action");navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+e).addClass("nav-tab-active"),jQuery(".cmp-coming-soon-maintenance .table-wrapper."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .comingsoon."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(."+e+")").css("display","none"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(."+e).css("display","none"),jQuery(".cmp-coming-soon-maintenance .comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".cmp-coming-soon-maintenance .submit").css("display","none"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a)):(jQuery(".cmp-coming-soon-maintenance .submit").css("display","block"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a+"#"+e))},""!=n?navtab(n):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){n=document.location.hash.substring(1),navtab(n)},e(".cmp-coming-soon-maintenance .nav-tab:not(.theme-preview)").click(function(a){a.preventDefault(),n=e(this).data("tab"),document.location.hash=n}),p(".cmp-coming-soon-maintenance .blur-range"),p(".cmp-coming-soon-maintenance .background-overlay-opacity"),l("logo",!1,"image","img"),l("favicon",!1,"image","img"),l("images",!0,"image","img"),l("pattern",!1,"image","background"),l("video-thumb",!1,"image","img"),l("video-local",!1,"video","video"),m("analytics"),m("contact-form"),m("subscribe"),m("background-effect"),m("special-effect"),m("cmp-logo"),m("background-type"),u("subscribe-method"),u("background-overlay"),u("banner-video-source"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1}),jQuery(".cmp-coming-soon-maintenance #cmp-status").click(function(){jQuery(".cmp-coming-soon-maintenance .cmp-status input[type=radio]").prop("disabled",function(e,n){return!n}),jQuery("#cmp-toggle-adminbar").toggleClass("status-1")}),jQuery(".cmp-coming-soon-maintenance .cmp-status legend:not(.disabled)").click(function(){if(0!=jQuery(".cmp-coming-soon-maintenance #cmp-status").prop("checked")){var e=jQuery(this).children("input");e.prop("checked",!0),jQuery(".cmp-coming-soon-maintenance .cmp-status legend").removeClass("active"),jQuery(this).addClass("active"),e.trigger("change"),"3"==e.val()?jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeIn("fast"):jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeOut("fast")}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper h3").click(function(){jQuery(this).parent().toggleClass("closed")}),jQuery(".cmp-coming-soon-maintenance #test-unsplash").click(function(n){n.preventDefault();var a=jQuery(".cmp-coming-soon-maintenance #unsplash-media"),t=jQuery('.cmp-coming-soon-maintenance .unsplash_banner select[name^="unsplash_feed"] option:selected').val(),i="",o="",r="",c=jQuery(this).data("security");switch(t){case"0":i=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val();break;case"1":r=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-1").val();break;case"2":i=jQuery(".cmp-coming-soon-maintenance .cmp-coming-soon-maintenance #niteoCS-unsplash-2").val();break;case"3":i=jQuery("#niteoCS-unsplash-3").val(),o=jQuery(".cmp-coming-soon-maintenance #niteoCS_unsplash_feat").is(":checked")?"1":"0"}if(3==t||""!=i||""!=r){var s={feed:t,url:i,feat:o,custom_str:r};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var l={action:"niteo_unsplash",security:c,params:s};e.post(ajaxurl,l,function(e){var n=JSON.parse(e);jQuery("#unsplash_img").remove();var t=setTimeout(function(){jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5e3);if("200"==n.response){if((n=jQuery.parseJSON(n.body))[0])var i=n[0].urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n[0].user.name,r=n[0].user.links.html,c=n[0].links.html,s=n[0].id;else i=n.urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n.user.name,r=n.user.links.html,c=n.links.html,s=n.id;jQuery("<img />",{src:i,id:"unsplash_img"}).one("load",function(){jQuery(this).appendTo(a),jQuery(this).fadeIn(),jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").parent().after('<span><a href="'+c+'" target="_blank">Photo</a> (ID: '+s+') by <a href="'+r+'" target="_blank">'+o+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a></span>'),jQuery(".blur-range").trigger("input"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #test-unsplash").prop("disabled",!1),jQuery(".cmp-coming-soon-maintenance #test-unsplash").text("Display Unsplash Photo"),jQuery(".cmp-coming-soon-maintenance #unsplash-media").html("<p>Error "+n.response+': <span style="text-transform:lowercase;">'+n.body+"</span></p>"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #unsplash_img").remove()}),videoPreview=function(){if("5"==jQuery(".cmp-coming-soon-maintenance .background-type:checked").val()){var n=e(".cmp-coming-soon-maintenance .banner-video-source").val();if("youtube"==n){var a=e(".cmp-coming-soon-maintenance #niteoCS-youtube-url").val();if(""!=a){var t=a.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);if(t&&11==t[7].length){jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("");var i="https://img.youtube.com/vi/"+t[7]+"/maxresdefault.jpg";jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").append('<img src="'+i+'" alt=""/>'),jQuery(".cmp-coming-soon-maintenance .blur-range").trigger("input")}else jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("")}}if("local"==n){var o=jQuery("#niteoCS-video-local-id").data("url");""!=o&&e(".cmp-coming-soon-maintenance .video-local-wrapper").html('<video width="600" height="400" controls><source src="'+o+'" type="video/mp4">Your browser does not support the video tag.</video>')}}},videoPreview(),jQuery(".cmp-coming-soon-maintenance .background-type").on("change",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").on("keyup",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance .banner-video-source").on("change",function(){videoPreview()});var t=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function i(e){switch(e){case"solid-color":jQuery(".thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val());break;case"gradient":jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").trigger("change");break;case"disabled":jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background","none")}}jQuery("#unsplash-feed-"+t).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){t=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery("#unsplash-feed-"+t).css("display","block"),jQuery("#test-unsplash").trigger("click")}),1==jQuery("#csoptions .niteoCS_banner:checked").val()&&jQuery("#test-unsplash").trigger("click"),jQuery(".cmp-coming-soon-maintenance select.background-gradient").on("change",function(){var e=jQuery(".cmp-coming-soon-maintenance select.background-gradient option:selected").val();"custom"==e?(jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","block"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})):(colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"}))}).trigger("change"),jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_color").wpColorPicker({change:function(e,n){jQuery(".color-preview").css("background-color",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_one").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_two").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_overlay_color").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css("background",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val()),jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").on("change",function(){var e=jQuery("select.overlay-gradient option:selected").val();if("custom"==e){jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","block");var n=jQuery("#niteoCS_overlay_gradient_one").val(),a=jQuery("#niteoCS_overlay_gradient_two").val();jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"linear-gradient(135deg, "+n+" 0%, "+a+" 100%)"})}else colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"})}),jQuery("#niteoCS_overlay_gradient_one").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)"})}}),jQuery("#niteoCS_overlay_gradient_two").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".background-overlay-opacity").on("input",function(){var e=jQuery(this).val();jQuery(".thumbnail-overlay").css("opacity",e)}).trigger("input"),i(jQuery(".cmp-coming-soon-maintenance .background-overlay").val()),jQuery(".cmp-coming-soon-maintenance .background-overlay").on("change",function(){i(jQuery(this).val())}),jQuery(".cmp-coming-soon-maintenance .blur-range").on("input",function(){var e=jQuery(this).val();jQuery(".cmp-coming-soon-maintenance .background-thumb-wrapper img:not(.no-blur)").css("filter","blur("+e+"px)")}).trigger("input"),jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"]').on("change",function(){var e=jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"] option:selected').val();if("custom"!=e){var n=jQuery(this).data("url");jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","none"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+e+".png')")}else{n=jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_pattern_custom").val();jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","block"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+"')")}}),jQuery(".cmp-coming-soon-maintenance .heading-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .heading-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #heading-example").removeClass().addClass("animated "+heading_anim)}),jQuery(".cmp-coming-soon-maintenance .content-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .content-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #content-example").removeClass().addClass("animated "+heading_anim)});var o,r=function(n,a,t){var i=e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value");i=e.parseJSON(i),e.each(i,function(e,i){i.name==n&&(i[a]=t)}),e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value",JSON.stringify(i))},c=e(".cmp-coming-soon-maintenance .social-inputs"),s=function(n,a){var t=c.find('input[type="text"]');a.item.index();t.each(function(n,a){var t=e(a).data("name");r(t,"order",n)})};function l(e,n,a,t){var i,o=jQuery("."+e+"-wrapper"),r=jQuery("#add-"+e),c=jQuery("#delete-"+e),s="",l=e.replace("-"," ");l=l[0].toUpperCase()+l.slice(1),""!=jQuery("#niteoCS-"+e+"-id").val()&&c.css("display","block"),r.click(function(r){if(r.preventDefault(),m)m.open();else var m=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=m.state().get("selection").toJSON();n.length>0&&(o.find("img").remove(),o.attr("class",e+"-wrapper custom-gallery"),o.addClass("gallery-"+n.length),jQuery(n).each(function(e){switch(i=n[e].sizes&&n[e].sizes.large?n[e].sizes.large.url:n[e].url,s+=(0===e?"":",")+n[e].id,t){case"video":o.append('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>');break;case"background":o.css("background-image","url('"+i+"')");break;case"img":default:n.length>1&&0==e?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):n.length>1&&0!==e?o.append('<img src="'+i+'" alt="" class="no-blur"/>'):o.find(".big-thumb").length?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):o.append('<img src="'+i+'" alt=""/>'),jQuery(".blur-range").trigger("input")}}),c.css("display","block")),jQuery("#niteoCS-"+e+"-id").val(s).trigger("change")}).open()}),c.click(function(n){jQuery(this).css("display","none"),o.find("img").remove(),jQuery("#niteoCS-"+e+"-id").val(""),jQuery("#niteoCS-"+e+"-id").trigger("change")})}function m(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery(".cmp-coming-soon-maintenance ."+e+":checked").val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"-switch."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+"-switch:not(."+n+")").css("display","none")}),jQuery(".cmp-coming-soon-maintenance ."+e).first().trigger("change")}function u(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery("."+e).val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+":not(."+n+")").css("display","none")}),jQuery("."+e).first().trigger("change")}function p(e){jQuery(e).on("input",function(){var e=jQuery(this).val();jQuery(this).parent().find("span").html(e)})}c.sortable({stop:s}),c.on("sortchange",s),(o=jQuery).fn.toggleDisabled=function(){return this.each(function(){var e,n=o(this),a=n.data("name");n.attr("disabled")?(n.prop("disabled",!1),e="1"):(n.prop("disabled",!0),e="0"),r(a,"active",e)})},jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="text"]').focusout(function(){var e=jQuery(this).data("name"),n=jQuery(this).attr("value");r(e,"url",n)}),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="checkbox"]').click(function(n){e(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".cmp-coming-soon-maintenance .social-media i").click(function(){var e=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e+" input").trigger("change"),jQuery(this).hasClass("active")?r(e,"hidden","0"):r(e,"hidden","1"),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length?jQuery(".social-inputs .label").css("display","block"):jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","none")}),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length&&jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","block"),jQuery(".cmp-coming-soon-maintenance .view-release").click(function(e){e.preventDefault(),$this=jQuery(this);var n=$this.attr("href");jQuery.get(n,function(e){$this.closest(".notice").find(".release-note .notes").remove(),$this.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){$this.closest(".notice").find(".release-note p").remove(),$this.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".cmp-coming-soon-maintenance .update-theme").click(function(n){n.preventDefault();var a=e(this),t=a.parents(".notice"),i=a.data("security"),o=a.data("slug"),r=a.data("name"),c={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:jQuery(this).data("remote_url")+"?action=download&slug="+o}};t.find(".message").html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'),e.post(ajaxurl,c,function(n){if("success"==(n=n.trim()))setTimeout(function(){t.removeClass("notice-warning").addClass("notice-success"),t.find(".message").html("<span> "+r+' CMP theme was updated sucessfully! </span><i class="fa fa-smile-o" aria-hidden="true"></i>')},1500);else{n=n.slice(0,-1);var a=e("p",e(n)).text();t.removeClass("notice-warning").addClass("notice-error"),t.find(".message").html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+a+"</span>")}})}),jQuery(".cmp-coming-soon-maintenance .theme-select").click(function(){jQuery(this).parent().find('input[name="niteoCS_select_theme"]').prop("checked",!0).trigger("change"),jQuery(".cmp-coming-soon-maintenance .theme-select").removeClass("selected"),jQuery(this).parent().find(".theme-select").addClass("selected")}),jQuery(".cmp-coming-soon-maintenance .theme-update.button").one("click",function(n){n.preventDefault();var a=e(this),t=a.closest(".theme-wrapper"),i=t.data("security"),o=t.data("slug"),r={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:t.data("remote_url")+"?action=download&slug="+o}};a.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>'),e.post(ajaxurl,r,function(e){"success"==e?setTimeout(function(){a.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>'),setTimeout(function(){a.fadeOut()},1500)},1500):(e=e.slice(0,-1),a.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>'))})}),jQuery(".cmp-coming-soon-maintenance .theme-details").click(function(){var n=e(this),a=n.closest(".theme-wrapper"),t=a.data("slug"),i=a.data("version"),o=a.data("remote_url"),r=a.data("type"),c=a.data("purchased"),s=(a.data("freebie"),jQuery(".update-theme").data("security")),l=(a.data("price"),0),m={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};e.post(ajaxurl,m,function(m){var u="",p="",d="",g="";if("true"==(m=jQuery.parseJSON(m)).result){if(jQuery("body").addClass("modal-open"),"1"==c&&(d='<span class="theme-version">Version: '+i+"</span>",g='<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>',jQuery(".update-theme").length)){var y=jQuery(".update-theme").data("slug");if(t==y){var h=jQuery(".update-theme").data("new_ver");g='<div class="notice notice-warning notice-alt notice-large"><h3 class="notice-title">Update Available</h3><p class="message"><strong>There is a new version of '+m.name+' theme available. <a href="'+o+"readme/"+t+'-readme.php" class="view-release">View update '+h+' notes</a> or <a href="'+window.location.href+"&action=update-cmp-theme&theme="+t+'" class="update-theme" data-security="'+s+'" data-slug="'+t+'" data-remote_url="'+o+'">Update now.</a></strong></p><div class="release-note"></div></div>'}}if("1"!=c&&"premium"==r)u="disabled ",p='<button type="button" class="theme-purchase button hide"><a href="'+a.find("a").attr("href")+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';var v=m.screenshots,j="";Object.keys(v).length>1&&(j='<div class="screenshots-nav"><div class="left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div>');var Q=e(['<div class="theme-backdrop">','\t<div class="theme-wrap">','\t\t<div class="theme-header">','\t\t\t<button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',"\t\t</div>",'\t\t<div class="theme-about">','\t\t\t<div class="theme-screenshots">','\t\t\t\t<div class="screenshot" style="background-image:url(\''+v[0]+"')\">"+j+"</div>","\t\t\t</div>",'\t\t\t<div class="theme-info">','\t\t\t\t<h2 class="theme-name">'+m.name+d+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+m.author_homepage+'" target="_blank">'+m.author+"</a></p>",g,p,'\t\t\t\t<div class="theme-description">'+m.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<button type="submit" '+u+'class="button activate" name="Submit" aria-label="Select '+m.name+'">Activate</button>','\t\t\t<a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='+t+"&utm_source=cmp&utm_medium=referral&utm_campaign="+t+'" class="button cmp-preview" target="_blank" aria-label="Preview '+m.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(Q),jQuery(".theme-overlay.cmp .view-release").click(function(e){e.preventDefault();var a=(n=jQuery(this)).attr("href");jQuery.get(a,function(e){n.closest(".notice").find(".release-note .notes").remove(),n.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){n.closest(".notice").find(".release-note p").remove(),n.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".theme-overlay.cmp .close").click(function(e){e.preventDefault(),jQuery("body").removeClass("modal-open"),jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast")}),jQuery(".theme-overlay.cmp .activate").click(function(e){e.preventDefault(),jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_select_theme"]').each(function(){jQuery(this).val()==t&&(jQuery(this).prop("checked",!0),jQuery(".theme-select").removeClass("selected"),jQuery(this).parent().addClass("selected"))}),jQuery(this).submit()}),jQuery(".screenshots-nav .right").click(function(){++l==Object.keys(v).length&&(l=0),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")}),jQuery(".screenshots-nav .left").click(function(){--l<0&&(l=Object.keys(v).length-1),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")})}})}),jQuery(".cmp-coming-soon-maintenance #connect-mailchimp").click(function(n){n.preventDefault();var a=jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_mailchimp_apikey"]').val(),t=jQuery(this).data("security"),i=jQuery(this);if(""!=a){var o={apikey:a,security:t};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var r={action:"cmp_mailchimp_list_ajax",security:t,params:o};e.post(ajaxurl,r,function(n){var a=JSON.parse(n);200==a.response?(e("#mailchimp-lists-select").empty().prop("disabled",!1),e.each(a.lists,function(n,a){e("#mailchimp-lists-select").append('<option value="'+a.id+'">'+a.name+"</option>")})):e("#mailchimp-lists-select").empty().prop("disabled",!0).html('<option value="error">'+a.message+"</option>").trigger("change"),i.html("Retrieve Lists"),i.prop("disabled",!1)}).fail(function(){i.html("Retrieve Lists"),i.prop("disabled",!1)})}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper.theme-setup h4").each(function(){if("Overlay Color"==jQuery(this).html())return jQuery(this).parents("tr").remove(),!1}),wp.codeEditor&&wp.codeEditor.initialize("niteoCS_custom_css")});
niteo-cmp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
- Version: 2.8.4
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -66,7 +66,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
66
  private function constants() {
67
 
68
  // define constants
69
- $this->define( 'CMP_VERSION', '2.8.4' );
70
  $this->define( 'CMP_DEBUG', FALSE );
71
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
72
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
@@ -95,7 +95,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
95
  add_action( 'wp_ajax_niteo_unsplash', array( $this, 'niteo_unsplash' ) );
96
  add_action( 'wp_ajax_niteo_export_csv', array( $this, 'niteo_export_csv' ) );
97
  add_action( 'wp_ajax_cmp_theme_update_install', array( $this, 'cmp_theme_update_install' ) );
98
- add_action( 'wp_ajax_cmp_toggle_activation', array( $this, 'cmp_toggle_activation') );
99
  add_action( 'wp_ajax_nopriv_niteo_subscribe', array( $this, 'niteo_subscribe' ) );
100
  add_action( 'wp_ajax_niteo_subscribe', array( $this, 'niteo_subscribe' ) );
101
  add_action( 'wp_ajax_cmp_mailchimp_list_ajax', array( $this, 'cmp_mailchimp_list_ajax' ) );
@@ -195,7 +195,14 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
195
  * @return array
196
  */
197
  public function cmp_premium_themes_installed() {
198
- return array_map( 'basename', glob( CMP_PREMIUM_THEMES_DIR . '*', GLOB_ONLYDIR ) );
 
 
 
 
 
 
 
199
  }
200
 
201
  /**
@@ -516,16 +523,18 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
516
  }
517
 
518
  // function to toggle CMP activation for admin menu icon
519
- public function cmp_toggle_activation () {
520
- // check for ajax
521
  if ( isset( $_POST['payload'] ) && $_POST['payload'] == 'toggle_cmp_status' ) {
522
 
523
  // verify nonce
524
  check_ajax_referer( 'cmp-coming-soon-ajax-secret', 'security' );
525
  // verify user rights
526
- if( !current_user_can('publish_pages') ) {
527
- die('Sorry, but this request is invalid');
528
- }
 
 
529
 
530
  if ( get_option('niteoCS_status', '') == '' ) {
531
  update_option('niteoCS_status', '1');
@@ -533,6 +542,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
533
  update_option('niteoCS_status', '');
534
  }
535
 
 
 
536
  echo 'success';
537
  wp_die();
538
  return;
@@ -577,74 +588,16 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
577
  }
578
  }
579
 
580
- // display admin topbar notice
581
- public function cmp_admin_bar(){
582
-
583
- // CMP PLUGIN ACTIVATION AND STATUS CHANGE SETTINGS!
584
- if ( $_SERVER['REQUEST_METHOD'] == 'POST' && ( get_current_screen() && get_current_screen()->id == 'toplevel_page_cmp-settings' ) ) {
585
-
586
- // verify nonce and user rights
587
- if ( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
588
- die('Sorry, but this request is invalid');
589
- }
590
-
591
- if ( isset($_POST['activate']) && is_numeric($_POST['activate']) ) {
592
- update_option('niteoCS_activation', sanitize_text_field($_POST['activate']));
593
- }
594
-
595
- if ( isset($_POST['cmp_status']) ) {
596
- update_option('niteoCS_status', $this->sanitize_checkbox($_POST['cmp_status']) );
597
- } else {
598
-
599
- update_option('niteoCS_status', false);
600
- }
601
-
602
- // purge cache in 3rd party plugins
603
- if ( function_exists( 'w3tc_pgcache_flush' ) ) {
604
- w3tc_pgcache_flush();
605
- }
606
 
607
- if ( function_exists( 'wp_cache_clear_cache' ) ) {
608
- wp_cache_clear_cache();
609
- }
610
-
611
- if ( class_exists( 'Endurance_Page_Cache' ) ) {
612
- $epc = new Endurance_Page_Cache;
613
- $epc->purge_all();
614
- }
615
-
616
- if ( class_exists( 'SG_CachePress_Supercacher' ) && method_exists( 'SG_CachePress_Supercacher', 'purge_cache' ) ) {
617
- SG_CachePress_Supercacher::purge_cache (true );
618
- }
619
-
620
- if ( isset( $GLOBALS['wp_fastest_cache'] ) && method_exists( $GLOBALS['wp_fastest_cache'], 'deleteCache' ) ) {
621
- $GLOBALS['wp_fastest_cache']->deleteCache( true );
622
- }
623
-
624
- if ( is_callable( array( 'Swift_Performance_Cache', 'clear_all_cache' ) ) ) {
625
- Swift_Performance_Cache::clear_all_cache();
626
- }
627
-
628
- }
629
-
630
-
631
- // Display admin TOPBAR
632
- require_once(ABSPATH . 'wp-admin/includes/screen.php');
633
-
634
- $roles_topbar = json_decode( get_option('niteoCS_roles_topbar', '[]'), true );
635
 
636
- // push WP administrator to roles array, since it is default
637
- array_push( $roles_topbar, 'administrator' );
 
638
 
639
- $current_user = wp_get_current_user();
640
-
641
- // if current user cannot access topbar, return
642
- foreach ( $current_user->roles as $role ) {
643
-
644
- if ( !in_array( $role, $roles_topbar ) ) {
645
- return false;
646
- }
647
- };
648
 
649
  global $wp_admin_bar;
650
 
@@ -668,13 +621,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
668
  break;
669
  }
670
 
671
- $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
672
-
673
  $msg = '<img src="'.plugins_url('/img/cmp.png', __FILE__).'" alt="CMP Logo" class="cmp-logo"><span class="cmp-status-msg">'.$msg.'</span>';
674
- $msg .='<div class="toggle-wrapper">
675
- <input type="checkbox" id="cmp-status-menubar" class="toggle-checkbox"'.checked( '1', get_option('niteoCS_status', false), false ).' name="cmp_status_menu" data-security="'. esc_attr($ajax_nonce).'">
676
- <label for="cmp-status-menubar" class="toggle"><span class="toggle_handler"></span></label>
677
- </div>';
678
 
679
  //Add the main siteadmin menu item
680
  $wp_admin_bar->add_menu( array(
@@ -686,7 +634,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
686
  ) );
687
 
688
  // Display CMP Settings in topbar only for administrator
689
- if ( user_can( $current_user, 'administrator' ) ) {
690
  $wp_admin_bar->add_node( array(
691
  'id' => 'cmp-settings',
692
  'title' => __('CMP Settings', 'cmp-coming-soon-maintenancee'),
@@ -1178,127 +1126,113 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1178
  $subscribe_method = get_option('niteoCS_subscribe_method', 'cmp');
1179
 
1180
  $response = '';
 
1181
  // get translation lists
1182
  if ( get_option('niteoCS_translation') ) {
1183
- $translation = json_decode( get_option('niteoCS_translation'), true );
1184
  $response_ok = $translation[7]['translation'];
1185
  $response_duplicate = $translation[5]['translation'];
1186
  $response_invalid = $translation[6]['translation'];
1187
-
1188
  } else {
1189
  $response_ok = 'Thank you, your sign-up request was successful!';
1190
  $response_duplicate = 'This Email address has already been on our subscriber list.';
1191
  $response_invalid = 'Please insert valid Email address.';
1192
  }
1193
 
1194
- $ajax = false;
1195
 
1196
- // check for ajax request
1197
- if ( isset( $_POST['check'] ) && $_POST['check'] == true ) {
1198
- $check = true;
1199
- $ajax = true;
1200
- }
1201
 
1202
- if ( $check === true ) :
1203
-
1204
- if ( $_SERVER['REQUEST_METHOD'] == 'POST'
1205
- && isset( $_POST['form_honeypot'] )
1206
- && $_POST['form_honeypot'] === ''
1207
- && isset( $_POST['email'] ) )
1208
- {
1209
-
1210
- if ( is_email( $_POST['email'] ) ) {
1211
- // email already passed is_email, no need to sanitize
1212
- $email = $_POST['email'];
1213
-
1214
- // sanitize all inputs
1215
- $ip_address = ( isset( $_POST['lastname'] ) ) ? sanitize_text_field($_SERVER['REMOTE_ADDR']) : '';
1216
- $firstname = ( isset( $_POST['firstname'] ) ) ? sanitize_text_field( $_POST['firstname'] ) : '';
1217
- $lastname = ( isset( $_POST['lastname'] ) ) ? sanitize_text_field( $_POST['lastname'] ) : '';
1218
- $timestamp = time();
1219
-
1220
- switch ( $subscribe_method ) {
1221
- // default custom CMP method
1222
- case 'cmp':
1223
- // get subscribe list
1224
- $subscribe_list = get_option('niteoCS_subscribers_list');
1225
-
1226
- // if no subscribe list yet, create first item and insert it into DB
1227
- if ( !$subscribe_list ) {
1228
- $new_list = array();
1229
- $new_email = array( 'id' => '0', 'timestamp' => $timestamp, 'email' => $email, 'ip_address' => $ip_address, 'firstname' => $firstname, 'lastname' => $lastname );
1230
- array_push( $new_list, $new_email );
1231
- update_option( 'niteoCS_subscribers_list', $new_list );
1232
- $response = array( 'status' => '1', 'message' => $response_ok);
1233
 
1234
- } else {
1235
- // check if email don`t already exists
1236
- if ( !$this->niteo_in_array_r( $email, $subscribe_list, true ) ) {
1237
- $count = count( $subscribe_list );
1238
- $new_email = array( 'id' => $count, 'timestamp' => $timestamp, 'email' => $email, 'ip_address' => $ip_address, 'firstname' => $firstname, 'lastname' => $lastname );
1239
- array_push( $subscribe_list, $new_email );
1240
- update_option('niteoCS_subscribers_list', $subscribe_list);
1241
- $response = array( 'status' => '1', 'message' => $response_ok);
1242
-
1243
- // if email exists return duplicate response
1244
- } else {
1245
- $response = array( 'status' => '0', 'message' => $response_duplicate);
1246
- }
1247
- }
1248
- break;
1249
-
1250
- // mailchimp API call
1251
- case 'mailchimp':
1252
- $api_key = esc_attr( get_option('niteoCS_mailchimp_apikey') );
1253
- $list_id = esc_attr( get_option('niteoCS_mailchimp_list_selected') );
1254
- $email = $_POST['email'];
1255
- $double_opt = get_option( 'niteoCS_mailchimp[double-opt]', '0' );
1256
- $status = ( $double_opt == '1') ? 'pending' : 'subscribed'; // subscribed, cleaned, pending
1257
-
1258
- $args = array(
1259
- 'method' => 'PUT',
1260
- 'headers' => array(
1261
- 'Authorization' => 'Basic ' . base64_encode( 'user:'. $api_key )
1262
- ),
1263
- 'body' => json_encode(array(
1264
- 'email_address' => $email,
1265
- 'status' => $status
1266
- ))
1267
- );
1268
 
1269
- $mailchimp = wp_remote_post( 'https://' . substr($api_key,strpos($api_key,'-')+1) . '.api.mailchimp.com/3.0/lists/'. $list_id .'/members/' . md5(strtolower($email)), $args );
1270
-
1271
- if ( !is_wp_error( $mailchimp ) ) {
 
 
1272
 
1273
- $body = json_decode( $mailchimp['body'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1274
 
1275
- if ( $mailchimp['response']['code'] == 200 && $body->status == $status ) {
1276
- $response = array( 'status' => '1', 'message' => $response_ok);
1277
 
1278
- } else {
1279
- $response = array( 'status' => '0', 'message' => 'Error ' . $mailchimp['response']['code'] . ' ' . $body->title . ': ' . $body->detail);
1280
- }
1281
 
1282
  } else {
1283
- $error = $mailchimp->get_error_message();
1284
- $response = array( 'status' => '0', 'message' => $error);
1285
  }
1286
 
1287
- break;
 
 
 
1288
 
1289
- default:
1290
- break;
1291
- }
1292
 
1293
- // if not email, set response invalid
1294
- } else {
1295
- $response = array( 'status' => '0', 'message' => $response_invalid);
1296
- }
1297
- }
1298
 
1299
- endif; // $check !== true
 
 
 
 
1300
 
1301
- if ( $ajax === true ) {
1302
  echo json_encode( $response );
1303
  wp_die();
1304
 
@@ -2109,6 +2043,78 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
2109
  return $image_url;
2110
  }
2111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2112
  }
2113
 
2114
  endif;
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
+ Version: 2.8.5
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
66
  private function constants() {
67
 
68
  // define constants
69
+ $this->define( 'CMP_VERSION', '2.8.5' );
70
  $this->define( 'CMP_DEBUG', FALSE );
71
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
72
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
95
  add_action( 'wp_ajax_niteo_unsplash', array( $this, 'niteo_unsplash' ) );
96
  add_action( 'wp_ajax_niteo_export_csv', array( $this, 'niteo_export_csv' ) );
97
  add_action( 'wp_ajax_cmp_theme_update_install', array( $this, 'cmp_theme_update_install' ) );
98
+ add_action( 'wp_ajax_cmp_toggle_activation', array( $this, 'cmp_ajax_toggle_activation') );
99
  add_action( 'wp_ajax_nopriv_niteo_subscribe', array( $this, 'niteo_subscribe' ) );
100
  add_action( 'wp_ajax_niteo_subscribe', array( $this, 'niteo_subscribe' ) );
101
  add_action( 'wp_ajax_cmp_mailchimp_list_ajax', array( $this, 'cmp_mailchimp_list_ajax' ) );
195
  * @return array
196
  */
197
  public function cmp_premium_themes_installed() {
198
+ $premium_themes = array();
199
+
200
+ if ( file_exists( CMP_PREMIUM_THEMES_DIR ) ) {
201
+ $premium_themes = glob( CMP_PREMIUM_THEMES_DIR . '*', GLOB_ONLYDIR );
202
+ $premium_themes = array_map( 'basename', $premium_themes );
203
+ }
204
+
205
+ return $premium_themes;
206
  }
207
 
208
  /**
523
  }
524
 
525
  // function to toggle CMP activation for admin menu icon
526
+ public function cmp_ajax_toggle_activation () {
527
+ // check for ajax payoload
528
  if ( isset( $_POST['payload'] ) && $_POST['payload'] == 'toggle_cmp_status' ) {
529
 
530
  // verify nonce
531
  check_ajax_referer( 'cmp-coming-soon-ajax-secret', 'security' );
532
  // verify user rights
533
+ if ( !$this->cmp_user_can_admin_bar_activation() ) {
534
+ echo 'Current user cannot toggle CMP activation';
535
+ wp_die();
536
+ return;
537
+ }
538
 
539
  if ( get_option('niteoCS_status', '') == '' ) {
540
  update_option('niteoCS_status', '1');
542
  update_option('niteoCS_status', '');
543
  }
544
 
545
+ $this->cmp_purge_cache();
546
+
547
  echo 'success';
548
  wp_die();
549
  return;
588
  }
589
  }
590
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
591
 
592
+ // display admin topbar notice
593
+ public function cmp_admin_bar() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
594
 
595
+ if ( !$this->cmp_user_can_admin_bar_activation() ) {
596
+ return false;
597
+ }
598
 
599
+ // create nonce for ajax request
600
+ $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
 
 
 
 
 
 
 
601
 
602
  global $wp_admin_bar;
603
 
621
  break;
622
  }
623
 
 
 
624
  $msg = '<img src="'.plugins_url('/img/cmp.png', __FILE__).'" alt="CMP Logo" class="cmp-logo"><span class="cmp-status-msg">'.$msg.'</span>';
625
+ $msg .='<div class="toggle-wrapper"><div id="cmp-status-menubar" class="toggle-checkbox"></div><div id="cmp-toggle-adminbar" class="status-' . esc_attr( get_option('niteoCS_status', false ) ) . '" data-security="'. esc_attr( $ajax_nonce ).'"><span class="toggle_handler"></span></div></div>';
 
 
 
626
 
627
  //Add the main siteadmin menu item
628
  $wp_admin_bar->add_menu( array(
634
  ) );
635
 
636
  // Display CMP Settings in topbar only for administrator
637
+ if ( current_user_can( 'administrator' ) ) {
638
  $wp_admin_bar->add_node( array(
639
  'id' => 'cmp-settings',
640
  'title' => __('CMP Settings', 'cmp-coming-soon-maintenancee'),
1126
  $subscribe_method = get_option('niteoCS_subscribe_method', 'cmp');
1127
 
1128
  $response = '';
1129
+
1130
  // get translation lists
1131
  if ( get_option('niteoCS_translation') ) {
1132
+ $translation = json_decode( get_option('niteoCS_translation'), TRUE );
1133
  $response_ok = $translation[7]['translation'];
1134
  $response_duplicate = $translation[5]['translation'];
1135
  $response_invalid = $translation[6]['translation'];
 
1136
  } else {
1137
  $response_ok = 'Thank you, your sign-up request was successful!';
1138
  $response_duplicate = 'This Email address has already been on our subscriber list.';
1139
  $response_invalid = 'Please insert valid Email address.';
1140
  }
1141
 
1142
+ $ajax = ( isset( $_POST['ajax'] ) && $_POST['ajax'] == TRUE ) ? TRUE : FALSE;
1143
 
1144
+ if ( $_SERVER['REQUEST_METHOD'] == 'POST' && isset( $_POST['form_honeypot'] ) && $_POST['form_honeypot'] === '' && isset( $_POST['email'] ) ) :
 
 
 
 
1145
 
1146
+ if ( is_email( $_POST['email'] ) ) {
1147
+ // email already passed is_email, no need to sanitize
1148
+ $email = $_POST['email'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1149
 
1150
+ // sanitize all inputs
1151
+ $ip_address = ( isset( $_POST['lastname'] ) ) ? sanitize_text_field($_SERVER['REMOTE_ADDR']) : '';
1152
+ $firstname = ( isset( $_POST['firstname'] ) ) ? sanitize_text_field( $_POST['firstname'] ) : '';
1153
+ $lastname = ( isset( $_POST['lastname'] ) ) ? sanitize_text_field( $_POST['lastname'] ) : '';
1154
+ $timestamp = time();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1155
 
1156
+ switch ( $subscribe_method ) {
1157
+ // default custom CMP method
1158
+ case 'cmp':
1159
+ // get subscribe list
1160
+ $subscribe_list = get_option('niteoCS_subscribers_list');
1161
 
1162
+ // if no subscribe list yet, create first item and insert it into DB
1163
+ if ( !$subscribe_list ) {
1164
+ $new_list = array();
1165
+ $new_email = array( 'id' => '0', 'timestamp' => $timestamp, 'email' => $email, 'ip_address' => $ip_address, 'firstname' => $firstname, 'lastname' => $lastname );
1166
+ array_push( $new_list, $new_email );
1167
+ update_option( 'niteoCS_subscribers_list', $new_list );
1168
+ $response = array( 'status' => '1', 'message' => $response_ok);
1169
+
1170
+ } else {
1171
+ // check if email don`t already exists
1172
+ if ( !$this->niteo_in_array_r( $email, $subscribe_list, true ) ) {
1173
+ $count = count( $subscribe_list );
1174
+ $new_email = array( 'id' => $count, 'timestamp' => $timestamp, 'email' => $email, 'ip_address' => $ip_address, 'firstname' => $firstname, 'lastname' => $lastname );
1175
+ array_push( $subscribe_list, $new_email );
1176
+ update_option('niteoCS_subscribers_list', $subscribe_list);
1177
+ $response = array( 'status' => '1', 'message' => $response_ok);
1178
+
1179
+ // if email exists return duplicate response
1180
+ } else {
1181
+ $response = array( 'status' => '0', 'message' => $response_duplicate);
1182
+ }
1183
+ }
1184
+ break;
1185
+
1186
+ // mailchimp API call
1187
+ case 'mailchimp':
1188
+ $api_key = esc_attr( get_option('niteoCS_mailchimp_apikey') );
1189
+ $list_id = esc_attr( get_option('niteoCS_mailchimp_list_selected') );
1190
+ $email = $_POST['email'];
1191
+ $double_opt = get_option( 'niteoCS_mailchimp[double-opt]', '0' );
1192
+ $status = ( $double_opt == '1') ? 'pending' : 'subscribed'; // subscribed, cleaned, pending
1193
+
1194
+ $args = array(
1195
+ 'method' => 'PUT',
1196
+ 'headers' => array(
1197
+ 'Authorization' => 'Basic ' . base64_encode( 'user:'. $api_key )
1198
+ ),
1199
+ 'body' => json_encode(array(
1200
+ 'email_address' => $email,
1201
+ 'status' => $status
1202
+ ))
1203
+ );
1204
+
1205
+ $mailchimp = wp_remote_post( 'https://' . substr($api_key,strpos($api_key,'-')+1) . '.api.mailchimp.com/3.0/lists/'. $list_id .'/members/' . md5(strtolower($email)), $args );
1206
+
1207
+ if ( !is_wp_error( $mailchimp ) ) {
1208
 
1209
+ $body = json_decode( $mailchimp['body'] );
 
1210
 
1211
+ if ( $mailchimp['response']['code'] == 200 && $body->status == $status ) {
1212
+ $response = array( 'status' => '1', 'message' => $response_ok);
 
1213
 
1214
  } else {
1215
+ $response = array( 'status' => '0', 'message' => 'Error ' . $mailchimp['response']['code'] . ' ' . $body->title . ': ' . $body->detail);
 
1216
  }
1217
 
1218
+ } else {
1219
+ $error = $mailchimp->get_error_message();
1220
+ $response = array( 'status' => '0', 'message' => $error);
1221
+ }
1222
 
1223
+ break;
 
 
1224
 
1225
+ default:
1226
+ break;
1227
+ }
 
 
1228
 
1229
+ // if not email, set response invalid
1230
+ } else {
1231
+ $response = array( 'status' => '0', 'message' => $response_invalid);
1232
+ }
1233
+ endif;
1234
 
1235
+ if ( $ajax === TRUE ) {
1236
  echo json_encode( $response );
1237
  wp_die();
1238
 
2043
  return $image_url;
2044
  }
2045
 
2046
+ /**
2047
+ * Purge cache for popular caching plugins
2048
+ *
2049
+ * @since 2.8.5
2050
+ * @access public
2051
+ * @return string
2052
+ */
2053
+ public function cmp_purge_cache() {
2054
+
2055
+ // w3tc
2056
+ if ( function_exists( 'w3tc_pgcache_flush' ) ) {
2057
+ w3tc_pgcache_flush();
2058
+ }
2059
+
2060
+ // wp super cache
2061
+ if ( function_exists( 'wp_cache_clear_cache' ) ) {
2062
+ wp_cache_clear_cache();
2063
+ }
2064
+
2065
+ // endurance cache
2066
+ if ( class_exists( 'Endurance_Page_Cache' ) ) {
2067
+ $epc = new Endurance_Page_Cache;
2068
+ $epc->purge_all();
2069
+ }
2070
+
2071
+ // SG Optimizer
2072
+ if ( class_exists( 'SG_CachePress_Supercacher' ) && method_exists( 'SG_CachePress_Supercacher', 'purge_cache' ) ) {
2073
+ SG_CachePress_Supercacher::purge_cache (true );
2074
+ }
2075
+
2076
+ // WP Fastest Cache
2077
+ if ( isset( $GLOBALS['wp_fastest_cache'] ) && method_exists( $GLOBALS['wp_fastest_cache'], 'deleteCache' ) ) {
2078
+ $GLOBALS['wp_fastest_cache']->deleteCache( true );
2079
+ }
2080
+
2081
+ // Swift Performance
2082
+ if ( is_callable( array( 'Swift_Performance_Cache', 'clear_all_cache' ) ) ) {
2083
+ Swift_Performance_Cache::clear_all_cache();
2084
+ }
2085
+ }
2086
+
2087
+ /**
2088
+ * Checks if user defined role has permission to access and toggle CMP from Admin Bar Icon
2089
+ *
2090
+ * @since 2.8.5
2091
+ * @access public
2092
+ * @return boolean
2093
+ */
2094
+ public function cmp_user_can_admin_bar_activation() {
2095
+
2096
+ require_once(ABSPATH . 'wp-admin/includes/screen.php');
2097
+
2098
+ // get defined roles for admin topbar access
2099
+ $roles_topbar = json_decode( get_option('niteoCS_roles_topbar', '[]'), true );
2100
+
2101
+ // push WP administrator to roles array, since it is default
2102
+ array_push( $roles_topbar, 'administrator' );
2103
+
2104
+ // get current user
2105
+ $current_user = wp_get_current_user();
2106
+
2107
+ // if current user cannot access topbar, return
2108
+ foreach ( $current_user->roles as $role ) {
2109
+ if ( in_array( $role, $roles_topbar ) ) {
2110
+ return true;
2111
+ }
2112
+ }
2113
+
2114
+ return false;
2115
+ }
2116
+
2117
+
2118
  }
2119
 
2120
  endif;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JF
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
- Stable tag: 2.8.4
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -114,6 +114,14 @@ CMP – Coming Soon & Maintenance plugin has all premium features you ever wishe
114
  <p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
115
 
116
  == Changelog ==
 
 
 
 
 
 
 
 
117
  <h4>CMP 2.8.4 update</h4>
118
  <ul>
119
  <li>New amazing Theme: Apollo! Check it out guys. We believe you are gonna love it!</li>
@@ -288,7 +296,6 @@ CMP – Coming Soon & Maintenance plugin has all premium features you ever wishe
288
 
289
  <h4>CMP 2.2 - very sweet update :) </h4>
290
  <p>This update brings you a heavily requsted features such a whitelist/blacklist, user roles setup and also few other nice changes including:</p>
291
- <h3>Premium Frame Theme changed to freebies which you can download for free now!</h3>
292
  <h3>New Advanced Settings page:</h3>
293
  <ul>
294
  <li>You can setup <b>CMP Page Whitelist</b> to display CMP Theme only on the particular WordPress Pages.</li>
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Tested up to: 4.9
7
+ Stable tag: 2.8.5
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
114
  <p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
115
 
116
  == Changelog ==
117
+ <h4>CMP 2.8.5 update</h4>
118
+ <ul>
119
+ <li>Resolved issue with 404 error after save settings on some server hostings. Big thanks to @darkbluesky and @superven15 for addresing this issue and help with troubleshooting!</li>
120
+ <li>Updated 3d party caching plugins purging function.</li>
121
+ <li>Resolved issue with fatal error caused by undefined function "get_current_screen()" in some edge cases - thanks to @wvega to highlight this issue!</li>
122
+ <li>Resolved PHP warnings about bad parameters on some server hostings - thanks to @webboxone.</li>
123
+ </ul>
124
+
125
  <h4>CMP 2.8.4 update</h4>
126
  <ul>
127
  <li>New amazing Theme: Apollo! Check it out guys. We believe you are gonna love it!</li>
296
 
297
  <h4>CMP 2.2 - very sweet update :) </h4>
298
  <p>This update brings you a heavily requsted features such a whitelist/blacklist, user roles setup and also few other nice changes including:</p>
 
299
  <h3>New Advanced Settings page:</h3>
300
  <ul>
301
  <li>You can setup <b>CMP Page Whitelist</b> to display CMP Theme only on the particular WordPress Pages.</li>
themes/construct/construct-settings.php CHANGED
@@ -6,7 +6,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
6
  <h3><?php _e('Customize Colors', 'cmp-coming-soon-maintenance');?></h3>
7
  <table class="theme-setup">
8
  <tr>
9
- <th><h4><?php _e('Active Color', 'cmp-coming-soon-maintenance');?></h4></th>
10
  <td>
11
  <fieldset>
12
  <input type="text" name="niteoCS_active_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_active_color" value="<?php echo esc_attr( $active_color); ?>" data-default-color="#f37004" class="regular-text code"><br>
@@ -16,7 +16,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
16
  </tr>
17
 
18
  <tr>
19
- <th><h4><?php _e('Font Color', 'cmp-coming-soon-maintenance');?></h4></th>
20
  <td>
21
  <fieldset>
22
  <input type="text" name="niteoCS_font_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_font_color" value="<?php echo esc_attr( $font_color); ?>" data-default-color="#686868" class="regular-text code"><br>
@@ -25,7 +25,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
25
  </tr>
26
 
27
  <tr>
28
- <th><h4><?php _e('Background Color', 'cmp-coming-soon-maintenance');?></h4></th>
29
  <td>
30
  <fieldset>
31
  <input type="text" name="niteoCS_background_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_background_color" value="<?php echo esc_attr( $background_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
@@ -34,7 +34,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
34
  </tr>
35
 
36
  <tr>
37
- <th><h4><?php _e('Social Background Color', 'cmp-coming-soon-maintenance');?></h4></th>
38
  <td>
39
  <fieldset>
40
  <input type="text" name="niteoCS_social_background_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_social_background_color" value="<?php echo esc_attr( $social_background_color ); ?>" data-default-color="#f8f8f8" class="regular-text code"><br>
6
  <h3><?php _e('Customize Colors', 'cmp-coming-soon-maintenance');?></h3>
7
  <table class="theme-setup">
8
  <tr>
9
+ <th><?php _e('Active Color', 'cmp-coming-soon-maintenance');?></th>
10
  <td>
11
  <fieldset>
12
  <input type="text" name="niteoCS_active_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_active_color" value="<?php echo esc_attr( $active_color); ?>" data-default-color="#f37004" class="regular-text code"><br>
16
  </tr>
17
 
18
  <tr>
19
+ <th><?php _e('Font Color', 'cmp-coming-soon-maintenance');?></th>
20
  <td>
21
  <fieldset>
22
  <input type="text" name="niteoCS_font_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_font_color" value="<?php echo esc_attr( $font_color); ?>" data-default-color="#686868" class="regular-text code"><br>
25
  </tr>
26
 
27
  <tr>
28
+ <th><?php _e('Background Color', 'cmp-coming-soon-maintenance');?></th>
29
  <td>
30
  <fieldset>
31
  <input type="text" name="niteoCS_background_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_background_color" value="<?php echo esc_attr( $background_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
34
  </tr>
35
 
36
  <tr>
37
+ <th><?php _e('Social Background Color', 'cmp-coming-soon-maintenance');?></th>
38
  <td>
39
  <fieldset>
40
  <input type="text" name="niteoCS_social_background_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_social_background_color" value="<?php echo esc_attr( $social_background_color ); ?>" data-default-color="#f8f8f8" class="regular-text code"><br>
themes/construct/construct-theme.php CHANGED
@@ -62,12 +62,13 @@
62
  // echo pattern copyright
63
  if ( $banner_type == 3 ) {
64
  echo '<!-- Background pattern from Subtle Patterns --!>';
65
- }
66
- ?>
67
 
68
  </head>
69
 
70
  <body id="body">
 
 
71
  <section class="section section-logo">
72
  <?php
73
  // display logo
62
  // echo pattern copyright
63
  if ( $banner_type == 3 ) {
64
  echo '<!-- Background pattern from Subtle Patterns --!>';
65
+ } ?>
 
66
 
67
  </head>
68
 
69
  <body id="body">
70
+
71
+
72
  <section class="section section-logo">
73
  <?php
74
  // display logo
themes/countdown/countdown-settings.php CHANGED
@@ -13,7 +13,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
13
  <h3><?php _e('Customize Colors', 'cmp-coming-soon-maintenance');?></h3>
14
  <table class="theme-setup">
15
  <tr>
16
- <th><h4><?php _e('Active Color', 'cmp-coming-soon-maintenance');?></h4></th>
17
  <td>
18
 
19
  <fieldset>
@@ -23,7 +23,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
23
  </td>
24
  </tr>
25
  <tr>
26
- <th><h4><?php _e('Font Color', 'cmp-coming-soon-maintenance');?></h4></th>
27
  <td>
28
 
29
  <fieldset>
@@ -32,12 +32,8 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
32
  </td>
33
  </tr>
34
 
35
- <tr><th>
36
- <p class="cmp-submit">
37
- <?php wp_nonce_field('save_options','save_options_field'); ?>
38
- <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
39
- </p>
40
- </th></tr>
41
  </table>
42
 
43
  </div>
13
  <h3><?php _e('Customize Colors', 'cmp-coming-soon-maintenance');?></h3>
14
  <table class="theme-setup">
15
  <tr>
16
+ <th><?php _e('Active Color', 'cmp-coming-soon-maintenance');?></th>
17
  <td>
18
 
19
  <fieldset>
23
  </td>
24
  </tr>
25
  <tr>
26
+ <th><?php _e('Font Color', 'cmp-coming-soon-maintenance');?></th>
27
  <td>
28
 
29
  <fieldset>
32
  </td>
33
  </tr>
34
 
35
+ <?php echo $this->render_settings->submit(); ?>
36
+
 
 
 
 
37
  </table>
38
 
39
  </div>
themes/countdown/countdown-social_settings.php CHANGED
@@ -3,7 +3,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
4
  ?>
5
  <tr>
6
- <th><h4><?php _e('Social Icons Location', 'cmp-coming-soon-maintenance');?></h4></th>
7
  <td>
8
  <fieldset>
9
  <select name="niteoCS_social_location">
3
 
4
  ?>
5
  <tr>
6
+ <th><?php _e('Social Icons Location', 'cmp-coming-soon-maintenance');?></th>
7
  <td>
8
  <fieldset>
9
  <select name="niteoCS_social_location">
themes/hardwork/hardwork-settings.php CHANGED
@@ -12,7 +12,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
12
  <table class="theme-setup">
13
 
14
  <tr>
15
- <th><h4><?php _e('Font Color', 'cmp-coming-soon-maintenance');?></h4></th>
16
  <td>
17
  <fieldset>
18
  <input type="text" name="niteoCS_font_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_font_color" value="<?php echo esc_attr( $font_color); ?>" data-default-color="#494949" class="regular-text code"><br>
@@ -21,7 +21,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
21
  </tr>
22
 
23
  <tr>
24
- <th><h4><?php _e('Footer Background Color', 'cmp-coming-soon-maintenance');?></h4></th>
25
  <td>
26
  <fieldset>
27
  <input type="text" name="niteoCS_footer_background_<?php echo esc_attr($themeslug);?>" id="niteoCS_footer_background_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $footer_background); ?>" data-default-color="#0a0a0a" class="regular-text code"><br>
@@ -36,12 +36,8 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
36
 
37
  </tr>
38
 
39
- <tr><th>
40
- <p class="cmp-submit">
41
- <?php wp_nonce_field('save_options','save_options_field'); ?>
42
- <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
43
- </p>
44
- </th></tr>
45
  </table>
46
 
47
  </div>
12
  <table class="theme-setup">
13
 
14
  <tr>
15
+ <th><?php _e('Font Color', 'cmp-coming-soon-maintenance');?></th>
16
  <td>
17
  <fieldset>
18
  <input type="text" name="niteoCS_font_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_font_color" value="<?php echo esc_attr( $font_color); ?>" data-default-color="#494949" class="regular-text code"><br>
21
  </tr>
22
 
23
  <tr>
24
+ <th><?php _e('Footer Background Color', 'cmp-coming-soon-maintenance');?></th>
25
  <td>
26
  <fieldset>
27
  <input type="text" name="niteoCS_footer_background_<?php echo esc_attr($themeslug);?>" id="niteoCS_footer_background_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $footer_background); ?>" data-default-color="#0a0a0a" class="regular-text code"><br>
36
 
37
  </tr>
38
 
39
+ <?php echo $this->render_settings->submit(); ?>
40
+
 
 
 
 
41
  </table>
42
 
43
  </div>