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

Version Description

Download this release

Release Info

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

Code changes from version 2.9.4 to 3.0

Files changed (42) hide show
  1. cmp-advanced.php +2 -3
  2. cmp-help.php +11 -12
  3. cmp-settings.php +153 -130
  4. cmp-subscribers.php +15 -15
  5. cmp-translate.php +17 -17
  6. cmp-upload.php +28 -29
  7. css/cmp-settings-style.css +16 -22
  8. css/cmp-settings-style.min.css +1 -1
  9. css/select2.min.css +0 -8
  10. img/thumbnails/agency/screenshot1.jpg +0 -0
  11. img/thumbnails/agency/screenshot2.jpg +0 -0
  12. img/thumbnails/agency/screenshot3.jpg +0 -0
  13. img/thumbnails/agency_thumbnail.jpg +0 -0
  14. img/thumbnails/hardwork_thumbnail.jpg +0 -0
  15. inc/class-cmp-render_html.php +98 -54
  16. inc/cmp-update-process.php +14 -0
  17. inc/settings/settings-background.php +73 -43
  18. inc/settings/settings-contact_form-disabled.php +2 -2
  19. inc/settings/settings-contact_form.php +1 -1
  20. inc/settings/settings-counter-disabled.php +2 -2
  21. inc/settings/settings-counter.php +1 -1
  22. inc/settings/settings-footer-disabled.php +1 -1
  23. inc/settings/settings-footer.php +116 -101
  24. inc/settings/settings-logo-disabled.php +2 -2
  25. inc/settings/settings-slider-disabled.php +2 -2
  26. inc/settings/settings-slider.php +1 -1
  27. inc/settings/settings-special_effects-disabled.php +2 -2
  28. inc/settings/settings-special_effects.php +11 -11
  29. inc/settings/settings-subscribe-disabled.php +2 -2
  30. inc/settings/settings-subscribe.php +17 -1
  31. js/settings.js +3 -1
  32. js/settings.min.js +1 -1
  33. niteo-cmp.php +102 -66
  34. readme.txt +11 -1
  35. themes/agency.txt +3 -0
  36. themes/construct/construct-defaults.php +1 -1
  37. themes/countdown/countdown-defaults.php +1 -1
  38. themes/hardwork/hardwork-defaults.php +3 -5
  39. themes/hardwork/hardwork-settings.php +1 -1
  40. themes/hardwork/img/hardwork_banner_full.jpg +0 -0
  41. themes/hardwork/img/hardwork_banner_large.jpg +0 -0
  42. themes/hardwork/style.css +8 -0
cmp-advanced.php CHANGED
@@ -149,7 +149,7 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
149
 
150
  <h1></h1>
151
  <div id="icon-users" class="icon32"></div>
152
-
153
  <form method="post" action="admin.php?page=cmp-advanced&status=settings-saved" id="csoptions">
154
  <?php wp_nonce_field('save_options','save_options_field'); ?>
155
 
@@ -262,8 +262,6 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
262
  <?php
263
  $roles = get_editable_roles();
264
 
265
-
266
-
267
  foreach ( $roles as $role => $details ) {
268
 
269
  if ( $role != 'administrator') { ?>
@@ -428,6 +426,7 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
428
  }
429
 
430
  ?>
 
431
  </div> <!-- <div id="wrap"> -->
432
 
433
  <script>
149
 
150
  <h1></h1>
151
  <div id="icon-users" class="icon32"></div>
152
+ <div class="settings-wrap">
153
  <form method="post" action="admin.php?page=cmp-advanced&status=settings-saved" id="csoptions">
154
  <?php wp_nonce_field('save_options','save_options_field'); ?>
155
 
262
  <?php
263
  $roles = get_editable_roles();
264
 
 
 
265
  foreach ( $roles as $role => $details ) {
266
 
267
  if ( $role != 'administrator') { ?>
426
  }
427
 
428
  ?>
429
+ </div>
430
  </div> <!-- <div id="wrap"> -->
431
 
432
  <script>
cmp-help.php CHANGED
@@ -6,20 +6,19 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
6
 
7
  <h1></h1>
8
  <div id="icon-users" class="icon32"></div>
 
 
9
 
10
- <div class="cmp-inputs-wrapper help-settings">
 
11
 
12
- <h3><?php _e('Thank you for using our CMP - Coming Soon, Maintenance & Landing Page NiteoThemes`s plugin for Wordpress', 'cmp-coming-soon-maintenance');?></h3>
13
- <p><?php _e('If you have any question or issue feel free to ask Wordpress Community or for our expert support on Wordpress Support Forum!', 'cmp-coming-soon-maintenance');?></p>
14
 
15
- <p><a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance" class="button" target="_blank"><?php _e('GET SUPPORT!', 'cmp-coming-soon-maintenance');?></a></p>
 
 
 
 
16
  </div>
17
-
18
- <?php
19
- // get sidebar with "widgets"
20
- if ( file_exists(dirname(__FILE__) . '/cmp-sidebar.php') ) {
21
- require (dirname(__FILE__) . '/cmp-sidebar.php');
22
- }
23
-
24
- ?>
25
  </div>
6
 
7
  <h1></h1>
8
  <div id="icon-users" class="icon32"></div>
9
+ <div class="settings-wrap">
10
+ <div class="cmp-inputs-wrapper help-settings">
11
 
12
+ <h3><?php _e('Thank you for using our CMP - Coming Soon, Maintenance & Landing Page NiteoThemes`s plugin for Wordpress', 'cmp-coming-soon-maintenance');?></h3>
13
+ <p><?php _e('If you have any question or issue feel free to ask Wordpress Community or for our expert support on Wordpress Support Forum!', 'cmp-coming-soon-maintenance');?></p>
14
 
15
+ <p><a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance" class="button" target="_blank"><?php _e('GET SUPPORT!', 'cmp-coming-soon-maintenance');?></a></p>
16
+ </div>
17
 
18
+ <?php
19
+ // get sidebar with "widgets"
20
+ if ( file_exists(dirname(__FILE__) . '/cmp-sidebar.php') ) {
21
+ require (dirname(__FILE__) . '/cmp-sidebar.php');
22
+ } ?>
23
  </div>
 
 
 
 
 
 
 
 
24
  </div>
cmp-settings.php CHANGED
@@ -2,10 +2,10 @@
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
4
  $themeslug = $this->cmp_selectedTheme();
 
5
  $downloadable_themes = $this->cmp_downloadable_themes();
6
- $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
7
 
8
- $logo_type = get_option('niteoCS_logo_type[test');
9
 
10
  // check onces and wordpress rights, else DIE
11
  if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
@@ -14,6 +14,8 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
14
  die('Sorry, but this request is invalid');
15
  }
16
 
 
 
17
  if ( isset($_POST['cmp-activate']) && is_numeric($_POST['cmp-activate']) ) {
18
  update_option('niteoCS_activation', sanitize_text_field($_POST['cmp-activate']));
19
  }
@@ -25,8 +27,6 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
25
  update_option('niteoCS_status', false);
26
  }
27
 
28
- $this->cmp_purge_cache();
29
-
30
  if ( isset($_POST['niteoCS_select_theme']) && in_array($_POST['niteoCS_select_theme'], $this->cmp_themes_available())) {
31
  update_option('niteoCS_theme', sanitize_text_field($_POST['niteoCS_select_theme']));
32
  }
@@ -89,59 +89,59 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
89
  }
90
 
91
 
92
- if (isset($_POST['niteoCS_banner_'.$themeslug]) && is_numeric($_POST['niteoCS_banner_'.$themeslug])) {
93
- update_option('niteoCS_banner['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_'.$themeslug]));
94
  }
95
 
96
- if (isset($_POST['niteoCS_banner_color_'.$themeslug])) {
97
- update_option('niteoCS_banner_color['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_color_'.$themeslug]));
98
  }
99
 
100
 
101
- if (isset($_POST['niteoCS_gradient_'.$themeslug])) {
102
- update_option('niteoCS_gradient['.$themeslug.']', sanitize_text_field($_POST['niteoCS_gradient_'.$themeslug]));
103
  }
104
 
105
- if (isset($_POST['niteoCS_banner_gradient_one_'.$themeslug])) {
106
- update_option('niteoCS_banner_gradient_one['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_gradient_one_'.$themeslug]));
107
  }
108
 
109
- if (isset($_POST['niteoCS_banner_gradient_two_'.$themeslug])) {
110
- update_option('niteoCS_banner_gradient_two['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_gradient_two_'.$themeslug]));
111
  }
112
 
113
- if (isset($_POST['niteoCS_banner_pattern_'.$themeslug])) {
114
- update_option('niteoCS_banner_pattern['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_pattern_'.$themeslug]));
115
  }
116
 
117
- if (isset($_POST['niteoCS_banner_pattern_custom_'.$themeslug])) {
118
- update_option('niteoCS_banner_pattern_custom['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_pattern_custom_'.$themeslug]));
119
  }
120
 
121
- if (isset($_POST['niteoCS_banner_video_'.$themeslug])) {
122
- update_option('niteoCS_banner_video['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_video_'.$themeslug]));
123
  }
124
 
125
- if (isset($_POST['niteoCS_youtube_url_'.$themeslug])) {
126
- update_option('niteoCS_youtube_url['.$themeslug.']', sanitize_text_field($_POST['niteoCS_youtube_url_'.$themeslug]));
127
  }
128
 
129
- if (isset($_POST['niteoCS_vimeo_url_'.$themeslug])) {
130
- update_option('niteoCS_vimeo_url['.$themeslug.']', sanitize_text_field($_POST['niteoCS_vimeo_url_'.$themeslug]));
131
  }
132
 
133
- if (isset($_POST['niteoCS_video_thumb_'.$themeslug])) {
134
- update_option('niteoCS_video_thumb['.$themeslug.']', sanitize_text_field($_POST['niteoCS_video_thumb_'.$themeslug]));
135
  }
136
 
137
- if (isset($_POST['niteoCS_video_file_url'.$themeslug])) {
138
- update_option('niteoCS_video_file_url['.$themeslug.']', sanitize_text_field($_POST['niteoCS_video_file_url'.$themeslug]));
139
  }
140
 
141
- if (isset($_POST['niteoCS_banner_id_'.$themeslug])) {
142
  $allnums = true;
143
 
144
- $ids = explode( ',', $_POST['niteoCS_banner_id_'.$themeslug] );
145
  foreach ( $ids as $id ) {
146
 
147
  if ( !is_numeric($id) ) {
@@ -149,52 +149,52 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
149
  }
150
  }
151
 
152
- if ( $allnums === true || $_POST['niteoCS_banner_id_'.$themeslug] == '' ) {
153
- update_option('niteoCS_banner_id['.$themeslug.']', sanitize_text_field($_POST['niteoCS_banner_id_'.$themeslug]));
154
  }
155
 
156
  }
157
 
158
- if (isset($_POST['unsplash_feed_'.$themeslug]) && is_numeric($_POST['unsplash_feed_'.$themeslug])) {
159
- update_option('niteoCS_unsplash_feed['.$themeslug.']', sanitize_text_field($_POST['unsplash_feed_'.$themeslug]));
160
  }
161
 
162
- if (isset($_POST['niteoCS_unsplash_0_'.$themeslug])) {
163
- $url = $_POST['niteoCS_unsplash_0_'.$themeslug];
164
  // if we have url sanitize url
165
  if (strpos($url, 'http://') !== false || strpos($url, 'https://') !== false) {
166
- update_option('niteoCS_unsplash_0['.$themeslug.']', esc_url_raw($_POST['niteoCS_unsplash_0_'.$themeslug]));
167
  } else {
168
  // sanitize string
169
- update_option('niteoCS_unsplash_0['.$themeslug.']', sanitize_text_field($_POST['niteoCS_unsplash_0_'.$themeslug]));
170
  }
171
  }
172
 
173
- if (isset($_POST['niteoCS_unsplash_2_'.$themeslug])) {
174
- $url = $_POST['niteoCS_unsplash_2_'.$themeslug];
175
  // if we have url sanitize url
176
  if (strpos($url, 'http://') !== false || strpos($url, 'https://') !== false) {
177
- update_option('niteoCS_unsplash_2['.$themeslug.']', esc_url_raw($_POST['niteoCS_unsplash_2_'.$themeslug]));
178
  } else {
179
  // sanitize string
180
- update_option('niteoCS_unsplash_2['.$themeslug.']', sanitize_text_field($_POST['niteoCS_unsplash_2_'.$themeslug]));
181
  }
182
  }
183
 
184
- if (isset($_POST['niteoCS_unsplash_3_'.$themeslug])) {
185
- update_option('niteoCS_unsplash_3['.$themeslug.']', sanitize_text_field($_POST['niteoCS_unsplash_3_'.$themeslug]));
186
  }
187
 
188
- if (isset($_POST['niteoCS_unsplash_1_'.$themeslug])) {
189
- update_option('niteoCS_unsplash_1['.$themeslug.']', sanitize_text_field($_POST['niteoCS_unsplash_1_'.$themeslug]));
190
  }
191
 
192
  if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
193
 
194
- if (isset($_POST['niteoCS_unsplash_feat_'.$themeslug])) {
195
- update_option('niteoCS_unsplash_feat['.$themeslug.']', $this->sanitize_checkbox($_POST['niteoCS_unsplash_feat_'.$themeslug]));
196
  } else {
197
- update_option('niteoCS_unsplash_feat['.$themeslug.']', false);
198
  }
199
  }
200
 
@@ -278,47 +278,59 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
278
  update_option('niteoCS_redirect_time', sanitize_text_field( $_POST['niteoCS_redirect_time']));
279
  }
280
 
281
-
282
  // background overlay
283
- if ( isset( $_POST['niteoCS_overlay_'.$themeslug] ) ) {
284
- update_option( 'niteoCS_overlay['.$themeslug.']', sanitize_text_field( $_POST['niteoCS_overlay_'.$themeslug] ) );
285
  }
286
 
287
- if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_color'] ) ) {
288
- update_option( 'niteoCS_overlay['.$themeslug.'][color]', sanitize_hex_color( $_POST['niteoCS_overlay_'.$themeslug.'_color'] ) );
289
  }
290
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
 
292
- if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_opacity'] ) ) {
293
- update_option( 'niteoCS_overlay['.$themeslug.'][opacity]', sanitize_text_field( $_POST['niteoCS_overlay_'.$themeslug.'_opacity'] ) );
294
  }
295
 
296
- if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_gradient'] ) ) {
297
- update_option('niteoCS_overlay['.$themeslug.'][gradient]', sanitize_text_field( $_POST['niteoCS_overlay_'.$themeslug.'_gradient'] ) );
 
 
 
298
  }
299
 
300
- if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_gradient_one'] ) ) {
301
- update_option('niteoCS_overlay['.$themeslug.'][gradient_one]', sanitize_hex_color( $_POST['niteoCS_overlay_'.$themeslug.'_gradient_one'] ) );
302
  }
303
 
304
- if ( isset( $_POST['niteoCS_overlay_'.$themeslug.'_gradient_two'] ) ) {
305
- update_option('niteoCS_overlay['.$themeslug.'][gradient_two]', sanitize_hex_color( $_POST['niteoCS_overlay_'.$themeslug.'_gradient_two'] ) );
306
  }
307
 
308
- if (isset($_POST['niteoCS_effect_blur_'.$themeslug]) && is_numeric($_POST['niteoCS_effect_blur_'.$themeslug])) {
309
- update_option('niteoCS_effect_blur['.$themeslug.']', sanitize_text_field($_POST['niteoCS_effect_blur_'.$themeslug]));
310
  }
311
 
312
- $themeslug = sanitize_text_field($_POST['niteoCS_select_theme']);
 
 
313
  }
314
 
315
- $overlay = get_option('niteoCS_overlay['.$themeslug.']', 'disabled');
316
- $overlay_color = get_option('niteoCS_overlay['.$themeslug.'][color]', '#0a0a0a');
317
- $overlay_opa = get_option('niteoCS_overlay['.$themeslug.'][opacity]', '0.4');
318
- $overlay_gradient = get_option('niteoCS_overlay['.$themeslug.'][gradient]', '#d53369:#cbad6d');
319
- $overlay_gradient_one_custom = get_option('niteoCS_overlay['.$themeslug.'][gradient_one]', '#e5e5e5');
320
- $overlay_gradient_two_custom = get_option('niteoCS_overlay['.$themeslug.'][gradient_two]', '#e5e5e5');
321
- $effect_blur = get_option('niteoCS_effect_blur['.$themeslug.']', '0.0');
322
 
323
  // get Settings TAB
324
  $niteoCS_URL_redirect = get_option('niteoCS_URL_redirect');
@@ -353,18 +365,19 @@ $niteoCS_text_logo = stripslashes(get_option('niteoCS_text_logo', get_blogin
353
  $niteoCS_heading_animation = get_option('niteoCS_heading_animation['.$themeslug.']', 'fadeInDown');
354
  $niteoCS_content_animation = get_option('niteoCS_content_animation['.$themeslug.']', 'fadeInUp');
355
 
356
- $niteoCS_banner_custom_id = get_option('niteoCS_banner_id['.$themeslug.']');
357
- $niteoCS_unsplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '3');
358
- $niteoCS_unsplash_0 = get_option('niteoCS_unsplash_0['.$themeslug.']');
359
- $niteoCS_unsplash_1 = get_option('niteoCS_unsplash_1['.$themeslug.']');
360
- $niteoCS_unsplash_2 = get_option('niteoCS_unsplash_2['.$themeslug.']');
361
- $niteoCS_unsplash_3 = get_option('niteoCS_unsplash_3['.$themeslug.']');
362
- $niteoCS_unsplash_category = get_option('niteoCS_unsplash_category['.$themeslug.']', 'buildings');
363
- $niteoCS_cat_keyword = get_option('niteoCS_cat_keyword['.$themeslug.']');
364
- $niteoCS_banner_color = get_option('niteoCS_banner_color['.$themeslug.']', '#e5e5e5');
365
- $niteoCS_gradient = get_option('niteoCS_gradient['.$themeslug.']', '#ED5565:#D62739');
366
- $niteoCS_gradient_one_custom = get_option('niteoCS_banner_gradient_one['.$themeslug.']', '#e5e5e5');
367
- $niteoCS_gradient_two_custom = get_option('niteoCS_banner_gradient_two['.$themeslug.']', '#e5e5e5');
 
368
 
369
  if ( $niteoCS_gradient != 'custom' ) {
370
  $gradient = explode(":", $niteoCS_gradient);
@@ -375,14 +388,27 @@ if ( $niteoCS_gradient != 'custom' ) {
375
  $niteoCS_gradient_two = '';
376
  }
377
 
378
- $niteoCS_banner_pattern = get_option('niteoCS_banner_pattern['.$themeslug.']', 'sakura');
379
- $niteoCS_banner_pattern_custom = get_option('niteoCS_banner_pattern_custom['.$themeslug.']');
380
- $niteoCS_banner_video = get_option('niteoCS_banner_video['.$themeslug.']');
381
- $niteoCS_youtube_url = get_option('niteoCS_youtube_url['.$themeslug.']');
382
- $niteoCS_vimeo_url = get_option('niteoCS_vimeo_url['.$themeslug.']');
383
- $niteoCS_video_thumb = get_option('niteoCS_video_thumb['.$themeslug.']');
384
- $niteoCS_video_file_url = get_option('niteoCS_video_file_url['.$themeslug.']');
385
-
 
 
 
 
 
 
 
 
 
 
 
 
 
386
 
387
  // create default social media if they do not exists
388
  if ( !get_option('niteoCS_socialmedia') ) {
@@ -413,9 +439,12 @@ if (file_exists($this->cmp_themePath($this->cmp_selectedTheme()).$this->cmp_sele
413
  include ( $this->cmp_themePath($this->cmp_selectedTheme()).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-defaults.php' );
414
  }
415
 
 
 
 
416
  // get logo url from id
417
  if ( $niteoCS_logo_id != '' ) {
418
- $logo_url = wp_get_attachment_image_src($niteoCS_logo_id, 'medium');
419
  if ( isset($logo_url[0]) ){
420
  $logo_url = $logo_url[0];
421
  }
@@ -437,14 +466,12 @@ if ( $niteoCS_seo_img_id != '' ) {
437
  }
438
  }
439
 
440
- // get logo url from id
441
  if ( $niteoCS_banner_pattern == 'custom' && $niteoCS_banner_pattern_custom != '' ) {
442
  $pattern_url = wp_get_attachment_image_src($niteoCS_banner_pattern_custom, 'thumbnail');
443
  if ( isset($pattern_url[0]) ){
444
  $pattern_url = $pattern_url[0];
445
  }
446
-
447
-
448
  } else {
449
  $pattern_url = plugins_url('/img/patterns/'.esc_attr($niteoCS_banner_pattern).'.png', __FILE__);
450
  }
@@ -457,19 +484,6 @@ if( isset($_POST['submit_theme']) ) {
457
  $this->cmp_theme_upload($_FILES['fileToUpload']);
458
  }
459
 
460
- // Handle Theme update
461
- if( isset($_GET['action']) && $_GET['action'] == 'update-cmp-theme' && isset($_GET['theme'])) {
462
- $slug = sanitize_text_field($_GET['theme']);
463
- $theme_url = CMP_UPDATE_URL.'?action=download&slug='.$slug;
464
- $update = array(
465
- 'name' => $slug,
466
- 'tmp_name' => '',
467
- 'type' => 'application/x-zip-compressed',
468
- 'url' => $theme_url,
469
- );
470
-
471
- $this->cmp_theme_update_install($update);
472
- }
473
 
474
  add_thickbox();
475
 
@@ -487,12 +501,12 @@ add_thickbox();
487
 
488
 
489
  <div class="wrap cmp-coming-soon-maintenance content-settings">
490
-
491
  <h1></h1>
492
 
493
  <div id="icon-options-general" class="icon32">
494
  <br />
495
  </div>
 
496
  <form method="post" action="admin.php?page=cmp-settings&status=settings-saved" id="csoptions">
497
 
498
  <?php wp_nonce_field('save_options','save_options_field'); ?>
@@ -669,7 +683,7 @@ add_thickbox();
669
 
670
  <div class="buttons-wrapper">
671
 
672
- <a href="<?php echo esc_url ($premium_theme['url'] );?>" target="_blank" class="theme-purchase button hide"><i class="fa fa-download" aria-hidden="true"></i><?php echo sprintf(__('Get %s', 'cmp-coming-soon-maintenance'), ucwords( esc_html( str_replace('_', ' ', $theme_slug) ) ));?></a>
673
 
674
  <a href="<?php echo 'http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='.$theme_slug.'&utm_source=cmp&utm_medium=referral&utm_campaign='.$theme_slug.'';?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a>
675
 
@@ -678,8 +692,8 @@ add_thickbox();
678
  </div>
679
 
680
  <div class="theme-inputs">
681
-
682
  <span class="theme-title"><?php echo ucwords( esc_html( str_replace('_', ' ', $theme_slug) ) );?></span>
 
683
  </div>
684
  </div>
685
 
@@ -714,11 +728,11 @@ add_thickbox();
714
 
715
 
716
  <div class="table-wrapper content">
717
- <h3><?php _e('Text Content', 'cmp-coming-soon-maintenance');?></h3>
718
  <table class="content">
719
  <tbody>
720
  <tr class="body-title">
721
- <th><?php _e('Title', 'cmp-coming-soon-maintenance');?></th>
722
  <td>
723
  <fieldset>
724
  <input type="text" name="niteoCS_body_title" id="niteoCS_body_title" value="<?php echo esc_attr( $niteoCS_body_title ); ?>" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>">
@@ -745,7 +759,30 @@ add_thickbox();
745
 
746
  </div>
747
 
748
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
749
  // get counter settings
750
  if ( isset( $theme_supports['counter'] ) && $theme_supports['counter'] ) {
751
  if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-counter.php') ) {
@@ -926,10 +963,6 @@ add_thickbox();
926
 
927
  }
928
 
929
- // get background settings
930
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-background.php' ) ) {
931
- require ( dirname(__FILE__) . '/inc/settings/settings-background.php' );
932
- }
933
 
934
  // special effects for premium themes
935
  if ( in_array( $this->cmp_selectedTheme(), $this->cmp_premium_themes_installed() ) || ( isset( $theme_supports['special_effects'] ) && $theme_supports['special_effects'] ) ) {
@@ -946,18 +979,7 @@ add_thickbox();
946
  }
947
  }
948
 
949
- // get slider settings
950
- if ( isset( $theme_supports['slider'] ) && $theme_supports['slider'] ) {
951
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-slider.php' ) ) {
952
- require (dirname(__FILE__) . '/inc/settings/settings-slider.php' );
953
- }
954
-
955
- } else {
956
- if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-slider-disabled.php' ) ) {
957
- require ( dirname(__FILE__) . '/inc/settings/settings-slider-disabled.php' );
958
- }
959
 
960
- }
961
 
962
  // include theme related settings
963
  if ( file_exists( $this->cmp_themePath( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-settings.php' ) ) {
@@ -1250,6 +1272,7 @@ add_thickbox();
1250
  }
1251
 
1252
  ?>
 
1253
 
1254
  </div> <!-- <div id="wrap"> -->
1255
 
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
4
  $themeslug = $this->cmp_selectedTheme();
5
+
6
  $downloadable_themes = $this->cmp_downloadable_themes();
 
7
 
8
+ $ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
9
 
10
  // check onces and wordpress rights, else DIE
11
  if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
14
  die('Sorry, but this request is invalid');
15
  }
16
 
17
+ $this->cmp_purge_cache();
18
+
19
  if ( isset($_POST['cmp-activate']) && is_numeric($_POST['cmp-activate']) ) {
20
  update_option('niteoCS_activation', sanitize_text_field($_POST['cmp-activate']));
21
  }
27
  update_option('niteoCS_status', false);
28
  }
29
 
 
 
30
  if ( isset($_POST['niteoCS_select_theme']) && in_array($_POST['niteoCS_select_theme'], $this->cmp_themes_available())) {
31
  update_option('niteoCS_theme', sanitize_text_field($_POST['niteoCS_select_theme']));
32
  }
89
  }
90
 
91
 
92
+ if (isset($_POST['niteoCS_banner']) && is_numeric($_POST['niteoCS_banner'])) {
93
+ update_option('niteoCS_banner', sanitize_text_field($_POST['niteoCS_banner']));
94
  }
95
 
96
+ if (isset($_POST['niteoCS_banner_color'])) {
97
+ update_option('niteoCS_banner_color', sanitize_text_field($_POST['niteoCS_banner_color']));
98
  }
99
 
100
 
101
+ if (isset($_POST['niteoCS_gradient'])) {
102
+ update_option('niteoCS_gradient', sanitize_text_field($_POST['niteoCS_gradient']));
103
  }
104
 
105
+ if (isset($_POST['niteoCS_banner_gradient_one'])) {
106
+ update_option('niteoCS_banner_gradient_one', sanitize_text_field($_POST['niteoCS_banner_gradient_one']));
107
  }
108
 
109
+ if (isset($_POST['niteoCS_banner_gradient_two'])) {
110
+ update_option('niteoCS_banner_gradient_two', sanitize_text_field($_POST['niteoCS_banner_gradient_two']));
111
  }
112
 
113
+ if (isset($_POST['niteoCS_banner_pattern'])) {
114
+ update_option('niteoCS_banner_pattern', sanitize_text_field($_POST['niteoCS_banner_pattern']));
115
  }
116
 
117
+ if (isset($_POST['niteoCS_banner_pattern_custom'])) {
118
+ update_option('niteoCS_banner_pattern_custom', sanitize_text_field($_POST['niteoCS_banner_pattern_custom']));
119
  }
120
 
121
+ if (isset($_POST['niteoCS_banner_video'])) {
122
+ update_option('niteoCS_banner_video]', sanitize_text_field($_POST['niteoCS_banner_video']));
123
  }
124
 
125
+ if (isset($_POST['niteoCS_youtube_url'])) {
126
+ update_option('niteoCS_youtube_url', sanitize_text_field($_POST['niteoCS_youtube_url']));
127
  }
128
 
129
+ if (isset($_POST['niteoCS_vimeo_url'])) {
130
+ update_option('niteoCS_vimeo_url', sanitize_text_field($_POST['niteoCS_vimeo_url']));
131
  }
132
 
133
+ if (isset($_POST['niteoCS_video_thumb'])) {
134
+ update_option('niteoCS_video_thumb', sanitize_text_field($_POST['niteoCS_video_thumb']));
135
  }
136
 
137
+ if (isset($_POST['niteoCS_video_file_url'])) {
138
+ update_option('niteoCS_video_file_url', sanitize_text_field($_POST['niteoCS_video_file_url']));
139
  }
140
 
141
+ if (isset($_POST['niteoCS_banner_id'])) {
142
  $allnums = true;
143
 
144
+ $ids = explode( ',', $_POST['niteoCS_banner_id'] );
145
  foreach ( $ids as $id ) {
146
 
147
  if ( !is_numeric($id) ) {
149
  }
150
  }
151
 
152
+ if ( $allnums === true || $_POST['niteoCS_banner_id'] == '' ) {
153
+ update_option('niteoCS_banner_id', sanitize_text_field($_POST['niteoCS_banner_id']));
154
  }
155
 
156
  }
157
 
158
+ if (isset($_POST['unsplash_feed']) && is_numeric($_POST['unsplash_feed'])) {
159
+ update_option('niteoCS_unsplash_feed', sanitize_text_field($_POST['unsplash_feed']));
160
  }
161
 
162
+ if (isset($_POST['niteoCS_unsplash_0'])) {
163
+ $url = $_POST['niteoCS_unsplash_0'];
164
  // if we have url sanitize url
165
  if (strpos($url, 'http://') !== false || strpos($url, 'https://') !== false) {
166
+ update_option('niteoCS_unsplash_0', esc_url_raw($_POST['niteoCS_unsplash_0']));
167
  } else {
168
  // sanitize string
169
+ update_option('niteoCS_unsplash_0', sanitize_text_field($_POST['niteoCS_unsplash_0']));
170
  }
171
  }
172
 
173
+ if (isset($_POST['niteoCS_unsplash_2'])) {
174
+ $url = $_POST['niteoCS_unsplash_2'];
175
  // if we have url sanitize url
176
  if (strpos($url, 'http://') !== false || strpos($url, 'https://') !== false) {
177
+ update_option('niteoCS_unsplash_2', esc_url_raw($_POST['niteoCS_unsplash_2']));
178
  } else {
179
  // sanitize string
180
+ update_option('niteoCS_unsplash_2', sanitize_text_field($_POST['niteoCS_unsplash_2']));
181
  }
182
  }
183
 
184
+ if (isset($_POST['niteoCS_unsplash_3'])) {
185
+ update_option('niteoCS_unsplash_3', sanitize_text_field($_POST['niteoCS_unsplash_3']));
186
  }
187
 
188
+ if (isset($_POST['niteoCS_unsplash_1'])) {
189
+ update_option('niteoCS_unsplash_1', sanitize_text_field($_POST['niteoCS_unsplash_1']));
190
  }
191
 
192
  if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
193
 
194
+ if (isset($_POST['niteoCS_unsplash_feat'])) {
195
+ update_option('niteoCS_unsplash_feat', $this->sanitize_checkbox($_POST['niteoCS_unsplash_feat']));
196
  } else {
197
+ update_option('niteoCS_unsplash_feat', false);
198
  }
199
  }
200
 
278
  update_option('niteoCS_redirect_time', sanitize_text_field( $_POST['niteoCS_redirect_time']));
279
  }
280
 
 
281
  // background overlay
282
+ if ( isset( $_POST['niteoCS_overlay'] ) ) {
283
+ update_option( 'niteoCS_overlay', sanitize_text_field( $_POST['niteoCS_overlay'] ) );
284
  }
285
 
286
+ if ( isset( $_POST['niteoCS_overlay_color'] ) ) {
287
+ update_option( 'niteoCS_overlay[color]', sanitize_hex_color( $_POST['niteoCS_overlay_color'] ) );
288
  }
289
 
290
+ if ( isset( $_POST['niteoCS_overlay_opacity'] ) ) {
291
+ update_option( 'niteoCS_overlay[opacity]', sanitize_text_field( $_POST['niteoCS_overlay_opacity'] ) );
292
+ }
293
+
294
+ if ( isset( $_POST['niteoCS_overlay_gradient'] ) ) {
295
+ update_option('niteoCS_overlay[gradient]', sanitize_text_field( $_POST['niteoCS_overlay_gradient'] ) );
296
+ }
297
+
298
+ if ( isset( $_POST['niteoCS_overlay_gradient_one'] ) ) {
299
+ update_option('niteoCS_overlay[gradient_one]', sanitize_hex_color( $_POST['niteoCS_overlay_gradient_one'] ) );
300
+ }
301
+
302
+ if ( isset( $_POST['niteoCS_overlay_gradient_two'] ) ) {
303
+ update_option('niteoCS_overlay[gradient_two]', sanitize_hex_color( $_POST['niteoCS_overlay_gradient_two'] ) );
304
+ }
305
 
306
+ if (isset($_POST['niteoCS_effect_blur']) && is_numeric($_POST['niteoCS_effect_blur'])) {
307
+ update_option('niteoCS_effect_blur', sanitize_text_field($_POST['niteoCS_effect_blur']));
308
  }
309
 
310
+ if ( isset($_POST['niteoCS_overlay_text_status']) && $_POST['niteoCS_overlay_text_status'] == 'on' ) {
311
+ update_option('niteoCS_overlay_text[status]', '1' );
312
+
313
+ } else if ( isset($_POST['niteoCS_overlay_text_status']) && $_POST['niteoCS_overlay_text_status'] == 'off' ) {
314
+ update_option('niteoCS_overlay_text[status]', '0');
315
  }
316
 
317
+ if ( isset($_POST['niteoCS_overlay_text_heading']) ) {
318
+ update_option('niteoCS_overlay_text[heading]', $this->niteo_sanitize_html($_POST['niteoCS_overlay_text_heading']));
319
  }
320
 
321
+ if ( isset($_POST['niteoCS_overlay_text_paragraph']) ) {
322
+ update_option('niteoCS_overlay_text[paragraph]', $this->niteo_sanitize_html($_POST['niteoCS_overlay_text_paragraph']));
323
  }
324
 
325
+ if ( isset($_POST['niteoCS_overlay_button_text']) ) {
326
+ update_option('niteoCS_overlay_text[button_text]', sanitize_text_field($_POST['niteoCS_overlay_button_text']));
327
  }
328
 
329
+ if ( isset($_POST['niteoCS_overlay_button_url']) ) {
330
+ update_option('niteoCS_overlay_text[button_url]', sanitize_text_field($_POST['niteoCS_overlay_button_url']));
331
+ }
332
  }
333
 
 
 
 
 
 
 
 
334
 
335
  // get Settings TAB
336
  $niteoCS_URL_redirect = get_option('niteoCS_URL_redirect');
365
  $niteoCS_heading_animation = get_option('niteoCS_heading_animation['.$themeslug.']', 'fadeInDown');
366
  $niteoCS_content_animation = get_option('niteoCS_content_animation['.$themeslug.']', 'fadeInUp');
367
 
368
+
369
+ $niteoCS_banner_custom_id = get_option('niteoCS_banner_id');
370
+ $niteoCS_unsplash_feed = get_option('niteoCS_unsplash_feed', '3');
371
+ $niteoCS_unsplash_0 = get_option('niteoCS_unsplash_0');
372
+ $niteoCS_unsplash_1 = get_option('niteoCS_unsplash_1');
373
+ $niteoCS_unsplash_2 = get_option('niteoCS_unsplash_2');
374
+ $niteoCS_unsplash_3 = get_option('niteoCS_unsplash_3');
375
+ $niteoCS_unsplash_category = get_option('niteoCS_unsplash_category', 'buildings');
376
+ $niteoCS_cat_keyword = get_option('niteoCS_cat_keyword');
377
+ $niteoCS_banner_color = get_option('niteoCS_banner_color', '#e5e5e5');
378
+ $niteoCS_gradient = get_option('niteoCS_gradient', '#ED5565:#D62739');
379
+ $niteoCS_gradient_one_custom = get_option('niteoCS_banner_gradient_one', '#e5e5e5');
380
+ $niteoCS_gradient_two_custom = get_option('niteoCS_banner_gradient_two', '#e5e5e5');
381
 
382
  if ( $niteoCS_gradient != 'custom' ) {
383
  $gradient = explode(":", $niteoCS_gradient);
388
  $niteoCS_gradient_two = '';
389
  }
390
 
391
+ $niteoCS_banner_pattern = get_option('niteoCS_banner_pattern', 'sakura');
392
+ $niteoCS_banner_pattern_custom = get_option('niteoCS_banner_pattern_custom');
393
+ $niteoCS_banner_video = get_option('niteoCS_banner_video');
394
+ $niteoCS_youtube_url = get_option('niteoCS_youtube_url');
395
+ $niteoCS_vimeo_url = get_option('niteoCS_vimeo_url');
396
+ $niteoCS_video_thumb = get_option('niteoCS_video_thumb');
397
+ $niteoCS_video_file_url = get_option('niteoCS_video_file_url');
398
+
399
+ $overlay = get_option('niteoCS_overlay', 'solid-color');
400
+ $overlay_color = get_option('niteoCS_overlay[color]', '#0a0a0a');
401
+ $overlay_opa = get_option('niteoCS_overlay[opacity]', '0.4');
402
+ $overlay_gradient = get_option('niteoCS_overlay[gradient]', '#d53369:#cbad6d');
403
+ $overlay_gradient_one_custom = get_option('niteoCS_overlay[gradient_one]', '#e5e5e5');
404
+ $overlay_gradient_two_custom = get_option('niteoCS_overlay[gradient_two]', '#e5e5e5');
405
+ $effect_blur = get_option('niteoCS_effect_blur', '0.0');
406
+
407
+ $overlay_text_status = get_option('niteoCS_overlay_text[status]', '1');
408
+ $overlay_text_heading = stripslashes(get_option('niteoCS_overlay_text[heading]', 'NEW WEBSITE ON THE WAY!'));
409
+ $overlay_text_paragraph = stripslashes(get_option('niteoCS_overlay_text[paragraph]', ''));
410
+ $overlay_button_text = stripslashes(get_option('niteoCS_overlay_text[button_text]', 'Call to Action!'));
411
+ $overlay_button_url = get_option('niteoCS_overlay_text[button_url]', '');
412
 
413
  // create default social media if they do not exists
414
  if ( !get_option('niteoCS_socialmedia') ) {
439
  include ( $this->cmp_themePath($this->cmp_selectedTheme()).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-defaults.php' );
440
  }
441
 
442
+ // set banner type again, if the themes are not upgraded after 2.9.5 release where this settings got theme settings independent
443
+ $banner_type = get_option('niteoCS_banner', '2');
444
+
445
  // get logo url from id
446
  if ( $niteoCS_logo_id != '' ) {
447
+ $logo_url = wp_get_attachment_image_src($niteoCS_logo_id, 'large');
448
  if ( isset($logo_url[0]) ){
449
  $logo_url = $logo_url[0];
450
  }
466
  }
467
  }
468
 
469
+ // get banner url from id
470
  if ( $niteoCS_banner_pattern == 'custom' && $niteoCS_banner_pattern_custom != '' ) {
471
  $pattern_url = wp_get_attachment_image_src($niteoCS_banner_pattern_custom, 'thumbnail');
472
  if ( isset($pattern_url[0]) ){
473
  $pattern_url = $pattern_url[0];
474
  }
 
 
475
  } else {
476
  $pattern_url = plugins_url('/img/patterns/'.esc_attr($niteoCS_banner_pattern).'.png', __FILE__);
477
  }
484
  $this->cmp_theme_upload($_FILES['fileToUpload']);
485
  }
486
 
 
 
 
 
 
 
 
 
 
 
 
 
 
487
 
488
  add_thickbox();
489
 
501
 
502
 
503
  <div class="wrap cmp-coming-soon-maintenance content-settings">
 
504
  <h1></h1>
505
 
506
  <div id="icon-options-general" class="icon32">
507
  <br />
508
  </div>
509
+ <div class="settings-wrap">
510
  <form method="post" action="admin.php?page=cmp-settings&status=settings-saved" id="csoptions">
511
 
512
  <?php wp_nonce_field('save_options','save_options_field'); ?>
683
 
684
  <div class="buttons-wrapper">
685
 
686
+ <a href="<?php echo esc_url ( $premium_theme['url'] );?>" target="_blank" class="theme-purchase button hide"><i class="fa fa-download" aria-hidden="true"></i><?php echo sprintf(__('Get %s', 'cmp-coming-soon-maintenance'), ucwords( esc_html( str_replace('_', ' ', $theme_slug) ) ));?></a>
687
 
688
  <a href="<?php echo 'http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='.$theme_slug.'&utm_source=cmp&utm_medium=referral&utm_campaign='.$theme_slug.'';?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a>
689
 
692
  </div>
693
 
694
  <div class="theme-inputs">
 
695
  <span class="theme-title"><?php echo ucwords( esc_html( str_replace('_', ' ', $theme_slug) ) );?></span>
696
+ <?php echo ( $premium_theme['price'] == '0' ) ? '<span class="theme-version"> ('. __('freebie') .')</span>' : ''; ?>
697
  </div>
698
  </div>
699
 
728
 
729
 
730
  <div class="table-wrapper content">
731
+ <h3><?php _e('Main Content', 'cmp-coming-soon-maintenance');?></h3>
732
  <table class="content">
733
  <tbody>
734
  <tr class="body-title">
735
+ <th><?php _e('Heading', 'cmp-coming-soon-maintenance');?></th>
736
  <td>
737
  <fieldset>
738
  <input type="text" name="niteoCS_body_title" id="niteoCS_body_title" value="<?php echo esc_attr( $niteoCS_body_title ); ?>" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>">
759
 
760
  </div>
761
 
762
+ <?php
763
+ // get background settings
764
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-background.php' ) ) {
765
+ require ( dirname(__FILE__) . '/inc/settings/settings-background.php' );
766
+ }
767
+
768
+ // get slider settings
769
+ if ( isset( $theme_supports['slider'] ) && $theme_supports['slider'] ) {
770
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-slider.php' ) ) {
771
+ require (dirname(__FILE__) . '/inc/settings/settings-slider.php' );
772
+ }
773
+
774
+ } else {
775
+ if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-slider-disabled.php' ) ) {
776
+ require ( dirname(__FILE__) . '/inc/settings/settings-slider-disabled.php' );
777
+ }
778
+
779
+ }
780
+
781
+ // include custom theme content settings
782
+ if ( file_exists($this->cmp_themePath($this->cmp_selectedTheme()).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-content_settings.php') ) {
783
+ include ( $this->cmp_themePath($this->cmp_selectedTheme()).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-content_settings.php' );
784
+ }
785
+
786
  // get counter settings
787
  if ( isset( $theme_supports['counter'] ) && $theme_supports['counter'] ) {
788
  if ( file_exists(dirname(__FILE__) . '/inc/settings/settings-counter.php') ) {
963
 
964
  }
965
 
 
 
 
 
966
 
967
  // special effects for premium themes
968
  if ( in_array( $this->cmp_selectedTheme(), $this->cmp_premium_themes_installed() ) || ( isset( $theme_supports['special_effects'] ) && $theme_supports['special_effects'] ) ) {
979
  }
980
  }
981
 
 
 
 
 
 
 
 
 
 
 
982
 
 
983
 
984
  // include theme related settings
985
  if ( file_exists( $this->cmp_themePath( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-settings.php' ) ) {
1272
  }
1273
 
1274
  ?>
1275
+ </div>
1276
 
1277
  </div> <!-- <div id="wrap"> -->
1278
 
cmp-subscribers.php CHANGED
@@ -26,22 +26,22 @@ $cmp_subs_list_table->prepare_items();
26
  <div class="wrap cmp-coming-soon-maintenance">
27
  <h1></h1>
28
  <div id="icon-users" class="icon32"></div>
29
- <div class="cmp-inputs-wrapper subscribers-settings">
30
- <?php wp_nonce_field('cmp_process_bulk_action', '_nonce'); ?>
31
- <h2><?php _e('View / Edit Subscribers', 'cmp-coming-soon-maintenance');?></h2>
32
- <form name="cmp_subscribe_form" method="post" action="admin.php?page=cmp-subscribers">
33
- <?php $cmp_subs_list_table->display(); ?>
34
- </form>
35
-
36
- <button id="export_csv" class="button"><?php _e('Export All Subscribers','cmp-coming-soon-maintenance');?></button>
 
 
 
 
 
 
 
37
  </div>
38
- <?php
39
- // get sidebar with "widgets"
40
- if ( file_exists(dirname(__FILE__) . '/cmp-sidebar.php') ) {
41
- require (dirname(__FILE__) . '/cmp-sidebar.php');
42
- }
43
-
44
- ?>
45
  </div>
46
 
47
 
26
  <div class="wrap cmp-coming-soon-maintenance">
27
  <h1></h1>
28
  <div id="icon-users" class="icon32"></div>
29
+ <div class="settings-wrap">
30
+ <div class="cmp-inputs-wrapper subscribers-settings">
31
+ <?php wp_nonce_field('cmp_process_bulk_action', '_nonce'); ?>
32
+ <h2><?php _e('View / Edit Subscribers', 'cmp-coming-soon-maintenance');?></h2>
33
+ <form name="cmp_subscribe_form" method="post" action="admin.php?page=cmp-subscribers">
34
+ <?php $cmp_subs_list_table->display(); ?>
35
+ </form>
36
+
37
+ <button id="export_csv" class="button"><?php _e('Export All Subscribers','cmp-coming-soon-maintenance');?></button>
38
+ </div>
39
+ <?php
40
+ // get sidebar with "widgets"
41
+ if ( file_exists(dirname(__FILE__) . '/cmp-sidebar.php') ) {
42
+ require (dirname(__FILE__) . '/cmp-sidebar.php');
43
+ } ?>
44
  </div>
 
 
 
 
 
 
 
45
  </div>
46
 
47
 
cmp-translate.php CHANGED
@@ -66,22 +66,22 @@ $cmp_translate_table->prepare_items();
66
  <div class="wrap cmp-coming-soon-maintenance">
67
  <h1></h1>
68
  <div id="icon-users" class="icon32"></div>
69
- <div class="cmp-inputs-wrapper translate-settings">
70
- <h2><?php _e('Edit Translation Variables', 'cmp-coming-soon-maintenance');?></h2>
71
- <form name="cmp_translate_form" method="post" action="admin.php?page=cmp-translate&status=settings-saved">
72
- <?php $cmp_translate_table->display(); ?>
73
- <p class="cmp-submit">
74
- <?php wp_nonce_field('save_options','save_options_field'); ?>
75
- <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
76
- </p>
77
- </form>
 
78
 
79
- </div>
80
- <?php
81
- // get sidebar with "widgets"
82
- if ( file_exists(dirname(__FILE__) . '/cmp-sidebar.php') ) {
83
- require (dirname(__FILE__) . '/cmp-sidebar.php');
84
- }
85
-
86
- ?>
87
  </div>
66
  <div class="wrap cmp-coming-soon-maintenance">
67
  <h1></h1>
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">
75
+ <?php wp_nonce_field('save_options','save_options_field'); ?>
76
+ <input type="submit" name="Submit" class="button cmp-button submit" value="<?php _e('Save All Changes', 'cmp-coming-soon-maintenance'); ?>" id="submitChanges" />
77
+ </p>
78
+ </form>
79
 
80
+ </div>
81
+ <?php
82
+ // get sidebar with "widgets"
83
+ if ( file_exists(dirname(__FILE__) . '/cmp-sidebar.php') ) {
84
+ require (dirname(__FILE__) . '/cmp-sidebar.php');
85
+ } ?>
86
+ </div>
 
87
  </div>
cmp-upload.php CHANGED
@@ -6,36 +6,35 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
6
  <div class="wrap cmp-coming-soon-maintenance">
7
  <h1></h1>
8
  <div id="icon-users" class="icon32"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
- <div class="cmp-inputs-wrapper help-settings">
 
11
 
12
- <form action="admin.php?page=cmp-settings" class="wp-upload-form cmp" method="post" enctype="multipart/form-data">
13
- <table class="install">
14
- <tbody>
15
- <tr>
16
- <td>
17
- <h3 style="text-align:left"><?php _e('Install New CMP Coming Soon & Maintenance Theme', 'cmp-coming-soon-maintenance');?></h3>
18
- </td>
19
- </tr>
20
- <tr>
21
- <td>
22
- <?php _e('Select Theme ZIP file to upload','cmp-coming-soon-maintenance');?>:
23
- <input type="file" name="fileToUpload" id="fileToUpload">
24
- <?php wp_nonce_field('save_options','save_options_field'); ?>
25
- <input id="install-theme" type="submit" value="Install Theme" name="submit_theme">
26
- </td>
27
- </tr>
28
- </tbody>
29
- </table>
30
-
31
- </form>
32
  </div>
33
-
34
- <?php
35
- // get sidebar with "widgets"
36
- if ( file_exists(dirname(__FILE__) . '/cmp-sidebar.php') ) {
37
- require (dirname(__FILE__) . '/cmp-sidebar.php');
38
- }
39
-
40
- ?>
41
  </div>
6
  <div class="wrap cmp-coming-soon-maintenance">
7
  <h1></h1>
8
  <div id="icon-users" class="icon32"></div>
9
+ <div class="settings-wrap">
10
+ <div class="cmp-inputs-wrapper help-settings">
11
+
12
+ <form action="admin.php?page=cmp-settings" class="wp-upload-form cmp" method="post" enctype="multipart/form-data">
13
+ <table class="install">
14
+ <tbody>
15
+ <tr>
16
+ <td>
17
+ <h3 style="text-align:left"><?php _e('Install New CMP Theme', 'cmp-coming-soon-maintenance');?></h3>
18
+ </td>
19
+ </tr>
20
+ <tr>
21
+ <td>
22
+ <?php _e('Select CMP Theme ZIP file to upload','cmp-coming-soon-maintenance');?>:
23
+ <input type="file" name="fileToUpload" id="fileToUpload">
24
+ <?php wp_nonce_field('save_options','save_options_field'); ?>
25
+ <input id="install-theme" type="submit" value="Install Theme" name="submit_theme">
26
+ </td>
27
+ </tr>
28
+ </tbody>
29
+ </table>
30
 
31
+ </form>
32
+ </div>
33
 
34
+ <?php
35
+ // get sidebar with "widgets"
36
+ if ( file_exists(dirname(__FILE__) . '/cmp-sidebar.php') ) {
37
+ require (dirname(__FILE__) . '/cmp-sidebar.php');
38
+ } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  </div>
 
 
 
 
 
 
 
 
40
  </div>
css/cmp-settings-style.css CHANGED
@@ -1,5 +1,5 @@
1
  .cmp-coming-soon-maintenance {
2
- overflow-x: hidden
3
  }
4
 
5
  .no-margin {
@@ -37,8 +37,7 @@
37
  border-radius: 4px;
38
  line-height: 2.5em;
39
  height: 2.5em;
40
- -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
41
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03)
42
  }
43
 
44
  .cmp-coming-soon-maintenance .select2-container .select2-selection--single {
@@ -76,7 +75,6 @@
76
  border-radius: 50%;
77
  border: 1px solid #d4d4d4;
78
  cursor: pointer;
79
- -webkit-transition: .3s ease-in-out;
80
  transition: .3s ease-in-out
81
  }
82
 
@@ -282,8 +280,7 @@
282
 
283
  .cmp-coming-soon-maintenance #niteoCS-text-logo {
284
  border: none;
285
- -webkit-box-shadow: none;
286
- box-shadow: none;
287
  font-size: 3em
288
  }
289
 
@@ -465,14 +462,14 @@
465
  grid-template-columns: 1fr 1fr 1fr;
466
  -ms-grid-rows: 1fr auto;
467
  grid-template-rows: 1fr auto;
468
- grid-template-areas: "Big Big Big" "small-3 small-2 small-1";
469
  grid-gap: 10px;
470
  }
471
 
472
  .cmp-coming-soon-maintenance .custom-gallery.gallery-3 {
473
  -ms-grid-columns: 1fr 1fr!important;
474
  grid-template-columns: 1fr 1fr!important;
475
- grid-template-areas: "Big Big" "small-2 small-1"!important;
476
 
477
  }
478
 
@@ -541,7 +538,6 @@
541
  content: '';
542
  display: block;
543
  padding-top: 56.25%;
544
- -webkit-transition: background-color .1s;
545
  transition: background-color .1s;
546
  border-top-left-radius: 5px;
547
  border-top-right-radius: 5px;
@@ -568,13 +564,11 @@
568
 
569
  .cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected) {
570
  opacity: 0;
571
- -webkit-transition: opacity .1s, background-color .1s;
572
  transition: opacity .1s, background-color .1s;
573
  }
574
 
575
  .cmp-coming-soon-maintenance .theme-wrapper:hover .hide {
576
  opacity: 1;
577
- -webkit-transition: opacity .1s, background-color .1s;
578
  transition: opacity .1s, background-color .1s;
579
  }
580
 
@@ -621,7 +615,6 @@
621
  color: #fff!important;
622
  -moz-appearance: none;
623
  -webkit-appearance: none;
624
- -webkit-transition: background-color .5s;
625
  transition: background-color .5s;
626
  border: none!important;
627
  box-shadow: none;
@@ -635,15 +628,13 @@
635
  background-color: #c0392b;
636
  color: #fff;
637
  border: none;
638
- -webkit-transition: background-color .5s;
639
  transition: background-color .5s
640
  }
641
 
642
  .cmp-coming-soon-maintenance .theme-wrapper a.button:visited,
643
  .cmp-coming-soon-maintenance .theme-wrapper a.button:focus {
644
  background: transparent;
645
- -webkit-box-shadow: none;
646
- box-shadow: none;
647
  }
648
 
649
  .cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase {
@@ -673,8 +664,7 @@
673
  background: transparent;
674
  border: none;
675
  outline: none;
676
- -webkit-box-shadow: none;
677
- box-shadow: none;
678
  }
679
 
680
  .cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before {
@@ -771,7 +761,6 @@
771
  }
772
 
773
  .cmp-coming-soon-maintenance .theme-overlay .screenshot {
774
- -webkit-transition: background-image .2s ease-in-out;
775
  transition: background-image .2s ease-in-out
776
  }
777
 
@@ -789,7 +778,6 @@
789
  background-color: #000;
790
  line-height: 40px;
791
  opacity: .7;
792
- -webkit-transition: opacity .5s;
793
  transition: opacity .5s
794
  }
795
 
@@ -845,7 +833,6 @@
845
  font-weight: 600;
846
  background: 0 0;
847
  border: 2px solid #f1f1f1;
848
- -webkit-transition: all .2s ease-in-out;
849
  transition: all .2s ease-in-out;
850
  border-radius: 15px
851
  }
@@ -856,7 +843,6 @@
856
  line-height: 30px;
857
  font-size: 14px;
858
  z-index: 2;
859
- -webkit-transition: all .2s ease-in-out;
860
  transition: all .2s ease-in-out
861
  }
862
 
@@ -873,7 +859,6 @@
873
  height: 24px;
874
  top: 3px;
875
  left: 5px;
876
- -webkit-transition: all .2s ease-in-out;
877
  transition: all .2s ease-in-out;
878
  -webkit-transform: translateX(0);
879
  transform: translateX(0);
@@ -1003,6 +988,15 @@
1003
  font-size: 0.9em;
1004
  }
1005
 
 
 
 
 
 
 
 
 
 
1006
  @media screen and (max-width:1450px) {
1007
  .cmp-coming-soon-maintenance .cmp-inputs-wrapper,
1008
  .cmp-coming-soon-maintenance #csoptions {
1
  .cmp-coming-soon-maintenance {
2
+ overflow-x: hidden;
3
  }
4
 
5
  .no-margin {
37
  border-radius: 4px;
38
  line-height: 2.5em;
39
  height: 2.5em;
40
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03)
 
41
  }
42
 
43
  .cmp-coming-soon-maintenance .select2-container .select2-selection--single {
75
  border-radius: 50%;
76
  border: 1px solid #d4d4d4;
77
  cursor: pointer;
 
78
  transition: .3s ease-in-out
79
  }
80
 
280
 
281
  .cmp-coming-soon-maintenance #niteoCS-text-logo {
282
  border: none;
283
+ box-shadow: none;
 
284
  font-size: 3em
285
  }
286
 
462
  grid-template-columns: 1fr 1fr 1fr;
463
  -ms-grid-rows: 1fr auto;
464
  grid-template-rows: 1fr auto;
465
+ grid-template-areas: "Big Big Big" "small-3 small-2 small-1";
466
  grid-gap: 10px;
467
  }
468
 
469
  .cmp-coming-soon-maintenance .custom-gallery.gallery-3 {
470
  -ms-grid-columns: 1fr 1fr!important;
471
  grid-template-columns: 1fr 1fr!important;
472
+ grid-template-areas: "Big Big" "small-2 small-1"!important;
473
 
474
  }
475
 
538
  content: '';
539
  display: block;
540
  padding-top: 56.25%;
 
541
  transition: background-color .1s;
542
  border-top-left-radius: 5px;
543
  border-top-right-radius: 5px;
564
 
565
  .cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected) {
566
  opacity: 0;
 
567
  transition: opacity .1s, background-color .1s;
568
  }
569
 
570
  .cmp-coming-soon-maintenance .theme-wrapper:hover .hide {
571
  opacity: 1;
 
572
  transition: opacity .1s, background-color .1s;
573
  }
574
 
615
  color: #fff!important;
616
  -moz-appearance: none;
617
  -webkit-appearance: none;
 
618
  transition: background-color .5s;
619
  border: none!important;
620
  box-shadow: none;
628
  background-color: #c0392b;
629
  color: #fff;
630
  border: none;
 
631
  transition: background-color .5s
632
  }
633
 
634
  .cmp-coming-soon-maintenance .theme-wrapper a.button:visited,
635
  .cmp-coming-soon-maintenance .theme-wrapper a.button:focus {
636
  background: transparent;
637
+ box-shadow: none;
 
638
  }
639
 
640
  .cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase {
664
  background: transparent;
665
  border: none;
666
  outline: none;
667
+ box-shadow: none;
 
668
  }
669
 
670
  .cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before {
761
  }
762
 
763
  .cmp-coming-soon-maintenance .theme-overlay .screenshot {
 
764
  transition: background-image .2s ease-in-out
765
  }
766
 
778
  background-color: #000;
779
  line-height: 40px;
780
  opacity: .7;
 
781
  transition: opacity .5s
782
  }
783
 
833
  font-weight: 600;
834
  background: 0 0;
835
  border: 2px solid #f1f1f1;
 
836
  transition: all .2s ease-in-out;
837
  border-radius: 15px
838
  }
843
  line-height: 30px;
844
  font-size: 14px;
845
  z-index: 2;
 
846
  transition: all .2s ease-in-out
847
  }
848
 
859
  height: 24px;
860
  top: 3px;
861
  left: 5px;
 
862
  transition: all .2s ease-in-out;
863
  -webkit-transform: translateX(0);
864
  transform: translateX(0);
988
  font-size: 0.9em;
989
  }
990
 
991
+ .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;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;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:white;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-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-search--dropdown.select2-search--hide{display: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--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:bold}.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 transparent;border-style:solid;border-width:5px 4px 0 4px;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--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;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:bold;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:bold;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-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{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:solid black 1px;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--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{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:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.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:white}.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: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:bold;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: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 transparent;border-style:solid;border-width:5px 4px 0 4px;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:0;border-top-left-radius:4px;border-bottom-left-radius: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:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.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: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: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:white;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:bold;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}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{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>.select2-results__options{max-height:200px;overflow-y:auto}.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}
992
+ .cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice {background-color: #2980b9;color: white;border:none;padding:3px 5px;}
993
+ .cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {color:white;}
994
+ .cmp-coming-soon-maintenance .select2-container--default .select2-search--inline .select2-search__field {line-height: 2.5em;margin-top:0;}
995
+ .cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__rendered li {margin-bottom:0;}
996
+ .cmp-coming-soon-maintenance .select2-container .select2-selection--multiple .select2-selection__rendered {display:block;}
997
+ .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);}
998
+ .cmp-coming-soon-maintenance .select2-container--default .select2-results__option--highlighted[aria-selected] {background-color: #2980b9;}
999
+
1000
  @media screen and (max-width:1450px) {
1001
  .cmp-coming-soon-maintenance .cmp-inputs-wrapper,
1002
  .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;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.03);box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height: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;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}​.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance .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;-webkit-box-shadow:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.5em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .unsplash-feed{display:none}.cmp-coming-soon-maintenance .social-inputs p{position:relative;padding-left:50px;height:50px}.cmp-coming-soon-maintenance .social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.cmp-coming-soon-maintenance .theme-details,.cmp-coming-soon-maintenance .toggle{cursor:pointer}.cmp-coming-soon-maintenance .social-inputs label{padding-left:100px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}.cmp-coming-soon-maintenance #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}.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%;-webkit-transition:background-color .1s;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;-webkit-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-webkit-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px 10px 5px 5px;height:2em;background:#656565;line-height:2em;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#27ae60}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-webkit-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#c0392b;color:#fff;border:none;-webkit-transition:background-color .5s;transition:background-color .5s}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;-webkit-box-shadow:none;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;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;-webkit-box-shadow:none;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#32b2ff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{-webkit-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-webkit-transition:opacity .5s;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:1em}.cmp-coming-soon-maintenance .toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle_handler{background:#e74c3c}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:22px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#23282d}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:26px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.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}@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: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;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.5em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .unsplash-feed{display:none}.cmp-coming-soon-maintenance .social-inputs p{position:relative;padding-left:50px;height:50px}.cmp-coming-soon-maintenance .social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.cmp-coming-soon-maintenance .theme-details,.cmp-coming-soon-maintenance .toggle{cursor:pointer}.cmp-coming-soon-maintenance .social-inputs label{padding-left:100px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}.cmp-coming-soon-maintenance #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}.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%;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px 10px 5px 5px;height:2em;background:#656565;line-height:2em;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#27ae60}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#c0392b;color:#fff;border:none;transition:background-color .5s}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;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{transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{-webkit-transition:all .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:1em}.cmp-coming-soon-maintenance .toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;transition:all .2s ease-in-out;-webkit-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle_handler{background:#e74c3c}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:22px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#23282d}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:26px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.content-settings .cmp-sidebar-wrapper{margin-top:58px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}.cmp-coming-soon-maintenance #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 .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;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;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: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: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: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: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)}}
css/select2.min.css DELETED
@@ -1,8 +0,0 @@
1
- .select2-container{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{-webkit-box-sizing:border-box;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;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{-webkit-box-sizing:border-box;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;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{-webkit-box-sizing:border-box;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:white;border:1px solid #dedede;border-radius:4px;-webkit-box-sizing:border-box;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-search--dropdown .select2-search__field{padding:4px;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display: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--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:bold}.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 transparent;border-style:solid;border-width:5px 4px 0 4px;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--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{-webkit-box-sizing:border-box;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:bold;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:bold;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-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{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:solid black 1px;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--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{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:transparent;border:none;outline:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.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:white}.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:-webkit-gradient(linear, left top, left bottom, color-stop(50%, #fff), to(#eee));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:bold;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:-webkit-gradient(linear, left top, left bottom, color-stop(50%, #eee), to(#ccc));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 transparent;border-style:solid;border-width:5px 4px 0 4px;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:0;border-top-left-radius:4px;border-bottom-left-radius: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:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.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:-webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(50%, #eee));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:-webkit-gradient(linear, left top, left bottom, color-stop(50%, #eee), to(#fff));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:white;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:bold;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}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{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;-webkit-box-shadow:none;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>.select2-results__options{max-height:200px;overflow-y:auto}.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}
2
- .cmp-advanced .select2-container--default .select2-selection--multiple .select2-selection__choice {background-color: #2980b9;color: white;border:none;padding:3px 5px;}
3
- .cmp-advanced .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {color:white;}
4
- .cmp-advanced .select2-container--default .select2-search--inline .select2-search__field {line-height: 2.5em;margin-top:0;}
5
- .cmp-advanced .select2-container--default .select2-selection--multiple .select2-selection__rendered li {margin-bottom:0;}
6
- .cmp-advanced .select2-container .select2-selection--multiple .select2-selection__rendered {display:block;}
7
- .cmp-advanced .select2-container--default.select2-container--focus .select2-selection--multiple {border-color: #5b9dd9; -webkit-box-shadow: 0 0 2px rgba(30,140,190,.8); box-shadow: 0 0 2px rgba(30,140,190,.8);}
8
- .select2-container--default .select2-results__option--highlighted[aria-selected] {background-color: #2980b9;}
 
 
 
 
 
 
 
 
img/thumbnails/agency/screenshot1.jpg ADDED
Binary file
img/thumbnails/agency/screenshot2.jpg ADDED
Binary file
img/thumbnails/agency/screenshot3.jpg ADDED
Binary file
img/thumbnails/agency_thumbnail.jpg ADDED
Binary file
img/thumbnails/hardwork_thumbnail.jpg CHANGED
Binary file
inc/class-cmp-render_html.php CHANGED
@@ -34,11 +34,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
34
 
35
  }
36
 
37
-
38
  switch ( $niteoCS_banner ) {
39
  // custom media
40
  case '0':
41
- $banner_id = get_option('niteoCS_banner_id['.$themeslug.']');
42
 
43
  if ( $banner_id != '' ) {
44
  $banner_ids = explode(',', $banner_id);
@@ -58,30 +57,30 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
58
  case '1':
59
  // unsplash
60
  $background_class = 'image';
61
- $unplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '3');
62
 
63
  switch ( $unplash_feed ) {
64
  // specific photo from id
65
  case '0':
66
- $params = array('feed' => '0', 'url' => get_option('niteoCS_unsplash_0['.$themeslug.']', '') );
67
  $unsplash = $this->niteo_unsplash( $params );
68
  break;
69
 
70
  // random from user
71
  case '1':
72
- $params = array('feed' => '1', 'custom_str' => get_option('niteoCS_unsplash_1['.$themeslug.']', '') );
73
  $unsplash = $this->niteo_unsplash( $params );
74
  break;
75
 
76
  // random from collection
77
  case '2':
78
- $params = array('feed' => '2', 'url' => get_option('niteoCS_unsplash_2['.$themeslug.']', '') );
79
  $unsplash = $this->niteo_unsplash( $params );
80
  break;
81
 
82
  // random photo
83
  case '3':
84
- $params = array('feed' => '3', 'url' => get_option('niteoCS_unsplash_3['.$themeslug.']', ''), 'feat' => get_option('niteoCS_unsplash_feat['.$themeslug.']', '0') );
85
  $unsplash = $this->niteo_unsplash( $params );
86
  break;
87
  default:
@@ -131,11 +130,11 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
131
  unsplash_img = unsplash_img.url + '&fit=crop&' + dimension;
132
 
133
 
134
- var image = '<div id="background-image" class="image" style="background-image:></div>';
135
 
136
  var image = document.createElement('div');
137
  image.id = 'background-image';
138
- image.class = 'image';
139
  image.style.backgroundImage = 'url('+unsplash_img+')';
140
 
141
  var container = document.getElementById("background-wrapper");
@@ -170,13 +169,13 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
170
 
171
  case '3':
172
  // Pattern
173
- $niteoCS_banner_pattern = get_option('niteoCS_banner_pattern['.$themeslug.']', 'sakura');
174
 
175
  if ( $niteoCS_banner_pattern != 'custom' ) {
176
  $banner_url = plugin_dir_url( dirname( __FILE__ ) ).'img/patterns/'.esc_attr( $niteoCS_banner_pattern ).'.png';
177
 
178
  } else {
179
- $banner_url = get_option('niteoCS_banner_pattern_custom['.$themeslug.']');
180
  $banner_url = wp_get_attachment_image_src( $banner_url, 'large' );
181
  if ( isset($banner_url[0]) ){
182
  $banner_url = $banner_url[0];
@@ -187,7 +186,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
187
 
188
  case '4':
189
  // Color
190
- $color = get_option('niteoCS_banner_color['.$themeslug.']', '#e5e5e5');
191
  $html ='<div id="background-image" class="color loaded" style="background-color:'.esc_url( $color ).'"></div>';
192
  break;
193
 
@@ -198,10 +197,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
198
  case '6':
199
  // Gradient
200
  $background_class = 'gradient';
201
- $niteoCS_gradient = get_option('niteoCS_gradient['.$themeslug.']', '#1A2980:#26D0CE');
202
  if ( $niteoCS_gradient == 'custom' ) {
203
- $niteoCS_gradient_one = get_option('niteoCS_banner_gradient_one['.$themeslug.']', '#e5e5e5');
204
- $niteoCS_gradient_two = get_option('niteoCS_banner_gradient_two['.$themeslug.']', '#e5e5e5');
205
  } else {
206
  $gradient = explode(":", $niteoCS_gradient);
207
  $niteoCS_gradient_one = $gradient[0];
@@ -221,6 +220,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
221
  $html .= $overlay;
222
  }
223
 
 
 
 
 
224
  return $html;
225
  }
226
 
@@ -236,12 +239,12 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
236
  }
237
  }
238
 
239
- $niteoCS_banner = get_option('niteoCS_banner['.$themeslug.']', '1');
240
- $slider_count = get_option('niteoCS_slider_count['.$themeslug.']', '3');
241
- $slider_effect = get_option('niteoCS_slider_effect['.$themeslug.']', 'true');
242
- $slider_autoplay = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
243
 
244
- $banner_id = get_option('niteoCS_banner_id['.$themeslug.']');
245
  if ( $banner_id != '' ) {
246
  $banner_ids = explode(',', $banner_id);
247
  }
@@ -282,30 +285,30 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
282
 
283
  // unsplash
284
  case '1':
285
- $unplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '3');
286
 
287
  switch ( $unplash_feed ) {
288
  // specific photo from id
289
  case '0':
290
- $params = array( 'feed' => '0', 'url' => get_option('niteoCS_unsplash_0['.$themeslug.']', ''), 'count' => $slider_count );
291
  $unsplash = $this->niteo_unsplash( $params );
292
  break;
293
 
294
  // random from user
295
  case '1':
296
- $params = array( 'feed' => '1', 'custom_str' => get_option('niteoCS_unsplash_1['.$themeslug.']', ''), 'count' => $slider_count );
297
  $unsplash = $this->niteo_unsplash( $params );
298
  break;
299
 
300
  // random from collection
301
  case '2':
302
- $params = array( 'feed' => '2', 'url' => get_option('niteoCS_unsplash_2['.$themeslug.']', ''), 'count' => $slider_count );
303
  $unsplash = $this->niteo_unsplash( $params );
304
  break;
305
 
306
  // random photo
307
  case '3':
308
- $params = array( 'feed' => '3', 'url' => get_option('niteoCS_unsplash_3['.$themeslug.']', ''), 'feat' => get_option('niteoCS_unsplash_feat['.$themeslug.']', '0'), 'count' => $slider_count );
309
  $unsplash = $this->niteo_unsplash( $params );
310
  break;
311
 
@@ -422,22 +425,22 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
422
  **/
423
  public function background_overlay( $themeslug ) {
424
 
425
- $overlay = get_option('niteoCS_overlay['.$themeslug.']', 'disabled');
426
- $opacity = get_option('niteoCS_overlay['.$themeslug.'][opacity]', '0.4');
427
  $html = '';
428
 
429
  switch ( $overlay ) {
430
  case 'solid-color':
431
- $color = get_option('niteoCS_overlay['.$themeslug.'][color]', '#0a0a0a');
432
  $html = '<div class="background-overlay solid-color" style="background-color:'.esc_attr( $color ).';opacity:'.esc_attr( $opacity ).'"></div>';
433
  break;
434
 
435
  case 'gradient':
436
- $overlay_gradient = get_option('niteoCS_overlay['.$themeslug.'][gradient]', '#d53369:#cbad6d');
437
 
438
  if ( $overlay_gradient == 'custom' ) {
439
- $gradient_one = get_option('niteoCS_overlay['.$themeslug.'][gradient_one]', '#e5e5e5');
440
- $gradient_two = get_option('niteoCS_overlay['.$themeslug.'][gradient_two]', '#e5e5e5');
441
 
442
  } else {
443
  $gradient = explode(":", $overlay_gradient);
@@ -456,6 +459,35 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
456
  return $html;
457
  }
458
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
459
  // render Social Icons
460
  public function cmp_social_icons( $mode = 'icon', $title = false, $themeslug = false, $class = '' ) {
461
 
@@ -529,6 +561,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
529
  case 'eclipse':
530
  case 'frame':
531
  case 'postery':
 
532
  $logo_type = 'text';
533
  break;
534
 
@@ -560,13 +593,13 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
560
  }
561
 
562
  if ( isset($logo_url[0]) ) {
563
- $html = '<div class="logo-wrapper image' . esc_attr( $class ) . '"><img src="'.esc_url( $logo_url[0] ).'" class="graphic-logo" alt="logo"></div>';
564
  }
565
  break;
566
 
567
  case 'text':
568
  $text_logo = stripslashes(get_option('niteoCS_text_logo', get_bloginfo( 'name', 'display' )));
569
- $html = '<div class="logo-wrapper text text-logo-wrapper' . esc_attr( $class ) . '"><h1 class="text-logo">'.esc_html( $text_logo ).'</h1></div>';
570
  break;
571
 
572
  case 'disabled':
@@ -615,6 +648,9 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
615
  case 'element':
616
  $placeholder = 'SUBSCRIBE US';
617
  break;
 
 
 
618
  default:
619
  break;
620
  }
@@ -628,6 +664,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
628
  }
629
 
630
  $submit = ( ( $this->cmp_selectedTheme() == 'postery' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'postery' ) ) ? '&#xf1d9;' : $submit;
 
631
 
632
  ?>
633
 
@@ -715,7 +752,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
715
 
716
  var ajaxurl = "<?php echo admin_url('admin-ajax.php');?>";
717
 
718
- function AJAXform( formID, buttonID, resultID, emailID, firstnameID, lastnameID, formMethod = 'POST' ){
719
 
720
  var selectForm = document.getElementById(formID); // Select the form by ID.
721
  var selectButton = document.getElementById(buttonID); // Select the button by ID.
@@ -751,7 +788,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
751
  firstname = ( firstnameInput == null ) ? '' : firstnameInput.value;
752
  lastname = ( lastnameInput == null ) ? '' : lastnameInput.value;
753
 
754
- httpRequest.open(formMethod, ajaxurl, true);
755
  httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
756
  httpRequest.send('action=niteo_subscribe&ajax=true&form_honeypot=&email=' + emailInput.value + '&firstname=' + firstname + '&lastname=' + lastname);
757
  }
@@ -770,7 +807,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
770
 
771
  /* Usage */
772
  window.addEventListener("load",function(event) {
773
- AJAXform( 'subscribe-form', 'submit-subscribe', 'subscribe-response', 'email-subscribe', 'firstname-subscribe', 'lastname-subscribe', 'POST' );
774
  });
775
 
776
  </script>
@@ -861,6 +898,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
861
  $body = '<p>You can use <a href="https://niteothemes.com/projects/cmp-stylo-theme/">Stylo</a> as a landing page, maintenance or coming soon page. It supports both subscriber and contact form, all CMP background options and big beautiful counter.</p>';
862
  break;
863
 
 
 
 
 
864
  default:
865
  $body = wpautop( stripslashes( get_option('niteoCS_body', '') ) );
866
  break;
@@ -919,6 +960,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
919
  case 'vega':
920
  $title = 'NITEOTHEMES IS *COMING SOON!*';
921
  break;
 
 
 
 
922
 
923
  default:
924
  break;
@@ -1051,7 +1096,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1051
  ob_start();
1052
 
1053
  // add blur effect if enabled
1054
- $blur = get_option('niteoCS_effect_blur['. $themeslug .']', '0.0');
1055
  if ( $blur != '0.0' ) {
1056
  ?>
1057
  <!-- blur effect -->
@@ -1076,7 +1121,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1076
 
1077
  if ( in_array( $this->cmp_selectedTheme(), $this->cmp_premium_themes_installed() ) ) {
1078
 
1079
- $effect = get_option('niteoCS_special_effect['.$themeslug.']', 'disabled');
1080
 
1081
  if ( $effect == 'constellation' ) { ?>
1082
  <!-- constellation effect -->
@@ -1159,9 +1204,8 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1159
  }
1160
 
1161
  if ( image != null ) {
1162
- image.className += " loaded";
1163
- body.className += " loaded";
1164
-
1165
  }
1166
 
1167
  <?php
@@ -1195,13 +1239,13 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1195
  <script src='<?php echo plugins_url('cmp-coming-soon-maintenance/js/vidim.min.js');?>'></script>
1196
  <script>
1197
  <?php
1198
- $video_poster = wp_get_attachment_image_src( get_option('niteoCS_video_thumb['.$themeslug.']'), 'large' );
1199
 
1200
  if ( !empty( $video_poster ) ) {
1201
  $video_poster = $video_poster[0];
1202
  }
1203
  // video
1204
- $source = get_option('niteoCS_banner_video['.$themeslug.']');
1205
 
1206
  // sanitize source
1207
  switch ( $source ) {
@@ -1217,7 +1261,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1217
 
1218
  switch ( $source ) {
1219
  case 'YouTube':
1220
- $banner_url = get_option('niteoCS_youtube_url['.$themeslug.']'); ?>
1221
 
1222
  var myBackground = new vidim( '#player', {
1223
  src: '<?php echo esc_url( $banner_url ); ?>',
@@ -1231,7 +1275,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1231
  break;
1232
 
1233
  case 'vimeo':
1234
- $banner_url = get_option('niteoCS_vimeo_url['.$themeslug.']'); ?>
1235
  var myBackground = new vidim( '#player', {
1236
  src: '<?php echo esc_url( $banner_url ); ?>',
1237
  type: 'vimeo',
@@ -1242,7 +1286,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1242
  break;
1243
 
1244
  case 'video/mp4':
1245
- $banner_url = get_option('niteoCS_video_file_url['.$themeslug.']');
1246
  $banner_url = wp_get_attachment_url( $banner_url ); ?>
1247
  var myBackground = new vidim( '#player', {
1248
  src: [
@@ -1265,9 +1309,9 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1265
  // SLIDER SCRIPTS FOR UNSPLASH or Custom IMAGES
1266
  case '0':
1267
  case '1':
1268
- if ( get_option('niteoCS_slider['.$themeslug.']', '0') == 1 ) {
1269
- $slider_effect = get_option('niteoCS_slider_effect['.$themeslug.']', 'true');
1270
- $slider_autoplay = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
1271
 
1272
  switch ( $slider_effect ) {
1273
  // slice effect scripts
@@ -1357,12 +1401,12 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1357
 
1358
 
1359
  // include jquery and CF7 scripts for stylo theme contact form 7
1360
- if ( $themeslug == 'stylo' && get_option('niteoCS_contact_form_type', 'cf7') == 'cf7' ) {
1361
 
1362
  $site_url = str_replace( '/', '\/', site_url() );
1363
 
1364
  // load jquery if not already loaded by slider
1365
- if ( get_option('niteoCS_slider['.$themeslug.']', '1') == 1 && (get_option('niteoCS_banner['.$themeslug.']', '1') == 1 || get_option('niteoCS_banner['.$themeslug.']', '1') == 0 ) ) {
1366
 
1367
  } else {
1368
  ?>
@@ -1385,7 +1429,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1385
  // special effects scripts for premium themes
1386
  if ( in_array( $this->cmp_selectedTheme(), $this->cmp_premium_themes_installed() ) ) {
1387
 
1388
- $effect = get_option('niteoCS_special_effect['.$themeslug.']', 'disabled');
1389
 
1390
  switch ( $effect ) {
1391
  case 'constellation': ?>
@@ -1406,7 +1450,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1406
  }
1407
  },
1408
  "color": {
1409
- "value": "<?php echo esc_attr( get_option('niteoCS_special_effect['.$themeslug.'][constellation][color]', '#ffffff') );?>",
1410
  },
1411
 
1412
  "shape": {
@@ -1442,7 +1486,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
1442
  "line_linked": {
1443
  "enable": true,
1444
  "distance": 120,
1445
- "color": "<?php echo esc_attr( get_option('niteoCS_special_effect['.$themeslug.'][constellation][color]', '#ffffff') );?>",
1446
  "opacity": 0.4,
1447
  "width": 1
1448
  },
34
 
35
  }
36
 
 
37
  switch ( $niteoCS_banner ) {
38
  // custom media
39
  case '0':
40
+ $banner_id = get_option('niteoCS_banner_id');
41
 
42
  if ( $banner_id != '' ) {
43
  $banner_ids = explode(',', $banner_id);
57
  case '1':
58
  // unsplash
59
  $background_class = 'image';
60
+ $unplash_feed = get_option('niteoCS_unsplash_feed', '3');
61
 
62
  switch ( $unplash_feed ) {
63
  // specific photo from id
64
  case '0':
65
+ $params = array('feed' => '0', 'url' => get_option('niteoCS_unsplash_0', '') );
66
  $unsplash = $this->niteo_unsplash( $params );
67
  break;
68
 
69
  // random from user
70
  case '1':
71
+ $params = array('feed' => '1', 'custom_str' => get_option('niteoCS_unsplash_1', '') );
72
  $unsplash = $this->niteo_unsplash( $params );
73
  break;
74
 
75
  // random from collection
76
  case '2':
77
+ $params = array('feed' => '2', 'url' => get_option('niteoCS_unsplash_2', '') );
78
  $unsplash = $this->niteo_unsplash( $params );
79
  break;
80
 
81
  // random photo
82
  case '3':
83
+ $params = array('feed' => '3', 'url' => get_option('niteoCS_unsplash_3', ''), 'feat' => get_option('niteoCS_unsplash_feat', '0') );
84
  $unsplash = $this->niteo_unsplash( $params );
85
  break;
86
  default:
130
  unsplash_img = unsplash_img.url + '&fit=crop&' + dimension;
131
 
132
 
133
+ var image = '<div id="background-image" class="image" style="background-image:url()"></div>';
134
 
135
  var image = document.createElement('div');
136
  image.id = 'background-image';
137
+ image.className = 'image';
138
  image.style.backgroundImage = 'url('+unsplash_img+')';
139
 
140
  var container = document.getElementById("background-wrapper");
169
 
170
  case '3':
171
  // Pattern
172
+ $niteoCS_banner_pattern = get_option('niteoCS_banner_pattern', 'sakura');
173
 
174
  if ( $niteoCS_banner_pattern != 'custom' ) {
175
  $banner_url = plugin_dir_url( dirname( __FILE__ ) ).'img/patterns/'.esc_attr( $niteoCS_banner_pattern ).'.png';
176
 
177
  } else {
178
+ $banner_url = get_option('niteoCS_banner_pattern_custom');
179
  $banner_url = wp_get_attachment_image_src( $banner_url, 'large' );
180
  if ( isset($banner_url[0]) ){
181
  $banner_url = $banner_url[0];
186
 
187
  case '4':
188
  // Color
189
+ $color = get_option('niteoCS_banner_color', '#e5e5e5');
190
  $html ='<div id="background-image" class="color loaded" style="background-color:'.esc_url( $color ).'"></div>';
191
  break;
192
 
197
  case '6':
198
  // Gradient
199
  $background_class = 'gradient';
200
+ $niteoCS_gradient = get_option('niteoCS_gradient', '#1A2980:#26D0CE');
201
  if ( $niteoCS_gradient == 'custom' ) {
202
+ $niteoCS_gradient_one = get_option('niteoCS_banner_gradient_one', '#e5e5e5');
203
+ $niteoCS_gradient_two = get_option('niteoCS_banner_gradient_two', '#e5e5e5');
204
  } else {
205
  $gradient = explode(":", $niteoCS_gradient);
206
  $niteoCS_gradient_one = $gradient[0];
220
  $html .= $overlay;
221
  }
222
 
223
+ // add text overlay
224
+
225
+ $html .= $this->background_text_overlay( $themeslug );
226
+
227
  return $html;
228
  }
229
 
239
  }
240
  }
241
 
242
+ $niteoCS_banner = get_option('niteoCS_banner', '1');
243
+ $slider_count = get_option('niteoCS_slider_count', '3');
244
+ $slider_effect = get_option('niteoCS_slider_effect', 'true');
245
+ $slider_autoplay = get_option('niteoCS_slider_auto', '1');
246
 
247
+ $banner_id = get_option('niteoCS_banner_id');
248
  if ( $banner_id != '' ) {
249
  $banner_ids = explode(',', $banner_id);
250
  }
285
 
286
  // unsplash
287
  case '1':
288
+ $unplash_feed = get_option('niteoCS_unsplash_feed', '3');
289
 
290
  switch ( $unplash_feed ) {
291
  // specific photo from id
292
  case '0':
293
+ $params = array( 'feed' => '0', 'url' => get_option('niteoCS_unsplash_0', ''), 'count' => $slider_count );
294
  $unsplash = $this->niteo_unsplash( $params );
295
  break;
296
 
297
  // random from user
298
  case '1':
299
+ $params = array( 'feed' => '1', 'custom_str' => get_option('niteoCS_unsplash_1', ''), 'count' => $slider_count );
300
  $unsplash = $this->niteo_unsplash( $params );
301
  break;
302
 
303
  // random from collection
304
  case '2':
305
+ $params = array( 'feed' => '2', 'url' => get_option('niteoCS_unsplash_2', ''), 'count' => $slider_count );
306
  $unsplash = $this->niteo_unsplash( $params );
307
  break;
308
 
309
  // random photo
310
  case '3':
311
+ $params = array( 'feed' => '3', 'url' => get_option('niteoCS_unsplash_3', ''), 'feat' => get_option('niteoCS_unsplash_feat', '0'), 'count' => $slider_count );
312
  $unsplash = $this->niteo_unsplash( $params );
313
  break;
314
 
425
  **/
426
  public function background_overlay( $themeslug ) {
427
 
428
+ $overlay = get_option('niteoCS_overlay', 'solid-color');
429
+ $opacity = get_option('niteoCS_overlay[opacity]', '0.4');
430
  $html = '';
431
 
432
  switch ( $overlay ) {
433
  case 'solid-color':
434
+ $color = get_option('niteoCS_overlay[color]', '#0a0a0a');
435
  $html = '<div class="background-overlay solid-color" style="background-color:'.esc_attr( $color ).';opacity:'.esc_attr( $opacity ).'"></div>';
436
  break;
437
 
438
  case 'gradient':
439
+ $overlay_gradient = get_option('niteoCS_overlay[gradient]', '#d53369:#cbad6d');
440
 
441
  if ( $overlay_gradient == 'custom' ) {
442
+ $gradient_one = get_option('niteoCS_overlay[gradient_one]', '#e5e5e5');
443
+ $gradient_two = get_option('niteoCS_overlay[gradient_two]', '#e5e5e5');
444
 
445
  } else {
446
  $gradient = explode(":", $overlay_gradient);
459
  return $html;
460
  }
461
 
462
+
463
+ /**
464
+ * render graphic Overlay text.
465
+ *
466
+ * @since 2.9.5
467
+ * @return HTML
468
+ **/
469
+ public function background_text_overlay( $themeslug ) {
470
+ $overlay_text_status = get_option('niteoCS_overlay_text[status]', '1');
471
+
472
+ // return if overlay is disabled
473
+ if ( $overlay_text_status == '0' || !in_array( $themeslug, $this->cmp_overlay_text_themes() ) ) {
474
+ return;
475
+ }
476
+
477
+ $heading = stripslashes(get_option('niteoCS_overlay_text[heading]', 'NEW WEBSITE ON THE WAY!'));
478
+ $paragraph = stripslashes(get_option('niteoCS_overlay_text[paragraph]', ''));
479
+ $button_text = stripslashes(get_option('niteoCS_overlay_text[button_text]', 'Call to Action!'));
480
+ $button_url = get_option('niteoCS_overlay_text[button_url]', '');
481
+
482
+ $heading = ( $heading == '' ) ? '' : '<h2 class="animated fadeInRight delay-small">'.esc_html( $heading ).'</h2>';
483
+ $paragraph = ( $paragraph == '' ) ? '' : '<div class="animated fadeInRight delay-big">'. wpautop( esc_html( $paragraph ) ) . '</div>';
484
+ $button = ( $button_text == '' ) ? '' : '<a href="'.esc_html( $button_url ).'" class="button animated fadeInRight delay-huge" target="_blank">'.esc_html( $button_text ).'</a>';
485
+
486
+ return '<div class="overlay-content">' . $heading . $paragraph . $button . '</div>';
487
+
488
+ }
489
+
490
+
491
  // render Social Icons
492
  public function cmp_social_icons( $mode = 'icon', $title = false, $themeslug = false, $class = '' ) {
493
 
561
  case 'eclipse':
562
  case 'frame':
563
  case 'postery':
564
+ case 'agency':
565
  $logo_type = 'text';
566
  break;
567
 
593
  }
594
 
595
  if ( isset($logo_url[0]) ) {
596
+ $html = '<div class="logo-wrapper image' . esc_attr( $class ) . '"><a href="'. esc_url( get_site_url() ) .'" style="text-decoration:none"><img src="'.esc_url( $logo_url[0] ).'" class="graphic-logo" alt="logo"></a></div>';
597
  }
598
  break;
599
 
600
  case 'text':
601
  $text_logo = stripslashes(get_option('niteoCS_text_logo', get_bloginfo( 'name', 'display' )));
602
+ $html = '<div class="logo-wrapper text text-logo-wrapper' . esc_attr( $class ) . '"><a href="'. esc_url( get_site_url() ) .'" style="text-decoration:none"><h1 class="text-logo">'.esc_html( $text_logo ).'</h1></a></div>';
603
  break;
604
 
605
  case 'disabled':
648
  case 'element':
649
  $placeholder = 'SUBSCRIBE US';
650
  break;
651
+ case 'hardwork_premium' :
652
+ $submit = 'Subscribe';
653
+ break;
654
  default:
655
  break;
656
  }
664
  }
665
 
666
  $submit = ( ( $this->cmp_selectedTheme() == 'postery' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'postery' ) ) ? '&#xf1d9;' : $submit;
667
+ $submit = ( ( $this->cmp_selectedTheme() == 'agency' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'agency' ) ) ? '&#xf105;' : $submit;
668
 
669
  ?>
670
 
752
 
753
  var ajaxurl = "<?php echo admin_url('admin-ajax.php');?>";
754
 
755
+ function AJAXform( formID, buttonID, resultID, emailID, firstnameID, lastnameID ){
756
 
757
  var selectForm = document.getElementById(formID); // Select the form by ID.
758
  var selectButton = document.getElementById(buttonID); // Select the button by ID.
788
  firstname = ( firstnameInput == null ) ? '' : firstnameInput.value;
789
  lastname = ( lastnameInput == null ) ? '' : lastnameInput.value;
790
 
791
+ httpRequest.open('POST', ajaxurl, true);
792
  httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
793
  httpRequest.send('action=niteo_subscribe&ajax=true&form_honeypot=&email=' + emailInput.value + '&firstname=' + firstname + '&lastname=' + lastname);
794
  }
807
 
808
  /* Usage */
809
  window.addEventListener("load",function(event) {
810
+ AJAXform( 'subscribe-form', 'submit-subscribe', 'subscribe-response', 'email-subscribe', 'firstname-subscribe', 'lastname-subscribe' );
811
  });
812
 
813
  </script>
898
  $body = '<p>You can use <a href="https://niteothemes.com/projects/cmp-stylo-theme/">Stylo</a> as a landing page, maintenance or coming soon page. It supports both subscriber and contact form, all CMP background options and big beautiful counter.</p>';
899
  break;
900
 
901
+ case 'agency':
902
+ $body = '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ipsum a arcu cursus vitae congue mauris. Eros in cursus turpis massa tincidunt.</p>';
903
+ break;
904
+
905
  default:
906
  $body = wpautop( stripslashes( get_option('niteoCS_body', '') ) );
907
  break;
960
  case 'vega':
961
  $title = 'NITEOTHEMES IS *COMING SOON!*';
962
  break;
963
+
964
+ case 'agency':
965
+ $title = 'NEW WEBSITE ON THE WAY!';
966
+ break;
967
 
968
  default:
969
  break;
1096
  ob_start();
1097
 
1098
  // add blur effect if enabled
1099
+ $blur = get_option('niteoCS_effect_blur', '0.0');
1100
  if ( $blur != '0.0' ) {
1101
  ?>
1102
  <!-- blur effect -->
1121
 
1122
  if ( in_array( $this->cmp_selectedTheme(), $this->cmp_premium_themes_installed() ) ) {
1123
 
1124
+ $effect = get_option('niteoCS_special_effect', 'disabled');
1125
 
1126
  if ( $effect == 'constellation' ) { ?>
1127
  <!-- constellation effect -->
1204
  }
1205
 
1206
  if ( image != null ) {
1207
+ image.classList.add('loaded');
1208
+ body.classList.add('loaded');
 
1209
  }
1210
 
1211
  <?php
1239
  <script src='<?php echo plugins_url('cmp-coming-soon-maintenance/js/vidim.min.js');?>'></script>
1240
  <script>
1241
  <?php
1242
+ $video_poster = wp_get_attachment_image_src( get_option('niteoCS_video_thumb'), 'large' );
1243
 
1244
  if ( !empty( $video_poster ) ) {
1245
  $video_poster = $video_poster[0];
1246
  }
1247
  // video
1248
+ $source = get_option('niteoCS_banner_video');
1249
 
1250
  // sanitize source
1251
  switch ( $source ) {
1261
 
1262
  switch ( $source ) {
1263
  case 'YouTube':
1264
+ $banner_url = get_option('niteoCS_youtube_url'); ?>
1265
 
1266
  var myBackground = new vidim( '#player', {
1267
  src: '<?php echo esc_url( $banner_url ); ?>',
1275
  break;
1276
 
1277
  case 'vimeo':
1278
+ $banner_url = get_option('niteoCS_vimeo_url'); ?>
1279
  var myBackground = new vidim( '#player', {
1280
  src: '<?php echo esc_url( $banner_url ); ?>',
1281
  type: 'vimeo',
1286
  break;
1287
 
1288
  case 'video/mp4':
1289
+ $banner_url = get_option('niteoCS_video_file_url');
1290
  $banner_url = wp_get_attachment_url( $banner_url ); ?>
1291
  var myBackground = new vidim( '#player', {
1292
  src: [
1309
  // SLIDER SCRIPTS FOR UNSPLASH or Custom IMAGES
1310
  case '0':
1311
  case '1':
1312
+ if ( get_option('niteoCS_slider', '0') == 1 ) {
1313
+ $slider_effect = get_option('niteoCS_slider_effect', 'true');
1314
+ $slider_autoplay = get_option('niteoCS_slider_auto', '1');
1315
 
1316
  switch ( $slider_effect ) {
1317
  // slice effect scripts
1401
 
1402
 
1403
  // include jquery and CF7 scripts for stylo theme contact form 7
1404
+ if ( in_array( $themeslug, $this->cmp_cf7_themes() ) && get_option('niteoCS_contact_form_type') == 'cf7' ) {
1405
 
1406
  $site_url = str_replace( '/', '\/', site_url() );
1407
 
1408
  // load jquery if not already loaded by slider
1409
+ if ( get_option('niteoCS_slider') == 1 && (get_option('niteoCS_banner') == 1 || get_option('niteoCS_banner') == 0 ) ) {
1410
 
1411
  } else {
1412
  ?>
1429
  // special effects scripts for premium themes
1430
  if ( in_array( $this->cmp_selectedTheme(), $this->cmp_premium_themes_installed() ) ) {
1431
 
1432
+ $effect = get_option('niteoCS_special_effect', 'disabled');
1433
 
1434
  switch ( $effect ) {
1435
  case 'constellation': ?>
1450
  }
1451
  },
1452
  "color": {
1453
+ "value": "<?php echo esc_attr( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>",
1454
  },
1455
 
1456
  "shape": {
1486
  "line_linked": {
1487
  "enable": true,
1488
  "distance": 120,
1489
+ "color": "<?php echo esc_attr( get_option('niteoCS_special_effect[constellation][color]', '#ffffff') );?>",
1490
  "opacity": 0.4,
1491
  "width": 1
1492
  },
inc/cmp-update-process.php CHANGED
@@ -159,6 +159,20 @@ if ( version_compare( get_option('niteoCS_version'), CMP_VERSION ) < 0 ) {
159
  delete_option('niteoCS_text_logo['.$current_theme.']');
160
  }
161
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  // bump version for next udpate check
163
  update_option( 'niteoCS_version', CMP_VERSION );
164
  }
159
  delete_option('niteoCS_text_logo['.$current_theme.']');
160
  }
161
 
162
+ // 2.9.5 update - migrate graphic background to indepenedent theme settings
163
+ $settings = array( 'niteoCS_banner['.$current_theme.']', 'niteoCS_banner_id['.$current_theme.']', 'niteoCS_unsplash_feed['.$current_theme.']', 'niteoCS_unsplash_0['.$current_theme.']', 'niteoCS_unsplash_2['.$current_theme.']', 'niteoCS_unsplash_3['.$current_theme.']', 'niteoCS_unsplash_1['.$current_theme.']', 'niteoCS_banner_video['.$current_theme.']', 'niteoCS_youtube_url['.$current_theme.']', 'niteoCS_vimeo_url['.$current_theme.']', 'niteoCS_video_file_url['.$current_theme.']', 'niteoCS_video_thumb['.$current_theme.']', 'niteoCS_banner_pattern['.$current_theme.']', 'niteoCS_banner_pattern_custom['.$current_theme.']', 'niteoCS_banner_color['.$current_theme.']', 'niteoCS_gradient['.$current_theme.']', 'niteoCS_banner_gradient_one['.$current_theme.']', 'niteoCS_banner_gradient_two['.$current_theme.']', 'niteoCS_effect_blur['.$current_theme.']', 'niteoCS_overlay['.$current_theme.']', 'niteoCS_overlay['.$current_theme.'][color]', 'niteoCS_overlay['.$current_theme.'][gradient]', 'niteoCS_overlay['.$current_theme.'][gradient_one]', 'niteoCS_overlay['.$current_theme.'][gradient_two]', 'niteoCS_overlay['.$current_theme.'][opacity]', 'niteoCS_banner['.$current_theme.']', 'niteoCS_slider_count['.$current_theme.']', 'niteoCS_slider_effect['.$current_theme.']', 'niteoCS_slider_auto['.$current_theme.']', 'niteoCS_special_effect['.$current_theme.']', 'niteoCS_special_effect['.$current_theme.'][constellation][color]' );
164
+
165
+ foreach ( $settings as $name ) {
166
+ $value = get_option( $name );
167
+ if ( $value !== false ) {
168
+ $new_settings = str_replace('['.$current_theme.']', '', $name);
169
+ update_option( $new_settings, $value );
170
+ if ( $name != 'niteoCS_banner['.$current_theme.']' ) {
171
+ delete_option( $name );
172
+ }
173
+ }
174
+ }
175
+
176
  // bump version for next udpate check
177
  update_option( 'niteoCS_version', CMP_VERSION );
178
  }
inc/settings/settings-background.php CHANGED
@@ -29,7 +29,7 @@ $gradient_array = array(
29
 
30
  ?>
31
 
32
- <div class="table-wrapper theme-setup background-media">
33
  <h3><?php _e('Graphic Background', 'cmp-coming-soon-maintenance');?></h3>
34
  <table class="theme-setup">
35
  <tbody>
@@ -42,39 +42,39 @@ $gradient_array = array(
42
 
43
  <p>
44
  <label title="Default Banner">
45
- <input type="radio" class="background-type" name="niteoCS_banner_<?php echo esc_attr( $themeslug );?>" value="2" <?php checked( '2', $banner_type ); ?>>&nbsp;<?php _e('Default Media', 'cmp-coming-soon-maintenance');?>
46
  </label>
47
  </p>
48
 
49
  <p>
50
  <label title="Custom banner">
51
- <input type="radio" class="background-type" name="niteoCS_banner_<?php echo esc_attr( $themeslug );?>" value="0" <?php checked( '0', $banner_type ); ?>>&nbsp;<?php _e('Custom Images', 'cmp-coming-soon-maintenance');?>
52
  </label>
53
  </p>
54
 
55
  <p>
56
  <label title="Unsplash banner">
57
- <input type="radio" class="background-type" name="niteoCS_banner_<?php echo esc_attr( $themeslug );?>" value="1" <?php checked( '1', $banner_type ); ?>>&nbsp;<?php _e('Unsplash library', 'cmp-coming-soon-maintenance');?>
58
  </label>
59
  </p>
60
  <p>
61
  <label title="Video Banner">
62
- <input type="radio" class="background-type" name="niteoCS_banner_<?php echo esc_attr( $themeslug );?>" value="5" <?php checked( '5', $banner_type ); ?>>&nbsp;<?php _e('Video', 'cmp-coming-soon-maintenance');?>
63
  </label>
64
  </p>
65
  <p>
66
  <label title="Pattern Banner">
67
- <input type="radio" class="background-type" name="niteoCS_banner_<?php echo esc_attr( $themeslug );?>" value="3" <?php checked( '3', $banner_type ); ?>>&nbsp;<?php _e('Graphic Pattern', 'cmp-coming-soon-maintenance');?>
68
  </label>
69
  </p>
70
  <p>
71
  <label title="Solid Color Banner">
72
- <input type="radio" class="background-type" name="niteoCS_banner_<?php echo esc_attr( $themeslug );?>" value="4" <?php checked( '4', $banner_type ); ?>>&nbsp;<?php _e('Solid Color', 'cmp-coming-soon-maintenance');?>
73
  </label>
74
  </p>
75
  <p>
76
  <label title="Gradient Banner">
77
- <input type="radio" class="background-type" name="niteoCS_banner_<?php echo esc_attr( $themeslug );?>" value="6" <?php checked( '6', $banner_type ); ?>>&nbsp;<?php _e('Gradient Color', 'cmp-coming-soon-maintenance');?>
78
  </label>
79
  </p>
80
 
@@ -88,17 +88,18 @@ $gradient_array = array(
88
  <div class="background-thumb-wrapper">
89
  <img src="<?php echo esc_url( $this->cmp_themeURL( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/img/'.$this->cmp_selectedTheme().'_banner_large.jpg' );?>" alt="Default Media">
90
  <div class="thumbnail-overlay"></div>
91
- </div>
 
92
  </fieldset>
93
 
94
  <!-- CUSTOM BACKGROUND -->
95
  <fieldset class="background-type-switch custom_banner x0">
96
 
97
- <input type="hidden" class="widefat" id="niteoCS-images-id" name="niteoCS_banner_id_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_banner_custom_id ); ?>" />
98
 
99
  <input id="add-images" type="button" class="button" value="Media Library" />
100
 
101
- <p class="info"><?php _e('Pro Tip! You can select multiple Media from your library by holding CTRL+click (Command+click if you sit on MacOS) while selecting photos.','cmp-coming-soon-maintenance')?></p>
102
 
103
  <div class="background-thumb-wrapper">
104
 
@@ -153,8 +154,8 @@ $gradient_array = array(
153
  <!-- UNSPLASH BACKGROUND -->
154
  <fieldset class="background-type-switch unsplash_banner x1">
155
 
156
- <label for="unsplash_feed_<?php echo esc_attr( $themeslug );?>"><?php _e('Choose Unsplash Feed', 'cmp-coming-soon-maintenance');?></label><br>
157
- <select name="unsplash_feed_<?php echo esc_attr( $themeslug );?>" id="unsplash_feed_<?php echo esc_attr( $themeslug );?>">
158
 
159
  <option value="3" <?php selected( '3', $niteoCS_unsplash_feed ); ?>><?php _e('Random Photo', 'cmp-coming-soon-maintenance');?></option>
160
 
@@ -168,7 +169,7 @@ $gradient_array = array(
168
 
169
  <p class="unsplash-feed unsplash-feed-0">
170
  <label><?php _e('Enter Unsplash Photo URL or Unsplash Photo ID', 'cmp-coming-soon-maintenance');?>
171
- <input type="text" class="widefat" id="niteoCS-unsplash-0" name="niteoCS_unsplash_0_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_0 ); ?>" />
172
  </label>
173
  <br><br>
174
  <button id="test-unsplash" class="button" data-security="<?php echo esc_attr( $ajax_nonce );?>"><?php _e('Display Unsplash Photo', 'cmp-coming-soon-maintenance');?></button>
@@ -185,34 +186,34 @@ $gradient_array = array(
185
 
186
  <p class="unsplash-feed unsplash-feed-2">
187
  <label><?php printf(__('Enter <a href="%s">Unsplash Collection</a> URL or Collection ID.', 'cmp-coming-soon-maintenance'), 'https://unsplash.com/collections/');?>
188
- <input type="text" class="widefat" id="niteoCS-unsplash-2" name="niteoCS_unsplash_2_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_2 ); ?>" />
189
  </label>
190
  </p>
191
 
192
  <p class="unsplash-feed unsplash-feed-3">
193
  <label><?php _e('Limit photos to specific keyword (fashion, nature, technology..)', 'cmp-coming-soon-maintenance');?>
194
- <input type="text" class="widefat" id="niteoCS-unsplash-3" name="niteoCS_unsplash_3_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_3 ); ?>" />
195
  </label>
196
 
197
- <input type="checkbox" name="niteoCS_unsplash_feat_<?php echo esc_attr( $themeslug );?>" id="niteoCS_unsplash_feat" value="1" <?php checked( '1', get_option( 'niteoCS_unsplash_feat['.esc_attr( $themeslug ).']', '0' ) ); ?> class="regular-text code"><label for="niteoCS_unsplash_feat"><?php _e('Only Unsplash Featured Photos', 'cmp-coming-soon-maintenance');?></label>
198
  </p>
199
 
200
  <p class="unsplash-feed unsplash-feed-1">
201
  <label><?php _e('Enter Unsplash User ID', 'cmp-coming-soon-maintenance');?>
202
- <input type="text" class="widefat" id="niteoCS-unsplash-1" name="niteoCS_unsplash_1_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_1 ); ?>" placeholder="@"/>
203
  </label>
204
  </p>
205
 
206
- <p class="unplash-description"><a href="http://unsplash.com" target="_blank"><?php _e('Unsplash');?></a> <?php _e('is a world leading source for free to use high quality stock images. All of the images that are submitted and published on Unsplash fall under under the <a href="https://unsplash.com/license"> Unsplash license</a>, which means you can use the image for any personal or commercial use.', 'cmp-coming-soon-maintenance');?></p>
207
 
208
  </fieldset>
209
 
210
 
211
  <!-- VIDEO BACKGROUND -->
212
  <fieldset class="background-type-switch video_banner x5">
213
- <label for="niteoCS_banner_video_<?php echo esc_attr( $themeslug );?>"><?php _e('Select Video Source', 'cmp-coming-soon-maintenance');?></label><br>
214
 
215
- <select name="niteoCS_banner_video_<?php echo esc_attr( $themeslug );?>" id="niteoCS_banner_video_<?php echo esc_attr( $themeslug );?>" class="banner-video-source">
216
  <option value="youtube" <?php selected( 'youtube', $niteoCS_banner_video ); ?>><?php _e('YouTube', 'cmp-coming-soon-maintenance');?></option>
217
  <option value="local" <?php selected( 'local', $niteoCS_banner_video ); ?>><?php _e('Custom Video File', 'cmp-coming-soon-maintenance');?></option>
218
  <option disabled value="vimeo" <?php selected( 'vimeo', $niteoCS_banner_video ); ?>><?php _e('Vimeo (coming soon...)', 'cmp-coming-soon-maintenance');?></option>
@@ -221,19 +222,19 @@ $gradient_array = array(
221
 
222
  <p class="banner-video-source youtube">
223
  <label for="niteoCS-youtube-url"><?php _e('Enter Youtube URL', 'cmp-coming-soon-maintenance');?></label>
224
- <input type="text" class="widefat" id="niteoCS-youtube-url" name="niteoCS_youtube_url_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_youtube_url ); ?>" />
225
 
226
  </p>
227
 
228
  <p class="banner-video-source vimeo">
229
  <label for="niteoCS-vimeo-url"><?php _e('Enter Vimeo URL', 'cmp-coming-soon-maintenance');?></label>
230
- <input type="text" class="widefat" id="niteoCS-vimeo-url" name="niteoCS_vimeo_url_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_vimeo_url ); ?>" />
231
  </p>
232
 
233
  <p class="banner-video-source local">
234
  <label for="add-video-local"><?php _e('Select or Upload custom Video file', 'cmp-coming-soon-maintenance');?></label>
235
  <input id="add-video-local" type="button" class="button" value="Media Library"/>
236
- <input type="hidden" class="widefat" id="niteoCS-video-local-id" name="niteoCS_video_file_url<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_video_file_url ); ?>" data-url="<?php echo esc_url( wp_get_attachment_url( $niteoCS_video_file_url ) ); ?>"/>
237
  </p>
238
 
239
  <!-- Local video image -->
@@ -261,7 +262,7 @@ $gradient_array = array(
261
  <div class="banner-video-source youtube local">
262
 
263
  <p><?php _e('Video backgrounds doesn`t work on mobile devices therefore only thumbnail video image will be displayed on mobile devices. Upload custom thumbnail image by pressing button below. ', 'cmp-coming-soon-maintenance');?></p>
264
- <input type="hidden" class="widefat" id="niteoCS-video-thumb-id" name="niteoCS_video_thumb_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_video_thumb ); ?>" />
265
  <input id="add-video-thumb" type="button" class="button" value="<?php _e('Media Library', 'cmp-coming-soon-maintenance');?>" /><br><br>
266
 
267
  <div class="video-thumb-wrapper background-thumb-wrapper">
@@ -284,8 +285,8 @@ $gradient_array = array(
284
 
285
  <!-- PATTERN BACKGROUND -->
286
  <fieldset class="background-type-switch graphic_pattern x3">
287
- <label for="niteoCS_banner_pattern_<?php echo esc_attr( $themeslug );?>"><?php _e('Select Pattern', 'cmp-coming-soon-maintenance');?></label><br>
288
- <select name="niteoCS_banner_pattern_<?php echo esc_attr( $themeslug );?>" id="niteoCS_banner_pattern_<?php echo esc_attr( $themeslug );?>" data-url="<?php echo esc_url(WP_PLUGIN_URL . '/cmp-coming-soon-maintenance/img/patterns/');?>">
289
  <?php
290
  foreach ( $patterns as $pattern ) { ?>
291
  <option value="<?php echo esc_attr( $pattern );?>" <?php selected( $pattern, $niteoCS_banner_pattern ); ?>><?php echo esc_html(ucfirst(str_replace('_', ' ', $pattern)));?></option>
@@ -294,7 +295,7 @@ $gradient_array = array(
294
  <option value="custom" <?php selected( 'custom', $niteoCS_banner_pattern ); ?>><?php _e('Custom Pattern...', 'cmp-coming-soon-maintenance');?></option>
295
  </select><br>
296
 
297
- <input type="hidden" class="widefat" id="niteoCS-pattern-id" name="niteoCS_banner_pattern_custom_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_banner_pattern_custom ); ?>" />
298
 
299
  <input id="add-pattern" type="button" class="button" value="Media Library" style="display:<?php echo ( $niteoCS_banner_pattern == 'custom' ) ? 'block' : 'none'?>;"/>
300
 
@@ -306,7 +307,7 @@ $gradient_array = array(
306
  <!-- SOLID COLOR BACKGROUND -->
307
  <fieldset class="background-type-switch solid_color x4">
308
  <label for="niteoCS_banner_color"><?php _e('Select Color', 'cmp-coming-soon-maintenance');?></label><br>
309
- <input type="text" name="niteoCS_banner_color_<?php echo esc_attr( $themeslug );?>" id="niteoCS_banner_color" value="<?php echo esc_attr( $niteoCS_banner_color ); ?>" data-default-color="#e5e5e5" class="regular-text code"><br>
310
  <div class="color-preview" style="background-color:<?php echo esc_attr( $niteoCS_banner_color); ?>"></div>
311
  </fieldset>
312
 
@@ -315,7 +316,7 @@ $gradient_array = array(
315
 
316
  <label for="niteoCS_gradient"><?php _e('Select Gradient Background', 'cmp-coming-soon-maintenance');?></label><br>
317
 
318
- <select name="niteoCS_gradient_<?php echo esc_attr( $themeslug );?>" id="niteoCS_gradient" class="background-gradient">
319
  <?php
320
 
321
  foreach ( $gradient_array as $color => $name ) { ?>
@@ -329,10 +330,10 @@ $gradient_array = array(
329
 
330
  <p class="custom-gradient" style="display:<?php echo ( $niteoCS_gradient == 'custom' ) ? 'block' : 'none'; ?>">
331
  <label for="niteoCS_gradient_one"><?php _e('Select first gradient color:', 'cmp-coming-soon-maintenance');?></label><br>
332
- <input type="text" name="niteoCS_banner_gradient_one_<?php echo esc_attr( $themeslug );?>" id="niteoCS_gradient_one" value="<?php echo esc_attr( $niteoCS_gradient_one_custom); ?>" data-default-color="#e5e5e5" class="regular-text code"><br>
333
 
334
  <label for="niteoCS_gradient_two"><?php _e('Select second gradient color:', 'cmp-coming-soon-maintenance');?></label><br>
335
- <input type="text" name="niteoCS_banner_gradient_two_<?php echo esc_attr( $themeslug );?>" id="niteoCS_gradient_two" value="<?php echo esc_attr( $niteoCS_gradient_two_custom); ?>" data-default-color="#e5e5e5" class="regular-text code"><br>
336
  </p>
337
 
338
  <div class="gradient-preview" style="background:-moz-linear-gradient(-45deg, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_one_custom ) : esc_attr( $niteoCS_gradient_one ); ?> 0%, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_two_custom ) : esc_attr( $niteoCS_gradient_two ); ?> 100%);background:-webkit-linear-gradient(-45deg, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_one_custom ) : esc_attr( $niteoCS_gradient_one ); ?> 0%, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_two_custom ) : esc_attr( $niteoCS_gradient_two ); ?> 100%);background:linear-gradient(135deg, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_one_custom ) : esc_attr( $niteoCS_gradient_one ); ?> 0%, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_two_custom ) : esc_attr( $niteoCS_gradient_two ); ?> 100%)"></div>
@@ -347,9 +348,9 @@ $gradient_array = array(
347
  <span><?php _e('Background Overlay', 'cmp-coming-soon-maintenance');?></span>
348
  </legend>
349
 
350
- <label for="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>"><?php _e('Select Background Overlay', 'cmp-coming-soon-maintenance');?></label><br>
351
 
352
- <select name="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>" id="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>" class="background-overlay">
353
 
354
  <option value="solid-color" <?php selected( 'solid-color', $overlay ); ?>><?php _e('Solid Color', 'cmp-coming-soon-maintenance');?></option>
355
 
@@ -365,15 +366,15 @@ $gradient_array = array(
365
  <!-- BACKGROUND OVERLAY SOLID COLOR -->
366
  <fieldset class="background-overlay solid-color">
367
  <p><?php _e('Background Overlay Color', 'cmp-coming-soon-maintenance');?></p>
368
- <input type="text" name="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_color" id="niteoCS_overlay_color" value="<?php echo esc_attr( $overlay_color ); ?>" data-default-color="#0a0a0a" class="regular-text code"><br>
369
  </fieldset>
370
 
371
  <!-- BACKGROUND OVERLAY GRADIENT -->
372
  <fieldset class="background-overlay gradient">
373
 
374
- <label for="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_gradient"><?php _e('Select Gradient Overlay', 'cmp-coming-soon-maintenance');?></label><br>
375
 
376
- <select name="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_gradient" id="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_gradient" class="overlay-gradient">
377
  <?php
378
 
379
  foreach ( $gradient_array as $color => $name ) { ?>
@@ -388,27 +389,56 @@ $gradient_array = array(
388
  <p class="custom-overlay-gradient" style="display:<?php echo ( $overlay_gradient == 'custom' ) ? 'block' : 'none'; ?>">
389
 
390
  <label for="niteoCS_overlay_gradient_one"><?php _e('Select first gradient color:', 'cmp-coming-soon-maintenance');?></label><br>
391
- <input type="text" name="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_gradient_one" value="<?php echo esc_attr( $overlay_gradient_one_custom); ?>" id="niteoCS_overlay_gradient_one" data-default-color="#e5e5e5" class="regular-text code"><br>
392
 
393
  <label for="niteoCS_overlay_gradient_two"><?php _e('Select second gradient color:', 'cmp-coming-soon-maintenance');?></label><br>
394
- <input type="text" name="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_gradient_two" value="<?php echo esc_attr( $overlay_gradient_two_custom); ?>" id="niteoCS_overlay_gradient_two" data-default-color="#e5e5e5" class="regular-text code"><br>
395
 
396
  </p>
397
 
398
  </fieldset>
399
 
400
  <fieldset class="background-overlay solid-color gradient">
401
- <label for="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_opacity"><?php _e('Background Overlay Opacity', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $overlay_opa ); ?></span></label><br>
402
- <input type="range" id="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_opacity" class="background-overlay-opacity" name="niteoCS_overlay_<?php echo esc_attr( $themeslug );?>_opacity" min="0" max="1" step="0.1" value="<?php echo esc_attr( $overlay_opa ); ?>" />
403
  </fieldset>
404
 
405
 
406
  <fieldset class="background-effect blur">
407
- <label for="niteoCS_effect_blur_<?php echo esc_attr( $themeslug );?>"><?php _e('Background Blur Amount', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $effect_blur ); ?></span>px</label><br>
408
- <input type="range" id="niteoCS_effect_blur_<?php echo esc_attr( $themeslug );?>" class="blur-range" name="niteoCS_effect_blur_<?php echo esc_attr( $themeslug );?>" min="0.0" max="10" step="0.5" value="<?php echo esc_attr( $effect_blur ); ?>" />
409
  </fieldset>
410
 
411
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
412
 
413
  </td>
414
  </tr>
29
 
30
  ?>
31
 
32
+ <div class="table-wrapper content background-media">
33
  <h3><?php _e('Graphic Background', 'cmp-coming-soon-maintenance');?></h3>
34
  <table class="theme-setup">
35
  <tbody>
42
 
43
  <p>
44
  <label title="Default Banner">
45
+ <input type="radio" class="background-type" name="niteoCS_banner" value="2" <?php checked( '2', $banner_type ); ?>>&nbsp;<?php _e('Default Media', 'cmp-coming-soon-maintenance');?>
46
  </label>
47
  </p>
48
 
49
  <p>
50
  <label title="Custom banner">
51
+ <input type="radio" class="background-type" name="niteoCS_banner" value="0" <?php checked( '0', $banner_type ); ?>>&nbsp;<?php _e('Custom Images', 'cmp-coming-soon-maintenance');?>
52
  </label>
53
  </p>
54
 
55
  <p>
56
  <label title="Unsplash banner">
57
+ <input type="radio" class="background-type" name="niteoCS_banner" value="1" <?php checked( '1', $banner_type ); ?>>&nbsp;<?php _e('Unsplash library', 'cmp-coming-soon-maintenance');?>
58
  </label>
59
  </p>
60
  <p>
61
  <label title="Video Banner">
62
+ <input type="radio" class="background-type" name="niteoCS_banner" value="5" <?php checked( '5', $banner_type ); ?>>&nbsp;<?php _e('Video', 'cmp-coming-soon-maintenance');?>
63
  </label>
64
  </p>
65
  <p>
66
  <label title="Pattern Banner">
67
+ <input type="radio" class="background-type" name="niteoCS_banner" value="3" <?php checked( '3', $banner_type ); ?>>&nbsp;<?php _e('Graphic Pattern', 'cmp-coming-soon-maintenance');?>
68
  </label>
69
  </p>
70
  <p>
71
  <label title="Solid Color Banner">
72
+ <input type="radio" class="background-type" name="niteoCS_banner" value="4" <?php checked( '4', $banner_type ); ?>>&nbsp;<?php _e('Solid Color', 'cmp-coming-soon-maintenance');?>
73
  </label>
74
  </p>
75
  <p>
76
  <label title="Gradient Banner">
77
+ <input type="radio" class="background-type" name="niteoCS_banner" value="6" <?php checked( '6', $banner_type ); ?>>&nbsp;<?php _e('Gradient Color', 'cmp-coming-soon-maintenance');?>
78
  </label>
79
  </p>
80
 
88
  <div class="background-thumb-wrapper">
89
  <img src="<?php echo esc_url( $this->cmp_themeURL( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/img/'.$this->cmp_selectedTheme().'_banner_large.jpg' );?>" alt="Default Media">
90
  <div class="thumbnail-overlay"></div>
91
+ </div>
92
+ <p class="info"><?php _e('Each CMP Theme is bundled with different Default Background Image.','cmp-coming-soon-maintenance')?></p>
93
  </fieldset>
94
 
95
  <!-- CUSTOM BACKGROUND -->
96
  <fieldset class="background-type-switch custom_banner x0">
97
 
98
+ <input type="hidden" class="widefat" id="niteoCS-images-id" name="niteoCS_banner_id" value="<?php echo esc_attr( $niteoCS_banner_custom_id ); ?>" />
99
 
100
  <input id="add-images" type="button" class="button" value="Media Library" />
101
 
102
+ <p class="info"><?php _e('Pro Tip! You can select multiple Media from your library by holding CTRL+click (Command+click if you use MacOS) while selecting photos.','cmp-coming-soon-maintenance')?></p>
103
 
104
  <div class="background-thumb-wrapper">
105
 
154
  <!-- UNSPLASH BACKGROUND -->
155
  <fieldset class="background-type-switch unsplash_banner x1">
156
 
157
+ <label for="unsplash_feed"><?php _e('Choose Unsplash Feed', 'cmp-coming-soon-maintenance');?></label><br>
158
+ <select name="unsplash_feed" id="unsplash_feed">
159
 
160
  <option value="3" <?php selected( '3', $niteoCS_unsplash_feed ); ?>><?php _e('Random Photo', 'cmp-coming-soon-maintenance');?></option>
161
 
169
 
170
  <p class="unsplash-feed unsplash-feed-0">
171
  <label><?php _e('Enter Unsplash Photo URL or Unsplash Photo ID', 'cmp-coming-soon-maintenance');?>
172
+ <input type="text" class="widefat" id="niteoCS-unsplash-0" name="niteoCS_unsplash_0" value="<?php echo esc_attr( $niteoCS_unsplash_0 ); ?>" />
173
  </label>
174
  <br><br>
175
  <button id="test-unsplash" class="button" data-security="<?php echo esc_attr( $ajax_nonce );?>"><?php _e('Display Unsplash Photo', 'cmp-coming-soon-maintenance');?></button>
186
 
187
  <p class="unsplash-feed unsplash-feed-2">
188
  <label><?php printf(__('Enter <a href="%s">Unsplash Collection</a> URL or Collection ID.', 'cmp-coming-soon-maintenance'), 'https://unsplash.com/collections/');?>
189
+ <input type="text" class="widefat" id="niteoCS-unsplash-2" name="niteoCS_unsplash_2" value="<?php echo esc_attr( $niteoCS_unsplash_2 ); ?>" />
190
  </label>
191
  </p>
192
 
193
  <p class="unsplash-feed unsplash-feed-3">
194
  <label><?php _e('Limit photos to specific keyword (fashion, nature, technology..)', 'cmp-coming-soon-maintenance');?>
195
+ <input type="text" class="widefat" id="niteoCS-unsplash-3" name="niteoCS_unsplash_3" value="<?php echo esc_attr( $niteoCS_unsplash_3 ); ?>" />
196
  </label>
197
 
198
+ <input type="checkbox" name="niteoCS_unsplash_feat" id="niteoCS_unsplash_feat" value="1" <?php checked( '1', get_option( 'niteoCS_unsplash_feat['.esc_attr( $themeslug ).']', '0' ) ); ?> class="regular-text code"><label for="niteoCS_unsplash_feat"><?php _e('Only Unsplash Featured Photos', 'cmp-coming-soon-maintenance');?></label>
199
  </p>
200
 
201
  <p class="unsplash-feed unsplash-feed-1">
202
  <label><?php _e('Enter Unsplash User ID', 'cmp-coming-soon-maintenance');?>
203
+ <input type="text" class="widefat" id="niteoCS-unsplash-1" name="niteoCS_unsplash_1" value="<?php echo esc_attr( $niteoCS_unsplash_1 ); ?>" placeholder="@"/>
204
  </label>
205
  </p>
206
 
207
+ <p class="unplash-description cmp-hint"><a href="http://unsplash.com" target="_blank"><?php _e('Unsplash');?></a> <?php _e('is a world leading source for free to use high quality stock images. All of the images that are submitted and published on Unsplash fall under under the <a href="https://unsplash.com/license"> Unsplash license</a>, which means you can use the image for any personal or commercial use.', 'cmp-coming-soon-maintenance');?></p>
208
 
209
  </fieldset>
210
 
211
 
212
  <!-- VIDEO BACKGROUND -->
213
  <fieldset class="background-type-switch video_banner x5">
214
+ <label for="niteoCS_banner_video"><?php _e('Select Video Source', 'cmp-coming-soon-maintenance');?></label><br>
215
 
216
+ <select name="niteoCS_banner_video" id="niteoCS_banner_video" class="banner-video-source">
217
  <option value="youtube" <?php selected( 'youtube', $niteoCS_banner_video ); ?>><?php _e('YouTube', 'cmp-coming-soon-maintenance');?></option>
218
  <option value="local" <?php selected( 'local', $niteoCS_banner_video ); ?>><?php _e('Custom Video File', 'cmp-coming-soon-maintenance');?></option>
219
  <option disabled value="vimeo" <?php selected( 'vimeo', $niteoCS_banner_video ); ?>><?php _e('Vimeo (coming soon...)', 'cmp-coming-soon-maintenance');?></option>
222
 
223
  <p class="banner-video-source youtube">
224
  <label for="niteoCS-youtube-url"><?php _e('Enter Youtube URL', 'cmp-coming-soon-maintenance');?></label>
225
+ <input type="text" class="widefat" id="niteoCS-youtube-url" name="niteoCS_youtube_url" value="<?php echo esc_attr( $niteoCS_youtube_url ); ?>" />
226
 
227
  </p>
228
 
229
  <p class="banner-video-source vimeo">
230
  <label for="niteoCS-vimeo-url"><?php _e('Enter Vimeo URL', 'cmp-coming-soon-maintenance');?></label>
231
+ <input type="text" class="widefat" id="niteoCS-vimeo-url" name="niteoCS_vimeo_url" value="<?php echo esc_attr( $niteoCS_vimeo_url ); ?>" />
232
  </p>
233
 
234
  <p class="banner-video-source local">
235
  <label for="add-video-local"><?php _e('Select or Upload custom Video file', 'cmp-coming-soon-maintenance');?></label>
236
  <input id="add-video-local" type="button" class="button" value="Media Library"/>
237
+ <input type="hidden" class="widefat" id="niteoCS-video-local-id" name="niteoCS_video_file_url" value="<?php echo esc_attr( $niteoCS_video_file_url ); ?>" data-url="<?php echo esc_url( wp_get_attachment_url( $niteoCS_video_file_url ) ); ?>"/>
238
  </p>
239
 
240
  <!-- Local video image -->
262
  <div class="banner-video-source youtube local">
263
 
264
  <p><?php _e('Video backgrounds doesn`t work on mobile devices therefore only thumbnail video image will be displayed on mobile devices. Upload custom thumbnail image by pressing button below. ', 'cmp-coming-soon-maintenance');?></p>
265
+ <input type="hidden" class="widefat" id="niteoCS-video-thumb-id" name="niteoCS_video_thumb" value="<?php echo esc_attr( $niteoCS_video_thumb ); ?>" />
266
  <input id="add-video-thumb" type="button" class="button" value="<?php _e('Media Library', 'cmp-coming-soon-maintenance');?>" /><br><br>
267
 
268
  <div class="video-thumb-wrapper background-thumb-wrapper">
285
 
286
  <!-- PATTERN BACKGROUND -->
287
  <fieldset class="background-type-switch graphic_pattern x3">
288
+ <label for="niteoCS_banner_pattern"><?php _e('Select Pattern', 'cmp-coming-soon-maintenance');?></label><br>
289
+ <select name="niteoCS_banner_pattern" id="niteoCS_banner_pattern" data-url="<?php echo esc_url(WP_PLUGIN_URL . '/cmp-coming-soon-maintenance/img/patterns/');?>">
290
  <?php
291
  foreach ( $patterns as $pattern ) { ?>
292
  <option value="<?php echo esc_attr( $pattern );?>" <?php selected( $pattern, $niteoCS_banner_pattern ); ?>><?php echo esc_html(ucfirst(str_replace('_', ' ', $pattern)));?></option>
295
  <option value="custom" <?php selected( 'custom', $niteoCS_banner_pattern ); ?>><?php _e('Custom Pattern...', 'cmp-coming-soon-maintenance');?></option>
296
  </select><br>
297
 
298
+ <input type="hidden" class="widefat" id="niteoCS-pattern-id" name="niteoCS_banner_pattern_custom" value="<?php echo esc_attr( $niteoCS_banner_pattern_custom ); ?>" />
299
 
300
  <input id="add-pattern" type="button" class="button" value="Media Library" style="display:<?php echo ( $niteoCS_banner_pattern == 'custom' ) ? 'block' : 'none'?>;"/>
301
 
307
  <!-- SOLID COLOR BACKGROUND -->
308
  <fieldset class="background-type-switch solid_color x4">
309
  <label for="niteoCS_banner_color"><?php _e('Select Color', 'cmp-coming-soon-maintenance');?></label><br>
310
+ <input type="text" name="niteoCS_banner_color" id="niteoCS_banner_color" value="<?php echo esc_attr( $niteoCS_banner_color ); ?>" data-default-color="#e5e5e5" class="regular-text code"><br>
311
  <div class="color-preview" style="background-color:<?php echo esc_attr( $niteoCS_banner_color); ?>"></div>
312
  </fieldset>
313
 
316
 
317
  <label for="niteoCS_gradient"><?php _e('Select Gradient Background', 'cmp-coming-soon-maintenance');?></label><br>
318
 
319
+ <select name="niteoCS_gradient" id="niteoCS_gradient" class="background-gradient">
320
  <?php
321
 
322
  foreach ( $gradient_array as $color => $name ) { ?>
330
 
331
  <p class="custom-gradient" style="display:<?php echo ( $niteoCS_gradient == 'custom' ) ? 'block' : 'none'; ?>">
332
  <label for="niteoCS_gradient_one"><?php _e('Select first gradient color:', 'cmp-coming-soon-maintenance');?></label><br>
333
+ <input type="text" name="niteoCS_banner_gradient_one" id="niteoCS_gradient_one" value="<?php echo esc_attr( $niteoCS_gradient_one_custom); ?>" data-default-color="#e5e5e5" class="regular-text code"><br>
334
 
335
  <label for="niteoCS_gradient_two"><?php _e('Select second gradient color:', 'cmp-coming-soon-maintenance');?></label><br>
336
+ <input type="text" name="niteoCS_banner_gradient_two" id="niteoCS_gradient_two" value="<?php echo esc_attr( $niteoCS_gradient_two_custom); ?>" data-default-color="#e5e5e5" class="regular-text code"><br>
337
  </p>
338
 
339
  <div class="gradient-preview" style="background:-moz-linear-gradient(-45deg, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_one_custom ) : esc_attr( $niteoCS_gradient_one ); ?> 0%, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_two_custom ) : esc_attr( $niteoCS_gradient_two ); ?> 100%);background:-webkit-linear-gradient(-45deg, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_one_custom ) : esc_attr( $niteoCS_gradient_one ); ?> 0%, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_two_custom ) : esc_attr( $niteoCS_gradient_two ); ?> 100%);background:linear-gradient(135deg, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_one_custom ) : esc_attr( $niteoCS_gradient_one ); ?> 0%, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_two_custom ) : esc_attr( $niteoCS_gradient_two ); ?> 100%)"></div>
348
  <span><?php _e('Background Overlay', 'cmp-coming-soon-maintenance');?></span>
349
  </legend>
350
 
351
+ <label for="niteoCS_overlay"><?php _e('Set Background Overlay', 'cmp-coming-soon-maintenance');?></label><br>
352
 
353
+ <select name="niteoCS_overlay" id="niteoCS_overlay" class="background-overlay">
354
 
355
  <option value="solid-color" <?php selected( 'solid-color', $overlay ); ?>><?php _e('Solid Color', 'cmp-coming-soon-maintenance');?></option>
356
 
366
  <!-- BACKGROUND OVERLAY SOLID COLOR -->
367
  <fieldset class="background-overlay solid-color">
368
  <p><?php _e('Background Overlay Color', 'cmp-coming-soon-maintenance');?></p>
369
+ <input type="text" name="niteoCS_overlay_color" id="niteoCS_overlay_color" value="<?php echo esc_attr( $overlay_color ); ?>" data-default-color="#0a0a0a" class="regular-text code">
370
  </fieldset>
371
 
372
  <!-- BACKGROUND OVERLAY GRADIENT -->
373
  <fieldset class="background-overlay gradient">
374
 
375
+ <label for="niteoCS_overlay_gradient"><?php _e('Select Gradient Overlay', 'cmp-coming-soon-maintenance');?></label><br>
376
 
377
+ <select name="niteoCS_overlay_gradient" id="niteoCS_overlay_gradient" class="overlay-gradient">
378
  <?php
379
 
380
  foreach ( $gradient_array as $color => $name ) { ?>
389
  <p class="custom-overlay-gradient" style="display:<?php echo ( $overlay_gradient == 'custom' ) ? 'block' : 'none'; ?>">
390
 
391
  <label for="niteoCS_overlay_gradient_one"><?php _e('Select first gradient color:', 'cmp-coming-soon-maintenance');?></label><br>
392
+ <input type="text" name="niteoCS_overlay_gradient_one" value="<?php echo esc_attr( $overlay_gradient_one_custom); ?>" id="niteoCS_overlay_gradient_one" data-default-color="#e5e5e5" class="regular-text code"><br>
393
 
394
  <label for="niteoCS_overlay_gradient_two"><?php _e('Select second gradient color:', 'cmp-coming-soon-maintenance');?></label><br>
395
+ <input type="text" name="niteoCS_overlay_gradient_two" value="<?php echo esc_attr( $overlay_gradient_two_custom); ?>" id="niteoCS_overlay_gradient_two" data-default-color="#e5e5e5" class="regular-text code"><br>
396
 
397
  </p>
398
 
399
  </fieldset>
400
 
401
  <fieldset class="background-overlay solid-color gradient">
402
+ <label for="niteoCS_overlay_opacity"><?php _e('Background Overlay Opacity', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $overlay_opa ); ?></span></label><br>
403
+ <input type="range" id="niteoCS_overlay_opacity" class="background-overlay-opacity" name="niteoCS_overlay_opacity" min="0" max="1" step="0.1" value="<?php echo esc_attr( $overlay_opa ); ?>" />
404
  </fieldset>
405
 
406
 
407
  <fieldset class="background-effect blur">
408
+ <label for="niteoCS_effect_blur"><?php _e('Background Blur Amount', 'cmp-coming-soon-maintenance');?>: <span><?php echo esc_attr( $effect_blur ); ?></span>px</label><br>
409
+ <input type="range" id="niteoCS_effect_blur" class="blur-range" name="niteoCS_effect_blur" min="0.0" max="10" step="0.5" value="<?php echo esc_attr( $effect_blur ); ?>" />
410
  </fieldset>
411
 
412
  </div>
413
+
414
+ <?php if ( isset( $theme_supports['text_overlay'] ) && $theme_supports['text_overlay'] ) : ?>
415
+ <!-- TEXT OVERLAY SETTINGS -->
416
+ <div class="background-type-switch x0 x1 x2 x3 x4 x5 x6" style="padding-top: 1em">
417
+
418
+ <fieldset>
419
+ <legend class="screen-reader-text">
420
+ <span><?php _e('Text Overlay', 'cmp-coming-soon-maintenance');?></span>
421
+ </legend>
422
+
423
+ <label><input type="hidden" name="niteoCS_overlay_text_status" value="off"><input type="checkbox" name="niteoCS_overlay_text_status" class="overlay-text" <?php checked( $overlay_text_status, '1' );?>/><?php _e('Display Text Overlay', 'cmp-coming-soon-maintenance');?></label><br><br>
424
+
425
+ <div class="overlay-text-switch on">
426
+ <label for="niteoCS_overlay_text_heading"><?php _e('Overlay Heading', 'cmp-coming-soon-maintenance');?></label><br>
427
+ <input type="text" id="niteoCS_overlay_text_heading" name="niteoCS_overlay_text_heading" value="<?php echo esc_attr( $overlay_text_heading ); ?>" class="regular-text code" placeholder="<?php echo _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>"/><br><br>
428
+
429
+ <label for="niteoCS_overlay_text_paragraph"><?php _e('Overlay Text', 'cmp-coming-soon-maintenance');?></label><br>
430
+ <textarea id="niteoCS_overlay_text_paragraph" name="niteoCS_overlay_text_paragraph" class="regular-text code" rows="4" placeholder="<?php echo _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>"><?php echo esc_attr( $overlay_text_paragraph ); ?></textarea><br><br>
431
+
432
+ <label for="niteoCS_overlay_button_text"><?php _e('Overlay Call To Action Button Text', 'cmp-coming-soon-maintenance');?></label><br>
433
+ <input type="text" id="niteoCS_overlay_button_text" name="niteoCS_overlay_button_text" value="<?php echo esc_attr( $overlay_button_text ); ?>" class="regular-text code" placeholder="<?php echo _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>"/><br><br>
434
+
435
+ <label for="niteoCS_overlay_button_url"><?php _e('Overlay Call To Action Button URL', 'cmp-coming-soon-maintenance');?></label><br>
436
+ <input type="text" id="niteoCS_overlay_button_url" name="niteoCS_overlay_button_url" value="<?php echo esc_attr( $overlay_button_url ); ?>" class="regular-text code" placeholder="<?php echo _e('Insert Valid URL', 'cmp-coming-soon-maintenance');?>"/>
437
+ </div>
438
+
439
+ </fieldset>
440
+ </div>
441
+ <?php endif;?>
442
 
443
  </td>
444
  </tr>
inc/settings/settings-contact_form-disabled.php CHANGED
@@ -2,7 +2,7 @@
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
  ?>
4
 
5
- <div class="table-wrapper content wrapper-disabled closed" id="contact-form-section">
6
  <h3><?php _e('Contact Form', 'cmp-coming-soon-maintenance');?></h3>
7
  <table class="content">
8
  <tbody>
@@ -29,7 +29,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
29
  </th>
30
 
31
  <td id="contact-form-disabled">
32
- <p><?php _e('Contact Form is disabled or is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
33
  </td>
34
 
35
  </tbody>
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
  ?>
4
 
5
+ <div class="table-wrapper content wrapper-disabled" id="contact-form-section">
6
  <h3><?php _e('Contact Form', 'cmp-coming-soon-maintenance');?></h3>
7
  <table class="content">
8
  <tbody>
29
  </th>
30
 
31
  <td id="contact-form-disabled">
32
+ <p><?php _e('Contact Form is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
33
  </td>
34
 
35
  </tbody>
inc/settings/settings-contact_form.php CHANGED
@@ -58,7 +58,7 @@ $contact_form_label = get_option('niteoCS_contact_form_label', 'Get in Touch')
58
  <td id="subscribe-3rdparty" class="contact-form-switch cf7">
59
  <fieldset>
60
 
61
- <label for="niteoCS_contact_form_label"><?php _e('Contact Form label', 'cmp-coming-soon-maintenance' );?>
62
  <input type="text" name="niteoCS_contact_form_label" value="<?php echo esc_attr( stripslashes( $contact_form_label ) );?>" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>">
63
  </label>
64
 
58
  <td id="subscribe-3rdparty" class="contact-form-switch cf7">
59
  <fieldset>
60
 
61
+ <label for="niteoCS_contact_form_label"><?php _e('Contact Form Heading', 'cmp-coming-soon-maintenance' );?>
62
  <input type="text" name="niteoCS_contact_form_label" value="<?php echo esc_attr( stripslashes( $contact_form_label ) );?>" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>">
63
  </label>
64
 
inc/settings/settings-counter-disabled.php CHANGED
@@ -1,4 +1,4 @@
1
- <div class="table-wrapper content wrapper-disabled closed">
2
  <h3><?php _e('Countdown Timer Setup', 'cmp-coming-soon-maintenance');?></h3>
3
  <table class="content">
4
  <tr>
@@ -24,7 +24,7 @@
24
  </th>
25
 
26
  <td id="counter-disabled">
27
- <p><?php _e('Countdown Timer is disabled or is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
28
  </td>
29
 
30
  </tr>
1
+ <div class="table-wrapper content wrapper-disabled">
2
  <h3><?php _e('Countdown Timer Setup', 'cmp-coming-soon-maintenance');?></h3>
3
  <table class="content">
4
  <tr>
24
  </th>
25
 
26
  <td id="counter-disabled">
27
+ <p><?php _e('Countdown Timer is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
28
  </td>
29
 
30
  </tr>
inc/settings/settings-counter.php CHANGED
@@ -70,7 +70,7 @@ $niteoCS_counter_heading = get_option('niteoCS_counter_heading', 'STAY TUNED, W
70
 
71
  <td id="counter-enabled" class="counter-switch x1">
72
 
73
- <?php if ( $this->cmp_selectedTheme() == 'eclipse' ) :
74
  // heading used in Eclipse theme ?>
75
  <fieldset>
76
  <label for="niteoCS_counter_heading"><?php _e('Counter Heading', 'cmp-coming-soon-maintenance');?>
70
 
71
  <td id="counter-enabled" class="counter-switch x1">
72
 
73
+ <?php if ( $this->cmp_selectedTheme() == 'eclipse' || ( isset( $theme_supports['counter_title'] ) && $theme_supports['counter_title'] ) ) :
74
  // heading used in Eclipse theme ?>
75
  <fieldset>
76
  <label for="niteoCS_counter_heading"><?php _e('Counter Heading', 'cmp-coming-soon-maintenance');?>
inc/settings/settings-footer-disabled.php CHANGED
@@ -1,4 +1,4 @@
1
- <div class="table-wrapper content wrapper-disabled closed" id="copyright-section">
2
  <h3><?php _e('Footer Content', 'cmp-coming-soon-maintenance');?></h3>
3
  <table class="content">
4
  <tbody>
1
+ <div class="table-wrapper content wrapper-disabled" id="copyright-section">
2
  <h3><?php _e('Footer Content', 'cmp-coming-soon-maintenance');?></h3>
3
  <table class="content">
4
  <tbody>
inc/settings/settings-footer.php CHANGED
@@ -1,106 +1,121 @@
1
  <?php
2
- if (isset($_POST['niteoCS_contact_email_'.$themeslug])) {
3
- update_option('niteoCS_contact_email['.$themeslug.']', sanitize_text_field($_POST['niteoCS_contact_email_'.$themeslug]));
4
  }
5
 
6
- $niteoCS_contact_email = get_option('niteoCS_contact_email['.$themeslug.']', 'john.doe@email.com');
7
- ?>
8
-
9
 
 
10
 
11
- <div class="table-wrapper content" id="copyright-section">
12
- <h3><?php _e('Footer Content', 'cmp-coming-soon-maintenance');?></h3>
13
- <table class="content">
14
- <tbody>
15
- <tr>
16
- <th><?php _e('Copyright', 'cmp-coming-soon-maintenance');?></th>
17
- <td>
18
- <fieldset>
19
- <input type="text" name="niteoCS_copyright" id="niteoCS_copyright" value="<?php echo esc_attr( $this->niteo_sanitize_html($niteoCS_copyright)); ?>" class="regular-text code">
20
- </fieldset>
21
- </td>
22
- </tr>
23
-
24
- <?php if ( $this->cmp_selectedTheme() == 'stylo' ): ?>
25
- <tr>
26
- <th><?php _e('Contact Email', 'cmp-coming-soon-maintenance');?></th>
27
- <td>
28
- <fieldset>
29
- <input type="text" name="niteoCS_contact_email_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_email );?>" class="regular-text code">
30
- </fieldset>
31
- </td>
32
- </tr>
33
- <?php endif;?>
34
-
35
- <?php echo $this->render_settings->submit(); ?>
36
-
37
- </tbody>
38
- </table>
39
- </div>
40
-
41
- <?php if ( $this->cmp_selectedTheme() == 'eclipse' ):
42
- if (isset($_POST['niteoCS_contact_content_'.$themeslug])) {
43
- update_option('niteoCS_contact_content['.$themeslug.']', sanitize_text_field($_POST['niteoCS_contact_content_'.$themeslug]));
44
- }
45
-
46
- if (isset($_POST['niteoCS_contact_title_'.$themeslug])) {
47
- update_option('niteoCS_contact_title['.$themeslug.']', sanitize_text_field($_POST['niteoCS_contact_title_'.$themeslug]));
48
- }
49
-
50
- if (isset($_POST['niteoCS_contact_title_'.$themeslug])) {
51
- update_option('niteoCS_contact_title['.$themeslug.']', sanitize_text_field($_POST['niteoCS_contact_title_'.$themeslug]));
52
- }
53
-
54
- if (isset($_POST['niteoCS_contact_phone_'.$themeslug])) {
55
- update_option('niteoCS_contact_phone['.$themeslug.']', sanitize_text_field($_POST['niteoCS_contact_phone_'.$themeslug]));
56
- }
57
-
58
- $niteoCS_contact_content = stripslashes(get_option('niteoCS_contact_content['.$themeslug.']', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.'));
59
- $niteoCS_contact_title = get_option('niteoCS_contact_title['.$themeslug.']', 'Quick Contacts');
60
- $niteoCS_contact_phone = get_option('niteoCS_contact_phone['.$themeslug.']', '+123456789'); ?>
61
-
62
- <div class="table-wrapper content">
63
- <h3><?php _e('Extended Footer Content', 'cmp-coming-soon-maintenance');?></h3>
64
- <table class="theme-setup">
65
-
66
- <tr>
67
- <th><?php _e('Content', 'cmp-coming-soon-maintenance');?></th>
68
- <td>
69
- <fieldset>
70
- <textarea name="niteoCS_contact_content_<?php echo esc_attr($themeslug);?>" rows="5"><?php echo esc_attr( $niteoCS_contact_content ); ?></textarea>
71
- </fieldset>
72
- </td>
73
- </tr>
74
-
75
- <tr>
76
- <th><?php _e('Contacts Title', 'cmp-coming-soon-maintenance');?></th>
77
- <td>
78
- <fieldset>
79
- <input type="text" name="niteoCS_contact_title_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_title );?>" class="regular-text code">
80
- </fieldset>
81
- </td>
82
- </tr>
83
-
84
- <tr>
85
- <th><?php _e('Contact Email', 'cmp-coming-soon-maintenance');?></th>
86
- <td>
87
- <fieldset>
88
- <input type="text" name="niteoCS_contact_email_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_email );?>" class="regular-text code">
89
- </fieldset>
90
- </td>
91
- </tr>
92
-
93
- <tr>
94
- <th><?php _e('Contact Phone', 'cmp-coming-soon-maintenance');?></th>
95
- <td>
96
- <fieldset>
97
- <input type="text" name="niteoCS_contact_phone_<?php echo esc_attr($themeslug);?>" value="<?php echo esc_attr( $niteoCS_contact_phone );?>" class="regular-text code">
98
- </fieldset>
99
- </td>
100
- </tr>
101
-
102
- <?php echo $this->render_settings->submit(); ?>
103
-
104
- </table>
105
- </div>
106
- <?php endif;?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
+ if ( isset($_POST['niteoCS_contact_email']) ) {
3
+ update_option('niteoCS_contact_email', sanitize_text_field($_POST['niteoCS_contact_email']));
4
  }
5
 
6
+ $niteoCS_contact_email = get_option('niteoCS_contact_email', 'john.doe@email.com');
 
 
7
 
8
+ ?>
9
 
10
+ <div class="table-wrapper content" id="copyright-section">
11
+ <h3><?php _e('Footer Content', 'cmp-coming-soon-maintenance');?></h3>
12
+ <table class="content">
13
+ <tbody>
14
+ <tr>
15
+ <th><?php _e('Copyright', 'cmp-coming-soon-maintenance');?></th>
16
+ <td>
17
+ <fieldset>
18
+ <input type="text" name="niteoCS_copyright" id="niteoCS_copyright" value="<?php echo esc_attr( $this->niteo_sanitize_html($niteoCS_copyright)); ?>" class="regular-text code">
19
+ </fieldset>
20
+ </td>
21
+ </tr>
22
+
23
+ <?php if ( $this->cmp_selectedTheme() == 'stylo' ): ?>
24
+ <tr>
25
+ <th><?php _e('Contact Email', 'cmp-coming-soon-maintenance');?></th>
26
+ <td>
27
+ <fieldset>
28
+ <input type="text" name="niteoCS_contact_email" value="<?php echo esc_attr( $niteoCS_contact_email );?>" class="regular-text code">
29
+ </fieldset>
30
+ </td>
31
+ </tr>
32
+ <?php endif;?>
33
+
34
+ <?php echo $this->render_settings->submit(); ?>
35
+
36
+ </tbody>
37
+ </table>
38
+ </div>
39
+
40
+ <?php if ( $this->cmp_selectedTheme() == 'eclipse' || ( isset( $theme_supports['extended_footer'] ) && $theme_supports['extended_footer'] )):
41
+
42
+ if (isset($_POST['niteoCS_contact_content'])) {
43
+ update_option('niteoCS_contact_content', $this->niteo_sanitize_html($_POST['niteoCS_contact_content']));
44
+ }
45
+
46
+ if (isset($_POST['niteoCS_contact_title'])) {
47
+ update_option('niteoCS_contact_title', sanitize_text_field($_POST['niteoCS_contact_title']));
48
+ }
49
+
50
+ if (isset($_POST['niteoCS_contact_phone'])) {
51
+ update_option('niteoCS_contact_phone', sanitize_text_field($_POST['niteoCS_contact_phone']));
52
+ }
53
+
54
+ $niteoCS_contact_content = stripslashes( get_option('niteoCS_contact_content', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.') );
55
+ $niteoCS_contact_title = get_option('niteoCS_contact_title', 'Quick Contacts');
56
+ $niteoCS_contact_phone = get_option('niteoCS_contact_phone', '+123456789'); ?>
57
+
58
+ <div class="table-wrapper content">
59
+ <h3><?php _e('Extended Footer Content', 'cmp-coming-soon-maintenance');?></h3>
60
+ <table class="theme-setup">
61
+
62
+ <tr>
63
+ <th><?php _e('Content', 'cmp-coming-soon-maintenance');?></th>
64
+ <td>
65
+ <fieldset>
66
+ <textarea name="niteoCS_contact_content" rows="5"><?php echo $this->niteo_sanitize_html( $niteoCS_contact_content ); ?></textarea>
67
+ </fieldset>
68
+ </td>
69
+ </tr>
70
+
71
+ <tr>
72
+ <th><?php _e('Contacts Title', 'cmp-coming-soon-maintenance');?></th>
73
+ <td>
74
+ <fieldset>
75
+ <input type="text" name="niteoCS_contact_title" value="<?php echo esc_attr( $niteoCS_contact_title );?>" class="regular-text code">
76
+ </fieldset>
77
+ </td>
78
+ </tr>
79
+
80
+ <?php if ( $this->cmp_selectedTheme() == 'agency' ): ?>
81
+
82
+ <?php
83
+ if ( isset($_POST['niteoCS_contact_address']) ) {
84
+ update_option('niteoCS_contact_address', $this->niteo_sanitize_html( $_POST['niteoCS_contact_address']) );
85
+ }
86
+
87
+ $contact_address = stripslashes( get_option('niteoCS_contact_address', '220 Central Park S, New York, NY 10019, USA') );
88
+ ?>
89
+ <tr>
90
+ <th><?php _e('Contact Address', 'cmp-coming-soon-maintenance');?></th>
91
+ <td>
92
+ <fieldset>
93
+ <textarea name="niteoCS_contact_address" rows="3"><?php echo $this->niteo_sanitize_html( $contact_address ); ?></textarea>
94
+ </fieldset>
95
+ </td>
96
+ </tr>
97
+ <?php endif; ?>
98
+
99
+ <tr>
100
+ <th><?php _e('Contact Email', 'cmp-coming-soon-maintenance');?></th>
101
+ <td>
102
+ <fieldset>
103
+ <input type="text" name="niteoCS_contact_email" value="<?php echo esc_attr( $niteoCS_contact_email );?>" class="regular-text code">
104
+ </fieldset>
105
+ </td>
106
+ </tr>
107
+
108
+ <tr>
109
+ <th><?php _e('Contact Phone', 'cmp-coming-soon-maintenance');?></th>
110
+ <td>
111
+ <fieldset>
112
+ <input type="text" name="niteoCS_contact_phone" value="<?php echo esc_attr( $niteoCS_contact_phone );?>" class="regular-text code">
113
+ </fieldset>
114
+ </td>
115
+ </tr>
116
+
117
+ <?php echo $this->render_settings->submit(); ?>
118
+
119
+ </table>
120
+ </div>
121
+ <?php endif;?>
inc/settings/settings-logo-disabled.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
  ?>
4
- <div class="table-wrapper theme-setup wrapper-disabled closed">
5
  <h3><?php _e('Logo Setup', 'cmp-coming-soon-maintenance');?></h3>
6
  <table class="theme-setup">
7
  <tbody>
@@ -33,7 +33,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
33
  </fieldset>
34
  </th>
35
  <td>
36
- <p class="disabled-logo"><?php _e('Logo settings is disabled or is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
37
  </td>
38
 
39
  </tr>
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
  ?>
4
+ <div class="table-wrapper theme-setup wrapper-disabled">
5
  <h3><?php _e('Logo Setup', 'cmp-coming-soon-maintenance');?></h3>
6
  <table class="theme-setup">
7
  <tbody>
33
  </fieldset>
34
  </th>
35
  <td>
36
+ <p class="disabled-logo"><?php _e('Logo settings is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
37
  </td>
38
 
39
  </tr>
inc/settings/settings-slider-disabled.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
  ?>
4
- <div class="table-wrapper theme-setup slider wrapper-disabled closed">
5
  <h3><?php _e('Image Slider Setup', 'cmp-coming-soon-maintenance');?></h3>
6
  <table class="theme-setup slider">
7
  <tr>
@@ -27,7 +27,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
27
  </th>
28
 
29
  <td id="slider-disabled">
30
- <p><?php _e('Slider settings is disabled or is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
31
  </td>
32
 
33
  </table>
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
  ?>
4
+ <div class="table-wrapper content slider wrapper-disabled">
5
  <h3><?php _e('Image Slider Setup', 'cmp-coming-soon-maintenance');?></h3>
6
  <table class="theme-setup slider">
7
  <tr>
27
  </th>
28
 
29
  <td id="slider-disabled">
30
+ <p><?php _e('Slider settings is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
31
  </td>
32
 
33
  </table>
inc/settings/settings-slider.php CHANGED
@@ -31,7 +31,7 @@ $niteoCS_slider_auto = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
31
 
32
  ?>
33
 
34
- <div class="table-wrapper theme-setup slider">
35
  <h3><?php _e('Image Slider Setup', 'cmp-coming-soon-maintenance');?></h3>
36
  <table class="theme-setup slider">
37
  <tr>
31
 
32
  ?>
33
 
34
+ <div class="table-wrapper content slider">
35
  <h3><?php _e('Image Slider Setup', 'cmp-coming-soon-maintenance');?></h3>
36
  <table class="theme-setup slider">
37
  <tr>
inc/settings/settings-special_effects-disabled.php CHANGED
@@ -2,7 +2,7 @@
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
  ?>
4
 
5
- <div class="table-wrapper theme-setup wrapper-disabled closed">
6
  <h3><?php _e('Special Effects', 'cmp-coming-soon-maintenance');?></h3>
7
  <table class="theme-setup">
8
  <tbody>
@@ -30,7 +30,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
30
 
31
  <td>
32
  <fieldset class="special-effect-switch disabled">
33
- <p><?php _e('Special Effects are disabled or they are not supported by selected Theme.', 'cmp-coming-soon-maintenance')?></p>
34
 
35
  </fieldset>
36
 
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
  ?>
4
 
5
+ <div class="table-wrapper theme-setup wrapper-disabled">
6
  <h3><?php _e('Special Effects', 'cmp-coming-soon-maintenance');?></h3>
7
  <table class="theme-setup">
8
  <tbody>
30
 
31
  <td>
32
  <fieldset class="special-effect-switch disabled">
33
+ <p><?php _e('Special Effects are not supported by selected Theme. Please activate another Theme with Special Effects Support.', 'cmp-coming-soon-maintenance')?></p>
34
 
35
  </fieldset>
36
 
inc/settings/settings-special_effects.php CHANGED
@@ -1,16 +1,16 @@
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
4
- if ( isset( $_POST['niteoCS_special_effect_'.$themeslug] ) ) {
5
- update_option( 'niteoCS_special_effect['.$themeslug.']', sanitize_text_field($_POST['niteoCS_special_effect_'.$themeslug]) );
6
  }
7
 
8
- if ( isset( $_POST['niteoCS_constellation_color_'.$themeslug] ) ) {
9
- update_option( 'niteoCS_special_effect['.$themeslug.'][constellation][color]', sanitize_text_field($_POST['niteoCS_constellation_color_'.$themeslug]) );
10
  }
11
 
12
- $special_effect = get_option('niteoCS_special_effect['.$themeslug.']', 'disabled');
13
- $constellation_color = get_option('niteoCS_special_effect['.$themeslug.'][constellation][color]', '#ffffff');
14
 
15
  ?>
16
 
@@ -27,13 +27,13 @@ $constellation_color = get_option('niteoCS_special_effect['.$themeslug.'][const
27
 
28
  <p>
29
  <label title="Constellation">
30
- <input type="radio" class="special-effect" name="niteoCS_special_effect_<?php echo esc_attr( $themeslug );?>" value="constellation" <?php checked( 'constellation', $special_effect );?>>&nbsp;<?php _e('Constellation', 'cmp-coming-soon-maintenance');?>
31
  </label>
32
  </p>
33
 
34
  <p>
35
  <label title="Disabled">
36
- <input type="radio" class="special-effect" name="niteoCS_special_effect_<?php echo esc_attr( $themeslug );?>" value="disabled" <?php checked( 'disabled', $special_effect );?>>&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
37
  </label>
38
  </p>
39
 
@@ -42,13 +42,13 @@ $constellation_color = get_option('niteoCS_special_effect['.$themeslug.'][const
42
 
43
  <td>
44
  <fieldset class="special-effect-switch disabled">
45
- <p><?php _e('Disabled', 'cmp-coming-soon-maintenance')?></p>
46
 
47
  </fieldset>
48
 
49
  <fieldset class="special-effect-switch constellation">
50
- <label for="niteoCS_constellation_color_<?php echo esc_attr( $themeslug );?>"><?php _e('Constellation color', 'cmp-coming-soon-maintenance');?></label><br><br>
51
- <input type="text" name="niteoCS_constellation_color_<?php echo esc_attr( $themeslug );?>" id="niteoCS_constellation_color" value="<?php echo esc_attr( $constellation_color ); ?>" data-default-color="#ffffff" class="regular-text code"><br>
52
 
53
 
54
  </fieldset>
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
 
4
+ if ( isset( $_POST['niteoCS_special_effect'] ) ) {
5
+ update_option( 'niteoCS_special_effect', sanitize_text_field($_POST['niteoCS_special_effect']) );
6
  }
7
 
8
+ if ( isset( $_POST['niteoCS_constellation_color'] ) ) {
9
+ update_option( 'niteoCS_special_effect[constellation][color]', sanitize_text_field($_POST['niteoCS_constellation_color']) );
10
  }
11
 
12
+ $special_effect = get_option('niteoCS_special_effect', 'disabled');
13
+ $constellation_color = get_option('niteoCS_special_effect[constellation][color]', '#ffffff');
14
 
15
  ?>
16
 
27
 
28
  <p>
29
  <label title="Constellation">
30
+ <input type="radio" class="special-effect" name="niteoCS_special_effect" value="constellation" <?php checked( 'constellation', $special_effect );?>>&nbsp;<?php _e('Constellation', 'cmp-coming-soon-maintenance');?>
31
  </label>
32
  </p>
33
 
34
  <p>
35
  <label title="Disabled">
36
+ <input type="radio" class="special-effect" name="niteoCS_special_effect" value="disabled" <?php checked( 'disabled', $special_effect );?>>&nbsp;<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
37
  </label>
38
  </p>
39
 
42
 
43
  <td>
44
  <fieldset class="special-effect-switch disabled">
45
+ <p><?php _e('All Effects Disabled', 'cmp-coming-soon-maintenance')?></p>
46
 
47
  </fieldset>
48
 
49
  <fieldset class="special-effect-switch constellation">
50
+ <label for="niteoCS_constellation_color"><?php _e('Constellation color', 'cmp-coming-soon-maintenance');?></label><br><br>
51
+ <input type="text" name="niteoCS_constellation_color" id="niteoCS_constellation_color" value="<?php echo esc_attr( $constellation_color ); ?>" data-default-color="#ffffff" class="regular-text code"><br>
52
 
53
 
54
  </fieldset>
inc/settings/settings-subscribe-disabled.php CHANGED
@@ -2,7 +2,7 @@
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
  ?>
4
 
5
- <div class="table-wrapper content wrapper-disabled closed" id="subscribe-section">
6
  <h3><?php _e('Subscribe Form', 'cmp-coming-soon-maintenance');?></h3>
7
  <table class="content">
8
  <tbody>
@@ -35,7 +35,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
35
  </th>
36
 
37
  <td id="subscribe-disabled">
38
- <p><?php _e('Subscribe Form is disabled or is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
39
  </td>
40
 
41
  </tbody>
2
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
3
  ?>
4
 
5
+ <div class="table-wrapper content wrapper-disabled" id="subscribe-section">
6
  <h3><?php _e('Subscribe Form', 'cmp-coming-soon-maintenance');?></h3>
7
  <table class="content">
8
  <tbody>
35
  </th>
36
 
37
  <td id="subscribe-disabled">
38
+ <p><?php _e('Subscribe Form is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
39
  </td>
40
 
41
  </tbody>
inc/settings/settings-subscribe.php CHANGED
@@ -88,9 +88,25 @@ $mailchimp_lists = json_decode(get_option('niteoCS_mailchimp_lists', false),
88
  <p><?php _e('Subscribe Form is disabled.', 'cmp-coming-soon-maintenance');?></p>
89
  </td>
90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  <td id="subscribe-3rdparty" class="subscribe-switch x1">
92
  <fieldset>
93
- <label class="subscribe" for="niteoCS_subscribe_code">3rd Party Plugin Shortcode
94
  <input type="text" name="niteoCS_subscribe_code" id="niteoCS_subscribe_code" value="<?php echo stripslashes( esc_attr($niteoCS_subscribe_code ));?>" class="regular-text code">
95
  </label>
96
 
88
  <p><?php _e('Subscribe Form is disabled.', 'cmp-coming-soon-maintenance');?></p>
89
  </td>
90
 
91
+ <?php if ( $this->cmp_selectedTheme() == 'agency' ): ?>
92
+
93
+ <?php
94
+ if ( isset($_POST['niteoCS_subscribe_title']) ) {
95
+ update_option('niteoCS_subscribe_title', esc_html( $_POST['niteoCS_subscribe_title']) );
96
+ }
97
+
98
+ $niteoCS_subscribe_title = stripslashes( get_option('niteoCS_subscribe_title', 'SUBSCRIBE US') );
99
+ ?>
100
+ <td class="subscribe-switch x1 x2">
101
+ <label for="niteoCS_subscribe_title"><?php _e('Subcribe Form Title', 'cmp-coming-soon-maintenance');?>
102
+ <input type="text" name="niteoCS_subscribe_title" id="niteoCS_subscribe_title" value="<?php echo stripslashes( esc_attr($niteoCS_subscribe_title ));?>" class="regular-text code">
103
+ </label>
104
+ </td>
105
+ <?php endif; ?>
106
+
107
  <td id="subscribe-3rdparty" class="subscribe-switch x1">
108
  <fieldset>
109
+ <label class="subscribe" for="niteoCS_subscribe_code"><?php _e('3rd Party Plugin Shortcode', 'cmp-coming-soon-maintenance');?>
110
  <input type="text" name="niteoCS_subscribe_code" id="niteoCS_subscribe_code" value="<?php echo stripslashes( esc_attr($niteoCS_subscribe_code ));?>" class="regular-text code">
111
  </label>
112
 
js/settings.js CHANGED
@@ -67,6 +67,7 @@ jQuery(document).ready(function($){
67
  toggle_settings( 'cmp-logo' );
68
  toggle_settings( 'background-type' );
69
  toggle_settings( 'counter' );
 
70
 
71
  toggle_select( 'counter-action' );
72
  toggle_select( 'subscribe-method' );
@@ -77,6 +78,7 @@ jQuery(document).ready(function($){
77
  jQuery('.cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )').select2({
78
  width: '100%',
79
  minimumResultsForSearch: -1,
 
80
  });
81
 
82
  jQuery('.cmp-coming-soon-maintenance #cmp-status').click(function(){
@@ -987,6 +989,7 @@ jQuery(document).ready(function($){
987
 
988
  var value = jQuery('.cmp-coming-soon-maintenance .' + classname + ':checked' ).val();
989
  value = ( jQuery.isNumeric(value) ) ? 'x' + value : value;
 
990
 
991
  jQuery('.cmp-coming-soon-maintenance .' + classname + '-switch.' + value).css('display','block');
992
  jQuery('.cmp-coming-soon-maintenance .' + classname + '-switch:not(.' + value + ')').css('display','none');
@@ -1000,7 +1003,6 @@ jQuery(document).ready(function($){
1000
 
1001
  jQuery('.cmp-coming-soon-maintenance .'+classname).change(function() {
1002
  var value = jQuery('.'+classname ).val();
1003
-
1004
  value = ( jQuery.isNumeric(value) ) ? 'x' + value : value;
1005
 
1006
  jQuery('.cmp-coming-soon-maintenance .' + classname + '.' + value).css('display','block');
67
  toggle_settings( 'cmp-logo' );
68
  toggle_settings( 'background-type' );
69
  toggle_settings( 'counter' );
70
+ toggle_settings( 'overlay-text' );
71
 
72
  toggle_select( 'counter-action' );
73
  toggle_select( 'subscribe-method' );
78
  jQuery('.cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )').select2({
79
  width: '100%',
80
  minimumResultsForSearch: -1,
81
+ placeholder: 'Click to select..',
82
  });
83
 
84
  jQuery('.cmp-coming-soon-maintenance #cmp-status').click(function(){
989
 
990
  var value = jQuery('.cmp-coming-soon-maintenance .' + classname + ':checked' ).val();
991
  value = ( jQuery.isNumeric(value) ) ? 'x' + value : value;
992
+ value = ( value === undefined ) ? 'off' : value;
993
 
994
  jQuery('.cmp-coming-soon-maintenance .' + classname + '-switch.' + value).css('display','block');
995
  jQuery('.cmp-coming-soon-maintenance .' + classname + '-switch:not(.' + value + ')').css('display','none');
1003
 
1004
  jQuery('.cmp-coming-soon-maintenance .'+classname).change(function() {
1005
  var value = jQuery('.'+classname ).val();
 
1006
  value = ( jQuery.isNumeric(value) ) ? 'x' + value : value;
1007
 
1008
  jQuery('.cmp-coming-soon-maintenance .' + classname + '.' + value).css('display','block');
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"),d(".cmp-coming-soon-maintenance .background-overlay-opacity"),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"),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}),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=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"-switch."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+"-switch:not(."+n+")").css("display","none")}),jQuery(".cmp-coming-soon-maintenance ."+e).first().trigger("change")}function 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){jQuery(e).on("input",function(){var e=jQuery(this).val();jQuery(this).parent().find("span").html(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}),d(".cmp-coming-soon-maintenance .blur-range"),d(".cmp-coming-soon-maintenance .background-overlay-opacity"),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"),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){jQuery(e).on("input",function(){var e=jQuery(this).val();jQuery(this).parent().find("span").html(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)})});
niteo-cmp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
- Version: 2.9.4
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
@@ -64,9 +64,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
64
 
65
 
66
  private function constants() {
67
-
68
  // define constants
69
- $this->define( 'CMP_VERSION', '2.9.4' );
70
  $this->define( 'CMP_DEBUG', FALSE );
71
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
72
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
@@ -83,7 +82,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
83
  */
84
  public function init() {
85
  add_action( 'admin_notices', array( $this, 'cmp_admin_notice' ) );
86
- add_action( 'template_redirect', array( $this, 'cmp_displayPage' ) );
87
  add_action( 'wp_login', array( $this, 'cmp_admin_override' ) );
88
  add_action( 'wp_before_admin_bar_render', array( $this, 'cmp_admin_bar' ) );
89
  add_action( 'wp_ajax_niteo_themeinfo', array( $this, 'niteo_themeinfo' ) );
@@ -99,7 +98,9 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
99
  add_action( 'admin_init', array( $this, 'cmp_admin_override' ) );
100
  add_action( 'admin_init', array( $this, 'cmp_update_process' ), 0 );
101
  add_action( 'admin_enqueue_scripts', array( $this,'cmp_add_admin_style' ) );
102
- add_action( 'wp_enqueue_scripts', array( $this,'cmp_add_admin_style' ) );
 
 
103
 
104
  add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this,'add_action_links' ) );
105
 
@@ -146,7 +147,6 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
146
  wp_register_style( 'font_awesome', plugins_url('/css/font-awesome.min.css', __FILE__) );
147
  wp_register_style( 'countdown_flatpicker_css', plugins_url('/css/flatpickr.min.css', __FILE__) );
148
  wp_register_style( 'animate-css', plugins_url('/css/animate'.CMP_ASSET_SUFFIX.'.css', __FILE__) );
149
- wp_register_style( 'select2', plugins_url('/css/select2.min.css', __FILE__) );
150
 
151
  wp_register_script( 'webfont', 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js', array(), false, true );
152
  wp_register_script( 'cmp-select2-js', plugins_url('/js/select2.min.js', __FILE__) );
@@ -177,7 +177,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
177
  }
178
 
179
  /**
180
- * Define CMP Using Countdown scripts
181
  *
182
  * @since 2.8.3
183
  * @return array
@@ -187,15 +187,35 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
187
  }
188
 
189
  /**
190
- * Define CMP Using Font Animation styles
191
  *
192
  * @since 2.8.3
193
  * @return array
194
  */
195
  public function cmp_font_animation_themes() {
196
- return array( 'hardwork_premium', 'fifty', 'orbit', 'stylo', 'apollo', 'vega', 'agency' );
197
  }
198
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  /**
200
  * Returns CMP Premium themes from PREMIUM tHEMES DIR
201
  *
@@ -298,27 +318,27 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
298
  /* Register our plugin page */
299
  $page = add_menu_page('CMP Settings', __('CMP Settings', 'cmp-coming-soon-maintenance'), 'activate_plugins', 'cmp-settings', array($this, 'cmp_settings_page'), plugins_url('/img/cmp.png', __FILE__));
300
 
301
- add_submenu_page('cmp-settings', 'Content Settings', __('Content Settings', 'cmp-coming-soon-maintenance'), 'manage_options', 'cmp-settings' );
302
 
303
- add_submenu_page('cmp-settings', 'Advanced Settings', 'Advanced Settings', 'manage_options', 'cmp-advanced', array($this, 'cmp_advanced_page') );
304
 
305
- add_submenu_page('cmp-settings', 'Subscribers', __('Subscribers', 'cmp-coming-soon-maintenance'), 'manage_options', 'cmp-subscribers', array($this, 'cmp_subs_page') );
306
 
307
- add_submenu_page('cmp-settings', 'Translation', __('Translation', 'cmp-coming-soon-maintenance'), 'manage_options', 'cmp-translate', array($this, 'cmp_translate_page') );
308
 
309
- add_submenu_page('cmp-settings', 'Upload New Theme', __('Upload New Theme', 'cmp-coming-soon-maintenance'), 'manage_options', 'cmp-upload-theme', array($this, 'cmp_upload_page') );
310
 
311
- add_submenu_page('cmp-settings', 'Help', __('Help', 'cmp-coming-soon-maintenance'), 'manage_options', 'cmp-help', array($this, 'cmp_help_page') );
312
 
313
  /* Using registered $page handle to hook script load */
314
- add_action('admin_print_scripts-'.$page, array($this, 'cmp_enqueueAdminScripts'));
315
 
316
  }
317
 
318
  /**
319
  * enqueue styles and scripts when navigated to CMP Settings page
320
  */
321
- public function cmp_enqueueAdminScripts() {
322
  wp_enqueue_media();
323
  wp_localize_script( 'cmp-typography', 'fonts', array( 'google' => $this->cmp_get_google_fonts(), ) );
324
  wp_enqueue_script( 'cmp_settings_js' );
@@ -327,7 +347,6 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
327
  wp_enqueue_script( 'webfont' );
328
  wp_enqueue_script( 'cmp-select2-js' );
329
  wp_enqueue_style( 'wp-color-picker' );
330
- wp_enqueue_style( 'select2' );
331
  wp_enqueue_style( 'font_awesome' );
332
 
333
  if ( in_array( $this->cmp_selectedTheme(), $this->cmp_font_animation_themes() ) ) {
@@ -350,7 +369,6 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
350
  */
351
  public function cmp_advanced_page() {
352
  wp_enqueue_script( 'cmp-select2-js' );
353
- wp_enqueue_style('select2');
354
  require_once ('cmp-advanced.php');
355
  }
356
 
@@ -382,6 +400,36 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
382
  require_once ('cmp-help.php');
383
  }
384
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
385
  /**
386
  * returns bundled plugin`s assets URL for Premium Themes
387
  *
@@ -419,7 +467,6 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
419
 
420
  // function to display CMP landing page
421
  public function cmp_displayPage() {
422
-
423
  // register html class for rendering of HTML elements in Themes
424
  $html = new CMP_Coming_Soon_and_Maintenance_Render_HTML();
425
 
@@ -614,7 +661,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
614
 
615
  // check selected theme
616
  public function cmp_selectedTheme() {
617
- return get_option('niteoCS_theme', 'countdown');
618
  }
619
 
620
 
@@ -784,36 +831,6 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
784
  delete_transient( 'cmp_counter_email' );
785
  }
786
 
787
- // returns list of premium themes => manually defined
788
- public function cmp_premium_themes() {
789
-
790
- $premium_themes = array();
791
-
792
- // array_push( $premium_themes, array('name' => 'agency', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=agency', 'agency' => '20') );
793
-
794
- array_push( $premium_themes, array('name' => 'vega', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=vega', 'vega' => '10') );
795
-
796
- array_push( $premium_themes, array('name' => 'apollo', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=apollo', 'apollo' => '10') );
797
-
798
- array_push( $premium_themes, array('name' => 'element', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=element', 'price' => '10') );
799
-
800
- array_push( $premium_themes, array('name' => 'stylo', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=stylo', 'price' => '10') );
801
-
802
- array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=fifty', 'price' => '10') );
803
-
804
- array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=hardwork_premium', 'price' => '10') );
805
-
806
- array_push( $premium_themes, array('name' => 'postery', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=postery', 'price' => '10') );
807
-
808
- array_push( $premium_themes, array('name' => 'frame', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=frame', 'price' => '10') );
809
-
810
- array_push( $premium_themes, array('name' => 'eclipse', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=eclipse', 'price' =>'0') );
811
-
812
- array_push( $premium_themes, array('name' => 'orbit', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=orbit', 'price' => '0') );
813
-
814
- return $premium_themes;
815
- }
816
-
817
  /**
818
  * Difference between Premium Themes installed and Premium Themes available sets in cmp_premium_themes() function.
819
  *
@@ -989,7 +1006,6 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
989
  // Download file to temp location.
990
  $file['tmp_name'] = download_url( $file['url'] );
991
 
992
-
993
  // If error storing temporarily, return the error.
994
  if ( !is_wp_error( $file['tmp_name'] ) ) {
995
  WP_Filesystem();
@@ -1013,7 +1029,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1013
  return;
1014
 
1015
  } else {
1016
- echo '<div class="notice notice-success is-dismissible"><p>'. ucwords( str_replace( '_', ' ', $file['name'] ) ) .' '. __( CMP_PREMIUM_THEMES_DIR, 'cmp-coming-soon-maintenance' ).'</p></div>';
1017
  return;
1018
  }
1019
 
@@ -1213,9 +1229,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1213
  // save subscribe function
1214
  // $check must be true, to avoid duplicated requests after update to 2.1
1215
  public function niteo_subscribe( $check ) {
1216
-
1217
  $subscribe_method = get_option('niteoCS_subscribe_method', 'cmp');
1218
-
1219
  $response = '';
1220
 
1221
  // get translation lists
@@ -1867,12 +1881,12 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1867
 
1868
  $themeslug = $this->cmp_selectedTheme();
1869
 
1870
- $background_type = get_option('niteoCS_banner['.$themeslug.']', '2');
1871
 
1872
  switch ( $background_type ) {
1873
  // custom img
1874
  case '0':
1875
- $banner_id = get_option('niteoCS_banner_id['.$themeslug.']');
1876
 
1877
  if ( $banner_id != '' ) {
1878
  $banner_ids = explode(',', $banner_id);
@@ -1890,30 +1904,30 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1890
  break;
1891
  // unsplash
1892
  case '1':
1893
- $unplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '3');
1894
 
1895
  switch ( $unplash_feed ) {
1896
  // specific photo from id
1897
  case '0':
1898
- $params = array('feed' => '0', 'url' => get_option('niteoCS_unsplash_0['.$themeslug.']', '') );
1899
  $unsplash = $this->niteo_unsplash( $params );
1900
  break;
1901
 
1902
  // random from user
1903
  case '1':
1904
- $params = array('feed' => '1', 'custom_str' => get_option('niteoCS_unsplash_1['.$themeslug.']', '') );
1905
  $unsplash = $this->niteo_unsplash( $params );
1906
  break;
1907
 
1908
  // random from collection
1909
  case '2':
1910
- $params = array('feed' => '2', 'url' => get_option('niteoCS_unsplash_2['.$themeslug.']', '') );
1911
  $unsplash = $this->niteo_unsplash( $params );
1912
  break;
1913
 
1914
  // random photo
1915
  case '3':
1916
- $params = array('feed' => '3', 'url' => get_option('niteoCS_unsplash_3['.$themeslug.']', ''), 'feat' => get_option('niteoCS_unsplash_feat['.$themeslug.']', '0') );
1917
  $unsplash = $this->niteo_unsplash( $params );
1918
  break;
1919
  default:
@@ -1943,13 +1957,13 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1943
 
1944
  case '3':
1945
  // Pattern
1946
- $niteoCS_banner_pattern = get_option('niteoCS_banner_pattern['.$themeslug.']', 'sakura');
1947
 
1948
  if ( $niteoCS_banner_pattern != 'custom' ) {
1949
  $image_url = CMP_PLUGIN_URL.'img/patterns/'.esc_attr($niteoCS_banner_pattern).'.png';
1950
 
1951
  } else {
1952
- $image_url = get_option('niteoCS_banner_pattern_custom['.$themeslug.']');
1953
  $image_url = wp_get_attachment_image_src( $image_url, 'large' );
1954
  if ( isset($image_url[0]) ){
1955
  $image_url = $image_url[0];
@@ -1959,7 +1973,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
1959
  break;
1960
 
1961
  case '5':
1962
- $image_url = wp_get_attachment_image_src( get_option('niteoCS_video_thumb['.$themeslug.']'), 'large' );
1963
 
1964
  if ( !empty( $image_url ) ) {
1965
  $image_url = $image_url[0];
@@ -2016,6 +2030,11 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
2016
  if ( is_callable( array( 'Swift_Performance_Cache', 'clear_all_cache' ) ) ) {
2017
  Swift_Performance_Cache::clear_all_cache();
2018
  }
 
 
 
 
 
2019
  }
2020
 
2021
  /**
@@ -2053,7 +2072,24 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
2053
  return false;
2054
  }
2055
 
2056
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2057
  }
2058
 
2059
  endif;
3
  Plugin Name: CMP - Coming Soon & Maintenance Plugin
4
  Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
5
  Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
6
+ Version: 3.0
7
  Author: NiteoThemes
8
  Author URI: https://www.niteothemes.com
9
  Text Domain: cmp-coming-soon-maintenance
64
 
65
 
66
  private function constants() {
 
67
  // define constants
68
+ $this->define( 'CMP_VERSION', '3.0' );
69
  $this->define( 'CMP_DEBUG', FALSE );
70
  $this->define( 'CMP_AUTHOR', 'NiteoThemes' );
71
  $this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
82
  */
83
  public function init() {
84
  add_action( 'admin_notices', array( $this, 'cmp_admin_notice' ) );
85
+ add_action( 'template_redirect', array( $this, 'cmp_displayPage' ), 0 );
86
  add_action( 'wp_login', array( $this, 'cmp_admin_override' ) );
87
  add_action( 'wp_before_admin_bar_render', array( $this, 'cmp_admin_bar' ) );
88
  add_action( 'wp_ajax_niteo_themeinfo', array( $this, 'niteo_themeinfo' ) );
98
  add_action( 'admin_init', array( $this, 'cmp_admin_override' ) );
99
  add_action( 'admin_init', array( $this, 'cmp_update_process' ), 0 );
100
  add_action( 'admin_enqueue_scripts', array( $this,'cmp_add_admin_style' ) );
101
+ add_action( 'wp_enqueue_scripts', array( $this,'cmp_add_admin_style' ) );
102
+ add_action( 'wp_ajax_cmp_get_post_detail', array( $this, 'cmp_get_post_detail' ) );
103
+ add_action( 'wp_ajax_nopriv_cmp_get_post_detail', array( $this, 'cmp_get_post_detail' ) );
104
 
105
  add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this,'add_action_links' ) );
106
 
147
  wp_register_style( 'font_awesome', plugins_url('/css/font-awesome.min.css', __FILE__) );
148
  wp_register_style( 'countdown_flatpicker_css', plugins_url('/css/flatpickr.min.css', __FILE__) );
149
  wp_register_style( 'animate-css', plugins_url('/css/animate'.CMP_ASSET_SUFFIX.'.css', __FILE__) );
 
150
 
151
  wp_register_script( 'webfont', 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js', array(), false, true );
152
  wp_register_script( 'cmp-select2-js', plugins_url('/js/select2.min.js', __FILE__) );
177
  }
178
 
179
  /**
180
+ * Define CMP Themes Using Countdown scripts
181
  *
182
  * @since 2.8.3
183
  * @return array
187
  }
188
 
189
  /**
190
+ * Define CMP Themes Using Font Animation styles
191
  *
192
  * @since 2.8.3
193
  * @return array
194
  */
195
  public function cmp_font_animation_themes() {
196
+ return array( 'hardwork_premium', 'fifty', 'orbit', 'stylo', 'apollo', 'vega' );
197
  }
198
 
199
+ /**
200
+ * Define CMP Themes Using CF7
201
+ *
202
+ * @since 2.8.5
203
+ * @return array
204
+ */
205
+ public function cmp_cf7_themes() {
206
+ return array( 'stylo', 'agency' );
207
+ }
208
+
209
+ /**
210
+ * Define CMP Themes supporting Overlay text
211
+ *
212
+ * @since 2.8.5
213
+ * @return array
214
+ */
215
+ public function cmp_overlay_text_themes() {
216
+ return array( 'agency' );
217
+ }
218
+
219
  /**
220
  * Returns CMP Premium themes from PREMIUM tHEMES DIR
221
  *
318
  /* Register our plugin page */
319
  $page = add_menu_page('CMP Settings', __('CMP Settings', 'cmp-coming-soon-maintenance'), 'activate_plugins', 'cmp-settings', array($this, 'cmp_settings_page'), plugins_url('/img/cmp.png', __FILE__));
320
 
321
+ add_submenu_page('cmp-settings', 'Basic Setup', __('CMP Basic Setup', 'cmp-coming-soon-maintenance'), 'manage_options', 'cmp-settings' );
322
 
323
+ add_submenu_page('cmp-settings', 'Advanced Setup', 'CMP Advanced Setup', 'manage_options', 'cmp-advanced', array($this, 'cmp_advanced_page') );
324
 
325
+ add_submenu_page('cmp-settings', 'Subscribers', __('CMP Subscribers', 'cmp-coming-soon-maintenance'), 'manage_options', 'cmp-subscribers', array($this, 'cmp_subs_page') );
326
 
327
+ add_submenu_page('cmp-settings', 'Translation', __('CMP Translation', 'cmp-coming-soon-maintenance'), 'manage_options', 'cmp-translate', array($this, 'cmp_translate_page') );
328
 
329
+ add_submenu_page('cmp-settings', 'Upload New Theme', __('Upload CMP Theme', 'cmp-coming-soon-maintenance'), 'manage_options', 'cmp-upload-theme', array($this, 'cmp_upload_page') );
330
 
331
+ add_submenu_page('cmp-settings', 'Help', __('CMP Help', 'cmp-coming-soon-maintenance'), 'manage_options', 'cmp-help', array($this, 'cmp_help_page') );
332
 
333
  /* Using registered $page handle to hook script load */
334
+ add_action('admin_print_scripts-'.$page, array($this, 'cmp_admin_scripts'));
335
 
336
  }
337
 
338
  /**
339
  * enqueue styles and scripts when navigated to CMP Settings page
340
  */
341
+ public function cmp_admin_scripts() {
342
  wp_enqueue_media();
343
  wp_localize_script( 'cmp-typography', 'fonts', array( 'google' => $this->cmp_get_google_fonts(), ) );
344
  wp_enqueue_script( 'cmp_settings_js' );
347
  wp_enqueue_script( 'webfont' );
348
  wp_enqueue_script( 'cmp-select2-js' );
349
  wp_enqueue_style( 'wp-color-picker' );
 
350
  wp_enqueue_style( 'font_awesome' );
351
 
352
  if ( in_array( $this->cmp_selectedTheme(), $this->cmp_font_animation_themes() ) ) {
369
  */
370
  public function cmp_advanced_page() {
371
  wp_enqueue_script( 'cmp-select2-js' );
 
372
  require_once ('cmp-advanced.php');
373
  }
374
 
400
  require_once ('cmp-help.php');
401
  }
402
 
403
+ // returns list of premium themes => manually defined
404
+ public function cmp_premium_themes() {
405
+
406
+ $premium_themes = array();
407
+
408
+ array_push( $premium_themes, array('name' => 'agency', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=agency', 'price' => '20') );
409
+
410
+ array_push( $premium_themes, array('name' => 'stylo', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=stylo', 'price' => '10') );
411
+
412
+ array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=fifty', 'price' => '10') );
413
+
414
+ array_push( $premium_themes, array('name' => 'vega', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=vega', 'price' => '10') );
415
+
416
+ array_push( $premium_themes, array('name' => 'apollo', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=apollo', 'price' => '10') );
417
+
418
+ array_push( $premium_themes, array('name' => 'element', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=element', 'price' => '10') );
419
+
420
+ array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=hardwork_premium', 'price' => '10') );
421
+
422
+ array_push( $premium_themes, array('name' => 'postery', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=postery', 'price' => '10') );
423
+
424
+ array_push( $premium_themes, array('name' => 'frame', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=frame', 'price' => '10') );
425
+
426
+ array_push( $premium_themes, array('name' => 'eclipse', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=eclipse', 'price' =>'0') );
427
+
428
+ array_push( $premium_themes, array('name' => 'orbit', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=orbit', 'price' => '0') );
429
+
430
+ return $premium_themes;
431
+ }
432
+
433
  /**
434
  * returns bundled plugin`s assets URL for Premium Themes
435
  *
467
 
468
  // function to display CMP landing page
469
  public function cmp_displayPage() {
 
470
  // register html class for rendering of HTML elements in Themes
471
  $html = new CMP_Coming_Soon_and_Maintenance_Render_HTML();
472
 
661
 
662
  // check selected theme
663
  public function cmp_selectedTheme() {
664
+ return get_option('niteoCS_theme', 'hardwork');
665
  }
666
 
667
 
831
  delete_transient( 'cmp_counter_email' );
832
  }
833
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
834
  /**
835
  * Difference between Premium Themes installed and Premium Themes available sets in cmp_premium_themes() function.
836
  *
1006
  // Download file to temp location.
1007
  $file['tmp_name'] = download_url( $file['url'] );
1008
 
 
1009
  // If error storing temporarily, return the error.
1010
  if ( !is_wp_error( $file['tmp_name'] ) ) {
1011
  WP_Filesystem();
1029
  return;
1030
 
1031
  } else {
1032
+ echo '<div class="notice notice-success is-dismissible"><p>CMP '. ucwords( str_replace( '_', ' ', $file['name'] ) ) .' '. __( 'Theme has been updated to latest version!', 'cmp-coming-soon-maintenance' ).'</p></div>';
1033
  return;
1034
  }
1035
 
1229
  // save subscribe function
1230
  // $check must be true, to avoid duplicated requests after update to 2.1
1231
  public function niteo_subscribe( $check ) {
 
1232
  $subscribe_method = get_option('niteoCS_subscribe_method', 'cmp');
 
1233
  $response = '';
1234
 
1235
  // get translation lists
1881
 
1882
  $themeslug = $this->cmp_selectedTheme();
1883
 
1884
+ $background_type = get_option('niteoCS_banner', '2');
1885
 
1886
  switch ( $background_type ) {
1887
  // custom img
1888
  case '0':
1889
+ $banner_id = get_option('niteoCS_banner_id');
1890
 
1891
  if ( $banner_id != '' ) {
1892
  $banner_ids = explode(',', $banner_id);
1904
  break;
1905
  // unsplash
1906
  case '1':
1907
+ $unplash_feed = get_option('niteoCS_unsplash_feed', '3');
1908
 
1909
  switch ( $unplash_feed ) {
1910
  // specific photo from id
1911
  case '0':
1912
+ $params = array('feed' => '0', 'url' => get_option('niteoCS_unsplash_0', '') );
1913
  $unsplash = $this->niteo_unsplash( $params );
1914
  break;
1915
 
1916
  // random from user
1917
  case '1':
1918
+ $params = array('feed' => '1', 'custom_str' => get_option('niteoCS_unsplash_1', '') );
1919
  $unsplash = $this->niteo_unsplash( $params );
1920
  break;
1921
 
1922
  // random from collection
1923
  case '2':
1924
+ $params = array('feed' => '2', 'url' => get_option('niteoCS_unsplash_2', '') );
1925
  $unsplash = $this->niteo_unsplash( $params );
1926
  break;
1927
 
1928
  // random photo
1929
  case '3':
1930
+ $params = array('feed' => '3', 'url' => get_option('niteoCS_unsplash_3', ''), 'feat' => get_option('niteoCS_unsplash_feat', '0') );
1931
  $unsplash = $this->niteo_unsplash( $params );
1932
  break;
1933
  default:
1957
 
1958
  case '3':
1959
  // Pattern
1960
+ $niteoCS_banner_pattern = get_option('niteoCS_banner_pattern', 'sakura');
1961
 
1962
  if ( $niteoCS_banner_pattern != 'custom' ) {
1963
  $image_url = CMP_PLUGIN_URL.'img/patterns/'.esc_attr($niteoCS_banner_pattern).'.png';
1964
 
1965
  } else {
1966
+ $image_url = get_option('niteoCS_banner_pattern_custom');
1967
  $image_url = wp_get_attachment_image_src( $image_url, 'large' );
1968
  if ( isset($image_url[0]) ){
1969
  $image_url = $image_url[0];
1973
  break;
1974
 
1975
  case '5':
1976
+ $image_url = wp_get_attachment_image_src( get_option('niteoCS_video_thumb'), 'large' );
1977
 
1978
  if ( !empty( $image_url ) ) {
1979
  $image_url = $image_url[0];
2030
  if ( is_callable( array( 'Swift_Performance_Cache', 'clear_all_cache' ) ) ) {
2031
  Swift_Performance_Cache::clear_all_cache();
2032
  }
2033
+
2034
+ // WP Rocket
2035
+ if ( function_exists( 'rocket_clean_domain' ) ) {
2036
+ rocket_clean_domain();
2037
+ }
2038
  }
2039
 
2040
  /**
2072
  return false;
2073
  }
2074
 
2075
+ /**
2076
+ * Returns full post content via AJAX
2077
+ *
2078
+ * @since 3.0
2079
+ * @access public
2080
+ * @return array
2081
+ */
2082
+ public function cmp_get_post_detail() {
2083
+ $id = isset($_POST['id']) ? esc_attr($_POST['id']) : '';
2084
+ $size = $this->isMobile ? 'large' : 'large';
2085
+ wp_send_json((object) [
2086
+ 'img' => get_the_post_thumbnail( $id, $size ),
2087
+ 'date' => get_the_date( 'F j, Y', $id ),
2088
+ 'title' => get_the_title( $id ),
2089
+ 'body' => apply_filters( 'the_content', get_post_field('post_content', $id) ),
2090
+ 'url' => get_the_permalink( $id ),
2091
+ ]);
2092
+ }
2093
  }
2094
 
2095
  endif;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JF
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Tested up to: 5.0
7
- Stable tag: 2.9.4
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -61,6 +61,7 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
61
  15. CMP - Element Theme
62
  16. CMP - Apollo Theme
63
  17. CMP - Vega Theme
 
64
 
65
 
66
  == Installation ==
@@ -115,6 +116,15 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
115
  <p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
116
 
117
  == Changelog ==
 
 
 
 
 
 
 
 
 
118
  <h4>CMP 2.9.4 - 21-Nov-18 - small bug fix</h4>
119
  <ul>
120
  <li>Fixed PHP notice error on plugins page - thanks @pressworthammer!</li>
4
  Tags: coming soon, landing page, launch page, maintenance mode, under construction
5
  Requires at least: 3.0
6
  Tested up to: 5.0
7
+ Stable tag: 3.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
61
  15. CMP - Element Theme
62
  16. CMP - Apollo Theme
63
  17. CMP - Vega Theme
64
+ 18. CMP - Agency Theme
65
 
66
 
67
  == Installation ==
116
  <p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
117
 
118
  == Changelog ==
119
+ <h4>CMP 3.0 - 11-Dec-18</h4>
120
+ <h3>**IMPORTANT NOTICE**</h3>
121
+ <p>Once you update to new CMP version 3.0 you must also update your Premium themes (if you have any) due to compatibility issues!</p>
122
+ <ul>
123
+ <li>New Premium Theme: CMP Agency! Check it out, it looks awesome!</li>
124
+ <li>UI Changes: Background image settings moved to Content Tab and is no longer Theme dependent. That means you set the image once and it is consistent for all Themes.</li>
125
+ <li>New Feature: Added support for WP Rocket Caching Plugin.</li>
126
+ </ul>
127
+
128
  <h4>CMP 2.9.4 - 21-Nov-18 - small bug fix</h4>
129
  <ul>
130
  <li>Fixed PHP notice error on plugins page - thanks @pressworthammer!</li>
themes/agency.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ /*
2
+ Theme Name: Agency
3
+ Description: <p>Agency is landing or coming soon page for small (or big) agencies which need to set proffesional looking Coming Soon Page to visitors while their web is under development or reconstruction. You can display latest posts, stay in touch with you customers via contact form or subscribe them.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="not-supported"><i class="fa fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Contact Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Footer Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Extended Footer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
themes/construct/construct-defaults.php CHANGED
@@ -28,7 +28,7 @@ if ( isset($_POST['niteoCS_social_background_color_'.$themeslug]) ) {
28
  }
29
 
30
  // set theme defaults
31
- $banner_type = get_option('niteoCS_banner['.$themeslug.']', '2');
32
  $active_color = get_option('niteoCS_active_color['.$themeslug.']', '#f37004');
33
  $font_color = get_option('niteoCS_font_color['.$themeslug.']', '#686868');
34
  $background_color = get_option('niteoCS_background_color['.$themeslug.']', '#ffffff');
28
  }
29
 
30
  // set theme defaults
31
+ $banner_type = get_option('niteoCS_banner', '2');
32
  $active_color = get_option('niteoCS_active_color['.$themeslug.']', '#f37004');
33
  $font_color = get_option('niteoCS_font_color['.$themeslug.']', '#686868');
34
  $background_color = get_option('niteoCS_background_color['.$themeslug.']', '#ffffff');
themes/countdown/countdown-defaults.php CHANGED
@@ -28,7 +28,7 @@ if (isset($_POST['niteoCS_social_location']) && $_POST['niteoCS_social_location'
28
 
29
 
30
  // get theme defaults
31
- $banner_type = get_option('niteoCS_banner['.$themeslug.']', '6');
32
  $niteoCS_gradient = get_option('niteoCS_gradient['.$themeslug.']', '#1A2980:#26D0CE');
33
  $active_color = get_option('niteoCS_active_color['.$themeslug.']', '#e82e1e');
34
  $font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
28
 
29
 
30
  // get theme defaults
31
+ $banner_type = get_option('niteoCS_banner', '2');
32
  $niteoCS_gradient = get_option('niteoCS_gradient['.$themeslug.']', '#1A2980:#26D0CE');
33
  $active_color = get_option('niteoCS_active_color['.$themeslug.']', '#e82e1e');
34
  $font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
themes/hardwork/hardwork-defaults.php CHANGED
@@ -26,11 +26,9 @@ if ( isset( $_POST['niteoCS_footer_background_opacity_'.$themeslug] ) ) {
26
  }
27
 
28
 
29
- $banner_type = get_option('niteoCS_banner['.$themeslug.']', '4');
30
-
31
- $banner_color = get_option('niteoCS_banner_color['.$themeslug.']', '#e5e5e5');
32
- $font_color = get_option('niteoCS_font_color['.$themeslug.']', '#494949');
33
-
34
  $footer_background = get_option('niteoCS_footer_background['.$themeslug.']', '#000000');
35
  $footer_opacity = get_option('niteoCS_footer_background_opacity['.$themeslug.']', '0.4');
36
 
26
  }
27
 
28
 
29
+ $banner_type = get_option('niteoCS_banner', '2');
30
+ $banner_color = get_option('niteoCS_banner_color['.$themeslug.']', '#e5e5e5');
31
+ $font_color = get_option('niteoCS_font_color['.$themeslug.']', '#ffffff');
 
 
32
  $footer_background = get_option('niteoCS_footer_background['.$themeslug.']', '#000000');
33
  $footer_opacity = get_option('niteoCS_footer_background_opacity['.$themeslug.']', '0.4');
34
 
themes/hardwork/hardwork-settings.php CHANGED
@@ -15,7 +15,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
15
  <th><?php _e('Font Color', 'cmp-coming-soon-maintenance');?></th>
16
  <td>
17
  <fieldset>
18
- <input type="text" name="niteoCS_font_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_font_color" value="<?php echo esc_attr( $font_color); ?>" data-default-color="#494949" class="regular-text code"><br>
19
  </fieldset>
20
  </td>
21
  </tr>
15
  <th><?php _e('Font Color', 'cmp-coming-soon-maintenance');?></th>
16
  <td>
17
  <fieldset>
18
+ <input type="text" name="niteoCS_font_color_<?php echo esc_attr($themeslug);?>" id="niteoCS_font_color" value="<?php echo esc_attr( $font_color); ?>" data-default-color="#ffffff" class="regular-text code"><br>
19
  </fieldset>
20
  </td>
21
  </tr>
themes/hardwork/img/hardwork_banner_full.jpg CHANGED
Binary file
themes/hardwork/img/hardwork_banner_large.jpg CHANGED
Binary file
themes/hardwork/style.css CHANGED
@@ -30,6 +30,10 @@ img {
30
  height: auto;
31
  }
32
 
 
 
 
 
33
  .section {
34
  flex-grow: 1;
35
  padding: 2em;
@@ -108,6 +112,7 @@ img {
108
 
109
  #background-image {
110
  opacity: 0;
 
111
  transition: opacity .5s;
112
  }
113
 
@@ -118,6 +123,7 @@ img {
118
 
119
  .video-banner iframe,
120
  .video-banner video {
 
121
  transition: opacity 1500ms;
122
  }
123
 
@@ -143,11 +149,13 @@ img {
143
  width: 2.5em;
144
  line-height: 3em;
145
  background: transparent;
 
146
  transition: background 300ms linear;
147
  border-radius: 5px;
148
  }
149
  .social-list i{
150
  font-size: 1em;
 
151
  transition: all 300ms linear;
152
  }
153
  .social-list a:hover i {
30
  height: auto;
31
  }
32
 
33
+ .logo-wrapper.image {
34
+ margin-bottom: 2em;
35
+ }
36
+
37
  .section {
38
  flex-grow: 1;
39
  padding: 2em;
112
 
113
  #background-image {
114
  opacity: 0;
115
+ -o-transition: opacity .5s;
116
  transition: opacity .5s;
117
  }
118
 
123
 
124
  .video-banner iframe,
125
  .video-banner video {
126
+ -o-transition: opacity 1500ms;
127
  transition: opacity 1500ms;
128
  }
129
 
149
  width: 2.5em;
150
  line-height: 3em;
151
  background: transparent;
152
+ -o-transition: background 300ms linear;
153
  transition: background 300ms linear;
154
  border-radius: 5px;
155
  }
156
  .social-list i{
157
  font-size: 1em;
158
+ -o-transition: all 300ms linear;
159
  transition: all 300ms linear;
160
  }
161
  .social-list a:hover i {