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

Version Description

Download this release

Release Info

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

Code changes from version 3.3.2 to 3.4

cmp-advanced.php CHANGED
@@ -11,11 +11,6 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
11
  // get all wp pages to array(id->name);
12
  $pages = $this->cmp_get_pages();
13
 
14
-
15
- if ( isset( $_POST['niteoCS_page_filter'] ) ) {
16
- update_option('niteoCS_page_filter', sanitize_text_field( $_POST['niteoCS_page_filter'] ));
17
- }
18
-
19
  if ( isset( $_POST['niteoCS_bypass_id'] ) ) {
20
  if ( $_POST['niteoCS_bypass_id'] == '' ) {
21
  update_option('niteoCS_bypass_id', md5( get_home_url() ));
@@ -29,8 +24,6 @@ if ( isset( $_POST['niteoCS_bypass'] ) && is_numeric($_POST['niteoCS_bypass']) )
29
  update_option('niteoCS_bypass', sanitize_text_field( $_POST['niteoCS_bypass'] ));
30
  }
31
 
32
-
33
-
34
  if ( isset( $_POST['niteoCS_bypass_expire'] ) ) {
35
  if ( $_POST['niteoCS_bypass_expire'] == '' ) {
36
  update_option('niteoCS_bypass_expire', 172800);
@@ -40,6 +33,10 @@ if ( isset( $_POST['niteoCS_bypass_expire'] ) ) {
40
 
41
  }
42
 
 
 
 
 
43
  // update page whitelist if set
44
  if ( isset( $_POST['niteoCS_page-whitelist'] ) ) {
45
 
@@ -64,6 +61,23 @@ if ( isset( $_POST['niteoCS_page-whitelist'] ) ) {
64
  update_option('niteoCS_page_whitelist', '[]');
65
  }
66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  // update page blacklist if set
68
  if ( isset( $_POST['niteoCS_page-blacklist'] ) ) {
69
 
@@ -153,28 +167,17 @@ if ( isset( $_POST['niteoCS_footer_scripts'] ) ) {
153
  update_option('niteoCS_footer_scripts', '[]');
154
  }
155
 
156
-
157
-
158
  $niteoCS_page_filter = get_option('niteoCS_page_filter', '0');
159
-
160
  $niteoCS_page_whitelist = json_decode(get_option('niteoCS_page_whitelist', '[]'), true);
161
-
162
  $niteoCS_page_blacklist = json_decode(get_option('niteoCS_page_blacklist', '[]'), true);
163
-
164
  $niteoCS_roles = json_decode(get_option('niteoCS_roles', '[]'), true);
165
-
166
  $niteoCS_roles_topbar = json_decode(get_option('niteoCS_roles_topbar', '[]'), true);
167
-
168
  $head_scripts = json_decode(get_option('niteoCS_head_scripts', '[]'), true);
169
-
170
  $footer_scripts = json_decode(get_option('niteoCS_footer_scripts', '[]'), true);
171
-
172
  $bypass = get_option('niteoCS_bypass', '0');
173
-
174
  $bypass_id = get_option('niteoCS_bypass_id', md5( get_home_url() ));
175
-
176
  $bypass_expire = get_option('niteoCS_bypass_expire', '172800');
177
-
178
  $topbar_icon = get_option('niteoCS_topbar_icon', '1');
179
 
180
  ?>
@@ -227,7 +230,7 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
227
 
228
  <td>
229
  <fieldset class="page-whitelist-switch x1" style="margin-top: 1em;">
230
- <h4><?php _e('CMP Whitelist - Select the specific page(s) to display CMP Landing Page.', 'cmp-coming-soon-maintenance');?></h4>
231
  <select name="niteoCS_page-whitelist[]" class="cmp-whitelist" multiple="multiple">
232
  <option value="-1" <?php echo in_array('-1', $niteoCS_page_whitelist) ? 'selected' : '';?>><?php _e('Homepage', 'cmp-coming-soon-maintenance');?></option>
233
  <?php
@@ -237,7 +240,16 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
237
  } ?>
238
  </select>
239
 
240
- <p style="margin-top:0"><?php _e('By default CMP is enabled on all pages. Leave this field empty to use default settings.', 'cmp-coming-soon-maintenance');?></p>
 
 
 
 
 
 
 
 
 
241
 
242
  </fieldset>
243
 
@@ -252,7 +264,7 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
252
  } ?>
253
  </select>
254
 
255
- <p style="margin-top:0"><?php _e('If you want to exclude some pages from CMP you can select them here.', 'cmp-coming-soon-maintenance');?></p>
256
 
257
  </fieldset>
258
 
@@ -306,7 +318,7 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
306
 
307
  </select>
308
 
309
- <p style="margin-top:0"><?php _e('Administrator role always bypass CMP by default.', 'cmp-coming-soon-maintenance');?></p>
310
 
311
  </fieldset>
312
 
@@ -359,12 +371,12 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
359
  <h4><?php _e('Set Bypass Passphrase', 'cmp-coming-soon-maintenance');?></h4>
360
  <input type="text" name="niteoCS_bypass_id" value="<?php echo esc_attr( $bypass_id ); ?>" class="regular-text code"><br>
361
 
362
- <p style="margin-top:0"><?php _e('You can use passphrase which contains letters, numbers, underscores or dashes only.', 'cmp-coming-soon-maintenance');?></p>
363
 
364
  <h4><?php _e('Set bypass cookie Expiration Time in seconds', 'cmp-coming-soon-maintenance');?></h4>
365
  <input type="text" name="niteoCS_bypass_expire" value="<?php echo esc_attr( $bypass_expire ); ?>" class="regular-text code"><br>
366
 
367
- <p style="margin-top:0"><?php _e('You can set custom Bypass CMP Cookie expiration time in seconds (1hour = 3600). Default expiration time is 2 days (172800).', 'cmp-coming-soon-maintenance');?></p>
368
 
369
  <p><?php _e('Please note this solution is using browser cookies which might not work correctly if you are using caching plugins.', 'cmp-coming-soon-maintenance');?></p>
370
 
@@ -406,7 +418,6 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
406
  <input type="radio" class="cmp-topbar-icon" name="niteoCS_topbar_icon" value="0" <?php checked('0', $topbar_icon);?>><?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
407
  </label>
408
  </p>
409
-
410
  </fieldset>
411
  </th>
412
 
@@ -429,8 +440,7 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
429
 
430
  </select>
431
 
432
- <p style="margin-top:0"><?php _e('Administrator role can always access Top Bar Icon', 'cmp-coming-soon-maintenance');?></p>
433
-
434
  </fieldset>
435
 
436
  <div class="cmp-topbar-icon-switch x0">
@@ -490,7 +500,6 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
490
  </div>
491
 
492
  <button id="add-head_scripts" class="button"><?php _e('Add More', 'cmp-coming-soon-maintenance');?></button>
493
-
494
  </fieldset>
495
 
496
  </td>
@@ -533,7 +542,6 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
533
  </div>
534
 
535
  <button id="add-footer_scripts" class="button"><?php _e('Add More', 'cmp-coming-soon-maintenance');?></button>
536
-
537
  </fieldset>
538
 
539
  </td>
11
  // get all wp pages to array(id->name);
12
  $pages = $this->cmp_get_pages();
13
 
 
 
 
 
 
14
  if ( isset( $_POST['niteoCS_bypass_id'] ) ) {
15
  if ( $_POST['niteoCS_bypass_id'] == '' ) {
16
  update_option('niteoCS_bypass_id', md5( get_home_url() ));
24
  update_option('niteoCS_bypass', sanitize_text_field( $_POST['niteoCS_bypass'] ));
25
  }
26
 
 
 
27
  if ( isset( $_POST['niteoCS_bypass_expire'] ) ) {
28
  if ( $_POST['niteoCS_bypass_expire'] == '' ) {
29
  update_option('niteoCS_bypass_expire', 172800);
33
 
34
  }
35
 
36
+ if ( isset( $_POST['niteoCS_page_filter'] ) ) {
37
+ update_option('niteoCS_page_filter', sanitize_text_field( $_POST['niteoCS_page_filter'] ));
38
+ }
39
+
40
  // update page whitelist if set
41
  if ( isset( $_POST['niteoCS_page-whitelist'] ) ) {
42
 
61
  update_option('niteoCS_page_whitelist', '[]');
62
  }
63
 
64
+ if ( isset( $_POST['niteoCS-whitelist-custom'] ) ) {
65
+ $url_list = explode("\r\n", $_POST['niteoCS-whitelist-custom']);
66
+
67
+ if ( !empty($url_list) && $url_list[0] !== '' ) {
68
+ foreach ($url_list as $url ) {
69
+ if ( !empty($url) ) {
70
+ $sanitized_list[] = esc_url_raw( trailingslashit($url) );
71
+ }
72
+ }
73
+
74
+ update_option('niteoCS_page_whitelist_custom', json_encode(array_filter($sanitized_list)));
75
+
76
+ } else {
77
+ update_option('niteoCS_page_whitelist_custom', '[]');
78
+ }
79
+ }
80
+
81
  // update page blacklist if set
82
  if ( isset( $_POST['niteoCS_page-blacklist'] ) ) {
83
 
167
  update_option('niteoCS_footer_scripts', '[]');
168
  }
169
 
 
 
170
  $niteoCS_page_filter = get_option('niteoCS_page_filter', '0');
 
171
  $niteoCS_page_whitelist = json_decode(get_option('niteoCS_page_whitelist', '[]'), true);
172
+ $niteoCS_page_whitelist_custom = json_decode(get_option('niteoCS_page_whitelist_custom', '[]'), true);
173
  $niteoCS_page_blacklist = json_decode(get_option('niteoCS_page_blacklist', '[]'), true);
 
174
  $niteoCS_roles = json_decode(get_option('niteoCS_roles', '[]'), true);
 
175
  $niteoCS_roles_topbar = json_decode(get_option('niteoCS_roles_topbar', '[]'), true);
 
176
  $head_scripts = json_decode(get_option('niteoCS_head_scripts', '[]'), true);
 
177
  $footer_scripts = json_decode(get_option('niteoCS_footer_scripts', '[]'), true);
 
178
  $bypass = get_option('niteoCS_bypass', '0');
 
179
  $bypass_id = get_option('niteoCS_bypass_id', md5( get_home_url() ));
 
180
  $bypass_expire = get_option('niteoCS_bypass_expire', '172800');
 
181
  $topbar_icon = get_option('niteoCS_topbar_icon', '1');
182
 
183
  ?>
230
 
231
  <td>
232
  <fieldset class="page-whitelist-switch x1" style="margin-top: 1em;">
233
+ <h4><?php _e('You can limit to display CMP Page only to specific pages.', 'cmp-coming-soon-maintenance');?></h4>
234
  <select name="niteoCS_page-whitelist[]" class="cmp-whitelist" multiple="multiple">
235
  <option value="-1" <?php echo in_array('-1', $niteoCS_page_whitelist) ? 'selected' : '';?>><?php _e('Homepage', 'cmp-coming-soon-maintenance');?></option>
236
  <?php
240
  } ?>
241
  </select>
242
 
243
+ <p class="cmp-hint" style="margin-top:0"><?php _e('By default CMP is enabled on all pages. Leave this field empty to use default settings.', 'cmp-coming-soon-maintenance');?></p>
244
+
245
+ <h4><?php _e('Or you can also insert manually the Page URLs.', 'cmp-coming-soon-maintenance');?></h4>
246
+ <textarea name="niteoCS-whitelist-custom" cols="40" rows="5"><?php
247
+ if ( !empty($niteoCS_page_whitelist_custom) ) {
248
+ foreach ($niteoCS_page_whitelist_custom as $url) {
249
+ echo esc_url($url) . PHP_EOL;
250
+ }
251
+ } ?></textarea>
252
+ <p class="cmp-hint" style="margin-top:0"><?php _e('Insert separate URL at each line. Please make sure your Permalinks work correctly!', 'cmp-coming-soon-maintenance');?></p>
253
 
254
  </fieldset>
255
 
264
  } ?>
265
  </select>
266
 
267
+ <p class="cmp-hint" style="margin-top:0"><?php _e('If you want to exclude some pages from CMP you can select them here.', 'cmp-coming-soon-maintenance');?></p>
268
 
269
  </fieldset>
270
 
318
 
319
  </select>
320
 
321
+ <p class="cmp-hint" style="margin-top:0"><?php _e('Administrator role always bypass CMP by default.', 'cmp-coming-soon-maintenance');?></p>
322
 
323
  </fieldset>
324
 
371
  <h4><?php _e('Set Bypass Passphrase', 'cmp-coming-soon-maintenance');?></h4>
372
  <input type="text" name="niteoCS_bypass_id" value="<?php echo esc_attr( $bypass_id ); ?>" class="regular-text code"><br>
373
 
374
+ <p class="cmp-hint" style="margin-top:0"><?php _e('You can use passphrase which contains letters, numbers, underscores or dashes only.', 'cmp-coming-soon-maintenance');?></p>
375
 
376
  <h4><?php _e('Set bypass cookie Expiration Time in seconds', 'cmp-coming-soon-maintenance');?></h4>
377
  <input type="text" name="niteoCS_bypass_expire" value="<?php echo esc_attr( $bypass_expire ); ?>" class="regular-text code"><br>
378
 
379
+ <p class="cmp-hint" style="margin-top:0"><?php _e('You can set custom Bypass CMP Cookie expiration time in seconds (1hour = 3600). Default expiration time is 2 days (172800).', 'cmp-coming-soon-maintenance');?></p>
380
 
381
  <p><?php _e('Please note this solution is using browser cookies which might not work correctly if you are using caching plugins.', 'cmp-coming-soon-maintenance');?></p>
382
 
418
  <input type="radio" class="cmp-topbar-icon" name="niteoCS_topbar_icon" value="0" <?php checked('0', $topbar_icon);?>><?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
419
  </label>
420
  </p>
 
421
  </fieldset>
422
  </th>
423
 
440
 
441
  </select>
442
 
443
+ <p class="cmp-hint" style="margin-top:0"><?php _e('Administrator role can always access Top Bar Icon', 'cmp-coming-soon-maintenance');?></p>
 
444
  </fieldset>
445
 
446
  <div class="cmp-topbar-icon-switch x0">
500
  </div>
501
 
502
  <button id="add-head_scripts" class="button"><?php _e('Add More', 'cmp-coming-soon-maintenance');?></button>
 
503
  </fieldset>
504
 
505
  </td>
542
  </div>
543
 
544
  <button id="add-footer_scripts" class="button"><?php _e('Add More', 'cmp-coming-soon-maintenance');?></button>
 
545
  </fieldset>
546
 
547
  </td>
cmp-settings.php CHANGED
@@ -33,6 +33,19 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
33
  update_option('niteoCS_status', '0');
34
  }
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  if ( isset($_POST['niteoCS_select_theme']) && in_array($_POST['niteoCS_select_theme'], $this->cmp_themes_available())) {
37
  update_option('niteoCS_theme', sanitize_text_field($_POST['niteoCS_select_theme']));
38
  }
@@ -428,6 +441,21 @@ $overlay_text_paragraph = stripslashes(get_option('niteoCS_overlay_text[paragr
428
  $overlay_button_text = stripslashes(get_option('niteoCS_overlay_text[button_text]', 'Call to Action!'));
429
  $overlay_button_url = get_option('niteoCS_overlay_text[button_url]', '');
430
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
431
  // create default social media if they do not exists
432
  if ( !get_option('niteoCS_socialmedia') ) {
433
  $social_icons = array(
@@ -572,32 +600,45 @@ add_thickbox();
572
  <table class="general">
573
  <tbody>
574
  <tr>
575
- <th><?php _e('Status', 'cmp-coming-soon-maintenance');?></th>
576
  <td>
577
- <fieldset class="cmp-status">
578
-
579
  <div class="toggle-wrapper">
580
- <input type="checkbox" id="cmp-status" class="toggle-checkbox" <?php checked( '1', $this->cmp_active() ); ?> name="cmp_status">
581
  <label for="cmp-status" class="toggle"><span class="toggle_handler"></span></label>
582
  </div>
 
583
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
584
  </fieldset>
585
  </td>
586
  </tr>
587
 
588
  <tr>
589
- <th><?php _e('Mode', 'cmp-coming-soon-maintenance');?></th>
590
  <td>
591
  <fieldset class="cmp-status switch<?php echo $this->cmp_mode() == 2 ? ' active' : '';?>">
592
  <input type="radio" name="cmp-activate" value="2" <?php checked( '2', $this->cmp_mode() ); ?> <?php disabled( '0', $this->cmp_active() ); ?>>&nbsp;<?php _e('Coming Soon & Landing Page', 'cmp-coming-soon-maintenance');?><br>
593
  <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>
594
-
595
  </fieldset>
596
 
597
  <fieldset class="cmp-status switch<?php echo $this->cmp_mode() == 1 ? ' active' : '';?>">
598
  <input type="radio" name="cmp-activate" value="1" <?php checked( '1', $this->cmp_mode() ); ?> <?php disabled( '0', $this->cmp_active() ); ?>>&nbsp;<?php _e('Maintanance Mode', 'cmp-coming-soon-maintenance');?><br>
599
  <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>
600
-
601
  </fieldset>
602
 
603
  <fieldset class="cmp-status switch<?php echo $this->cmp_mode() == 3 ? ' active' : '';?>">
33
  update_option('niteoCS_status', '0');
34
  }
35
 
36
+
37
+ if ( isset($_POST['cmp-status-pages']) && is_numeric($_POST['cmp-status-pages']) ) {
38
+ if ( $_POST['cmp-status-pages'] === '0' ) {
39
+ update_option('niteoCS_page_filter', '0');
40
+ }
41
+
42
+ if ( $_POST['cmp-status-pages'] === '1' ) {
43
+ update_option('niteoCS_page_filter', '1');
44
+ update_option('niteoCS_page_whitelist', '["-1"]');
45
+ update_option('niteoCS_page_whitelist_custom', '[]');
46
+ }
47
+ }
48
+
49
  if ( isset($_POST['niteoCS_select_theme']) && in_array($_POST['niteoCS_select_theme'], $this->cmp_themes_available())) {
50
  update_option('niteoCS_theme', sanitize_text_field($_POST['niteoCS_select_theme']));
51
  }
441
  $overlay_button_text = stripslashes(get_option('niteoCS_overlay_text[button_text]', 'Call to Action!'));
442
  $overlay_button_url = get_option('niteoCS_overlay_text[button_url]', '');
443
 
444
+ // retrieve whitelist or blacklist settings
445
+ $page_filter = get_option('niteoCS_page_filter', '0');
446
+ $cmp_status_pages = '0';
447
+
448
+ // set status pages based on whitelist/blacklist settings
449
+ if ( $page_filter !== '0' ) {
450
+ $page_whitelist = get_option('niteoCS_page_whitelist', '[]');
451
+ $page_whitelist_custom = get_option('niteoCS_page_whitelist_custom', '[]');
452
+ if ($page_whitelist == '["-1"]' && $page_whitelist_custom == '[]') {
453
+ $cmp_status_pages = '1';
454
+ } else {
455
+ $cmp_status_pages = '2';
456
+ }
457
+ }
458
+
459
  // create default social media if they do not exists
460
  if ( !get_option('niteoCS_socialmedia') ) {
461
  $social_icons = array(
600
  <table class="general">
601
  <tbody>
602
  <tr>
603
+ <th><?php _e('CMP Status', 'cmp-coming-soon-maintenance');?></th>
604
  <td>
605
+ <fieldset>
 
606
  <div class="toggle-wrapper">
607
+ <input type="checkbox" name="cmp_status" id="cmp-status" class="toggle-checkbox" <?php checked( '1', $this->cmp_active() ); ?>>
608
  <label for="cmp-status" class="toggle"><span class="toggle_handler"></span></label>
609
  </div>
610
+ </fieldset>
611
 
612
+ <fieldset class="cmp-status-pages" style="display: <?php echo ( $this->cmp_active() == '1' ) ? 'block' : 'none';?>">
613
+ <label for="cmp-status-pages-0"<?php echo ($cmp_status_pages == '0') ? ' class="active"' : '';?>>
614
+ <input type="radio" name="cmp-status-pages" id="cmp-status-pages-0" value="0" <?php checked( '0', $cmp_status_pages ); ?>>
615
+ <?php _e('Whole Website', 'cmp-coming-soon-maintenance');?>
616
+ </label>
617
+
618
+ <label for="cmp-status-pages-1"<?php echo ($cmp_status_pages == '1') ? ' class="active"' : '';?>>
619
+ <input type="radio" name="cmp-status-pages" id="cmp-status-pages-1" value="1" <?php checked( '1', $cmp_status_pages ); ?>>
620
+ <?php _e('Homepage only', 'cmp-coming-soon-maintenance');?>
621
+ </label>
622
+
623
+ <a href="https://niteothemes.com/dev/wp-admin/admin.php?page=cmp-advanced"><div class="label<?php echo ($cmp_status_pages == '2') ? ' active' : '';?>">
624
+ <input type="radio" name="cmp-status-pages" id="cmp-status-pages-2" value="2" <?php checked( '2', $cmp_status_pages ); ?>>
625
+ <?php _e('Whitelist/Blacklist', 'cmp-coming-soon-maintenance');?>
626
+ </div></a>
627
  </fieldset>
628
  </td>
629
  </tr>
630
 
631
  <tr>
632
+ <th><?php _e('CMP Mode', 'cmp-coming-soon-maintenance');?></th>
633
  <td>
634
  <fieldset class="cmp-status switch<?php echo $this->cmp_mode() == 2 ? ' active' : '';?>">
635
  <input type="radio" name="cmp-activate" value="2" <?php checked( '2', $this->cmp_mode() ); ?> <?php disabled( '0', $this->cmp_active() ); ?>>&nbsp;<?php _e('Coming Soon & Landing Page', 'cmp-coming-soon-maintenance');?><br>
636
  <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>
 
637
  </fieldset>
638
 
639
  <fieldset class="cmp-status switch<?php echo $this->cmp_mode() == 1 ? ' active' : '';?>">
640
  <input type="radio" name="cmp-activate" value="1" <?php checked( '1', $this->cmp_mode() ); ?> <?php disabled( '0', $this->cmp_active() ); ?>>&nbsp;<?php _e('Maintanance Mode', 'cmp-coming-soon-maintenance');?><br>
641
  <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>
 
642
  </fieldset>
643
 
644
  <fieldset class="cmp-status switch<?php echo $this->cmp_mode() == 3 ? ' active' : '';?>">
cmp-subscribers.php CHANGED
@@ -22,7 +22,8 @@ $cmp_subs_list_table->prepare_items();
22
  <div class="settings-wrap">
23
  <div class="cmp-inputs-wrapper subscribers-settings">
24
  <?php wp_nonce_field('cmp_process_bulk_action', '_nonce'); ?>
25
- <h2><?php _e('View / Edit Subscribers', 'cmp-coming-soon-maintenance');?></h2>
 
26
  <form name="cmp_subscribe_form" method="post" action="admin.php?page=cmp-subscribers">
27
  <?php $cmp_subs_list_table->display(); ?>
28
  </form>
22
  <div class="settings-wrap">
23
  <div class="cmp-inputs-wrapper subscribers-settings">
24
  <?php wp_nonce_field('cmp_process_bulk_action', '_nonce'); ?>
25
+ <h2><?php _e('View / Edit CMP Subscribers', 'cmp-coming-soon-maintenance');?></h2>
26
+ <p><?php _e('If you use MailChimp integration, you must check your Subscribers directly in MailChimp!', 'cmp-coming-soon-maintenance');?></p>
27
  <form name="cmp_subscribe_form" method="post" action="admin.php?page=cmp-subscribers">
28
  <?php $cmp_subs_list_table->display(); ?>
29
  </form>
cmp-translate.php CHANGED
@@ -68,7 +68,8 @@ $cmp_translate_table->prepare_items();
68
  <div id="icon-users" class="icon32"></div>
69
  <div class="settings-wrap">
70
  <div class="cmp-inputs-wrapper translate-settings">
71
- <h2><?php _e('Edit Translation Variables', 'cmp-coming-soon-maintenance');?></h2>
 
72
  <form name="cmp_translate_form" method="post" action="admin.php?page=cmp-translate&status=settings-saved">
73
  <?php $cmp_translate_table->display(); ?>
74
  <p class="cmp-submit">
68
  <div id="icon-users" class="icon32"></div>
69
  <div class="settings-wrap">
70
  <div class="cmp-inputs-wrapper translate-settings">
71
+ <h2><?php _e('CMP Translation', 'cmp-coming-soon-maintenance');?></h2>
72
+ <p><?php _e('You can edit any text on CMP landing page - button labels, countdown, subscription messages, etc.', 'cmp-coming-soon-maintenance');?></p>
73
  <form name="cmp_translate_form" method="post" action="admin.php?page=cmp-translate&status=settings-saved">
74
  <?php $cmp_translate_table->display(); ?>
75
  <p class="cmp-submit">
css/cmp-admin-head.css CHANGED
@@ -52,11 +52,12 @@
52
  display: inline-block;
53
  position: relative;
54
  z-index: 1;
55
- background: #c0392b;
56
  width: 40px;
57
  height: 20px;
58
  top: 5px;
59
  left: 5px;
 
60
  -webkit-transition: all 200ms ease-in-out;
61
  transition: all 200ms ease-in-out;
62
  -webkit-transform: translateX(0px);
@@ -66,15 +67,7 @@
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;
70
- }
71
-
72
- #wpadminbar #wp-admin-bar-cmp-admin-notice .toggle-wrapper:hover .toggle_handler {
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
 
52
  display: inline-block;
53
  position: relative;
54
  z-index: 1;
55
+ background: #e63946;
56
  width: 40px;
57
  height: 20px;
58
  top: 5px;
59
  left: 5px;
60
+ border-radius: 3px;
61
  -webkit-transition: all 200ms ease-in-out;
62
  transition: all 200ms ease-in-out;
63
  -webkit-transform: translateX(0px);
67
  #wpadminbar #wp-admin-bar-cmp-admin-notice #cmp-toggle-adminbar.status-1 .toggle_handler {
68
  -webkit-transform: translateX(40px);
69
  transform: translateX(40px);
70
+ background: #2d936c;
 
 
 
 
 
 
 
 
71
  }
72
 
73
 
css/cmp-settings-style.css CHANGED
@@ -8,7 +8,7 @@
8
 
9
  .cmp-coming-soon-maintenance .cmp-settings-wrapper {
10
  position: relative;
11
- margin-top: 1em
12
  }
13
 
14
  .cmp-coming-soon-maintenance .wrapper-disabled {
@@ -69,7 +69,7 @@
69
 
70
  .cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb {
71
  -webkit-appearance: none;
72
- background-color: #0085ba;
73
  width: 17px;
74
  height: 17px;
75
  border-radius: 50%;
@@ -80,8 +80,8 @@
80
  }
81
 
82
  ​.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover {
83
- background-color: #006799;
84
- border: 2px solid #0085ba
85
  }
86
 
87
  .cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active {
@@ -109,12 +109,20 @@
109
  .cmp-coming-soon-maintenance .cmp-status {
110
  width: 95%;
111
  padding: 10px;
112
- cursor: pointer
 
 
 
113
  }
114
 
 
115
  .cmp-coming-soon-maintenance .cmp-status.active {
116
- background-color: #ddd
117
- }
 
 
 
 
118
 
119
  .cmp-coming-soon-maintenance .redirect {
120
  margin-bottom: 0
@@ -141,10 +149,6 @@
141
  border-right: 1px solid #dedede;
142
  }
143
 
144
- .cmp-coming-soon-maintenance .CodeMirror-wrap pre {
145
- /* margin-left: 50px; */
146
- }
147
-
148
  .cmp-coming-soon-maintenance .custom_css .cmp-submit {
149
  padding-left: 1em;
150
  border-top: 1px solid #dedede;
@@ -433,6 +437,33 @@
433
  padding-right: 3px
434
  }
435
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
436
  .cmp-coming-soon-maintenance .banner-wrapper,
437
  .cmp-coming-soon-maintenance .favicon-wrapper,
438
  .cmp-coming-soon-maintenance .logo-wrapper,
@@ -611,7 +642,7 @@
611
  }
612
 
613
  .cmp-coming-soon-maintenance .active .theme-inputs {
614
- background: #27ae60;
615
  }
616
 
617
  .cmp-coming-soon-maintenance .theme-inputs .italic {
@@ -650,7 +681,7 @@
650
 
651
  .cmp-coming-soon-maintenance .cmp-button.submit,
652
  .cmp-coming-soon-maintenance .theme-actions .activate {
653
- background-color: #c0392b;
654
  color: #fff;
655
  border: none;
656
  -o-transition: background-color .5s;
@@ -667,12 +698,52 @@
667
  background-color: #ff3284;
668
  }
669
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
670
 
671
  .cmp-coming-soon-maintenance .cmp-button.submit:focus,
672
  .cmp-coming-soon-maintenance .cmp-button.submit:hover,
673
  .cmp-coming-soon-maintenance .theme-actions .activate:focus,
674
  .cmp-coming-soon-maintenance .theme-actions .activate:hover {
675
- background-color: #e74c3c;
676
  color: #fff;
677
  border: none
678
  }
@@ -737,7 +808,7 @@
737
  }
738
 
739
  .cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected {
740
- background-color: #32b2ff;
741
  }
742
 
743
  .cmp-coming-soon-maintenance .theme-wrapper .theme-details.button {
@@ -856,11 +927,11 @@
856
 
857
  .cmp-coming-soon-maintenance .toggle {
858
  position: relative;
859
- width: 200px;
860
- height: 30px;
861
  font-weight: 600;
862
  background: 0 0;
863
- border: 2px solid #f1f1f1;
864
  -o-transition: all .2s ease-in-out;
865
  transition: all .2s ease-in-out;
866
  border-radius: 15px
@@ -869,8 +940,8 @@
869
  .cmp-coming-soon-maintenance .toggle:after,
870
  .cmp-coming-soon-maintenance .toggle:before {
871
  position: absolute;
872
- line-height: 30px;
873
- font-size: 14px;
874
  z-index: 2;
875
  -o-transition: all .2s ease-in-out;
876
  transition: all .2s ease-in-out
@@ -884,9 +955,9 @@
884
  display: inline-block;
885
  position: relative;
886
  z-index: 1;
887
- background: #c0392b;
888
- width: 90px;
889
- height: 24px;
890
  top: 3px;
891
  left: 5px;
892
  -o-transition: all .2s ease-in-out;
@@ -894,40 +965,30 @@
894
  -webkit-transform: translateX(0);
895
  -ms-transform: translateX(0);
896
  transform: translateX(0);
897
- border-radius: 10px 0 0 10px
898
  }
899
 
900
  .cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler {
901
- width: 90px;
902
- -webkit-transform: translateX(100px);
903
- -ms-transform: translateX(100px);
904
- transform: translateX(100px);
905
- background: #27ae60;
906
- border-radius: 0 10px 10px 0
907
- }
908
-
909
- .cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle_handler {
910
- background: #e74c3c
911
- }
912
-
913
- .cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler {
914
- background: #2ecc71
915
  }
916
 
917
  .cmp-coming-soon-maintenance .toggle:before {
918
  content: "Disabled";
919
- left: 22px;
920
  color: #fff
921
  }
922
 
923
  .cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,
924
  .cmp-coming-soon-maintenance .toggle:after {
925
- color: #23282d
926
  }
927
 
928
  .cmp-coming-soon-maintenance .toggle:after {
929
  content: "Enabled";
930
- right: 26px
931
  }
932
 
933
  .cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after {
@@ -1051,6 +1112,10 @@
1051
  .cmp-coming-soon-maintenance .select2-container--default.select2-container--focus .select2-selection--multiple {border-color: #5b9dd9; box-shadow: 0 0 2px rgba(30,140,190,.8);}
1052
  .cmp-coming-soon-maintenance .select2-container--default .select2-results__option--highlighted[aria-selected] {background-color: #2980b9;}
1053
 
 
 
 
 
1054
  @media screen and (max-width:1450px) {
1055
  .cmp-coming-soon-maintenance .cmp-inputs-wrapper,
1056
  .cmp-coming-soon-maintenance #csoptions {
8
 
9
  .cmp-coming-soon-maintenance .cmp-settings-wrapper {
10
  position: relative;
11
+ margin-top: 6px;
12
  }
13
 
14
  .cmp-coming-soon-maintenance .wrapper-disabled {
69
 
70
  .cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb {
71
  -webkit-appearance: none;
72
+ background-color: #1d3557;
73
  width: 17px;
74
  height: 17px;
75
  border-radius: 50%;
80
  }
81
 
82
  ​.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover {
83
+ background-color: #1d3557;
84
+ border: 2px solid #1d3557
85
  }
86
 
87
  .cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active {
109
  .cmp-coming-soon-maintenance .cmp-status {
110
  width: 95%;
111
  padding: 10px;
112
+ font-weight: 600;
113
+ font-size: 1.2em;
114
+ cursor: pointer;
115
+ opacity: 0.8;
116
  }
117
 
118
+
119
  .cmp-coming-soon-maintenance .cmp-status.active {
120
+ opacity: 1;
121
+ }
122
+
123
+ .cmp-coming-soon-maintenance .cmp-status span {
124
+ font-weight: normal;
125
+ }
126
 
127
  .cmp-coming-soon-maintenance .redirect {
128
  margin-bottom: 0
149
  border-right: 1px solid #dedede;
150
  }
151
 
 
 
 
 
152
  .cmp-coming-soon-maintenance .custom_css .cmp-submit {
153
  padding-left: 1em;
154
  border-top: 1px solid #dedede;
437
  padding-right: 3px
438
  }
439
 
440
+ .cmp-coming-soon-maintenance .nav-tab-wrapper {
441
+ border: none!important;
442
+ }
443
+
444
+ .cmp-coming-soon-maintenance .nav-tab {
445
+ font-weight: normal;
446
+ background: white;
447
+ padding: 10px 20px;
448
+ border: 1px solid #e2e2e2;
449
+ }
450
+
451
+ .cmp-coming-soon-maintenance .nav-tab:first-of-type {
452
+ margin-left: 0;
453
+ }
454
+
455
+ .cmp-coming-soon-maintenance .nav-tab-active,
456
+ .cmp-coming-soon-maintenance .nav-tab-active:focus,
457
+ .cmp-coming-soon-maintenance .nav-tab-active:focus:active,
458
+ .cmp-coming-soon-maintenance .nav-tab-active:hover {
459
+ background: #1d3557;
460
+ border: 1px solid #1d3557;
461
+ outline: none;
462
+ box-shadow: none;
463
+ color: white;
464
+ font-weight: 600;
465
+ }
466
+
467
  .cmp-coming-soon-maintenance .banner-wrapper,
468
  .cmp-coming-soon-maintenance .favicon-wrapper,
469
  .cmp-coming-soon-maintenance .logo-wrapper,
642
  }
643
 
644
  .cmp-coming-soon-maintenance .active .theme-inputs {
645
+ background: #2d936c;
646
  }
647
 
648
  .cmp-coming-soon-maintenance .theme-inputs .italic {
681
 
682
  .cmp-coming-soon-maintenance .cmp-button.submit,
683
  .cmp-coming-soon-maintenance .theme-actions .activate {
684
+ background-color: #e63946;
685
  color: #fff;
686
  border: none;
687
  -o-transition: background-color .5s;
698
  background-color: #ff3284;
699
  }
700
 
701
+ .cmp-coming-soon-maintenance .cmp-status-pages label,
702
+ .cmp-coming-soon-maintenance .cmp-status-pages .label {
703
+ height: 33px;
704
+ width: 140px;
705
+ display: flex;
706
+ align-items: center;
707
+ justify-content: center;
708
+ flex-direction: inherit;
709
+ text-align: center;
710
+ border-bottom: 2px solid transparent;
711
+ border-radius: 0;
712
+ float: left;
713
+ margin-top: 2em;
714
+ margin-left: 3em;
715
+ margin-bottom: 2em;
716
+ }
717
+
718
+ .cmp-coming-soon-maintenance .cmp-status-pages label.active,
719
+ .cmp-coming-soon-maintenance .cmp-status-pages .label.active {
720
+ border-color: rgba(29, 53, 87, 0.6);
721
+ }
722
+
723
+
724
+ .cmp-coming-soon-maintenance .cmp-status-pages label:first-of-type {
725
+ margin-left: 0;
726
+ }
727
+
728
+ .cmp-coming-soon-maintenance .cmp-status-pages a {
729
+ color: inherit;
730
+ }
731
+
732
+ .cmp-coming-soon-maintenance .cmp-status-pages input {
733
+ margin: 0;
734
+ margin-right: 0.5em;
735
+ }
736
+
737
+ .redirect-inputs {
738
+ font-size: 0.8em;
739
+ font-weight: normal;
740
+ }
741
 
742
  .cmp-coming-soon-maintenance .cmp-button.submit:focus,
743
  .cmp-coming-soon-maintenance .cmp-button.submit:hover,
744
  .cmp-coming-soon-maintenance .theme-actions .activate:focus,
745
  .cmp-coming-soon-maintenance .theme-actions .activate:hover {
746
+ background-color: #e63946;
747
  color: #fff;
748
  border: none
749
  }
808
  }
809
 
810
  .cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected {
811
+ background-color: #fff;
812
  }
813
 
814
  .cmp-coming-soon-maintenance .theme-wrapper .theme-details.button {
927
 
928
  .cmp-coming-soon-maintenance .toggle {
929
  position: relative;
930
+ width: 340px;
931
+ height: 50px;
932
  font-weight: 600;
933
  background: 0 0;
934
+ border: 2px solid rgba(29, 53, 87, 0.6);
935
  -o-transition: all .2s ease-in-out;
936
  transition: all .2s ease-in-out;
937
  border-radius: 15px
940
  .cmp-coming-soon-maintenance .toggle:after,
941
  .cmp-coming-soon-maintenance .toggle:before {
942
  position: absolute;
943
+ line-height: 50px;
944
+ font-size: 1em;
945
  z-index: 2;
946
  -o-transition: all .2s ease-in-out;
947
  transition: all .2s ease-in-out
955
  display: inline-block;
956
  position: relative;
957
  z-index: 1;
958
+ background: #e63946;
959
+ width: 170px;
960
+ height: 44px;
961
  top: 3px;
962
  left: 5px;
963
  -o-transition: all .2s ease-in-out;
965
  -webkit-transform: translateX(0);
966
  -ms-transform: translateX(0);
967
  transform: translateX(0);
968
+ border-radius: 10px
969
  }
970
 
971
  .cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler {
972
+ -webkit-transform: translateX(160px);
973
+ -ms-transform: translateX(160px);
974
+ transform: translateX(160px);
975
+ background: #2d936c;
 
 
 
 
 
 
 
 
 
 
976
  }
977
 
978
  .cmp-coming-soon-maintenance .toggle:before {
979
  content: "Disabled";
980
+ left: 63px;
981
  color: #fff
982
  }
983
 
984
  .cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,
985
  .cmp-coming-soon-maintenance .toggle:after {
986
+ color: #444
987
  }
988
 
989
  .cmp-coming-soon-maintenance .toggle:after {
990
  content: "Enabled";
991
+ right: 68px
992
  }
993
 
994
  .cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after {
1112
  .cmp-coming-soon-maintenance .select2-container--default.select2-container--focus .select2-selection--multiple {border-color: #5b9dd9; box-shadow: 0 0 2px rgba(30,140,190,.8);}
1113
  .cmp-coming-soon-maintenance .select2-container--default .select2-results__option--highlighted[aria-selected] {background-color: #2980b9;}
1114
 
1115
+ #niteoCS_body_ifr {
1116
+ min-height: 280px;
1117
+ }
1118
+
1119
  @media screen and (max-width:1450px) {
1120
  .cmp-coming-soon-maintenance .cmp-inputs-wrapper,
1121
  .cmp-coming-soon-maintenance #csoptions {
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;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:12px;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;-o-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 .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{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-seo_img,.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.2em;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 #unsplash-media{position:relative}.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}.chameleon.color-preview{-webkit-animation:chameleon 19s infinite;animation:chameleon 19s infinite}@-webkit-keyframes chameleon{0%,100%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}}@keyframes chameleon{0%,100%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}}.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,.cmp-coming-soon-maintenance .seo_img-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,.cmp-coming-soon-maintenance .seo_img-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%;-o-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;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-o-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%);-ms-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;-o-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;-o-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;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;min-width:190px;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{-o-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;-o-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 .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;-o-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;-o-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;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);-ms-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);-ms-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 #niteoCS_subscribe_label{height:150px}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}.cmp-coming-soon-maintenance .cmp-hint{font-size:.9em}.cmp-coming-soon-maintenance .source-repeater-fields input,.cmp-coming-soon-maintenance .target-repeater-fields input{width:95%;margin-bottom:1em}.cmp-coming-soon-maintenance .source-repeater-fields i,.cmp-coming-soon-maintenance .target-repeater-fields i{line-height:2.5;float:right}.logo-height-wrap{display:flex;line-height:2}.logo-height-wrap input[type=range]{margin-right:1em}.cmp-coming-soon-maintenance .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:35px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #dedede;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear,.select2-search--dropdown.select2-search--hide{display:none}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--classic .select2-results>.select2-results__options,.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-selection--single{background-color:#fff;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:1px solid #000;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #dedede;border-radius:4px}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-o-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-o-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:4px 0 0 4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-o-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-o-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#2980b9;color:#fff;border:none;padding:3px 5px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#fff}.cmp-coming-soon-maintenance .select2-container--default .select2-search--inline .select2-search__field{line-height:2.5em;margin-top:0}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__rendered li{margin-bottom:0}.cmp-coming-soon-maintenance .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.cmp-coming-soon-maintenance .select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.cmp-coming-soon-maintenance .select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#2980b9}@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%;max-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:6px}.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:12px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#1d3557;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-o-transition:.3s ease-in-out;transition:.3s ease-in-out}​.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#1d3557;border:2px solid #1d3557}.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 .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{width:95%;padding:10px;font-weight:600;font-size:1.2em;cursor:pointer;opacity:.8}.cmp-coming-soon-maintenance .cmp-status.active{opacity:1}.cmp-coming-soon-maintenance .cmp-status span{font-weight:400}.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-seo_img,.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.2em;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 #unsplash-media{position:relative}.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}.chameleon.color-preview{-webkit-animation:chameleon 19s infinite;animation:chameleon 19s infinite}@-webkit-keyframes chameleon{0%,100%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}}@keyframes chameleon{0%,100%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}}.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 .nav-tab-wrapper{border:none!important}.cmp-coming-soon-maintenance .nav-tab{font-weight:400;background:#fff;padding:10px 20px;border:1px solid #e2e2e2}.cmp-coming-soon-maintenance .nav-tab:first-of-type{margin-left:0}.cmp-coming-soon-maintenance .nav-tab-active,.cmp-coming-soon-maintenance .nav-tab-active:focus,.cmp-coming-soon-maintenance .nav-tab-active:focus:active,.cmp-coming-soon-maintenance .nav-tab-active:hover{background:#1d3557;border:1px solid #1d3557;outline:0;box-shadow:none;color:#fff;font-weight:600}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper,.cmp-coming-soon-maintenance .seo_img-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,.cmp-coming-soon-maintenance .seo_img-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%;-o-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;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-o-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:#2d936c}.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%);-ms-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;-o-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:#e63946;color:#fff;border:none;-o-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;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-status-pages .label,.cmp-coming-soon-maintenance .cmp-status-pages label{height:33px;width:140px;display:flex;align-items:center;justify-content:center;flex-direction:inherit;text-align:center;border-bottom:2px solid transparent;border-radius:0;float:left;margin-top:2em;margin-left:3em;margin-bottom:2em}.cmp-coming-soon-maintenance .cmp-status-pages .label.active,.cmp-coming-soon-maintenance .cmp-status-pages label.active{border-color:rgba(29,53,87,.6)}.cmp-coming-soon-maintenance .cmp-status-pages label:first-of-type{margin-left:0}.cmp-coming-soon-maintenance .cmp-status-pages a{color:inherit}.cmp-coming-soon-maintenance .cmp-status-pages input{margin:0 .5em 0 0}.redirect-inputs{font-size:.8em;font-weight:400}.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:#e63946;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;min-width:190px;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:#fff}.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{-o-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;-o-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 .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:340px;height:50px;font-weight:600;background:0 0;border:2px solid rgba(29,53,87,.6);-o-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:50px;font-size:1em;z-index:2;-o-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:#e63946;width:170px;height:44px;top:3px;left:5px;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);border-radius:10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{-webkit-transform:translateX(160px);-ms-transform:translateX(160px);transform:translateX(160px);background:#2d936c}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:63px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#444}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:68px}.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 #niteoCS_subscribe_label{height:150px}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}.cmp-coming-soon-maintenance .cmp-hint{font-size:.9em}.cmp-coming-soon-maintenance .source-repeater-fields input,.cmp-coming-soon-maintenance .target-repeater-fields input{width:95%;margin-bottom:1em}.cmp-coming-soon-maintenance .source-repeater-fields i,.cmp-coming-soon-maintenance .target-repeater-fields i{line-height:2.5;float:right}.logo-height-wrap{display:flex;line-height:2}.logo-height-wrap input[type=range]{margin-right:1em}.cmp-coming-soon-maintenance .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:35px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #dedede;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear,.select2-search--dropdown.select2-search--hide{display:none}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--classic .select2-results>.select2-results__options,.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-selection--single{background-color:#fff;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:1px solid #000;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #dedede;border-radius:4px}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-o-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-o-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:4px 0 0 4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-o-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-o-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#2980b9;color:#fff;border:none;padding:3px 5px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#fff}.cmp-coming-soon-maintenance .select2-container--default .select2-search--inline .select2-search__field{line-height:2.5em;margin-top:0}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__rendered li{margin-bottom:0}.cmp-coming-soon-maintenance .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.cmp-coming-soon-maintenance .select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.cmp-coming-soon-maintenance .select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#2980b9}#niteoCS_body_ifr{min-height:280px}@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%;max-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
@@ -145,35 +145,42 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
145
  dimension = 'h=' + height;
146
  }
147
 
148
- // trigger Unsplash download to meet API requirements
149
- var unsplash_img = JSON.parse( Get( unsplash_download + '?client_id=41f043163758cf2e898e8a868bc142c20bc3f5966e7abac4779ee684088092ab' ) );
150
 
151
- unsplash_img = unsplash_img.url + '&fit=crop&' + dimension;
 
 
 
 
 
 
152
 
 
153
 
154
- var image = '<div id="background-image" class="image" style="background-image:url()"></div>';
155
 
156
- var image = document.createElement('div');
157
- image.id = 'background-image';
158
- image.className = 'image';
159
- image.style.backgroundImage = 'url('+unsplash_img+')';
160
 
161
- var container = document.getElementById("background-wrapper");
162
 
163
- if ( container == null ) {
164
- container = document.getElementById("banner-wrapper");
165
- }
 
 
 
 
166
 
167
- container.appendChild(image);
168
 
169
- // define get function for external URL
170
- function Get(url){
171
- var Httpreq = new XMLHttpRequest(); // a new request
172
- Httpreq.open("GET", url, false);
173
- Httpreq.send(null);
174
- return Httpreq.responseText;
175
- }
176
 
 
 
 
 
177
  </script>
178
  <?php
179
 
@@ -763,11 +770,16 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
763
  // override label if in Theme preview
764
  if ( isset( $_GET['theme'] ) ) {
765
  switch ( $_GET['theme'] ) {
 
 
 
766
  case 'element':
767
  $placeholder = 'SUBSCRIBE US';
 
768
  break;
769
  case 'hardwork_premium' :
770
  $submit = 'Subscribe';
 
771
  break;
772
  case 'agency' :
773
  $niteoCS_subscribe_label = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.';
@@ -884,31 +896,30 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
884
  </form>
885
 
886
  <script>
887
-
888
- var ajaxurl = "<?php echo admin_url('admin-ajax.php');?>";
 
889
  var msg = '';
890
 
891
-
892
- /* Usage */
893
- window.addEventListener("load",function(event) {
894
  subForm( 'subscribe-form', 'submit-subscribe', 'subscribe-response', 'email-subscribe', 'firstname-subscribe', 'lastname-subscribe' );
895
  });
896
 
897
  subForm = function(formID, buttonID, resultID, emailID, firstnameID, lastnameID) {
898
 
899
-
900
  let selectForm = document.getElementById(formID); // Select the form by ID.
901
  let selectButton = document.getElementById(buttonID); // Select the button by ID.
902
  let selectResult = document.getElementById(resultID); // Select result element by ID.
903
  let emailInput = document.getElementById(emailID); // Select email input by ID.
904
  let firstnameInput = document.getElementById(firstnameID); // Select firstname input by ID.
905
  let lastnameInput = document.getElementById(lastnameID); // Select lastname input by ID.
906
-
907
- let firstname;
908
- let lastname;
909
-
910
  selectButton.onclick = function(){ // If clicked on the button.
911
  if ( emailInput.value != '' ) {
 
 
 
912
  // I'm using the whatwg-fetch polyfill and a polyfill for Promises.
913
  fetch(ajaxurl, {
914
  method: 'POST',
@@ -916,7 +927,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
916
  'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
917
  'Access-Control-Allow-Origin': '*',
918
  },
919
- body: `action=niteo_subscribe&ajax=true&form_honeypot=&email=${emailInput.value}&firstname=${firstname}&lastname=${lastname}`,
920
  credentials: 'same-origin'
921
  })
922
  .then((res) => {
@@ -935,66 +946,14 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
935
  selectForm.classList.add('-subscribe-failed');
936
  }
937
  })
938
- .catch(function(error) { console.log(error); });
939
  }
940
-
941
  }
942
 
943
  selectForm.onsubmit = function(){ // Prevent page refresh
944
  return false;
945
  }
946
  }
947
-
948
-
949
- // function AJAXform( formID, buttonID, resultID, emailID, firstnameID, lastnameID ){
950
-
951
-
952
- // function XMLhttp(){
953
-
954
- // var httpRequest = new XMLHttpRequest();
955
-
956
- // httpRequest.onreadystatechange = function(){
957
- // if ( this.readyState == 4 && this.status == 200 ) {
958
- // result = JSON.parse( this.responseText );
959
- // selectResult.innerHTML = result.message; // Display the result inside result element.
960
- // emailInput.value = '';
961
- // selectForm.classList.add('-subscribed');
962
-
963
- // if ( result.status == 1 ) {
964
- // selectForm.classList.remove('-subscribe-failed');
965
- // selectForm.classList.add('-subscribe-successful');
966
-
967
- // <?php do_action('cmp-successfull-subscribe-action'); ?>
968
-
969
- // } else {
970
- // selectForm.classList.add('-subscribe-failed');
971
- // }
972
- // }
973
-
974
- // };
975
-
976
- // firstname = ( firstnameInput == null ) ? '' : firstnameInput.value;
977
- // lastname = ( lastnameInput == null ) ? '' : lastnameInput.value;
978
-
979
- // httpRequest.open('POST', ajaxurl, true);
980
- // httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
981
- // httpRequest.setRequestHeader("Access-Control-Allow-Origin", "*");
982
-
983
- // httpRequest.send('action=niteo_subscribe&ajax=true&form_honeypot=&email=' + emailInput.value + '&firstname=' + firstname + '&lastname=' + lastname);
984
- // }
985
-
986
- // selectButton.onclick = function(){ // If clicked on the button.
987
- // if ( emailInput.value != '' ) {
988
- // XMLhttp();
989
- // }
990
-
991
- // }
992
-
993
-
994
- // }
995
-
996
-
997
-
998
  </script>
999
  <?php
1000
  }
@@ -1198,8 +1157,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1198
 
1199
  $title = stripslashes( get_option('niteoCS_title', get_bloginfo('name').' Coming soon!') );
1200
  $descr = stripslashes( get_option('niteoCS_descr', 'Just another Coming Soon Page') );
1201
- $image = $this->cmp_get_background_img();
1202
- ?>
1203
  <!-- SEO -->
1204
  <title><?php echo esc_html( $title ); ?></title>
1205
  <meta name="description" content="<?php echo esc_html( $descr ); ?>"/>
@@ -1224,17 +1182,15 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1224
 
1225
  if ( $favicon_id && $favicon_id != '' ) {
1226
  $favicon_url = wp_get_attachment_image_src( $favicon_id, 'thumbnail' );
1227
- if ( isset($favicon_url[0]) ){ ?>
1228
- <link id="favicon" rel="shortcut icon" href="<?php echo $favicon_url[0];?>" type="image/x-icon"/>
1229
- <?php
1230
  }
1231
  } else {
1232
  wp_site_icon();
1233
  }
1234
 
1235
- if ( get_option( 'blog_public', '1' ) == '0' ) { ?>
1236
- <meta name='robots' content='noindex,nofollow' />
1237
- <?php
1238
  }
1239
 
1240
  $html = ob_get_clean();
@@ -1258,7 +1214,6 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1258
  $themeslug = esc_attr($_GET['theme']);
1259
  }
1260
 
1261
-
1262
  $banner = get_option('niteoCS_banner', '2');
1263
 
1264
  if ( isset( $_GET['background'] ) && !empty($_GET['background']) ) {
@@ -1287,11 +1242,12 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1287
 
1288
  <?php
1289
  } ?>
1290
-
1291
- <!-- wp video shortcode -->
1292
  <style>
 
1293
  .wp-video {margin: 0 auto;}
1294
  .wp-video-shortcode {max-width: 100%;}
 
1295
  .grecaptcha-badge {display: none;}
1296
  </style>
1297
 
@@ -1306,7 +1262,6 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1306
  <?php
1307
  }
1308
 
1309
-
1310
  // CHAMELEON BACKGROUND STYLES
1311
  if ( $themeslug === 'pluto' && $banner === '2' ): ?>
1312
  <style>
@@ -1386,7 +1341,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1386
 
1387
  $custom_css = ( get_option('niteoCS_custom_css', '') != '' ) ? '<style>'.stripslashes( wp_filter_nohtml_kses( get_option('niteoCS_custom_css') ) ).'</style>' : '';
1388
 
1389
- $css .= $custom_css ;
1390
 
1391
  return $css;
1392
  }
@@ -1536,6 +1491,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1536
  });
1537
 
1538
  function init(){
 
1539
  var image = document.getElementById('background-image');
1540
  var body = document.getElementById('body');
1541
  if ( image === null ) {
@@ -1732,7 +1688,6 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1732
  $('[data-slide="' + nextSlide + '"]').addClass('active');
1733
  });
1734
 
1735
-
1736
  </script>
1737
  <?php
1738
  break;
@@ -1818,11 +1773,9 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1818
  echo '<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" Crossorigin="anonymous"></script>';
1819
  $jquery = TRUE;
1820
  } ?>
1821
- <!-- INI particles -->
1822
  <script>
1823
-
1824
  var $wrapper=$("#background-wrapper").length?$("#background-wrapper"):$("#slider-wrapper");$wrapper.append("<canvas></canvas><canvas></canvas><canvas></canvas>"),function(a){var e=$wrapper.children("canvas"),n=e[0],r=e[1],i=e[2],o={circle:{amount:18,layer:3,color:[<?php echo $this->hex2rgba( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>],alpha:.3},line:{amount:12,layer:3,color:[<?php echo $this->hex2rgba( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>],alpha:.3},speed:.5,angle:20};if(n.getContext){n.getContext("2d");var t,l,c,d=r.getContext("2d"),m=i.getContext("2d"),w=window.Math,s=o.angle/360*w.PI*2,p=[],u=[];requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(a,e){setTimeout(a,1e3/60)},cancelAnimationFrame=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame||clearTimeout;var h=function(){t=a(window).width(),l=a(window).height(),e.each(function(){this.width=t,this.height=l})},v=function(){var a,e,n,r,i,h,f,y,g,A,F,C,b,x,q=w.sin(s),R=w.cos(s);if(o.circle.amount>0&&o.circle.layer>0){d.clearRect(0,0,t,l);for(var k=0,S=p.length;k<S;k++){var $=(I=p[k]).x,P=I.y,T=I.radius,z=I.speed;$>t+T?$=-T:$<-T?$=t+T:$+=q*z,P>l+T?P=-T:P<-T?P=l+T:P-=R*z,I.x=$,I.y=P,a=$,e=P,n=T,r=I.color,i=I.alpha,h=void 0,(h=d.createRadialGradient(a,e,n,a,e,0)).addColorStop(0,"rgba("+r[0]+","+r[1]+","+r[2]+","+i+")"),h.addColorStop(1,"rgba("+r[0]+","+r[1]+","+r[2]+","+(i-.1)+")"),d.beginPath(),d.arc(a,e,n,0,2*w.PI,!0),d.fillStyle=h,d.fill()}}if(o.line.amount>0&&o.line.layer>0){m.clearRect(0,0,t,l);var G=0;for(S=u.length;G<S;G++){$=(I=u[G]).x,P=I.y;var I,j=I.width;z=I.speed;$>t+j*q?$=-j*q:$<-j*q?$=t+j*q:$+=q*z,P>l+j*R?P=-j*R:P<-j*R?P=l+j*R:P-=R*z,I.x=$,I.y=P,f=$,y=P,g=j,A=I.color,F=I.alpha,void 0,void 0,x=void 0,C=f+w.sin(s)*g,b=y-w.cos(s)*g,(x=m.createLinearGradient(f,y,C,b)).addColorStop(0,"rgba("+A[0]+","+A[1]+","+A[2]+","+F+")"),x.addColorStop(1,"rgba("+A[0]+","+A[1]+","+A[2]+","+(F-.1)+")"),m.beginPath(),m.moveTo(f,y),m.lineTo(C,b),m.lineWidth=3,m.lineCap="round",m.strokeStyle=x,m.stroke()}}c=requestAnimationFrame(v)},f=function(){if(p=[],u=[],o.circle.amount>0&&o.circle.layer>0)for(var a=0;a<o.circle.amount/o.circle.layer;a++)for(var e=0;e<o.circle.layer;e++)p.push({x:w.random()*t,y:w.random()*l,radius:w.random()*(20+5*e)+(20+5*e),color:o.circle.color,alpha:.2*w.random()+(o.circle.alpha-.1*e),speed:o.speed*(1+.5*e)});if(o.line.amount>0&&o.line.layer>0)for(var n=0;n<o.line.amount/o.line.layer;n++)for(var r=0;r<o.line.layer;r++)u.push({x:w.random()*t,y:w.random()*l,width:w.random()*(20+5*r)+(20+5*r),color:o.line.color,alpha:.2*w.random()+(o.line.alpha-.1*r),speed:o.speed*(1+.5*r)});cancelAnimationFrame(c),c=requestAnimationFrame(v)};a(document).ready(function(){h(),f()}),a(window).resize(function(){h(),f()})}}(jQuery);
1825
-
1826
  </script>
1827
  <?php
1828
  break;
@@ -1886,10 +1839,12 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1886
  }
1887
  }
1888
 
 
 
 
1889
  return false;
1890
  }
1891
 
1892
-
1893
  /**
1894
  * render Contact Form.
1895
  *
@@ -1907,7 +1862,6 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1907
 
1908
  switch ( $form_type ) {
1909
  case 'cf7':
1910
-
1911
  $replace = array('<p>', '</p>' );
1912
  $html = str_replace( $replace, '', do_shortcode('[contact-form-7 id='.$form_id.']') ) ;
1913
  break;
@@ -1920,4 +1874,20 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1920
  return $html;
1921
  }
1922
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1923
  }
145
  dimension = 'h=' + height;
146
  }
147
 
148
+ var unsplash_url = '<?php echo esc_url( $unsplash_download );?>?client_id=41f043163758cf2e898e8a868bc142c20bc3f5966e7abac4779ee684088092ab';
 
149
 
150
+ fetch(unsplash_url, {
151
+ method: 'GET',
152
+ })
153
+ .then((res) => {
154
+ return res.json();
155
+ })
156
+ .then((data) => {
157
 
158
+ var imgContainer = '<div id="background-image" class="image" style="background-image:url()"></div>';
159
 
160
+ var image = document.createElement('div');
161
 
162
+ image.id = 'background-image';
 
 
 
163
 
 
164
 
165
+ var container = document.getElementById("background-wrapper");
166
+
167
+ if ( container == null ) {
168
+ container = document.getElementById("banner-wrapper");
169
+ }
170
+
171
+ container.appendChild(image);
172
 
173
+ var unsplashImg = new Image();
174
 
175
+ unsplashImg.onload = function() {
176
+ image.className = 'image loaded';
177
+ image.style.backgroundImage = `url("${unsplashImg.src}")`;
178
+ }
 
 
 
179
 
180
+ unsplashImg.src = `${data.url}&fit=crop&${dimension}`;
181
+
182
+ })
183
+ .catch(function(error) { console.log(error.message); });
184
  </script>
185
  <?php
186
 
770
  // override label if in Theme preview
771
  if ( isset( $_GET['theme'] ) ) {
772
  switch ( $_GET['theme'] ) {
773
+ case 'apollo':
774
+ $niteoCS_subscribe_label = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
775
+ break;
776
  case 'element':
777
  $placeholder = 'SUBSCRIBE US';
778
+ $niteoCS_subscribe_label = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
779
  break;
780
  case 'hardwork_premium' :
781
  $submit = 'Subscribe';
782
+ $niteoCS_subscribe_label = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';
783
  break;
784
  case 'agency' :
785
  $niteoCS_subscribe_label = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.';
896
  </form>
897
 
898
  <script>
899
+ /* Subscribe form script */
900
+ var ajaxurl = '/wp-admin/admin-ajax.php';
901
+ var security = '<?php echo wp_create_nonce( 'cmp-subscribe-action' );?>';
902
  var msg = '';
903
 
904
+ window.addEventListener('load',function(event) {
 
 
905
  subForm( 'subscribe-form', 'submit-subscribe', 'subscribe-response', 'email-subscribe', 'firstname-subscribe', 'lastname-subscribe' );
906
  });
907
 
908
  subForm = function(formID, buttonID, resultID, emailID, firstnameID, lastnameID) {
909
 
 
910
  let selectForm = document.getElementById(formID); // Select the form by ID.
911
  let selectButton = document.getElementById(buttonID); // Select the button by ID.
912
  let selectResult = document.getElementById(resultID); // Select result element by ID.
913
  let emailInput = document.getElementById(emailID); // Select email input by ID.
914
  let firstnameInput = document.getElementById(firstnameID); // Select firstname input by ID.
915
  let lastnameInput = document.getElementById(lastnameID); // Select lastname input by ID.
916
+ let firstname = '';
917
+ let lastname = '';
 
 
918
  selectButton.onclick = function(){ // If clicked on the button.
919
  if ( emailInput.value != '' ) {
920
+ firstname = firstnameInput === null ? '' : firstnameInput.value;
921
+ lastname = lastnameInput === null ? '' : lastnameInput.value;
922
+
923
  // I'm using the whatwg-fetch polyfill and a polyfill for Promises.
924
  fetch(ajaxurl, {
925
  method: 'POST',
927
  'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
928
  'Access-Control-Allow-Origin': '*',
929
  },
930
+ body: `action=niteo_subscribe&ajax=true&form_honeypot=&email=${emailInput.value}&firstname=${firstname}&lastname=${lastname}&security=${security}`,
931
  credentials: 'same-origin'
932
  })
933
  .then((res) => {
946
  selectForm.classList.add('-subscribe-failed');
947
  }
948
  })
949
+ .catch(function(error) { console.log(error.message); });
950
  }
 
951
  }
952
 
953
  selectForm.onsubmit = function(){ // Prevent page refresh
954
  return false;
955
  }
956
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
957
  </script>
958
  <?php
959
  }
1157
 
1158
  $title = stripslashes( get_option('niteoCS_title', get_bloginfo('name').' Coming soon!') );
1159
  $descr = stripslashes( get_option('niteoCS_descr', 'Just another Coming Soon Page') );
1160
+ $image = $this->cmp_get_background_img(); ?>
 
1161
  <!-- SEO -->
1162
  <title><?php echo esc_html( $title ); ?></title>
1163
  <meta name="description" content="<?php echo esc_html( $descr ); ?>"/>
1182
 
1183
  if ( $favicon_id && $favicon_id != '' ) {
1184
  $favicon_url = wp_get_attachment_image_src( $favicon_id, 'thumbnail' );
1185
+ if ( isset($favicon_url[0]) ) {
1186
+ echo '<link id="favicon" rel="shortcut icon" href="' . $favicon_url[0] . '" type="image/x-icon"/>';
 
1187
  }
1188
  } else {
1189
  wp_site_icon();
1190
  }
1191
 
1192
+ if ( get_option( 'blog_public', '1' ) == '0' ) {
1193
+ echo '<meta name="robots" content="noindex,nofollow" />' . PHP_EOL;
 
1194
  }
1195
 
1196
  $html = ob_get_clean();
1214
  $themeslug = esc_attr($_GET['theme']);
1215
  }
1216
 
 
1217
  $banner = get_option('niteoCS_banner', '2');
1218
 
1219
  if ( isset( $_GET['background'] ) && !empty($_GET['background']) ) {
1242
 
1243
  <?php
1244
  } ?>
1245
+
 
1246
  <style>
1247
+ /* wp video shortcode */
1248
  .wp-video {margin: 0 auto;}
1249
  .wp-video-shortcode {max-width: 100%;}
1250
+ /* google recaptcha badge */
1251
  .grecaptcha-badge {display: none;}
1252
  </style>
1253
 
1262
  <?php
1263
  }
1264
 
 
1265
  // CHAMELEON BACKGROUND STYLES
1266
  if ( $themeslug === 'pluto' && $banner === '2' ): ?>
1267
  <style>
1341
 
1342
  $custom_css = ( get_option('niteoCS_custom_css', '') != '' ) ? '<style>'.stripslashes( wp_filter_nohtml_kses( get_option('niteoCS_custom_css') ) ).'</style>' : '';
1343
 
1344
+ $css .= $custom_css;
1345
 
1346
  return $css;
1347
  }
1491
  });
1492
 
1493
  function init(){
1494
+
1495
  var image = document.getElementById('background-image');
1496
  var body = document.getElementById('body');
1497
  if ( image === null ) {
1688
  $('[data-slide="' + nextSlide + '"]').addClass('active');
1689
  });
1690
 
 
1691
  </script>
1692
  <?php
1693
  break;
1773
  echo '<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" Crossorigin="anonymous"></script>';
1774
  $jquery = TRUE;
1775
  } ?>
1776
+ <!-- INI bubbles -->
1777
  <script>
 
1778
  var $wrapper=$("#background-wrapper").length?$("#background-wrapper"):$("#slider-wrapper");$wrapper.append("<canvas></canvas><canvas></canvas><canvas></canvas>"),function(a){var e=$wrapper.children("canvas"),n=e[0],r=e[1],i=e[2],o={circle:{amount:18,layer:3,color:[<?php echo $this->hex2rgba( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>],alpha:.3},line:{amount:12,layer:3,color:[<?php echo $this->hex2rgba( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>],alpha:.3},speed:.5,angle:20};if(n.getContext){n.getContext("2d");var t,l,c,d=r.getContext("2d"),m=i.getContext("2d"),w=window.Math,s=o.angle/360*w.PI*2,p=[],u=[];requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(a,e){setTimeout(a,1e3/60)},cancelAnimationFrame=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||window.oCancelAnimationFrame||clearTimeout;var h=function(){t=a(window).width(),l=a(window).height(),e.each(function(){this.width=t,this.height=l})},v=function(){var a,e,n,r,i,h,f,y,g,A,F,C,b,x,q=w.sin(s),R=w.cos(s);if(o.circle.amount>0&&o.circle.layer>0){d.clearRect(0,0,t,l);for(var k=0,S=p.length;k<S;k++){var $=(I=p[k]).x,P=I.y,T=I.radius,z=I.speed;$>t+T?$=-T:$<-T?$=t+T:$+=q*z,P>l+T?P=-T:P<-T?P=l+T:P-=R*z,I.x=$,I.y=P,a=$,e=P,n=T,r=I.color,i=I.alpha,h=void 0,(h=d.createRadialGradient(a,e,n,a,e,0)).addColorStop(0,"rgba("+r[0]+","+r[1]+","+r[2]+","+i+")"),h.addColorStop(1,"rgba("+r[0]+","+r[1]+","+r[2]+","+(i-.1)+")"),d.beginPath(),d.arc(a,e,n,0,2*w.PI,!0),d.fillStyle=h,d.fill()}}if(o.line.amount>0&&o.line.layer>0){m.clearRect(0,0,t,l);var G=0;for(S=u.length;G<S;G++){$=(I=u[G]).x,P=I.y;var I,j=I.width;z=I.speed;$>t+j*q?$=-j*q:$<-j*q?$=t+j*q:$+=q*z,P>l+j*R?P=-j*R:P<-j*R?P=l+j*R:P-=R*z,I.x=$,I.y=P,f=$,y=P,g=j,A=I.color,F=I.alpha,void 0,void 0,x=void 0,C=f+w.sin(s)*g,b=y-w.cos(s)*g,(x=m.createLinearGradient(f,y,C,b)).addColorStop(0,"rgba("+A[0]+","+A[1]+","+A[2]+","+F+")"),x.addColorStop(1,"rgba("+A[0]+","+A[1]+","+A[2]+","+(F-.1)+")"),m.beginPath(),m.moveTo(f,y),m.lineTo(C,b),m.lineWidth=3,m.lineCap="round",m.strokeStyle=x,m.stroke()}}c=requestAnimationFrame(v)},f=function(){if(p=[],u=[],o.circle.amount>0&&o.circle.layer>0)for(var a=0;a<o.circle.amount/o.circle.layer;a++)for(var e=0;e<o.circle.layer;e++)p.push({x:w.random()*t,y:w.random()*l,radius:w.random()*(20+5*e)+(20+5*e),color:o.circle.color,alpha:.2*w.random()+(o.circle.alpha-.1*e),speed:o.speed*(1+.5*e)});if(o.line.amount>0&&o.line.layer>0)for(var n=0;n<o.line.amount/o.line.layer;n++)for(var r=0;r<o.line.layer;r++)u.push({x:w.random()*t,y:w.random()*l,width:w.random()*(20+5*r)+(20+5*r),color:o.line.color,alpha:.2*w.random()+(o.line.alpha-.1*r),speed:o.speed*(1+.5*r)});cancelAnimationFrame(c),c=requestAnimationFrame(v)};a(document).ready(function(){h(),f()}),a(window).resize(function(){h(),f()})}}(jQuery);
 
1779
  </script>
1780
  <?php
1781
  break;
1839
  }
1840
  }
1841
 
1842
+ // render nt&cmp notes
1843
+ echo $this->cmp_render_nt_info();
1844
+
1845
  return false;
1846
  }
1847
 
 
1848
  /**
1849
  * render Contact Form.
1850
  *
1862
 
1863
  switch ( $form_type ) {
1864
  case 'cf7':
 
1865
  $replace = array('<p>', '</p>' );
1866
  $html = str_replace( $replace, '', do_shortcode('[contact-form-7 id='.$form_id.']') ) ;
1867
  break;
1874
  return $html;
1875
  }
1876
 
1877
+ /**
1878
+ * render niteothemes info
1879
+ *
1880
+ * @since 3.2.3
1881
+ * @return HTML
1882
+ **/
1883
+ public function cmp_render_nt_info() {
1884
+
1885
+ $html = '
1886
+ <!-- Build by CMP – Coming Soon & Maintenance Plugin by NiteoThemes -->
1887
+ <!-- Visit plugin page https://wordpress.org/plugins/cmp-coming-soon-maintenance/ -->
1888
+ <!-- More CMP Themes on https://niteothemes.com -->';
1889
+
1890
+ return $html;
1891
+ }
1892
+
1893
  }
js/settings.js CHANGED
@@ -127,6 +127,13 @@ jQuery(document).ready(function($) {
127
  }
128
  );
129
  jQuery("#cmp-toggle-adminbar").toggleClass("status-1");
 
 
 
 
 
 
 
130
  });
131
 
132
  cmp_status_inputs();
127
  }
128
  );
129
  jQuery("#cmp-toggle-adminbar").toggleClass("status-1");
130
+ jQuery('.cmp-status-pages').fadeToggle();
131
+ });
132
+
133
+ jQuery('.cmp-status-pages input[type=radio]').change(function() {
134
+ jQuery('.cmp-status-pages input[type=radio]').parent().removeClass('active');
135
+ jQuery(this).parent().addClass('active');
136
+
137
  });
138
 
139
  cmp_status_inputs();
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"),t=e("#csoptions fieldset:not(.skip-preview-validation *)").serialize();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}),d(".cmp-coming-soon-maintenance .blur-range","span","html"),d(".cmp-coming-soon-maintenance .background-overlay-opacity","span","html"),d("#logo_size_slider","#niteoCS_logo_size","val"),d("#niteoCS_logo_size","#logo_size_slider","val"),u("logo",!1,"image","img"),u("favicon",!1,"image","img"),u("seo_img",!1,"image","img"),u("images",!0,"image","img"),u("pattern",!1,"image","background"),u("video-thumb",!1,"image","img"),u("video-local",!1,"video","video"),m("analytics"),m("contact-form"),m("subscribe"),m("background-effect"),m("special-effect"),m("cmp-logo"),m("background-type"),m("counter"),m("overlay-text"),m("cmp-logo-size"),p("counter-action"),p("subscribe-method"),p("background-overlay"),p("banner-video-source"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1,placeholder:"Click to select.."}),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.switch: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.switch").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=jQuery(this).data("security");if(0==t){switch(t){case"0":i=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val()}if(3==t||""!=i){var r={feed:t,url:i,feat:"",custom_str:""};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var c={action:"niteo_unsplash",security:o,params:r};e.post(ajaxurl,c,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-id").html('<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>'),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 i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function o(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-"+i).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery(".unsplash-feed-"+i).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 r,c=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))};if(!/Mobi/.test(navigator.userAgent)){var s=e(".cmp-coming-soon-maintenance .social-inputs"),l=function(n,a){var t=s.find('input[type="text"]');a.item.index();t.each(function(n,a){var t=e(a).data("name");c(t,"order",n)})};s.sortable({stop:l}),s.on("sortchange",l)}function u(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(),u)u.open();else var u=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=u.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=void 0===(n=jQuery.isNumeric(n)?"x"+n:n)?"off":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 p(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 d(e,n,a){jQuery(e).on("input",function(){var e=jQuery(this).val();"html"===a&&jQuery(this).parent().find(n).html(e),"val"===a&&jQuery(this).parent().find(n).val(e)})}(r=jQuery).fn.toggleDisabled=function(){return this.each(function(){var e,n=r(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.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! You can enjoy latest features now :) </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),u={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};e.post(ajaxurl,u,function(u){var m="",p="",d="",g="";if("true"==(u=jQuery.parseJSON(u)).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 '+u.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)m="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=u.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 f=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">'+u.name+d+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+u.author_homepage+'" target="_blank">'+u.author+"</a></p>",g,p,'\t\t\t\t<div class="theme-description">'+u.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<button type="submit" '+m+'class="button activate" name="Submit" aria-label="Select '+u.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 '+u.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(f),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("#niteoCS_mailchimp_list").empty().prop("disabled",!1),e.each(a.lists,function(n,a){e("#niteoCS_mailchimp_list").append('<option value="'+a.id+'">'+a.name+"</option>")})):e("#niteoCS_mailchimp_list").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"),e(".nav-tab-wrapper").on("click",".theme-preview",function(n){return!(e("#csoptions fieldset:not(.skip-preview-validation *)").serialize()!=t&&!confirm("You have made changes that will not be visible in the preview until you save them. Please save changes first.\nContinue anyway?"))||(n.preventDefault(),!1)})});
1
+ jQuery(document).ready(function(e){var n=document.location.hash.substring(1),a=jQuery("#csoptions").attr("action"),t=e("#csoptions fieldset:not(.skip-preview-validation *)").serialize();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","span","html"),p(".cmp-coming-soon-maintenance .background-overlay-opacity","span","html"),p("#logo_size_slider","#niteoCS_logo_size","val"),p("#niteoCS_logo_size","#logo_size_slider","val"),l("logo",!1,"image","img"),l("favicon",!1,"image","img"),l("seo_img",!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"),u("analytics"),u("contact-form"),u("subscribe"),u("background-effect"),u("special-effect"),u("cmp-logo"),u("background-type"),u("counter"),u("overlay-text"),u("cmp-logo-size"),m("counter-action"),m("subscribe-method"),m("background-overlay"),m("banner-video-source"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1,placeholder:"Click to select.."}),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-status-pages").fadeToggle()}),jQuery(".cmp-status-pages input[type=radio]").change(function(){jQuery(".cmp-status-pages input[type=radio]").parent().removeClass("active"),jQuery(this).parent().addClass("active")}),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch: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.switch").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=jQuery(this).data("security");if(0==t){switch(t){case"0":i=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val()}if(3==t||""!=i){var r={feed:t,url:i,feat:"",custom_str:""};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var c={action:"niteo_unsplash",security:o,params:r};e.post(ajaxurl,c,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-id").html('<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>'),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 i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function o(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-"+i).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery(".unsplash-feed-"+i).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 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))};if(!/Mobi/.test(navigator.userAgent)){var 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)})};c.sortable({stop:s}),c.on("sortchange",s)}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(),u)u.open();else var u=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=u.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 u(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery(".cmp-coming-soon-maintenance ."+e+":checked").val();n=void 0===(n=jQuery.isNumeric(n)?"x"+n:n)?"off":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 m(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,n,a){jQuery(e).on("input",function(){var e=jQuery(this).val();"html"===a&&jQuery(this).parent().find(n).html(e),"val"===a&&jQuery(this).parent().find(n).val(e)})}!function(e){e.fn.toggleDisabled=function(){return this.each(function(){var n,a=e(this),t=a.data("name");a.attr("disabled")?(a.prop("disabled",!1),n="1"):(a.prop("disabled",!0),n="0"),r(t,"active",n)})}}(jQuery),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.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! You can enjoy latest features now :) </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),u={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};e.post(ajaxurl,u,function(u){var m="",p="",d="",g="";if("true"==(u=jQuery.parseJSON(u)).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 '+u.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)m="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=u.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 f=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">'+u.name+d+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+u.author_homepage+'" target="_blank">'+u.author+"</a></p>",g,p,'\t\t\t\t<div class="theme-description">'+u.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<button type="submit" '+m+'class="button activate" name="Submit" aria-label="Select '+u.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 '+u.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(f),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("#niteoCS_mailchimp_list").empty().prop("disabled",!1),e.each(a.lists,function(n,a){e("#niteoCS_mailchimp_list").append('<option value="'+a.id+'">'+a.name+"</option>")})):e("#niteoCS_mailchimp_list").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"),e(".nav-tab-wrapper").on("click",".theme-preview",function(n){return!(e("#csoptions fieldset:not(.skip-preview-validation *)").serialize()!=t&&!confirm("You have made changes that will not be visible in the preview until you save them. Please save changes first.\nContinue anyway?"))||(n.preventDefault(),!1)})});
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: 3.3.2
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -65,7 +65,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
65
 
66
  private function constants() {
67
  // define constants
68
- $this->define( 'CMP_VERSION', '3.3.2' );
69
  $this->define( 'CMP_DEBUG', FALSE );
70
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
71
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
@@ -1305,7 +1305,12 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1305
 
1306
  $ajax = ( isset( $_POST['ajax'] ) && $_POST['ajax'] == TRUE ) ? TRUE : FALSE;
1307
 
1308
- if ( $_SERVER['REQUEST_METHOD'] == 'POST' && isset( $_POST['form_honeypot'] ) && $_POST['form_honeypot'] === '' && isset( $_POST['email'] ) ) :
 
 
 
 
 
1309
 
1310
  if ( is_email( $_POST['email'] ) ) {
1311
  // email already passed is_email, no need to sanitize
@@ -1749,7 +1754,10 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1749
  // returns true if current page is in page array (blacklist or whitelist)
1750
  // since 2.2
1751
  public function cmp_page_filter() {
 
 
1752
 
 
1753
  if ( is_front_page() && is_home() ) {
1754
  // default homepage
1755
  $page_id = '-1';
@@ -1764,7 +1772,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1764
  $page_id = get_the_ID();
1765
  }
1766
 
1767
-
1768
  switch ( get_option('niteoCS_page_filter', '0') ) {
1769
  // disabled return true
1770
  case '0':
@@ -1774,26 +1782,24 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1774
  // whitelist
1775
  case '1':
1776
  $page_list = json_decode( get_option('niteoCS_page_whitelist', '[]'), true );
1777
-
1778
- if ( empty( $page_list ) || in_array( $page_id, $page_list ) ){
1779
  return true;
 
1780
 
1781
- } else {
1782
- return false;
 
 
1783
  }
 
 
1784
  break;
1785
 
1786
  // blacklist
1787
  case '2':
1788
  $page_list = json_decode( get_option('niteoCS_page_blacklist', '[]'), true );
1789
-
1790
- if ( in_array( $page_id, $page_list ) ){
1791
- return false;
1792
-
1793
- } else {
1794
- return true;
1795
- }
1796
-
1797
  break;
1798
 
1799
  default:
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: 3.4
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
65
 
66
  private function constants() {
67
  // define constants
68
+ $this->define( 'CMP_VERSION', '3.4' );
69
  $this->define( 'CMP_DEBUG', FALSE );
70
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
71
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
1305
 
1306
  $ajax = ( isset( $_POST['ajax'] ) && $_POST['ajax'] == TRUE ) ? TRUE : FALSE;
1307
 
1308
+ if ( $_SERVER['REQUEST_METHOD'] == 'POST' && isset( $_POST['form_honeypot'] ) && $_POST['form_honeypot'] === '' && isset( $_POST['email'] ) ) :
1309
+
1310
+ if ($ajax) {
1311
+ check_ajax_referer( 'cmp-subscribe-action', 'security' );
1312
+ }
1313
+
1314
 
1315
  if ( is_email( $_POST['email'] ) ) {
1316
  // email already passed is_email, no need to sanitize
1754
  // returns true if current page is in page array (blacklist or whitelist)
1755
  // since 2.2
1756
  public function cmp_page_filter() {
1757
+ global $wp;
1758
+ $current_url = trailingslashit( home_url( $wp->request ) );
1759
 
1760
+ // get current page IDs
1761
  if ( is_front_page() && is_home() ) {
1762
  // default homepage
1763
  $page_id = '-1';
1772
  $page_id = get_the_ID();
1773
  }
1774
 
1775
+ // check whitelist or blacklist and return true/false
1776
  switch ( get_option('niteoCS_page_filter', '0') ) {
1777
  // disabled return true
1778
  case '0':
1782
  // whitelist
1783
  case '1':
1784
  $page_list = json_decode( get_option('niteoCS_page_whitelist', '[]'), true );
1785
+
1786
+ if ( !empty( $page_list ) && in_array( $page_id, $page_list ) ) {
1787
  return true;
1788
+ }
1789
 
1790
+ $page_wl_custom = json_decode(get_option('niteoCS_page_whitelist_custom', '[]'), true);
1791
+
1792
+ if ( !empty( $page_wl_custom && in_array( $current_url,$page_wl_custom ) ) ) {
1793
+ return true;
1794
  }
1795
+
1796
+ return false;
1797
  break;
1798
 
1799
  // blacklist
1800
  case '2':
1801
  $page_list = json_decode( get_option('niteoCS_page_blacklist', '[]'), true );
1802
+ return ( in_array( $page_id, $page_list ) ) ? false : true;
 
 
 
 
 
 
 
1803
  break;
1804
 
1805
  default:
readme.txt CHANGED
@@ -4,14 +4,14 @@ 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: 5.1
7
- Stable tag: 3.3.2
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Display beautiful Coming soon(under construction), Maintenance or Landing page on your website, packed with premium features for free.
12
 
13
  == Description ==
14
-
15
  CMP – Coming Soon & Maintenance plugin has all premium features you ever wished for, and it is free! It is also super fast and user friendly. You can activate your Maintenance, Coming soon(under construction) or Landing page with a single click. But it is also customizable in many ways - you can select a layout from predefined Themes, set custom logo, background graphics (including YouTube videos or Unsplash images), custom content, subscribe forms, popular social networks icons, typography, colors, SEO, and many more.
16
 
17
  Packed with functions like Whitelist/Blacklist to enable CMP only on specific pages, User Roles Management, custom URL Bypass, Translation strings, custom Subscribers option and many more you would not believe it is free. No ADS too, guaranteed!
@@ -124,13 +124,20 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
124
  <p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
125
 
126
  == Changelog ==
 
 
 
 
 
 
 
 
127
  <h4>CMP 3.3.2 - 27-Feb-19</h4>
128
  <ul>
129
  <li>Added Spotify to social media icons as requested.</li>
130
  <li>Re-written JavaScript code for Email subscription, to resolve the issue with Subscription on some Nginx servers.</li>
131
  </ul>
132
 
133
-
134
  <h4>CMP 3.3.1 - 27-Feb-19</h4>
135
  <ul>
136
  <li>Updated downloadable CMP Themes URL Links.</li>
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Tested up to: 5.1
7
+ Stable tag: 3.4
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Display beautiful Coming soon(under construction), Maintenance or Landing page on your website, packed with premium features for free.
12
 
13
  == Description ==
14
+ [](http://coderisk.com/wp/plugin/cmp-coming-soon-maintenance/RIPS-iUar3EBSC9)
15
  CMP – Coming Soon & Maintenance plugin has all premium features you ever wished for, and it is free! It is also super fast and user friendly. You can activate your Maintenance, Coming soon(under construction) or Landing page with a single click. But it is also customizable in many ways - you can select a layout from predefined Themes, set custom logo, background graphics (including YouTube videos or Unsplash images), custom content, subscribe forms, popular social networks icons, typography, colors, SEO, and many more.
16
 
17
  Packed with functions like Whitelist/Blacklist to enable CMP only on specific pages, User Roles Management, custom URL Bypass, Translation strings, custom Subscribers option and many more you would not believe it is free. No ADS too, guaranteed!
124
  <p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
125
 
126
  == Changelog ==
127
+ <h4>CMP 3.4 - 12-Mar-19</h4>
128
+ <ul>
129
+ <li>CMP Subscribe form works again with firstname and lastname inputs, which was broken by last update. Thanks Jim!</li>
130
+ <li>CORS policy update for Subscribe action, causing AJAX requests failed on some server configurations.</li>
131
+ <li>New quick option to enable CMP for whole website or Homepage only.</li>
132
+ </ul>
133
+
134
+
135
  <h4>CMP 3.3.2 - 27-Feb-19</h4>
136
  <ul>
137
  <li>Added Spotify to social media icons as requested.</li>
138
  <li>Re-written JavaScript code for Email subscription, to resolve the issue with Subscription on some Nginx servers.</li>
139
  </ul>
140
 
 
141
  <h4>CMP 3.3.1 - 27-Feb-19</h4>
142
  <ul>
143
  <li>Updated downloadable CMP Themes URL Links.</li>