Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 3.5.6 |
Comparing to | |
See all releases |
Code changes from version 3.5.5 to 3.5.6
- cmp-advanced.php +89 -65
- cmp-settings.php +5 -5
- css/animate.min.css +1 -1
- css/cmp-settings-style.css +35 -4
- css/cmp-settings-style.min.css +1 -1
- inc/class-cmp-render_html.php +133 -2
- inc/class-cmp-render_settings.php +4 -2
- inc/class-cmp-subscribers.php +3 -3
- inc/settings/settings-theme-selector.php +1 -1
- js/cmp-advanced.js +232 -0
- js/cmp-advanced.min.js +1 -0
- js/settings.js +7 -116
- js/settings.min.js +1 -1
- niteo-cmp.php +260 -16
- readme.txt +15 -1
cmp-advanced.php
CHANGED
@@ -8,6 +8,8 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
8 |
}
|
9 |
}
|
10 |
|
|
|
|
|
11 |
// get all wp pages to array(id->name);
|
12 |
$pages = $this->cmp_get_pages();
|
13 |
|
@@ -200,22 +202,33 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
200 |
|
201 |
?>
|
202 |
|
203 |
-
<div class="wrap cmp-coming-soon-maintenance">
|
204 |
|
205 |
<h1></h1>
|
206 |
<div id="icon-users" class="icon32"></div>
|
207 |
<div class="settings-wrap">
|
208 |
<form method="post" action="admin.php?page=cmp-advanced&status=settings-saved" id="csoptions">
|
209 |
<?php wp_nonce_field('save_options','save_options_field'); ?>
|
210 |
-
|
211 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
|
213 |
<div class="cmp-inputs-wrapper">
|
214 |
|
215 |
-
<div class="table-wrapper
|
216 |
|
217 |
<h3 class="no-icon"><?php _e('CMP Page Whitelist and Blacklist Settings', 'cmp-coming-soon-maintenance');?></h3>
|
218 |
-
<table
|
219 |
<tbody>
|
220 |
<tr>
|
221 |
|
@@ -249,7 +262,7 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
249 |
<td>
|
250 |
<fieldset class="page-whitelist-switch x1" style="margin-top: 1em;">
|
251 |
<h4><?php _e('CMP Whitelist - limit CMP Page to specific pages only.', 'cmp-coming-soon-maintenance');?></h4>
|
252 |
-
<select name="niteoCS_page-whitelist[]" class="cmp-whitelist" multiple="multiple">
|
253 |
<option value="-1" <?php echo in_array('-1', $niteoCS_page_whitelist) ? 'selected' : '';?>><?php _e('Homepage', 'cmp-coming-soon-maintenance');?></option>
|
254 |
<?php
|
255 |
foreach ( $pages as $page ) { ?>
|
@@ -305,7 +318,7 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
305 |
|
306 |
</div>
|
307 |
|
308 |
-
<div class="table-wrapper general">
|
309 |
|
310 |
<h3 class="no-icon"><?php _e('CMP Bypass by User Roles', 'cmp-coming-soon-maintenance');?></h3>
|
311 |
<table class="general">
|
@@ -357,7 +370,7 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
357 |
|
358 |
</div>
|
359 |
|
360 |
-
<div class="table-wrapper general">
|
361 |
<h3 class="no-icon"><?php _e('CMP Bypass URL', 'cmp-coming-soon-maintenance');?></h3>
|
362 |
<table class="general">
|
363 |
<tbody>
|
@@ -419,7 +432,7 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
419 |
|
420 |
</div>
|
421 |
|
422 |
-
<div class="table-wrapper
|
423 |
|
424 |
<h3 class="no-icon"><?php _e('CMP Top Bar Icon', 'cmp-coming-soon-maintenance');?></h3>
|
425 |
<table class="general">
|
@@ -483,7 +496,7 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
483 |
|
484 |
</div>
|
485 |
|
486 |
-
<div class="table-wrapper
|
487 |
|
488 |
<h3 class="no-icon"><?php _e('Custom External Scripts', 'cmp-coming-soon-maintenance');?></h3>
|
489 |
<table class="general">
|
@@ -579,6 +592,72 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
579 |
|
580 |
</div>
|
581 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
582 |
</div> <!-- <div class="cmp-inputs-wrapper"> -->
|
583 |
|
584 |
</div> <!-- <div class="cmp-settings-wrapper"> -->
|
@@ -594,58 +673,3 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
594 |
</div>
|
595 |
</div> <!-- <div id="wrap"> -->
|
596 |
|
597 |
-
<script>
|
598 |
-
jQuery(document).ready(function($) {
|
599 |
-
toggle_settings('page-whitelist');
|
600 |
-
toggle_settings('cmp-bypass');
|
601 |
-
toggle_settings('cmp-topbar-icon');
|
602 |
-
|
603 |
-
function toggle_settings ( classname ) {
|
604 |
-
// Logo type inputs
|
605 |
-
jQuery('.'+classname).change(function() {
|
606 |
-
var value = jQuery('.'+classname+':checked' ).val();
|
607 |
-
value = ( jQuery.isNumeric(value) ) ? 'x'+value : value;
|
608 |
-
|
609 |
-
jQuery('.'+classname+'-switch.'+value).css('display','block');
|
610 |
-
jQuery('.'+classname+'-switch:not(.'+value+')').css('display','none');
|
611 |
-
});
|
612 |
-
|
613 |
-
jQuery('.'+classname).first().trigger('change');
|
614 |
-
}
|
615 |
-
|
616 |
-
jQuery('.cmp-whitelist, .cmp-blacklist, .cmp-user_roles').select2({
|
617 |
-
width: 'calc(100% - 1em)',
|
618 |
-
placeholder: 'Click to select..',
|
619 |
-
|
620 |
-
});
|
621 |
-
|
622 |
-
cmp_repeat_fields('head_scripts');
|
623 |
-
cmp_repeat_fields('footer_scripts');
|
624 |
-
|
625 |
-
function cmp_repeat_fields( field_id ) {
|
626 |
-
jQuery('#add-' + field_id).click(function(e){
|
627 |
-
e.preventDefault();
|
628 |
-
var $wrapper = jQuery('#wrapper-' + field_id);
|
629 |
-
var $target = jQuery('#wrapper-' + field_id + ' .target-repeater-fields');
|
630 |
-
var $fields = $wrapper.find('.source-repeater-fields').children().clone();
|
631 |
-
$($fields[0]).val('');
|
632 |
-
$($target).append($fields);
|
633 |
-
});
|
634 |
-
|
635 |
-
cmp_delete_field( field_id );
|
636 |
-
}
|
637 |
-
|
638 |
-
function cmp_delete_field( field_id ) {
|
639 |
-
jQuery('#wrapper-' + field_id + ' .target-repeater-fields' ).on('click', 'a[href=#delete-' + field_id + ']', function(e){
|
640 |
-
e.preventDefault();
|
641 |
-
$(this).prev().remove();
|
642 |
-
$(this).remove();
|
643 |
-
});
|
644 |
-
|
645 |
-
jQuery('#wrapper-' + field_id + ' .source-repeater-fields' ).on('click', 'a[href=#delete-' + field_id + ']', function(e){
|
646 |
-
e.preventDefault();
|
647 |
-
$(this).prev().val('');
|
648 |
-
});
|
649 |
-
}
|
650 |
-
});
|
651 |
-
</script>
|
8 |
}
|
9 |
}
|
10 |
|
11 |
+
$ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
|
12 |
+
|
13 |
// get all wp pages to array(id->name);
|
14 |
$pages = $this->cmp_get_pages();
|
15 |
|
202 |
|
203 |
?>
|
204 |
|
205 |
+
<div class="wrap cmp-coming-soon-maintenance cmp-advanced">
|
206 |
|
207 |
<h1></h1>
|
208 |
<div id="icon-users" class="icon32"></div>
|
209 |
<div class="settings-wrap">
|
210 |
<form method="post" action="admin.php?page=cmp-advanced&status=settings-saved" id="csoptions">
|
211 |
<?php wp_nonce_field('save_options','save_options_field'); ?>
|
212 |
+
|
213 |
+
<h2 class="nav-tab-wrapper">
|
214 |
+
<a class="nav-tab nav-tab-active" href="<?php echo admin_url(); ?>admin.php?page=cmp-advanced#cmp-whitelist-blacklist" data-tab="cmp-whitelist-blacklist"><i class="fa fa-unlock" aria-hidden="true"></i><?php _e('Whitelist/Blacklist', 'cmp-coming-soon-maintenance');?></a>
|
215 |
+
|
216 |
+
<a class="nav-tab" href="<?php echo admin_url(); ?>admin.php?page=cmp-advanced#cmp-bypass" data-tab="cmp-bypass"><i class="fa fa-address-book-o" aria-hidden="true"></i><?php _e('Bypass', 'cmp-coming-soon-maintenance');?></a>
|
217 |
+
|
218 |
+
<a class="nav-tab" href="<?php echo admin_url(); ?>admin.php?page=cmp-advanced#cmp-misc" data-tab="cmp-misc"><i class="fa fa-cogs" aria-hidden="true"></i><?php _e('Misc', 'cmp-coming-soon-maintenance');?></a>
|
219 |
+
|
220 |
+
<a class="nav-tab" href="<?php echo admin_url(); ?>admin.php?page=cmp-advanced#cmp-export-import" data-tab="cmp-export-import"><i class="fa fa-upload" aria-hidden="true"></i><?php _e('Import/Export', 'cmp-coming-soon-maintenance');?></a>
|
221 |
+
|
222 |
+
</h2>
|
223 |
+
|
224 |
+
<div class="cmp-advanced" style="margin-top:6px">
|
225 |
|
226 |
<div class="cmp-inputs-wrapper">
|
227 |
|
228 |
+
<div class="table-wrapper cmp-whitelist-blacklist">
|
229 |
|
230 |
<h3 class="no-icon"><?php _e('CMP Page Whitelist and Blacklist Settings', 'cmp-coming-soon-maintenance');?></h3>
|
231 |
+
<table>
|
232 |
<tbody>
|
233 |
<tr>
|
234 |
|
262 |
<td>
|
263 |
<fieldset class="page-whitelist-switch x1" style="margin-top: 1em;">
|
264 |
<h4><?php _e('CMP Whitelist - limit CMP Page to specific pages only.', 'cmp-coming-soon-maintenance');?></h4>
|
265 |
+
<select name="niteoCS_page-whitelist[]" class="cmp-whitelist-select" multiple="multiple">
|
266 |
<option value="-1" <?php echo in_array('-1', $niteoCS_page_whitelist) ? 'selected' : '';?>><?php _e('Homepage', 'cmp-coming-soon-maintenance');?></option>
|
267 |
<?php
|
268 |
foreach ( $pages as $page ) { ?>
|
318 |
|
319 |
</div>
|
320 |
|
321 |
+
<div class="table-wrapper general cmp-bypass">
|
322 |
|
323 |
<h3 class="no-icon"><?php _e('CMP Bypass by User Roles', 'cmp-coming-soon-maintenance');?></h3>
|
324 |
<table class="general">
|
370 |
|
371 |
</div>
|
372 |
|
373 |
+
<div class="table-wrapper general cmp-bypass">
|
374 |
<h3 class="no-icon"><?php _e('CMP Bypass URL', 'cmp-coming-soon-maintenance');?></h3>
|
375 |
<table class="general">
|
376 |
<tbody>
|
432 |
|
433 |
</div>
|
434 |
|
435 |
+
<div class="table-wrapper cmp-misc">
|
436 |
|
437 |
<h3 class="no-icon"><?php _e('CMP Top Bar Icon', 'cmp-coming-soon-maintenance');?></h3>
|
438 |
<table class="general">
|
496 |
|
497 |
</div>
|
498 |
|
499 |
+
<div class="table-wrapper cmp-misc">
|
500 |
|
501 |
<h3 class="no-icon"><?php _e('Custom External Scripts', 'cmp-coming-soon-maintenance');?></h3>
|
502 |
<table class="general">
|
592 |
|
593 |
</div>
|
594 |
|
595 |
+
<div class="table-wrapper cmp-export-import">
|
596 |
+
<h3 class="no-icon"><?php _e('Export or Import CMP Settings', 'cmp-coming-soon-maintenance');?></h3>
|
597 |
+
<table class="general">
|
598 |
+
<tbody>
|
599 |
+
|
600 |
+
<tr>
|
601 |
+
<th>
|
602 |
+
<fieldset>
|
603 |
+
<legend class="screen-reader-text">
|
604 |
+
<span><?php _e('Export CMP Settings', 'cmp-coming-soon-maintenance');?></span>
|
605 |
+
</legend>
|
606 |
+
|
607 |
+
<p>
|
608 |
+
<h4><?php _e('Export CMP Settings', 'cmp-coming-soon-maintenance');?></h4>
|
609 |
+
</p>
|
610 |
+
</fieldset>
|
611 |
+
</th>
|
612 |
+
|
613 |
+
<td>
|
614 |
+
<fieldset style="margin-top: 1em;">
|
615 |
+
<button id="cmp-export-json" class="cmp-button import-export-button" data-security="<?php echo esc_attr( $ajax_nonce );?>"><?php _e('Export to JSON file', 'cmp-coming-soon-maintenance');?></button>
|
616 |
+
<p class="cmp-hint"><?php _e('You can export complete CMP Settings to external JSON file. Which can be used to backup or transfer CMP Settings to another website.', 'cmp-coming-soon-maintenance');?></p>
|
617 |
+
</fieldset>
|
618 |
+
</td>
|
619 |
+
</tr>
|
620 |
+
|
621 |
+
<tr>
|
622 |
+
<th>
|
623 |
+
<fieldset>
|
624 |
+
<legend class="screen-reader-text">
|
625 |
+
<span><?php _e('Import CMP Settings', 'cmp-coming-soon-maintenance');?></span>
|
626 |
+
</legend>
|
627 |
+
|
628 |
+
<p>
|
629 |
+
<h4><?php _e('Import CMP Settings', 'cmp-coming-soon-maintenance');?></h4>
|
630 |
+
</p>
|
631 |
+
</fieldset>
|
632 |
+
</th>
|
633 |
+
|
634 |
+
<td>
|
635 |
+
<fieldset style="margin-top: 1em;">
|
636 |
+
<input type="text" hidden name="cmp-import-input" id="cmp-import-input" />
|
637 |
+
<label class='cmp-input-file'>
|
638 |
+
<span class="cmp-button import-export-button import-json-label" data-default="<?php _e('Select JSON file', 'cmp-coming-soon-maintenance');?>" style="display:inline-block"></span>
|
639 |
+
<input type="file" name="cmp-import-json" id="cmp-import-json" accept=".json">
|
640 |
+
|
641 |
+
<p>
|
642 |
+
<label for="cmp-import-media"><input type="checkbox" name="cmp-import-media" id="cmp-import-media" value="1" checked ><?php _e('Import with media images', 'cmp-coming-soon-maintenance');?></label>
|
643 |
+
</p>
|
644 |
+
|
645 |
+
<p class="cmp-hint"><?php _e('Insert valid JSON file with CMP Settings to import complete CMP Settings. All current settings will be overwritten.', 'cmp-coming-soon-maintenance');?></p>
|
646 |
+
</label>
|
647 |
+
</fieldset>
|
648 |
+
</td>
|
649 |
+
</tr>
|
650 |
+
|
651 |
+
<tr><th>
|
652 |
+
<p class="cmp-submit">
|
653 |
+
<input disabled type="submit" name="submit" class="button cmp-button submit" id="cmp-import-settings" value="<?php _e('Import Settings', 'cmp-coming-soon-maintenance');?>" form="csoptions" data-security="<?php echo esc_attr($ajax_nonce);?>"/>
|
654 |
+
</p>
|
655 |
+
</th></tr>
|
656 |
+
</tbody>
|
657 |
+
</table>
|
658 |
+
|
659 |
+
</div>
|
660 |
+
|
661 |
</div> <!-- <div class="cmp-inputs-wrapper"> -->
|
662 |
|
663 |
</div> <!-- <div class="cmp-settings-wrapper"> -->
|
673 |
</div>
|
674 |
</div> <!-- <div id="wrap"> -->
|
675 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cmp-settings.php
CHANGED
@@ -577,15 +577,15 @@ add_thickbox();
|
|
577 |
|
578 |
<?php wp_nonce_field('save_options','save_options_field'); ?>
|
579 |
<h2 class="nav-tab-wrapper">
|
580 |
-
<a class="nav-tab nav-tab-active general" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="general"><i class="fa fa-cog" aria-hidden="true"></i><?php _e('Settings', 'cmp-coming-soon-maintenance');?></a>
|
581 |
|
582 |
-
<a class="nav-tab content" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="content"><i class="fa fa-pencil-square-o" aria-hidden="true"></i><?php _e('Content', 'cmp-coming-soon-maintenance');?></a>
|
583 |
|
584 |
-
<a class="nav-tab theme-setup" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="theme-setup"><i class="fa fa-wrench" aria-hidden="true"></i><?php _e('Customize', 'cmp-coming-soon-maintenance');?></a>
|
585 |
|
586 |
-
<a class="nav-tab seo" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="seo"><i class="fa fa-line-chart" aria-hidden="true"></i><?php _e('SEO & Analytics', 'cmp-coming-soon-maintenance');?></a>
|
587 |
|
588 |
-
<a class="nav-tab custom_css" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="custom_css"><i class="fa fa-code" aria-hidden="true"></i><?php _e('Custom CSS', 'cmp-coming-soon-maintenance');?></a>
|
589 |
|
590 |
<a class="nav-tab theme-preview" href="<?php echo get_home_url(); ?>?cmp_preview=true" data-tab="theme-preview" target="_blank" ><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('Preview', 'cmp-coming-soon-maintenance');?></a>
|
591 |
|
577 |
|
578 |
<?php wp_nonce_field('save_options','save_options_field'); ?>
|
579 |
<h2 class="nav-tab-wrapper">
|
580 |
+
<a class="nav-tab nav-tab-active general" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings#general" data-tab="general"><i class="fa fa-cog" aria-hidden="true"></i><?php _e('Settings', 'cmp-coming-soon-maintenance');?></a>
|
581 |
|
582 |
+
<a class="nav-tab content" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings#content" data-tab="content"><i class="fa fa-pencil-square-o" aria-hidden="true"></i><?php _e('Content', 'cmp-coming-soon-maintenance');?></a>
|
583 |
|
584 |
+
<a class="nav-tab theme-setup" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings#theme-setup" data-tab="theme-setup"><i class="fa fa-wrench" aria-hidden="true"></i><?php _e('Customize', 'cmp-coming-soon-maintenance');?></a>
|
585 |
|
586 |
+
<a class="nav-tab seo" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings#seo" data-tab="seo"><i class="fa fa-line-chart" aria-hidden="true"></i><?php _e('SEO & Analytics', 'cmp-coming-soon-maintenance');?></a>
|
587 |
|
588 |
+
<a class="nav-tab custom_css" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings#custom_css" data-tab="custom_css"><i class="fa fa-code" aria-hidden="true"></i><?php _e('Custom CSS', 'cmp-coming-soon-maintenance');?></a>
|
589 |
|
590 |
<a class="nav-tab theme-preview" href="<?php echo get_home_url(); ?>?cmp_preview=true" data-tab="theme-preview" target="_blank" ><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('Preview', 'cmp-coming-soon-maintenance');?></a>
|
591 |
|
css/animate.min.css
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
* Licensed under the MIT license - http://opensource.org/licenses/MIT
|
5 |
*
|
6 |
* Copyright (c) 2017 Daniel Eden
|
7 |
-
*/.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.delay-small{
|
4 |
* Licensed under the MIT license - http://opensource.org/licenses/MIT
|
5 |
*
|
6 |
* Copyright (c) 2017 Daniel Eden
|
7 |
+
*/.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.delay-small{animation-delay:.3s}.delay-big{animation-delay:.6s}@-webkit-keyframes fadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-50px,0);transform:translate3d(0,-50px,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-50px,0);transform:translate3d(0,-50px,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInLeft{from{opacity:0;-webkit-transform:translate3d(-50px,0,0);transform:translate3d(-50px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInLeft{from{opacity:0;-webkit-transform:translate3d(-50px,0,0);transform:translate3d(-50px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInRight{from{opacity:0;-webkit-transform:translate3d(50px,0,0);transform:translate3d(50px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInRight{from{opacity:0;-webkit-transform:translate3d(50px,0,0);transform:translate3d(50px,0,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInUp{from{opacity:0;-webkit-transform:translate3d(0,50px,0);transform:translate3d(0,50px,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUp{from{opacity:0;-webkit-transform:translate3d(0,50px,0);transform:translate3d(0,50px,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes zoomIn{from{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{from{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}
|
css/cmp-settings-style.css
CHANGED
@@ -97,7 +97,10 @@
|
|
97 |
.cmp-coming-soon-maintenance .table-wrapper.content,
|
98 |
.cmp-coming-soon-maintenance .table-wrapper.install,
|
99 |
.cmp-coming-soon-maintenance .table-wrapper.seo,
|
100 |
-
.cmp-coming-soon-maintenance .table-wrapper.theme-setup
|
|
|
|
|
|
|
101 |
display: none
|
102 |
}
|
103 |
|
@@ -692,6 +695,7 @@
|
|
692 |
-webkit-box-shadow: none;
|
693 |
text-shadow: none;
|
694 |
text-transform: uppercase;
|
|
|
695 |
}
|
696 |
|
697 |
.cmp-coming-soon-maintenance .cmp-button.submit,
|
@@ -703,6 +707,10 @@
|
|
703 |
transition: background-color .5s
|
704 |
}
|
705 |
|
|
|
|
|
|
|
|
|
706 |
.cmp-coming-soon-maintenance .theme-wrapper a.button:visited,
|
707 |
.cmp-coming-soon-maintenance .theme-wrapper a.button:focus {
|
708 |
background: transparent;
|
@@ -1043,8 +1051,9 @@
|
|
1043 |
text-align: center;
|
1044 |
}
|
1045 |
|
1046 |
-
.content-settings .cmp-sidebar-wrapper
|
1047 |
-
|
|
|
1048 |
}
|
1049 |
|
1050 |
.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget {
|
@@ -1135,7 +1144,29 @@
|
|
1135 |
display: none;
|
1136 |
}
|
1137 |
|
1138 |
-
.cmp-coming-soon-maintenance .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:35px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color: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:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight: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:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent 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:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color: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}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1139 |
.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice {background-color: #2980b9;color: white;border:none;padding:3px 5px;}
|
1140 |
.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {color:white;}
|
1141 |
.cmp-coming-soon-maintenance .select2-container--default .select2-search--inline .select2-search__field {line-height: 2.5em;margin-top:0;}
|
97 |
.cmp-coming-soon-maintenance .table-wrapper.content,
|
98 |
.cmp-coming-soon-maintenance .table-wrapper.install,
|
99 |
.cmp-coming-soon-maintenance .table-wrapper.seo,
|
100 |
+
.cmp-coming-soon-maintenance .table-wrapper.theme-setup,
|
101 |
+
.cmp-coming-soon-maintenance .table-wrapper.cmp-bypass,
|
102 |
+
.cmp-coming-soon-maintenance .table-wrapper.cmp-misc,
|
103 |
+
.cmp-coming-soon-maintenance .table-wrapper.cmp-export-import {
|
104 |
display: none
|
105 |
}
|
106 |
|
695 |
-webkit-box-shadow: none;
|
696 |
text-shadow: none;
|
697 |
text-transform: uppercase;
|
698 |
+
cursor: pointer;
|
699 |
}
|
700 |
|
701 |
.cmp-coming-soon-maintenance .cmp-button.submit,
|
707 |
transition: background-color .5s
|
708 |
}
|
709 |
|
710 |
+
.cmp-coming-soon-maintenance .import-export-button {
|
711 |
+
background-color: #0085ba;
|
712 |
+
}
|
713 |
+
|
714 |
.cmp-coming-soon-maintenance .theme-wrapper a.button:visited,
|
715 |
.cmp-coming-soon-maintenance .theme-wrapper a.button:focus {
|
716 |
background: transparent;
|
1051 |
text-align: center;
|
1052 |
}
|
1053 |
|
1054 |
+
.content-settings .cmp-sidebar-wrapper,
|
1055 |
+
.cmp-advanced .cmp-sidebar-wrapper {
|
1056 |
+
margin-top: 61px;
|
1057 |
}
|
1058 |
|
1059 |
.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget {
|
1144 |
display: none;
|
1145 |
}
|
1146 |
|
1147 |
+
.cmp-coming-soon-maintenance .cmp-export-import textarea {
|
1148 |
+
display: none;
|
1149 |
+
}
|
1150 |
+
|
1151 |
+
.cmp-coming-soon-maintenance .import-json-label {
|
1152 |
+
position: relative;
|
1153 |
+
}
|
1154 |
+
|
1155 |
+
.cmp-coming-soon-maintenance .import-json-label.import-fail {
|
1156 |
+
background: red;
|
1157 |
+
}
|
1158 |
+
|
1159 |
+
.cmp-coming-soon-maintenance .import-json-label:before {
|
1160 |
+
display: block;
|
1161 |
+
content: attr(data-default);
|
1162 |
+
}
|
1163 |
+
|
1164 |
+
|
1165 |
+
.cmp-coming-soon-maintenance #cmp-import-json {
|
1166 |
+
display: none;
|
1167 |
+
}
|
1168 |
+
|
1169 |
+
.cmp-coming-soon-maintenance .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:35px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color: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:#2980b9;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:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight: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:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent 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:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color: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}
|
1170 |
.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice {background-color: #2980b9;color: white;border:none;padding:3px 5px;}
|
1171 |
.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {color:white;}
|
1172 |
.cmp-coming-soon-maintenance .select2-container--default .select2-search--inline .select2-search__field {line-height: 2.5em;margin-top:0;}
|
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:6px}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:12px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#1d3557;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-o-transition:.3s ease-in-out;transition:.3s ease-in-out}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#1d3557;border:2px solid #1d3557}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance .table-wrapper.content,.cmp-coming-soon-maintenance .table-wrapper.install,.cmp-coming-soon-maintenance .table-wrapper.seo,.cmp-coming-soon-maintenance .table-wrapper.theme-setup{display:none}.cmp-coming-soon-maintenance .wp-upload-form.cmp{padding:4em;display:block}.cmp-coming-soon-maintenance .cmp-status{width:95%;padding:10px;font-weight:600;font-size:1.2em;cursor:pointer;opacity:.8}.cmp-coming-soon-maintenance .cmp-status.active{opacity:1}.cmp-coming-soon-maintenance .cmp-status span{font-weight:400}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{margin-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left;font-weight:600}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-seo_img,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-inputs li.social-labels{display:block}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.2em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance .unsplash-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_img{display:none}.cmp-coming-soon-maintenance #unsplash-media{position:relative}.cmp-coming-soon-maintenance .color-preview,.cmp-coming-soon-maintenance .gradient-preview,.cmp-coming-soon-maintenance .pattern-wrapper{position:relative;background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.chameleon.color-preview{-webkit-animation:chameleon 19s infinite;animation:chameleon 19s infinite}@-webkit-keyframes chameleon{0%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}100%{background:#2ecc71}}@keyframes chameleon{0%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}100%{background:#2ecc71}}.cmp-coming-soon-maintenance .theme-overlay .screenshot,.cmp-coming-soon-maintenance .thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.cmp-coming-soon-maintenance .video-local-wrapper,.cmp-coming-soon-maintenance .video-yt-wrapper{position:relative;width:100%;margin-top:1em}.cmp-coming-soon-maintenance #add-pattern{margin-bottom:1em}.cmp-coming-soon-maintenance .info{font-size:12px}.cmp-coming-soon-maintenance .nav-tab i{padding-right:3px}.cmp-coming-soon-maintenance .nav-tab-wrapper{border:none!important}.cmp-coming-soon-maintenance .nav-tab{font-weight:400;background:#fff;padding:10px 20px;border:1px solid #e2e2e2}.cmp-coming-soon-maintenance .nav-tab:first-of-type{margin-left:0}.cmp-coming-soon-maintenance .nav-tab-active,.cmp-coming-soon-maintenance .nav-tab-active:focus,.cmp-coming-soon-maintenance .nav-tab-active:focus:active,.cmp-coming-soon-maintenance .nav-tab-active:hover{background:#1d3557;border:1px solid #1d3557;outline:0;box-shadow:none;color:#fff;font-weight:600}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper,.cmp-coming-soon-maintenance .seo_img-wrapper{margin:1em 0}.cmp-coming-soon-maintenance .favicon-wrapper img,.cmp-coming-soon-maintenance .logo-wrapper img{background-color:#efefef;padding:1em}.cmp-coming-soon-maintenance .favicon-wrapper img{max-width:32px}.cmp-coming-soon-maintenance .background-media img,.cmp-coming-soon-maintenance .logo-wrapper img,.cmp-coming-soon-maintenance .seo_img-wrapper img{max-width:100%;width:100%;vertical-align:top}.cmp-coming-soon-maintenance .background-thumb-wrapper,.cmp-coming-soon-maintenance .video-thumb-wrapper{position:relative;margin:1em 0;overflow:hidden}.cmp-coming-soon-maintenance .thumbnail-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2){display:-ms-grid;display:grid;height:auto;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;-ms-grid-rows:1fr auto;grid-template-rows:1fr auto;grid-template-areas:"Big Big Big" "small-3 small-2 small-1";grid-gap:10px}.cmp-coming-soon-maintenance .custom-gallery.gallery-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"Big Big" "small-2 small-1"!important}.cmp-coming-soon-maintenance .gallery-2 .big-thumb{margin-bottom:1em}.cmp-coming-soon-maintenance .big-thumb{grid-area:Big/Big;overflow:hidden;position:relative}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden;min-height:20em;overflow:auto}.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;display:flex;flex-wrap:wrap}.cmp-coming-soon-maintenance .font-selector fieldset{box-sizing:border-box;padding:.5em .2em;flex:1;min-width:100%}.cmp-coming-soon-maintenance .font-selector .cmp-width-33{min-width:30%}.cmp-coming-soon-maintenance .font-selector .cmp-width-50{min-width:50%}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;-o-transition:background-color .1s;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px;height:2em;background:#656565;line-height:2em;padding-right:10px;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#2d936c}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-o-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#e63946;color:#fff;border:none;-o-transition:background-color .5s;transition:background-color .5s}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-status-pages .label,.cmp-coming-soon-maintenance .cmp-status-pages label{height:33px;width:140px;display:flex;align-items:center;justify-content:center;flex-direction:inherit;text-align:center;border-bottom:2px solid transparent;border-radius:0;float:left;margin-top:2em;margin-left:3em;margin-bottom:2em}.cmp-coming-soon-maintenance .cmp-status-pages .label.active,.cmp-coming-soon-maintenance .cmp-status-pages label.active{border-color:rgba(29,53,87,.6)}.cmp-coming-soon-maintenance .cmp-status-pages label:first-of-type{margin-left:0}.cmp-coming-soon-maintenance .cmp-status-pages a{color:inherit}.cmp-coming-soon-maintenance .cmp-status-pages input{margin:0;margin-right:.5em}.redirect-inputs{font-size:.8em;font-weight:400}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e63946;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;min-width:190px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{content:'';font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{-o-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-o-transition:opacity .5s;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{-webkit-transition:all .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:1em}.cmp-coming-soon-maintenance .toggle{position:relative;width:340px;height:50px;font-weight:600;background:0 0;border:2px solid rgba(29,53,87,.6);-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:50px;font-size:1em;z-index:2;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#e63946;width:170px;height:44px;top:3px;left:5px;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);border-radius:10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{-webkit-transform:translateX(160px);-ms-transform:translateX(160px);transform:translateX(160px);background:#2d936c}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:63px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#444}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:68px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.content-settings .cmp-sidebar-wrapper{margin-top:58px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}.cmp-coming-soon-maintenance #niteoCS_subscribe_label{height:150px}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}.cmp-coming-soon-maintenance .cmp-hint{font-size:.9em}.cmp-coming-soon-maintenance .source-repeater-fields input,.cmp-coming-soon-maintenance .target-repeater-fields input{width:95%;margin-bottom:1em}.cmp-coming-soon-maintenance .source-repeater-fields i,.cmp-coming-soon-maintenance .target-repeater-fields i{line-height:2.5;float:right}.logo-height-wrap{display:flex;line-height:2}.logo-height-wrap input[type=range]{margin-right:1em}.cmp-coming-soon-maintenance .table-wrapper.cmp-bundle-banner{margin:0;border:none;margin-bottom:.7em;display:block;background:0 0}.cmp-coming-soon-maintenance .table-wrapper.cmp-bundle-banner img{max-width:100%;height:auto}.cmp-coming-soon-maintenance .source-repeater-fields a{display:none}.cmp-coming-soon-maintenance .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:35px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #dedede;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-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}.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: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 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:#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:solid #000 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--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>.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:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-o-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-o-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.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:0 0;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:-o-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-o-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.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}.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}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#2980b9;color:#fff;border:none;padding:3px 5px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#fff}.cmp-coming-soon-maintenance .select2-container--default .select2-search--inline .select2-search__field{line-height:2.5em;margin-top:0}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__rendered li{margin-bottom:0}.cmp-coming-soon-maintenance .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.cmp-coming-soon-maintenance .select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.cmp-coming-soon-maintenance .select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#2980b9}#niteoCS_body_ifr{min-height:280px}@media screen and (max-width:1450px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:70%}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{width:calc(30% - 2em + 7px);margin:0}}@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:1024px){.cmp-coming-soon-maintenance .table-wrapper table{width:100%}.cmp-coming-soon-maintenance .table-wrapper th{width:140px}.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{width:calc(50% - 1em - 5px)}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:1em}}@media screen and (max-width:782px){.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}.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}.cmp-coming-soon-maintenance #font-example-wrapper{min-height:24em}}@media screen and (max-width:560px){.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:50px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:105px}.cmp-coming-soon-maintenance .social-inputs p i{top:22px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{top:28px;left:53px}.cmp-coming-soon-maintenance .social-inputs label{padding-left:55px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
|
1 |
+
.cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:6px}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:12px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#1d3557;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-o-transition:.3s ease-in-out;transition:.3s ease-in-out}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#1d3557;border:2px solid #1d3557}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance .table-wrapper.cmp-bypass,.cmp-coming-soon-maintenance .table-wrapper.cmp-export-import,.cmp-coming-soon-maintenance .table-wrapper.cmp-misc,.cmp-coming-soon-maintenance .table-wrapper.content,.cmp-coming-soon-maintenance .table-wrapper.install,.cmp-coming-soon-maintenance .table-wrapper.seo,.cmp-coming-soon-maintenance .table-wrapper.theme-setup{display:none}.cmp-coming-soon-maintenance .wp-upload-form.cmp{padding:4em;display:block}.cmp-coming-soon-maintenance .cmp-status{width:95%;padding:10px;font-weight:600;font-size:1.2em;cursor:pointer;opacity:.8}.cmp-coming-soon-maintenance .cmp-status.active{opacity:1}.cmp-coming-soon-maintenance .cmp-status span{font-weight:400}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{margin-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left;font-weight:600}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-seo_img,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-inputs li.social-labels{display:block}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.2em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance .unsplash-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_img{display:none}.cmp-coming-soon-maintenance #unsplash-media{position:relative}.cmp-coming-soon-maintenance .color-preview,.cmp-coming-soon-maintenance .gradient-preview,.cmp-coming-soon-maintenance .pattern-wrapper{position:relative;background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.chameleon.color-preview{-webkit-animation:chameleon 19s infinite;animation:chameleon 19s infinite}@-webkit-keyframes chameleon{0%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}100%{background:#2ecc71}}@keyframes chameleon{0%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}100%{background:#2ecc71}}.cmp-coming-soon-maintenance .theme-overlay .screenshot,.cmp-coming-soon-maintenance .thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.cmp-coming-soon-maintenance .video-local-wrapper,.cmp-coming-soon-maintenance .video-yt-wrapper{position:relative;width:100%;margin-top:1em}.cmp-coming-soon-maintenance #add-pattern{margin-bottom:1em}.cmp-coming-soon-maintenance .info{font-size:12px}.cmp-coming-soon-maintenance .nav-tab i{padding-right:3px}.cmp-coming-soon-maintenance .nav-tab-wrapper{border:none!important}.cmp-coming-soon-maintenance .nav-tab{font-weight:400;background:#fff;padding:10px 20px;border:1px solid #e2e2e2}.cmp-coming-soon-maintenance .nav-tab:first-of-type{margin-left:0}.cmp-coming-soon-maintenance .nav-tab-active,.cmp-coming-soon-maintenance .nav-tab-active:focus,.cmp-coming-soon-maintenance .nav-tab-active:focus:active,.cmp-coming-soon-maintenance .nav-tab-active:hover{background:#1d3557;border:1px solid #1d3557;outline:0;box-shadow:none;color:#fff;font-weight:600}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper,.cmp-coming-soon-maintenance .seo_img-wrapper{margin:1em 0}.cmp-coming-soon-maintenance .favicon-wrapper img,.cmp-coming-soon-maintenance .logo-wrapper img{background-color:#efefef;padding:1em}.cmp-coming-soon-maintenance .favicon-wrapper img{max-width:32px}.cmp-coming-soon-maintenance .background-media img,.cmp-coming-soon-maintenance .logo-wrapper img,.cmp-coming-soon-maintenance .seo_img-wrapper img{max-width:100%;width:100%;vertical-align:top}.cmp-coming-soon-maintenance .background-thumb-wrapper,.cmp-coming-soon-maintenance .video-thumb-wrapper{position:relative;margin:1em 0;overflow:hidden}.cmp-coming-soon-maintenance .thumbnail-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2){display:-ms-grid;display:grid;height:auto;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;-ms-grid-rows:1fr auto;grid-template-rows:1fr auto;grid-template-areas:"Big Big Big" "small-3 small-2 small-1";grid-gap:10px}.cmp-coming-soon-maintenance .custom-gallery.gallery-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"Big Big" "small-2 small-1"!important}.cmp-coming-soon-maintenance .gallery-2 .big-thumb{margin-bottom:1em}.cmp-coming-soon-maintenance .big-thumb{grid-area:Big/Big;overflow:hidden;position:relative}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden;min-height:20em;overflow:auto}.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;display:flex;flex-wrap:wrap}.cmp-coming-soon-maintenance .font-selector fieldset{box-sizing:border-box;padding:.5em .2em;flex:1;min-width:100%}.cmp-coming-soon-maintenance .font-selector .cmp-width-33{min-width:30%}.cmp-coming-soon-maintenance .font-selector .cmp-width-50{min-width:50%}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;-o-transition:background-color .1s;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px;height:2em;background:#656565;line-height:2em;padding-right:10px;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#2d936c}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-o-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase;cursor:pointer}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#e63946;color:#fff;border:none;-o-transition:background-color .5s;transition:background-color .5s}.cmp-coming-soon-maintenance .import-export-button{background-color:#0085ba}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-status-pages .label,.cmp-coming-soon-maintenance .cmp-status-pages label{height:33px;width:140px;display:flex;align-items:center;justify-content:center;flex-direction:inherit;text-align:center;border-bottom:2px solid transparent;border-radius:0;float:left;margin-top:2em;margin-left:3em;margin-bottom:2em}.cmp-coming-soon-maintenance .cmp-status-pages .label.active,.cmp-coming-soon-maintenance .cmp-status-pages label.active{border-color:rgba(29,53,87,.6)}.cmp-coming-soon-maintenance .cmp-status-pages label:first-of-type{margin-left:0}.cmp-coming-soon-maintenance .cmp-status-pages a{color:inherit}.cmp-coming-soon-maintenance .cmp-status-pages input{margin:0;margin-right:.5em}.redirect-inputs{font-size:.8em;font-weight:400}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e63946;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;min-width:190px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{content:'';font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{-o-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-o-transition:opacity .5s;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{-webkit-transition:all .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:1em}.cmp-coming-soon-maintenance .toggle{position:relative;width:340px;height:50px;font-weight:600;background:0 0;border:2px solid rgba(29,53,87,.6);-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:50px;font-size:1em;z-index:2;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#e63946;width:170px;height:44px;top:3px;left:5px;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);border-radius:10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{-webkit-transform:translateX(160px);-ms-transform:translateX(160px);transform:translateX(160px);background:#2d936c}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:63px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#444}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:68px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.cmp-advanced .cmp-sidebar-wrapper,.content-settings .cmp-sidebar-wrapper{margin-top:61px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}.cmp-coming-soon-maintenance #niteoCS_subscribe_label{height:150px}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}.cmp-coming-soon-maintenance .cmp-hint{font-size:.9em}.cmp-coming-soon-maintenance .source-repeater-fields input,.cmp-coming-soon-maintenance .target-repeater-fields input{width:95%;margin-bottom:1em}.cmp-coming-soon-maintenance .source-repeater-fields i,.cmp-coming-soon-maintenance .target-repeater-fields i{line-height:2.5;float:right}.logo-height-wrap{display:flex;line-height:2}.logo-height-wrap input[type=range]{margin-right:1em}.cmp-coming-soon-maintenance .table-wrapper.cmp-bundle-banner{margin:0;border:none;margin-bottom:.7em;display:block;background:0 0}.cmp-coming-soon-maintenance .table-wrapper.cmp-bundle-banner img{max-width:100%;height:auto}.cmp-coming-soon-maintenance .source-repeater-fields a{display:none}.cmp-coming-soon-maintenance .cmp-export-import textarea{display:none}.cmp-coming-soon-maintenance .import-json-label{position:relative}.cmp-coming-soon-maintenance .import-json-label.import-fail{background:red}.cmp-coming-soon-maintenance .import-json-label:before{display:block;content:attr(data-default)}.cmp-coming-soon-maintenance #cmp-import-json{display:none}.cmp-coming-soon-maintenance .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:35px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #dedede;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-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}.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: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 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:#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:solid #000 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--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>.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:#2980b9;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-o-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-o-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.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:0 0;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:-o-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-o-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.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}.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}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#2980b9;color:#fff;border:none;padding:3px 5px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#fff}.cmp-coming-soon-maintenance .select2-container--default .select2-search--inline .select2-search__field{line-height:2.5em;margin-top:0}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__rendered li{margin-bottom:0}.cmp-coming-soon-maintenance .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.cmp-coming-soon-maintenance .select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.cmp-coming-soon-maintenance .select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#2980b9}#niteoCS_body_ifr{min-height:280px}@media screen and (max-width:1450px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:70%}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{width:calc(30% - 2em + 7px);margin:0}}@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:1024px){.cmp-coming-soon-maintenance .table-wrapper table{width:100%}.cmp-coming-soon-maintenance .table-wrapper th{width:140px}.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{width:calc(50% - 1em - 5px)}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:1em}}@media screen and (max-width:782px){.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}.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}.cmp-coming-soon-maintenance #font-example-wrapper{min-height:24em}}@media screen and (max-width:560px){.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:50px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:105px}.cmp-coming-soon-maintenance .social-inputs p i{top:22px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{top:28px;left:53px}.cmp-coming-soon-maintenance .social-inputs label{padding-left:55px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
|
inc/class-cmp-render_html.php
CHANGED
@@ -12,9 +12,9 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
12 |
$size = $this->isMobile() ? 'large' : 'full';
|
13 |
$html = '';
|
14 |
|
15 |
-
// change background
|
16 |
if ( isset( $_GET['background'] ) && !empty($_GET['background']) ) {
|
17 |
-
$niteoCS_banner = esc_attr(
|
18 |
}
|
19 |
|
20 |
switch ( $niteoCS_banner ) {
|
@@ -226,6 +226,12 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
226 |
// render slider
|
227 |
public function cmp_slider( $themeslug ) {
|
228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
$niteoCS_banner = get_option('niteoCS_banner', '1');
|
230 |
$slider_count = get_option('niteoCS_slider_count', '3');
|
231 |
$slider_effect = get_option('niteoCS_slider_effect', 'true');
|
@@ -1226,6 +1232,8 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1226 |
**/
|
1227 |
public function cmp_head_scripts() {
|
1228 |
|
|
|
|
|
1229 |
do_action('cmp-before-header-scripts');
|
1230 |
|
1231 |
$head_scripts = json_decode( get_option('niteoCS_head_scripts', '[]'), true );
|
@@ -1651,6 +1659,8 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1651 |
|
1652 |
do_action('cmp-after-footer-scripts');
|
1653 |
|
|
|
|
|
1654 |
// render nt&cmp notes
|
1655 |
echo $this->cmp_render_nt_info();
|
1656 |
|
@@ -1719,4 +1729,125 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1719 |
|
1720 |
return $banner_ids;
|
1721 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1722 |
}
|
12 |
$size = $this->isMobile() ? 'large' : 'full';
|
13 |
$html = '';
|
14 |
|
15 |
+
// change background if preview is set
|
16 |
if ( isset( $_GET['background'] ) && !empty($_GET['background']) ) {
|
17 |
+
$niteoCS_banner = $_GET['background'] == '1' ? 0 : esc_attr($_GET['background']);
|
18 |
}
|
19 |
|
20 |
switch ( $niteoCS_banner ) {
|
226 |
// render slider
|
227 |
public function cmp_slider( $themeslug ) {
|
228 |
|
229 |
+
// change background if preview is set
|
230 |
+
if ( isset( $_GET['background'] ) && $_GET['background'] !== '1' ) {
|
231 |
+
echo $this->cmp_background( $_GET['background'], $themeslug );
|
232 |
+
return;
|
233 |
+
}
|
234 |
+
|
235 |
$niteoCS_banner = get_option('niteoCS_banner', '1');
|
236 |
$slider_count = get_option('niteoCS_slider_count', '3');
|
237 |
$slider_effect = get_option('niteoCS_slider_effect', 'true');
|
1232 |
**/
|
1233 |
public function cmp_head_scripts() {
|
1234 |
|
1235 |
+
$this->cmp_wp_head();
|
1236 |
+
|
1237 |
do_action('cmp-before-header-scripts');
|
1238 |
|
1239 |
$head_scripts = json_decode( get_option('niteoCS_head_scripts', '[]'), true );
|
1659 |
|
1660 |
do_action('cmp-after-footer-scripts');
|
1661 |
|
1662 |
+
$this->cmp_wp_footer();
|
1663 |
+
|
1664 |
// render nt&cmp notes
|
1665 |
echo $this->cmp_render_nt_info();
|
1666 |
|
1729 |
|
1730 |
return $banner_ids;
|
1731 |
}
|
1732 |
+
|
1733 |
+
/**
|
1734 |
+
* filter wp_head and wp_footer and return whitelisted hooks
|
1735 |
+
*
|
1736 |
+
* @since 3.5.6
|
1737 |
+
* @return array
|
1738 |
+
**/
|
1739 |
+
public function cmp_filter_head_scripts_and_styles( $allowed, $in_footer ) {
|
1740 |
+
|
1741 |
+
// we must fake wp_head to actually get all scripts and styles
|
1742 |
+
ob_start();
|
1743 |
+
wp_head();
|
1744 |
+
ob_end_clean();
|
1745 |
+
|
1746 |
+
$handles = array();
|
1747 |
+
$handles['scripts'] = array();
|
1748 |
+
$handles['styles'] = array();
|
1749 |
+
|
1750 |
+
// Print all loaded Scripts
|
1751 |
+
global $wp_scripts;
|
1752 |
+
global $wp_styles;
|
1753 |
+
|
1754 |
+
// get scripts
|
1755 |
+
foreach( $allowed['scripts'] as $handle ) :
|
1756 |
+
|
1757 |
+
if ( !$in_footer ) {
|
1758 |
+
if ( in_array( $handle, $wp_scripts->groups ) && isset($wp_scripts->registered[$handle]) ) {
|
1759 |
+
$handles['scripts'][] = $wp_scripts->registered[$handle]->src;
|
1760 |
+
}
|
1761 |
+
} else {
|
1762 |
+
if ( in_array( $handle, $wp_scripts->groups ) && in_array( $handle, $wp_scripts->in_footer ) && isset($wp_scripts->registered[$handle]) ) {
|
1763 |
+
$handles['scripts'][] = $wp_scripts->registered[$handle]->src;
|
1764 |
+
}
|
1765 |
+
}
|
1766 |
+
|
1767 |
+
endforeach;
|
1768 |
+
|
1769 |
+
// get_styles
|
1770 |
+
foreach( $wp_styles->queue as $style ) :
|
1771 |
+
if ( in_array( $wp_styles->registered[$style]->handle, $allowed['styles'] ) ) {
|
1772 |
+
$handles['styles'][] = $wp_styles->registered[$style]->src;
|
1773 |
+
}
|
1774 |
+
endforeach;
|
1775 |
+
|
1776 |
+
return $handles;
|
1777 |
+
|
1778 |
+
}
|
1779 |
+
|
1780 |
+
/**
|
1781 |
+
* print whitelisted scripts and styles to cmp_head
|
1782 |
+
*
|
1783 |
+
* @since 3.5.6
|
1784 |
+
* @return html
|
1785 |
+
**/
|
1786 |
+
public function cmp_wp_head() {
|
1787 |
+
|
1788 |
+
$handles_allowed = array(
|
1789 |
+
'scripts' => array(
|
1790 |
+
),
|
1791 |
+
'styles' => array(
|
1792 |
+
)
|
1793 |
+
);
|
1794 |
+
|
1795 |
+
$handles_src = $this->cmp_filter_head_scripts_and_styles( $handles_allowed, false );
|
1796 |
+
|
1797 |
+
foreach ( $handles_src['scripts'] as $src ) {
|
1798 |
+
echo '<script src="' . esc_url( $src ) . '"></script>' . PHP_EOL;
|
1799 |
+
}
|
1800 |
+
|
1801 |
+
foreach ( $handles_src['styles'] as $src ) {
|
1802 |
+
echo '<link href="' . esc_url( $src ). '" rel="stylesheet">' . PHP_EOL;
|
1803 |
+
}
|
1804 |
+
|
1805 |
+
// handle actions added by allowed plugins in wp_head
|
1806 |
+
|
1807 |
+
// Plugin Name: Insert Headers and Footers
|
1808 |
+
if ( class_exists('InsertHeadersAndFooters') ) {
|
1809 |
+
$ihaf = new InsertHeadersAndFooters();
|
1810 |
+
$ihaf->frontendHeader();
|
1811 |
+
}
|
1812 |
+
|
1813 |
+
}
|
1814 |
+
|
1815 |
+
/**
|
1816 |
+
* filtered wp_footer for CMP
|
1817 |
+
*
|
1818 |
+
* @since 3.5.6
|
1819 |
+
* @return html
|
1820 |
+
**/
|
1821 |
+
public function cmp_wp_footer() {
|
1822 |
+
|
1823 |
+
$handles_allowed = array(
|
1824 |
+
'scripts' => array(
|
1825 |
+
'simpleanalytics_script'
|
1826 |
+
),
|
1827 |
+
'styles' => array(
|
1828 |
+
|
1829 |
+
)
|
1830 |
+
);
|
1831 |
+
|
1832 |
+
$handles_src = $this->cmp_filter_head_scripts_and_styles( $handles_allowed, true );
|
1833 |
+
|
1834 |
+
foreach ( $handles_src['scripts'] as $src ) {
|
1835 |
+
echo '<script src="' . esc_url( $src ). '"></script>' . PHP_EOL;
|
1836 |
+
}
|
1837 |
+
|
1838 |
+
|
1839 |
+
foreach ( $handles_src['styles'] as $src ) {
|
1840 |
+
echo '<link href="' . esc_url( $src ). '" rel="stylesheet">' . PHP_EOL;
|
1841 |
+
}
|
1842 |
+
|
1843 |
+
|
1844 |
+
// handle actions added by allowed plugins in wp_footer
|
1845 |
+
// Plugin Name: Insert Headers and Footers
|
1846 |
+
if ( class_exists('InsertHeadersAndFooters') ) {
|
1847 |
+
$ihaf = new InsertHeadersAndFooters();
|
1848 |
+
$ihaf->frontendFooter();
|
1849 |
+
}
|
1850 |
+
|
1851 |
+
}
|
1852 |
+
|
1853 |
}
|
inc/class-cmp-render_settings.php
CHANGED
@@ -26,13 +26,15 @@ if ( ! class_exists( 'cmp_render_settings' ) ) {
|
|
26 |
*
|
27 |
* @since 2.4
|
28 |
*/
|
29 |
-
public function submit() {
|
|
|
|
|
30 |
|
31 |
ob_start(); ?>
|
32 |
|
33 |
<tr><th>
|
34 |
<p class="cmp-submit">
|
35 |
-
<input type="submit" name="submit" class="button cmp-button submit" value="<?php
|
36 |
</p>
|
37 |
</th></tr>
|
38 |
|
26 |
*
|
27 |
* @since 2.4
|
28 |
*/
|
29 |
+
public function submit( $value = false ) {
|
30 |
+
|
31 |
+
$value = ( $value === false ) ? __('Save All Changes', 'cmp-coming-soon-maintenance') : $value;
|
32 |
|
33 |
ob_start(); ?>
|
34 |
|
35 |
<tr><th>
|
36 |
<p class="cmp-submit">
|
37 |
+
<input type="submit" name="submit" class="button cmp-button submit" value="<?php echo esc_attr( $value ); ?>" form="csoptions"/>
|
38 |
</p>
|
39 |
</th></tr>
|
40 |
|
inc/class-cmp-subscribers.php
CHANGED
@@ -27,11 +27,11 @@ class cmp_subs_list_table extends WP_List_Table {
|
|
27 |
$hidden = $this->get_hidden_columns();
|
28 |
$sortable = $this->get_sortable_columns();
|
29 |
$this->process_bulk_action();
|
30 |
-
$data = $this->table_data();
|
31 |
-
|
32 |
$perPage = 20;
|
33 |
$currentPage = $this->get_pagenum();
|
34 |
-
$totalItems = count($data);
|
|
|
35 |
$this->set_pagination_args( array(
|
36 |
'total_items' => $totalItems,
|
37 |
'per_page' => $perPage
|
27 |
$hidden = $this->get_hidden_columns();
|
28 |
$sortable = $this->get_sortable_columns();
|
29 |
$this->process_bulk_action();
|
30 |
+
$data = $this->table_data();
|
|
|
31 |
$perPage = 20;
|
32 |
$currentPage = $this->get_pagenum();
|
33 |
+
$totalItems = is_array($data) ? count($data) : 0;
|
34 |
+
|
35 |
$this->set_pagination_args( array(
|
36 |
'total_items' => $totalItems,
|
37 |
'per_page' => $perPage
|
inc/settings/settings-theme-selector.php
CHANGED
@@ -113,7 +113,7 @@ if ( !empty( $downloadable_themes ) ) { ?>
|
|
113 |
|
114 |
<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>
|
115 |
|
116 |
-
<a href="<?php echo 'https://niteothemes.com/cmp-coming-soon-maintenance/?theme='.$theme_slug.'&utm_source=cmp&utm_medium=referral&utm_campaign='.$theme_slug
|
117 |
|
118 |
<button type="button" class="theme-details button hide"><i class="fa fa-eye" aria-hidden="true"></i><?php _e('DETAILS', 'cmp-coming-soon-maintenance');?></button>
|
119 |
|
113 |
|
114 |
<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>
|
115 |
|
116 |
+
<a href="<?php echo 'https://niteothemes.com/cmp-coming-soon-maintenance/?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>
|
117 |
|
118 |
<button type="button" class="theme-details button hide"><i class="fa fa-eye" aria-hidden="true"></i><?php _e('DETAILS', 'cmp-coming-soon-maintenance');?></button>
|
119 |
|
js/cmp-advanced.js
ADDED
@@ -0,0 +1,232 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function($) {
|
2 |
+
|
3 |
+
var tab = document.location.hash.substring(1);
|
4 |
+
var action = jQuery("#csoptions").attr("action");
|
5 |
+
var importing = false;
|
6 |
+
|
7 |
+
// function to tab navigation
|
8 |
+
navtab = function(tab) {
|
9 |
+
jQuery(
|
10 |
+
".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab"
|
11 |
+
).removeClass("nav-tab-active");
|
12 |
+
|
13 |
+
jQuery('.nav-tab-wrapper .nav-tab[data-tab="' + tab + '"]').addClass("nav-tab-active");
|
14 |
+
|
15 |
+
jQuery(".cmp-coming-soon-maintenance .table-wrapper." + tab).css(
|
16 |
+
"display",
|
17 |
+
"block"
|
18 |
+
);
|
19 |
+
jQuery(".cmp-coming-soon-maintenance .table-wrapper-css." + tab).css(
|
20 |
+
"display",
|
21 |
+
"block"
|
22 |
+
);
|
23 |
+
jQuery(".cmp-coming-soon-maintenance .comingsoon." + tab).css(
|
24 |
+
"display",
|
25 |
+
"block"
|
26 |
+
);
|
27 |
+
|
28 |
+
jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(." + tab + ")").css(
|
29 |
+
"display",
|
30 |
+
"none"
|
31 |
+
);
|
32 |
+
jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(." + tab).css(
|
33 |
+
"display",
|
34 |
+
"none"
|
35 |
+
);
|
36 |
+
jQuery(".cmp-coming-soon-maintenance .comingsoon:not(." + tab + ")").css(
|
37 |
+
"display",
|
38 |
+
"none"
|
39 |
+
);
|
40 |
+
|
41 |
+
if (tab == "install") {
|
42 |
+
jQuery(".cmp-coming-soon-maintenance .submit").css("display", "none");
|
43 |
+
jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action", action);
|
44 |
+
} else {
|
45 |
+
jQuery(".cmp-coming-soon-maintenance .submit").css("display", "block");
|
46 |
+
// change form action to display current tab after save
|
47 |
+
jQuery(".cmp-coming-soon-maintenance #csoptions").attr(
|
48 |
+
"action",
|
49 |
+
action + "#" + tab
|
50 |
+
);
|
51 |
+
}
|
52 |
+
};
|
53 |
+
|
54 |
+
if (tab != "") {
|
55 |
+
navtab(tab);
|
56 |
+
} else {
|
57 |
+
jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css(
|
58 |
+
"display",
|
59 |
+
"none"
|
60 |
+
);
|
61 |
+
}
|
62 |
+
|
63 |
+
window.onhashchange = function() {
|
64 |
+
tab = document.location.hash.substring(1);
|
65 |
+
navtab(tab);
|
66 |
+
};
|
67 |
+
|
68 |
+
toggle_settings('page-whitelist');
|
69 |
+
toggle_settings('cmp-bypass');
|
70 |
+
toggle_settings('cmp-topbar-icon');
|
71 |
+
cmp_repeat_fields('head_scripts');
|
72 |
+
cmp_repeat_fields('footer_scripts');
|
73 |
+
|
74 |
+
// upload json file button
|
75 |
+
jQuery('#cmp-import-json').on('change', function(e) {
|
76 |
+
// change label
|
77 |
+
jQuery('.import-json-label').attr('data-default', e.target.files[0].name);
|
78 |
+
|
79 |
+
var reader = new FileReader();
|
80 |
+
reader.onload = function(e) {
|
81 |
+
jQuery('#cmp-import-input').val(e.target.result);
|
82 |
+
}
|
83 |
+
|
84 |
+
reader.readAsText(e.target.files[0]);
|
85 |
+
|
86 |
+
// enable import button
|
87 |
+
$('#cmp-import-settings').attr('disabled', false);
|
88 |
+
jQuery('.import-json-label').removeClass('import-fail');
|
89 |
+
|
90 |
+
importing = false;
|
91 |
+
});
|
92 |
+
|
93 |
+
// export button ajax call
|
94 |
+
jQuery('#cmp-export-json').click(function(e){
|
95 |
+
e.preventDefault();
|
96 |
+
|
97 |
+
var data = {
|
98 |
+
action: "cmp_ajax_export_settings",
|
99 |
+
security: jQuery(this).data('security'),
|
100 |
+
};
|
101 |
+
|
102 |
+
jQuery.post(ajaxurl, data, function(response) {
|
103 |
+
if( response ) {
|
104 |
+
jQuery('<iframe />').attr('src', ajaxurl + '?action=cmp_ajax_export_settings&security=' + jQuery('#cmp-export-json').data('security')).appendTo('body').hide();
|
105 |
+
}
|
106 |
+
});
|
107 |
+
});
|
108 |
+
|
109 |
+
// import button ajax call
|
110 |
+
jQuery('#cmp-import-settings').click(function(e){
|
111 |
+
|
112 |
+
e.preventDefault();
|
113 |
+
|
114 |
+
if ( importing === true ) {
|
115 |
+
return false;
|
116 |
+
}
|
117 |
+
|
118 |
+
var json = jQuery('#cmp-import-input').val();
|
119 |
+
var $label = jQuery('.import-json-label');
|
120 |
+
|
121 |
+
// remove settings keys with media if no media import
|
122 |
+
if ( !jQuery('#cmp-import-media').is(':checked') ) {
|
123 |
+
|
124 |
+
var settings = new Array('niteoCS_banner_id', 'niteoCS_logo_id', 'niteoCS_seo_img_id');
|
125 |
+
|
126 |
+
json = jQuery.parseJSON(json);
|
127 |
+
|
128 |
+
json.map(function(value, index) {
|
129 |
+
for ( var key in value ) {
|
130 |
+
if (settings.indexOf(key) > -1) {
|
131 |
+
json.splice(index, 1);
|
132 |
+
}
|
133 |
+
|
134 |
+
}
|
135 |
+
});
|
136 |
+
|
137 |
+
json = JSON.stringify(json);
|
138 |
+
|
139 |
+
}
|
140 |
+
|
141 |
+
var data = {
|
142 |
+
action: "cmp_ajax_import_settings",
|
143 |
+
security: jQuery(this).data('security'),
|
144 |
+
json: json
|
145 |
+
};
|
146 |
+
|
147 |
+
importing = true;
|
148 |
+
|
149 |
+
var ajaxTime= new Date().getTime();
|
150 |
+
|
151 |
+
// change label
|
152 |
+
$label.html('<i class="fa fa-cog fa-spin" aria-hidden="true"></i> importing..');
|
153 |
+
$label.attr('data-default', '');
|
154 |
+
|
155 |
+
jQuery.post(ajaxurl, data, function(response) {
|
156 |
+
|
157 |
+
if ( response ) {
|
158 |
+
var totalTime = new Date().getTime() - ajaxTime;
|
159 |
+
var result = jQuery.parseJSON(response);
|
160 |
+
|
161 |
+
if ( totalTime > 2000 ) {
|
162 |
+
if ( result.result == 'success' ) {
|
163 |
+
$label.addClass('import-success');
|
164 |
+
} else {
|
165 |
+
$label.addClass('import-fail');
|
166 |
+
}
|
167 |
+
|
168 |
+
$label.html('');
|
169 |
+
$label.attr('data-default', result.message);
|
170 |
+
|
171 |
+
} else {
|
172 |
+
setTimeout(function(){
|
173 |
+
|
174 |
+
if ( result.result == 'success' ) {
|
175 |
+
$label.addClass('import-success');
|
176 |
+
} else {
|
177 |
+
$label.addClass('import-fail');
|
178 |
+
}
|
179 |
+
|
180 |
+
$label.html('');
|
181 |
+
$label.attr('data-default', result.message);
|
182 |
+
}, 2000 - totalTime);
|
183 |
+
}
|
184 |
+
|
185 |
+
}
|
186 |
+
});
|
187 |
+
});
|
188 |
+
|
189 |
+
function toggle_settings ( classname ) {
|
190 |
+
jQuery('.'+classname).change(function() {
|
191 |
+
var value = jQuery('.'+classname+':checked' ).val();
|
192 |
+
value = ( jQuery.isNumeric(value) ) ? 'x'+value : value;
|
193 |
+
|
194 |
+
jQuery('.'+classname+'-switch.'+value).css('display','block');
|
195 |
+
jQuery('.'+classname+'-switch:not(.'+value+')').css('display','none');
|
196 |
+
});
|
197 |
+
|
198 |
+
jQuery('.'+classname).first().trigger('change');
|
199 |
+
}
|
200 |
+
|
201 |
+
jQuery('.cmp-whitelist-select, .cmp-blacklist, .cmp-user_roles').select2({
|
202 |
+
width: 'calc(100% - 1em)',
|
203 |
+
placeholder: 'Click to select..',
|
204 |
+
});
|
205 |
+
|
206 |
+
function cmp_repeat_fields( field_id ) {
|
207 |
+
jQuery('#add-' + field_id).click(function(e){
|
208 |
+
e.preventDefault();
|
209 |
+
var $wrapper = jQuery('#wrapper-' + field_id);
|
210 |
+
var $target = jQuery('#wrapper-' + field_id + ' .target-repeater-fields');
|
211 |
+
var $fields = $wrapper.find('.source-repeater-fields').children().clone();
|
212 |
+
$($fields[0]).val('');
|
213 |
+
$($target).append($fields);
|
214 |
+
});
|
215 |
+
|
216 |
+
cmp_delete_field( field_id );
|
217 |
+
}
|
218 |
+
|
219 |
+
function cmp_delete_field( field_id ) {
|
220 |
+
jQuery('#wrapper-' + field_id + ' .target-repeater-fields' ).on('click', 'a[href=#delete-' + field_id + ']', function(e){
|
221 |
+
e.preventDefault();
|
222 |
+
$(this).prev().remove();
|
223 |
+
$(this).remove();
|
224 |
+
});
|
225 |
+
|
226 |
+
jQuery('#wrapper-' + field_id + ' .source-repeater-fields' ).on('click', 'a[href=#delete-' + field_id + ']', function(e){
|
227 |
+
e.preventDefault();
|
228 |
+
$(this).prev().val('');
|
229 |
+
});
|
230 |
+
}
|
231 |
+
});
|
232 |
+
|
js/cmp-advanced.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
jQuery(document).ready(function(s){var e=document.location.hash.substring(1),a=jQuery("#csoptions").attr("action"),t=!1;function n(a){jQuery("."+a).change(function(){var e=jQuery("."+a+":checked").val();e=jQuery.isNumeric(e)?"x"+e:e,jQuery("."+a+"-switch."+e).css("display","block"),jQuery("."+a+"-switch:not(."+e+")").css("display","none")}),jQuery("."+a).first().trigger("change")}function r(r){jQuery("#add-"+r).click(function(e){e.preventDefault();var a=jQuery("#wrapper-"+r),t=jQuery("#wrapper-"+r+" .target-repeater-fields"),n=a.find(".source-repeater-fields").children().clone();s(n[0]).val(""),s(t).append(n)}),function(e){jQuery("#wrapper-"+e+" .target-repeater-fields").on("click","a[href=#delete-"+e+"]",function(e){e.preventDefault(),s(this).prev().remove(),s(this).remove()}),jQuery("#wrapper-"+e+" .source-repeater-fields").on("click","a[href=#delete-"+e+"]",function(e){e.preventDefault(),s(this).prev().val("")})}(r)}navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery('.nav-tab-wrapper .nav-tab[data-tab="'+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))},""!=e?navtab(e):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){e=document.location.hash.substring(1),navtab(e)},n("page-whitelist"),n("cmp-bypass"),n("cmp-topbar-icon"),r("head_scripts"),r("footer_scripts"),jQuery("#cmp-import-json").on("change",function(e){jQuery(".import-json-label").attr("data-default",e.target.files[0].name);var a=new FileReader;a.onload=function(e){jQuery("#cmp-import-input").val(e.target.result)},a.readAsText(e.target.files[0]),s("#cmp-import-settings").attr("disabled",!1),jQuery(".import-json-label").removeClass("import-fail"),t=!1}),jQuery("#cmp-export-json").click(function(e){e.preventDefault();var a={action:"cmp_ajax_export_settings",security:jQuery(this).data("security")};jQuery.post(ajaxurl,a,function(e){e&&jQuery("<iframe />").attr("src",ajaxurl+"?action=cmp_ajax_export_settings&security="+jQuery("#cmp-export-json").data("security")).appendTo("body").hide()})}),jQuery("#cmp-import-settings").click(function(e){if(e.preventDefault(),!0===t)return!1;var n=jQuery("#cmp-import-input").val(),r=jQuery(".import-json-label");if(!jQuery("#cmp-import-media").is(":checked")){var s=new Array("niteoCS_banner_id","niteoCS_logo_id","niteoCS_seo_img_id");(n=jQuery.parseJSON(n)).map(function(e,a){for(var t in e)-1<s.indexOf(t)&&n.splice(a,1)}),n=JSON.stringify(n)}var a={action:"cmp_ajax_import_settings",security:jQuery(this).data("security"),json:n};t=!0;var i=(new Date).getTime();r.html('<i class="fa fa-cog fa-spin" aria-hidden="true"></i> importing..'),r.attr("data-default",""),jQuery.post(ajaxurl,a,function(e){if(e){var a=(new Date).getTime()-i,t=jQuery.parseJSON(e);2e3<a?("success"==t.result?r.addClass("import-success"):r.addClass("import-fail"),r.html(""),r.attr("data-default",t.message)):setTimeout(function(){"success"==t.result?r.addClass("import-success"):r.addClass("import-fail"),r.html(""),r.attr("data-default",t.message)},2e3-a)}})}),jQuery(".cmp-whitelist-select, .cmp-blacklist, .cmp-user_roles").select2({width:"calc(100% - 1em)",placeholder:"Click to select.."})});
|
js/settings.js
CHANGED
@@ -876,21 +876,6 @@ jQuery(document).ready(function($) {
|
|
876 |
);
|
877 |
}
|
878 |
|
879 |
-
// theme update admin notice view release notes
|
880 |
-
// jQuery('.cmp-coming-soon-maintenance .view-release').click(function(e) {
|
881 |
-
// e.preventDefault();
|
882 |
-
// $this = jQuery(this);
|
883 |
-
// var release_url = $this.attr('href');
|
884 |
-
|
885 |
-
// jQuery.get(release_url, function( release ) {
|
886 |
-
// $this.closest('.notice').find('.release-note .notes').remove();
|
887 |
-
// $this.closest('.notice').find('.release-note').append('<div class="notes">'+release+'</div>');
|
888 |
-
|
889 |
-
// }).fail(function() {
|
890 |
-
// $this.closest('.notice').find('.release-note p').remove();
|
891 |
-
// $this.closest('.notice').find('.release-note').append('<p>There was an error loading release notes. Please try again later.</p>');
|
892 |
-
// });
|
893 |
-
// });
|
894 |
|
895 |
// theme update via admin notice
|
896 |
jQuery(".cmp.update-theme").click(function(e) {
|
@@ -1018,13 +1003,8 @@ jQuery(document).ready(function($) {
|
|
1018 |
$wrapper = $this.closest(".theme-wrapper"),
|
1019 |
slug = $wrapper.data("slug"),
|
1020 |
version = $wrapper.data("version"),
|
1021 |
-
remoteUrl = $wrapper.data("remote_url"),
|
1022 |
type = $wrapper.data("type"),
|
1023 |
purchased = $wrapper.data("purchased"),
|
1024 |
-
freebie = $wrapper.data("freebie"),
|
1025 |
-
noticeHtml = "",
|
1026 |
-
security = jQuery(".update-theme").data("security"),
|
1027 |
-
price = $wrapper.data("price"),
|
1028 |
i = 0;
|
1029 |
|
1030 |
var data = {
|
@@ -1049,37 +1029,7 @@ jQuery(document).ready(function($) {
|
|
1049 |
|
1050 |
// if installed display version info
|
1051 |
if (purchased == "1") {
|
1052 |
-
versionInfo =
|
1053 |
-
'<span class="theme-version">Version: ' + version + "</span>";
|
1054 |
-
noticeHtml =
|
1055 |
-
'<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>';
|
1056 |
-
if (jQuery(".update-theme").length) {
|
1057 |
-
var updateSlug = jQuery(".update-theme").data("slug");
|
1058 |
-
|
1059 |
-
if (slug == updateSlug) {
|
1060 |
-
var newVer = jQuery(".update-theme").data("new_ver");
|
1061 |
-
noticeHtml =
|
1062 |
-
'<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 ' +
|
1063 |
-
response["name"] +
|
1064 |
-
' theme available. <a href="' +
|
1065 |
-
remoteUrl +
|
1066 |
-
"readme/" +
|
1067 |
-
slug +
|
1068 |
-
'-readme.php" class="view-release">View update ' +
|
1069 |
-
newVer +
|
1070 |
-
' notes</a> or <a href="' +
|
1071 |
-
window.location.href +
|
1072 |
-
"&action=update-cmp-theme&theme=" +
|
1073 |
-
slug +
|
1074 |
-
'" class="update-theme" data-security="' +
|
1075 |
-
security +
|
1076 |
-
'" data-slug="' +
|
1077 |
-
slug +
|
1078 |
-
'" data-remote_url="' +
|
1079 |
-
remoteUrl +
|
1080 |
-
'">Update now.</a></strong></p><div class="release-note"></div></div>';
|
1081 |
-
}
|
1082 |
-
}
|
1083 |
}
|
1084 |
|
1085 |
// if premium and not installed, display buy button
|
@@ -1135,12 +1085,13 @@ jQuery(document).ready(function($) {
|
|
1135 |
" </div>",
|
1136 |
" </div>",
|
1137 |
' <div class="theme-actions">',
|
1138 |
-
' <
|
1139 |
-
|
1140 |
-
|
|
|
|
|
1141 |
response["name"] +
|
1142 |
-
'">
|
1143 |
-
' <a href="https://niteothemes.com/cmp-coming-soon-maintenance/?theme=' +slug + '&utm_source=cmp&utm_medium=referral" class="button cmp-preview" target="_blank" aria-label="Preview ' + response["name"] + '">Live Preview</a>',
|
1144 |
" </div>",
|
1145 |
" </div>",
|
1146 |
"</div>"
|
@@ -1150,36 +1101,6 @@ jQuery(document).ready(function($) {
|
|
1150 |
// append html to overlay
|
1151 |
jQuery(".theme-overlay.cmp").append(html);
|
1152 |
|
1153 |
-
// attach view-release handler
|
1154 |
-
jQuery(".theme-overlay.cmp .view-release").click(function(e) {
|
1155 |
-
e.preventDefault();
|
1156 |
-
$this = jQuery(this);
|
1157 |
-
var release_url = $this.attr("href");
|
1158 |
-
jQuery
|
1159 |
-
.get(release_url, function(release) {
|
1160 |
-
$this
|
1161 |
-
.closest(".notice")
|
1162 |
-
.find(".release-note .notes")
|
1163 |
-
.remove();
|
1164 |
-
$this
|
1165 |
-
.closest(".notice")
|
1166 |
-
.find(".release-note")
|
1167 |
-
.append('<div class="notes">' + release + "</div>");
|
1168 |
-
})
|
1169 |
-
.fail(function() {
|
1170 |
-
$this
|
1171 |
-
.closest(".notice")
|
1172 |
-
.find(".release-note p")
|
1173 |
-
.remove();
|
1174 |
-
$this
|
1175 |
-
.closest(".notice")
|
1176 |
-
.find(".release-note")
|
1177 |
-
.append(
|
1178 |
-
"<p>There was an error loading release notes. Please try again later.</p>"
|
1179 |
-
);
|
1180 |
-
});
|
1181 |
-
});
|
1182 |
-
|
1183 |
// attach close button handler
|
1184 |
jQuery(".theme-overlay.cmp .close").click(function(e) {
|
1185 |
e.preventDefault();
|
@@ -1188,25 +1109,6 @@ jQuery(document).ready(function($) {
|
|
1188 |
jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast");
|
1189 |
});
|
1190 |
|
1191 |
-
// attach select theme handler
|
1192 |
-
jQuery(".theme-overlay.cmp .activate").click(function(e) {
|
1193 |
-
e.preventDefault();
|
1194 |
-
// select theme
|
1195 |
-
jQuery(
|
1196 |
-
'.cmp-coming-soon-maintenance input[name="niteoCS_select_theme"]'
|
1197 |
-
).each(function() {
|
1198 |
-
if (jQuery(this).val() == slug) {
|
1199 |
-
jQuery(this).prop("checked", true);
|
1200 |
-
jQuery(".theme-select").removeClass("selected");
|
1201 |
-
jQuery(this)
|
1202 |
-
.parent()
|
1203 |
-
.addClass("selected");
|
1204 |
-
}
|
1205 |
-
});
|
1206 |
-
|
1207 |
-
jQuery(this).submit();
|
1208 |
-
});
|
1209 |
-
|
1210 |
// attach arrows navigation handler
|
1211 |
jQuery(".screenshots-nav .right").click(function() {
|
1212 |
i++;
|
@@ -1242,17 +1144,6 @@ jQuery(document).ready(function($) {
|
|
1242 |
});
|
1243 |
});
|
1244 |
|
1245 |
-
// define functions //
|
1246 |
-
function ucwords(str) {
|
1247 |
-
return (str + "").replace(/^([a-z])|\s+([a-z])/g, function($1) {
|
1248 |
-
return $1.toUpperCase();
|
1249 |
-
});
|
1250 |
-
}
|
1251 |
-
|
1252 |
-
function strtolower(str) {
|
1253 |
-
return (str + "").toLowerCase();
|
1254 |
-
}
|
1255 |
-
|
1256 |
function media_upload_button(name, multiple, type, element) {
|
1257 |
// define var
|
1258 |
var $container = jQuery("." + name + "-wrapper");
|
876 |
);
|
877 |
}
|
878 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
879 |
|
880 |
// theme update via admin notice
|
881 |
jQuery(".cmp.update-theme").click(function(e) {
|
1003 |
$wrapper = $this.closest(".theme-wrapper"),
|
1004 |
slug = $wrapper.data("slug"),
|
1005 |
version = $wrapper.data("version"),
|
|
|
1006 |
type = $wrapper.data("type"),
|
1007 |
purchased = $wrapper.data("purchased"),
|
|
|
|
|
|
|
|
|
1008 |
i = 0;
|
1009 |
|
1010 |
var data = {
|
1029 |
|
1030 |
// if installed display version info
|
1031 |
if (purchased == "1") {
|
1032 |
+
versionInfo = '<span class="theme-version">Installed version: ' + version + "</span>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1033 |
}
|
1034 |
|
1035 |
// if premium and not installed, display buy button
|
1085 |
" </div>",
|
1086 |
" </div>",
|
1087 |
' <div class="theme-actions">',
|
1088 |
+
' <a href="https://niteothemes.com/cmp-coming-soon-maintenance/?theme=' +
|
1089 |
+
slug +
|
1090 |
+
"&utm_source=cmp&utm_medium=referral&utm_campaign=" +
|
1091 |
+
slug +
|
1092 |
+
'" class="button cmp-preview" target="_blank" aria-label="Preview ' +
|
1093 |
response["name"] +
|
1094 |
+
'">Live Preview</a>',
|
|
|
1095 |
" </div>",
|
1096 |
" </div>",
|
1097 |
"</div>"
|
1101 |
// append html to overlay
|
1102 |
jQuery(".theme-overlay.cmp").append(html);
|
1103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1104 |
// attach close button handler
|
1105 |
jQuery(".theme-overlay.cmp .close").click(function(e) {
|
1106 |
e.preventDefault();
|
1109 |
jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast");
|
1110 |
});
|
1111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1112 |
// attach arrows navigation handler
|
1113 |
jQuery(".screenshots-nav .right").click(function() {
|
1114 |
i++;
|
1144 |
});
|
1145 |
});
|
1146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1147 |
function media_upload_button(name, multiple, type, element) {
|
1148 |
// define var
|
1149 |
var $container = jQuery("." + name + "-wrapper");
|
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}),p(".cmp-coming-soon-maintenance .blur-range","span","html"),p(".cmp-coming-soon-maintenance .background-overlay-opacity","span","html"),p("#logo_size_slider","#niteoCS_logo_size","val"),p("#niteoCS_logo_size","#logo_size_slider","val"),l("logo",!1,"image","img"),l("favicon",!1,"image","img"),l("seo_img",!1,"image","img"),l("images",!0,"image","img"),l("pattern",!1,"image","background"),l("video-thumb",!1,"image","img"),l("video-local",!1,"video","video"),u("analytics"),u("contact-form"),u("subscribe"),u("background-effect"),u("special-effect"),u("cmp-logo"),u("background-type"),u("counter"),u("overlay-text"),u("cmp-logo-size"),m("counter-action"),m("subscribe-method"),m("background-overlay"),m("banner-video-source"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1,placeholder:"Click to select.."}),jQuery(".cmp-coming-soon-maintenance #cmp-status").click(function(){jQuery(".cmp-coming-soon-maintenance .cmp-status input[type=radio]").prop("disabled",function(e,n){return!n}),jQuery("#cmp-toggle-adminbar").toggleClass("status-1"),jQuery(".cmp-status-pages").fadeToggle()}),jQuery(".cmp-status-pages input[type=radio]").change(function(){jQuery(".cmp-status-pages input[type=radio]").parent().removeClass("active"),jQuery(this).parent().addClass("active")}),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch:not(.disabled)").click(function(){if(0!=jQuery(".cmp-coming-soon-maintenance #cmp-status").prop("checked")){var e=jQuery(this).children("input");e.prop("checked",!0),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch").removeClass("active"),jQuery(this).addClass("active"),e.trigger("change"),"3"==e.val()?jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeIn("fast"):jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeOut("fast")}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper h3").click(function(){jQuery(this).parent().toggleClass("closed")}),jQuery(".cmp-coming-soon-maintenance #test-unsplash").click(function(n){n.preventDefault();var a=jQuery(".cmp-coming-soon-maintenance #unsplash-media"),t=jQuery('.cmp-coming-soon-maintenance .unsplash_banner select[name^="unsplash_feed"] option:selected').val(),i="",o=jQuery(this).data("security");if(0==t){switch(t){case"0":i=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val()}if(3==t||""!=i){var r={feed:t,url:i,feat:"",custom_str:""};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var c={action:"niteo_unsplash",security:o,params:r};e.post(ajaxurl,c,function(e){var n=JSON.parse(e);jQuery("#unsplash_img").remove();var t=setTimeout(function(){jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5e3);if("200"==n.response){if((n=jQuery.parseJSON(n.body))[0])var i=n[0].urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n[0].user.name,r=n[0].user.links.html,c=n[0].links.html,s=n[0].id;else i=n.urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n.user.name,r=n.user.links.html,c=n.links.html,s=n.id;jQuery("<img />",{src:i,id:"unsplash_img"}).one("load",function(){jQuery(this).appendTo(a),jQuery(this).fadeIn(),jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery(".unsplash-id").html('<a href="'+c+'" target="_blank">Photo</a> (ID: '+s+') by <a href="'+r+'" target="_blank">'+o+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a>'),jQuery(".blur-range").trigger("input"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #test-unsplash").prop("disabled",!1),jQuery(".cmp-coming-soon-maintenance #test-unsplash").text("Display Unsplash Photo"),jQuery(".cmp-coming-soon-maintenance #unsplash-media").html("<p>Error "+n.response+': <span style="text-transform:lowercase;">'+JSON.parse(n.body).errors+"</span></p>"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #unsplash_img").remove()}}),videoPreview=function(){if("5"==jQuery(".cmp-coming-soon-maintenance .background-type:checked").val()){var n=e(".cmp-coming-soon-maintenance .banner-video-source").val();if("youtube"==n){var a=e(".cmp-coming-soon-maintenance #niteoCS-youtube-url").val();if(""!=a){var t=a.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);if(t&&11==t[7].length){jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("");var i="https://img.youtube.com/vi/"+t[7]+"/maxresdefault.jpg";jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").append('<img src="'+i+'" alt=""/>'),jQuery(".cmp-coming-soon-maintenance .blur-range").trigger("input")}else jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("")}}if("local"==n){var o=jQuery("#niteoCS-video-local-id").data("url");""!=o&&e(".cmp-coming-soon-maintenance .video-local-wrapper").html('<video width="600" height="400" controls><source src="'+o+'" type="video/mp4">Your browser does not support the video tag.</video>')}}},videoPreview(),jQuery(".cmp-coming-soon-maintenance .background-type").on("change",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").on("keyup",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance .banner-video-source").on("change",function(){videoPreview()});var i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function o(e){switch(e){case"solid-color":jQuery(".thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val());break;case"gradient":jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").trigger("change");break;case"disabled":jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background","none")}}jQuery(".unsplash-feed-"+i).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery(".unsplash-feed-"+i).css("display","block"),jQuery("#test-unsplash").trigger("click")}),1==jQuery("#csoptions .niteoCS_banner:checked").val()&&jQuery("#test-unsplash").trigger("click"),jQuery(".cmp-coming-soon-maintenance select.background-gradient").on("change",function(){var e=jQuery(".cmp-coming-soon-maintenance select.background-gradient option:selected").val();"custom"==e?(jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","block"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})):(colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"}))}).trigger("change"),jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_color").wpColorPicker({change:function(e,n){jQuery(".color-preview").css("background-color",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_one").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_two").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_overlay_color").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css("background",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val()),jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").on("change",function(){var e=jQuery("select.overlay-gradient option:selected").val();if("custom"==e){jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","block");var n=jQuery("#niteoCS_overlay_gradient_one").val(),a=jQuery("#niteoCS_overlay_gradient_two").val();jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"linear-gradient(135deg, "+n+" 0%, "+a+" 100%)"})}else colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"})}),jQuery("#niteoCS_overlay_gradient_one").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)"})}}),jQuery("#niteoCS_overlay_gradient_two").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".background-overlay-opacity").on("input",function(){var e=jQuery(this).val();jQuery(".thumbnail-overlay").css("opacity",e)}).trigger("input"),o(jQuery(".cmp-coming-soon-maintenance .background-overlay").val()),jQuery(".cmp-coming-soon-maintenance .background-overlay").on("change",function(){o(jQuery(this).val())}),jQuery(".cmp-coming-soon-maintenance .blur-range").on("input",function(){var e=jQuery(this).val();jQuery(".cmp-coming-soon-maintenance .background-thumb-wrapper img:not(.no-blur)").css("filter","blur("+e+"px)")}).trigger("input"),jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"]').on("change",function(){var e=jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"] option:selected').val();if("custom"!=e){var n=jQuery(this).data("url");jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","none"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+e+".png')")}else{n=jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_pattern_custom").val();jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","block"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+"')")}}),jQuery(".cmp-coming-soon-maintenance .heading-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .heading-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #heading-example").removeClass().addClass("animated "+heading_anim)}),jQuery(".cmp-coming-soon-maintenance .content-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .content-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #content-example").removeClass().addClass("animated "+heading_anim)});var r=function(n,a,t){var i=e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value");i=e.parseJSON(i),e.each(i,function(e,i){i.name==n&&(i[a]=t)}),e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value",JSON.stringify(i))};if(!/Mobi/.test(navigator.userAgent)){var c=e(".cmp-coming-soon-maintenance .social-inputs"),s=function(n,a){var t=c.find('input[type="text"]');a.item.index();t.each(function(n,a){var t=e(a).data("name");r(t,"order",n)})};c.sortable({stop:s}),c.on("sortchange",s)}function l(e,n,a,t){var i,o=jQuery("."+e+"-wrapper"),r=jQuery("#add-"+e),c=jQuery("#delete-"+e),s="",l=e.replace("-"," ");l=l[0].toUpperCase()+l.slice(1),""!=jQuery("#niteoCS-"+e+"-id").val()&&c.css("display","block"),r.click(function(r){if(r.preventDefault(),u)u.open();else var u=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=u.state().get("selection").toJSON();n.length>0&&(o.find("img").remove(),o.attr("class",e+"-wrapper custom-gallery"),o.addClass("gallery-"+n.length),jQuery(n).each(function(e){switch(i=n[e].sizes&&n[e].sizes.large?n[e].sizes.large.url:n[e].url,s+=(0===e?"":",")+n[e].id,t){case"video":o.append('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>');break;case"background":o.css("background-image","url('"+i+"')");break;case"img":default:n.length>1&&0==e?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):n.length>1&&0!==e?o.append('<img src="'+i+'" alt="" class="no-blur"/>'):o.find(".big-thumb").length?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):o.append('<img src="'+i+'" alt=""/>'),jQuery(".blur-range").trigger("input")}}),c.css("display","block")),jQuery("#niteoCS-"+e+"-id").val(s).trigger("change")}).open()}),c.click(function(n){jQuery(this).css("display","none"),o.find("img").remove(),jQuery("#niteoCS-"+e+"-id").val(""),jQuery("#niteoCS-"+e+"-id").trigger("change")})}function u(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery(".cmp-coming-soon-maintenance ."+e+":checked").val();n=void 0===(n=jQuery.isNumeric(n)?"x"+n:n)?"off":n,jQuery(".cmp-coming-soon-maintenance ."+e+"-switch."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+"-switch:not(."+n+")").css("display","none")}),jQuery(".cmp-coming-soon-maintenance ."+e).first().trigger("change")}function m(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery("."+e).val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+":not(."+n+")").css("display","none")}),jQuery("."+e).first().trigger("change")}function p(e,n,a){jQuery(e).on("input",function(){var e=jQuery(this).val();"html"===a&&jQuery(this).parent().find(n).html(e),"val"===a&&jQuery(this).parent().find(n).val(e)})}!function(e){e.fn.toggleDisabled=function(){return this.each(function(){var n,a=e(this),t=a.data("name");a.attr("disabled")?(a.prop("disabled",!1),n="1"):(a.prop("disabled",!0),n="0"),r(t,"active",n)})}}(jQuery),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="text"]').focusout(function(){var e=jQuery(this).data("name"),n=jQuery(this).attr("value");r(e,"url",n)}),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="checkbox"]').click(function(n){e(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".cmp-coming-soon-maintenance .social-media i").click(function(){var e=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e+" input").trigger("change"),jQuery(this).hasClass("active")?r(e,"hidden","0"):r(e,"hidden","1"),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length?jQuery(".social-inputs .label").css("display","block"):jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","none")}),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length&&jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","block"),jQuery(".cmp.update-theme").click(function(n){n.preventDefault();var a=e(this),t=a.parents(".notice"),i=a.data("security"),o=a.data("slug"),r=a.data("name"),c={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:jQuery(this).data("remote_url")+"?action=download&slug="+o}};t.find(".message").html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'),e.post(ajaxurl,c,function(n){if("success"==(n=n.trim()))setTimeout(function(){t.removeClass("notice-warning").addClass("notice-success"),t.find(".message").html("<span> "+r+' CMP theme was updated sucessfully! You can enjoy latest features now :) </span><i class="fa fa-smile-o" aria-hidden="true"></i>')},1500);else{n=n.slice(0,-1);var a=e("p",e(n)).text();t.removeClass("notice-warning").addClass("notice-error"),t.find(".message").html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+a+"</span>")}})}),jQuery(".cmp-coming-soon-maintenance .theme-select").click(function(){jQuery(this).parent().find('input[name="niteoCS_select_theme"]').prop("checked",!0).trigger("change"),jQuery(".cmp-coming-soon-maintenance .theme-select").removeClass("selected"),jQuery(this).parent().find(".theme-select").addClass("selected")}),jQuery(".cmp-coming-soon-maintenance .theme-update.button").one("click",function(n){n.preventDefault();var a=e(this),t=a.closest(".theme-wrapper"),i=t.data("security"),o=t.data("slug"),r={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:t.data("remote_url")+"?action=download&slug="+o}};a.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>'),e.post(ajaxurl,r,function(e){"success"==e?setTimeout(function(){a.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>'),setTimeout(function(){a.fadeOut()},1500)},1500):(e=e.slice(0,-1),a.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>'))})}),jQuery(".cmp-coming-soon-maintenance .theme-details").click(function(){var n=e(this),a=n.closest(".theme-wrapper"),t=a.data("slug"),i=a.data("version"),o=a.data("remote_url"),r=a.data("type"),c=a.data("purchased"),s=(a.data("freebie"),jQuery(".update-theme").data("security")),l=(a.data("price"),0),u={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};e.post(ajaxurl,u,function(u){var m="",p="",d="",g="";if("true"==(u=jQuery.parseJSON(u)).result){if(jQuery("body").addClass("modal-open"),"1"==c&&(d='<span class="theme-version">Version: '+i+"</span>",g='<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>',jQuery(".update-theme").length)){var y=jQuery(".update-theme").data("slug");if(t==y){var h=jQuery(".update-theme").data("new_ver");g='<div class="notice notice-warning notice-alt notice-large"><h3 class="notice-title">Update Available</h3><p class="message"><strong>There is a new version of '+u.name+' theme available. <a href="'+o+"readme/"+t+'-readme.php" class="view-release">View update '+h+' notes</a> or <a href="'+window.location.href+"&action=update-cmp-theme&theme="+t+'" class="update-theme" data-security="'+s+'" data-slug="'+t+'" data-remote_url="'+o+'">Update now.</a></strong></p><div class="release-note"></div></div>'}}if("1"!=c&&"premium"==r)m="disabled ",p='<button type="button" class="theme-purchase button hide"><a href="'+a.find("a").attr("href")+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';var v=u.screenshots,j="";Object.keys(v).length>1&&(j='<div class="screenshots-nav"><div class="left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div>');var f=e(['<div class="theme-backdrop">','\t<div class="theme-wrap">','\t\t<div class="theme-header">','\t\t\t<button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',"\t\t</div>",'\t\t<div class="theme-about">','\t\t\t<div class="theme-screenshots">','\t\t\t\t<div class="screenshot" style="background-image:url(\''+v[0]+"')\">"+j+"</div>","\t\t\t</div>",'\t\t\t<div class="theme-info">','\t\t\t\t<h2 class="theme-name">'+u.name+d+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+u.author_homepage+'" target="_blank">'+u.author+"</a></p>",g,p,'\t\t\t\t<div class="theme-description">'+u.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<button type="submit" '+m+'class="button activate" name="Submit" aria-label="Select '+u.name+'">Activate</button>','\t\t\t<a href="https://niteothemes.com/cmp-coming-soon-maintenance/?theme='+t+'&utm_source=cmp&utm_medium=referral" class="button cmp-preview" target="_blank" aria-label="Preview '+u.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(f),jQuery(".theme-overlay.cmp .view-release").click(function(e){e.preventDefault();var a=(n=jQuery(this)).attr("href");jQuery.get(a,function(e){n.closest(".notice").find(".release-note .notes").remove(),n.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){n.closest(".notice").find(".release-note p").remove(),n.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".theme-overlay.cmp .close").click(function(e){e.preventDefault(),jQuery("body").removeClass("modal-open"),jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast")}),jQuery(".theme-overlay.cmp .activate").click(function(e){e.preventDefault(),jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_select_theme"]').each(function(){jQuery(this).val()==t&&(jQuery(this).prop("checked",!0),jQuery(".theme-select").removeClass("selected"),jQuery(this).parent().addClass("selected"))}),jQuery(this).submit()}),jQuery(".screenshots-nav .right").click(function(){++l==Object.keys(v).length&&(l=0),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")}),jQuery(".screenshots-nav .left").click(function(){--l<0&&(l=Object.keys(v).length-1),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")})}})}),jQuery(".cmp-coming-soon-maintenance #connect-mailchimp").click(function(n){n.preventDefault();var a=jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_mailchimp_apikey"]').val(),t=jQuery(this).data("security"),i=jQuery(this);if(""!=a){var o={apikey:a,security:t};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var r={action:"cmp_mailchimp_list_ajax",security:t,params:o};e.post(ajaxurl,r,function(n){var a=JSON.parse(n);200==a.response?(e("#niteoCS_mailchimp_list").empty().prop("disabled",!1),e.each(a.lists,function(n,a){e("#niteoCS_mailchimp_list").append('<option value="'+a.id+'">'+a.name+"</option>")})):e("#niteoCS_mailchimp_list").empty().prop("disabled",!0).html('<option value="error">'+a.message+"</option>").trigger("change"),i.html("Retrieve Lists"),i.prop("disabled",!1)}).fail(function(){i.html("Retrieve Lists"),i.prop("disabled",!1)})}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper.theme-setup h4").each(function(){if("Overlay Color"==jQuery(this).html())return jQuery(this).parents("tr").remove(),!1}),wp.codeEditor&&wp.codeEditor.initialize("niteoCS_custom_css"),e(".nav-tab-wrapper").on("click",".theme-preview",function(n){return!(e("#csoptions fieldset:not(.skip-preview-validation *)").serialize()!=t&&!confirm("You have made changes that will not be visible in the preview until you save them. Please save changes first.\nContinue anyway?"))||(n.preventDefault(),!1)})});
|
1 |
+
jQuery(document).ready(function(e){var n=document.location.hash.substring(1),a=jQuery("#csoptions").attr("action"),t=e("#csoptions fieldset:not(.skip-preview-validation *)").serialize();navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+e).addClass("nav-tab-active"),jQuery(".cmp-coming-soon-maintenance .table-wrapper."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .comingsoon."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(."+e+")").css("display","none"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(."+e).css("display","none"),jQuery(".cmp-coming-soon-maintenance .comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".cmp-coming-soon-maintenance .submit").css("display","none"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a)):(jQuery(".cmp-coming-soon-maintenance .submit").css("display","block"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a+"#"+e))},""!=n?navtab(n):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){n=document.location.hash.substring(1),navtab(n)},e(".cmp-coming-soon-maintenance .nav-tab:not(.theme-preview)").click(function(a){a.preventDefault(),n=e(this).data("tab"),document.location.hash=n}),p(".cmp-coming-soon-maintenance .blur-range","span","html"),p(".cmp-coming-soon-maintenance .background-overlay-opacity","span","html"),p("#logo_size_slider","#niteoCS_logo_size","val"),p("#niteoCS_logo_size","#logo_size_slider","val"),l("logo",!1,"image","img"),l("favicon",!1,"image","img"),l("seo_img",!1,"image","img"),l("images",!0,"image","img"),l("pattern",!1,"image","background"),l("video-thumb",!1,"image","img"),l("video-local",!1,"video","video"),m("analytics"),m("contact-form"),m("subscribe"),m("background-effect"),m("special-effect"),m("cmp-logo"),m("background-type"),m("counter"),m("overlay-text"),m("cmp-logo-size"),u("counter-action"),u("subscribe-method"),u("background-overlay"),u("banner-video-source"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1,placeholder:"Click to select.."}),jQuery(".cmp-coming-soon-maintenance #cmp-status").click(function(){jQuery(".cmp-coming-soon-maintenance .cmp-status input[type=radio]").prop("disabled",function(e,n){return!n}),jQuery("#cmp-toggle-adminbar").toggleClass("status-1"),jQuery(".cmp-status-pages").fadeToggle()}),jQuery(".cmp-status-pages input[type=radio]").change(function(){jQuery(".cmp-status-pages input[type=radio]").parent().removeClass("active"),jQuery(this).parent().addClass("active")}),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch:not(.disabled)").click(function(){if(0!=jQuery(".cmp-coming-soon-maintenance #cmp-status").prop("checked")){var e=jQuery(this).children("input");e.prop("checked",!0),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch").removeClass("active"),jQuery(this).addClass("active"),e.trigger("change"),"3"==e.val()?jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeIn("fast"):jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeOut("fast")}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper h3").click(function(){jQuery(this).parent().toggleClass("closed")}),jQuery(".cmp-coming-soon-maintenance #test-unsplash").click(function(n){n.preventDefault();var a=jQuery(".cmp-coming-soon-maintenance #unsplash-media"),t=jQuery('.cmp-coming-soon-maintenance .unsplash_banner select[name^="unsplash_feed"] option:selected').val(),i="",o=jQuery(this).data("security");if(0==t){switch(t){case"0":i=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val()}if(3==t||""!=i){var r={feed:t,url:i,feat:"",custom_str:""};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var c={action:"niteo_unsplash",security:o,params:r};e.post(ajaxurl,c,function(e){var n=JSON.parse(e);jQuery("#unsplash_img").remove();var t=setTimeout(function(){jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5e3);if("200"==n.response){if((n=jQuery.parseJSON(n.body))[0])var i=n[0].urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n[0].user.name,r=n[0].user.links.html,c=n[0].links.html,s=n[0].id;else i=n.urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n.user.name,r=n.user.links.html,c=n.links.html,s=n.id;jQuery("<img />",{src:i,id:"unsplash_img"}).one("load",function(){jQuery(this).appendTo(a),jQuery(this).fadeIn(),jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery(".unsplash-id").html('<a href="'+c+'" target="_blank">Photo</a> (ID: '+s+') by <a href="'+r+'" target="_blank">'+o+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a>'),jQuery(".blur-range").trigger("input"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #test-unsplash").prop("disabled",!1),jQuery(".cmp-coming-soon-maintenance #test-unsplash").text("Display Unsplash Photo"),jQuery(".cmp-coming-soon-maintenance #unsplash-media").html("<p>Error "+n.response+': <span style="text-transform:lowercase;">'+JSON.parse(n.body).errors+"</span></p>"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #unsplash_img").remove()}}),videoPreview=function(){if("5"==jQuery(".cmp-coming-soon-maintenance .background-type:checked").val()){var n=e(".cmp-coming-soon-maintenance .banner-video-source").val();if("youtube"==n){var a=e(".cmp-coming-soon-maintenance #niteoCS-youtube-url").val();if(""!=a){var t=a.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);if(t&&11==t[7].length){jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("");var i="https://img.youtube.com/vi/"+t[7]+"/maxresdefault.jpg";jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").append('<img src="'+i+'" alt=""/>'),jQuery(".cmp-coming-soon-maintenance .blur-range").trigger("input")}else jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("")}}if("local"==n){var o=jQuery("#niteoCS-video-local-id").data("url");""!=o&&e(".cmp-coming-soon-maintenance .video-local-wrapper").html('<video width="600" height="400" controls><source src="'+o+'" type="video/mp4">Your browser does not support the video tag.</video>')}}},videoPreview(),jQuery(".cmp-coming-soon-maintenance .background-type").on("change",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").on("keyup",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance .banner-video-source").on("change",function(){videoPreview()});var i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function o(e){switch(e){case"solid-color":jQuery(".thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val());break;case"gradient":jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").trigger("change");break;case"disabled":jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background","none")}}jQuery(".unsplash-feed-"+i).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery(".unsplash-feed-"+i).css("display","block"),jQuery("#test-unsplash").trigger("click")}),1==jQuery("#csoptions .niteoCS_banner:checked").val()&&jQuery("#test-unsplash").trigger("click"),jQuery(".cmp-coming-soon-maintenance select.background-gradient").on("change",function(){var e=jQuery(".cmp-coming-soon-maintenance select.background-gradient option:selected").val();"custom"==e?(jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","block"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})):(colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"}))}).trigger("change"),jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_color").wpColorPicker({change:function(e,n){jQuery(".color-preview").css("background-color",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_one").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_two").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_overlay_color").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css("background",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val()),jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").on("change",function(){var e=jQuery("select.overlay-gradient option:selected").val();if("custom"==e){jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","block");var n=jQuery("#niteoCS_overlay_gradient_one").val(),a=jQuery("#niteoCS_overlay_gradient_two").val();jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"linear-gradient(135deg, "+n+" 0%, "+a+" 100%)"})}else colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"})}),jQuery("#niteoCS_overlay_gradient_one").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)"})}}),jQuery("#niteoCS_overlay_gradient_two").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".background-overlay-opacity").on("input",function(){var e=jQuery(this).val();jQuery(".thumbnail-overlay").css("opacity",e)}).trigger("input"),o(jQuery(".cmp-coming-soon-maintenance .background-overlay").val()),jQuery(".cmp-coming-soon-maintenance .background-overlay").on("change",function(){o(jQuery(this).val())}),jQuery(".cmp-coming-soon-maintenance .blur-range").on("input",function(){var e=jQuery(this).val();jQuery(".cmp-coming-soon-maintenance .background-thumb-wrapper img:not(.no-blur)").css("filter","blur("+e+"px)")}).trigger("input"),jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"]').on("change",function(){var e=jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"] option:selected').val();if("custom"!=e){var n=jQuery(this).data("url");jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","none"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+e+".png')")}else{n=jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_pattern_custom").val();jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","block"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+"')")}}),jQuery(".cmp-coming-soon-maintenance .heading-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .heading-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #heading-example").removeClass().addClass("animated "+heading_anim)}),jQuery(".cmp-coming-soon-maintenance .content-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .content-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #content-example").removeClass().addClass("animated "+heading_anim)});var r=function(n,a,t){var i=e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value");i=e.parseJSON(i),e.each(i,function(e,i){i.name==n&&(i[a]=t)}),e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value",JSON.stringify(i))};if(!/Mobi/.test(navigator.userAgent)){var c=e(".cmp-coming-soon-maintenance .social-inputs"),s=function(n,a){var t=c.find('input[type="text"]');a.item.index();t.each(function(n,a){var t=e(a).data("name");r(t,"order",n)})};c.sortable({stop:s}),c.on("sortchange",s)}function l(e,n,a,t){var i,o=jQuery("."+e+"-wrapper"),r=jQuery("#add-"+e),c=jQuery("#delete-"+e),s="",l=e.replace("-"," ");l=l[0].toUpperCase()+l.slice(1),""!=jQuery("#niteoCS-"+e+"-id").val()&&c.css("display","block"),r.click(function(r){if(r.preventDefault(),m)m.open();else var m=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=m.state().get("selection").toJSON();n.length>0&&(o.find("img").remove(),o.attr("class",e+"-wrapper custom-gallery"),o.addClass("gallery-"+n.length),jQuery(n).each(function(e){switch(i=n[e].sizes&&n[e].sizes.large?n[e].sizes.large.url:n[e].url,s+=(0===e?"":",")+n[e].id,t){case"video":o.append('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>');break;case"background":o.css("background-image","url('"+i+"')");break;case"img":default:n.length>1&&0==e?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):n.length>1&&0!==e?o.append('<img src="'+i+'" alt="" class="no-blur"/>'):o.find(".big-thumb").length?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):o.append('<img src="'+i+'" alt=""/>'),jQuery(".blur-range").trigger("input")}}),c.css("display","block")),jQuery("#niteoCS-"+e+"-id").val(s).trigger("change")}).open()}),c.click(function(n){jQuery(this).css("display","none"),o.find("img").remove(),jQuery("#niteoCS-"+e+"-id").val(""),jQuery("#niteoCS-"+e+"-id").trigger("change")})}function m(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery(".cmp-coming-soon-maintenance ."+e+":checked").val();n=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 u(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery("."+e).val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+":not(."+n+")").css("display","none")}),jQuery("."+e).first().trigger("change")}function p(e,n,a){jQuery(e).on("input",function(){var e=jQuery(this).val();"html"===a&&jQuery(this).parent().find(n).html(e),"val"===a&&jQuery(this).parent().find(n).val(e)})}!function(e){e.fn.toggleDisabled=function(){return this.each(function(){var n,a=e(this),t=a.data("name");a.attr("disabled")?(a.prop("disabled",!1),n="1"):(a.prop("disabled",!0),n="0"),r(t,"active",n)})}}(jQuery),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="text"]').focusout(function(){var e=jQuery(this).data("name"),n=jQuery(this).attr("value");r(e,"url",n)}),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="checkbox"]').click(function(n){e(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".cmp-coming-soon-maintenance .social-media i").click(function(){var e=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e+" input").trigger("change"),jQuery(this).hasClass("active")?r(e,"hidden","0"):r(e,"hidden","1"),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length?jQuery(".social-inputs .label").css("display","block"):jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","none")}),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length&&jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","block"),jQuery(".cmp.update-theme").click(function(n){n.preventDefault();var a=e(this),t=a.parents(".notice"),i=a.data("security"),o=a.data("slug"),r=a.data("name"),c={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:jQuery(this).data("remote_url")+"?action=download&slug="+o}};t.find(".message").html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'),e.post(ajaxurl,c,function(n){if("success"==(n=n.trim()))setTimeout(function(){t.removeClass("notice-warning").addClass("notice-success"),t.find(".message").html("<span> "+r+' CMP theme was updated sucessfully! You can enjoy latest features now :) </span><i class="fa fa-smile-o" aria-hidden="true"></i>')},1500);else{n=n.slice(0,-1);var a=e("p",e(n)).text();t.removeClass("notice-warning").addClass("notice-error"),t.find(".message").html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+a+"</span>")}})}),jQuery(".cmp-coming-soon-maintenance .theme-select").click(function(){jQuery(this).parent().find('input[name="niteoCS_select_theme"]').prop("checked",!0).trigger("change"),jQuery(".cmp-coming-soon-maintenance .theme-select").removeClass("selected"),jQuery(this).parent().find(".theme-select").addClass("selected")}),jQuery(".cmp-coming-soon-maintenance .theme-update.button").one("click",function(n){n.preventDefault();var a=e(this),t=a.closest(".theme-wrapper"),i=t.data("security"),o=t.data("slug"),r={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:t.data("remote_url")+"?action=download&slug="+o}};a.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>'),e.post(ajaxurl,r,function(e){"success"==e?setTimeout(function(){a.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>'),setTimeout(function(){a.fadeOut()},1500)},1500):(e=e.slice(0,-1),a.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>'))})}),jQuery(".cmp-coming-soon-maintenance .theme-details").click(function(){var n=e(this).closest(".theme-wrapper"),a=n.data("slug"),t=n.data("version"),i=n.data("type"),o=n.data("purchased"),r=0,c={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};e.post(ajaxurl,c,function(c){var s="",l="";if("true"==(c=jQuery.parseJSON(c)).result){if(jQuery("body").addClass("modal-open"),"1"==o&&(l='<span class="theme-version">Installed version: '+t+"</span>"),"1"!=o&&"premium"==i)s='<button type="button" class="theme-purchase button hide"><a href="'+n.find("a").attr("href")+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';var m=c.screenshots,u="";Object.keys(m).length>1&&(u='<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 p=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(\''+m[0]+"')\">"+u+"</div>","\t\t\t</div>",'\t\t\t<div class="theme-info">','\t\t\t\t<h2 class="theme-name">'+c.name+l+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+c.author_homepage+'" target="_blank">'+c.author+"</a></p>","",s,'\t\t\t\t<div class="theme-description">'+c.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<a href="https://niteothemes.com/cmp-coming-soon-maintenance/?theme='+a+"&utm_source=cmp&utm_medium=referral&utm_campaign="+a+'" class="button cmp-preview" target="_blank" aria-label="Preview '+c.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(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(".screenshots-nav .right").click(function(){++r==Object.keys(m).length&&(r=0),r in m&&jQuery(".screenshot").css("background-image","url('"+m[r]+"')")}),jQuery(".screenshots-nav .left").click(function(){--r<0&&(r=Object.keys(m).length-1),r in m&&jQuery(".screenshot").css("background-image","url('"+m[r]+"')")})}})}),jQuery(".cmp-coming-soon-maintenance #connect-mailchimp").click(function(n){n.preventDefault();var a=jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_mailchimp_apikey"]').val(),t=jQuery(this).data("security"),i=jQuery(this);if(""!=a){var o={apikey:a,security:t};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var r={action:"cmp_mailchimp_list_ajax",security:t,params:o};e.post(ajaxurl,r,function(n){var a=JSON.parse(n);200==a.response?(e("#niteoCS_mailchimp_list").empty().prop("disabled",!1),e.each(a.lists,function(n,a){e("#niteoCS_mailchimp_list").append('<option value="'+a.id+'">'+a.name+"</option>")})):e("#niteoCS_mailchimp_list").empty().prop("disabled",!0).html('<option value="error">'+a.message+"</option>").trigger("change"),i.html("Retrieve Lists"),i.prop("disabled",!1)}).fail(function(){i.html("Retrieve Lists"),i.prop("disabled",!1)})}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper.theme-setup h4").each(function(){if("Overlay Color"==jQuery(this).html())return jQuery(this).parents("tr").remove(),!1}),wp.codeEditor&&wp.codeEditor.initialize("niteoCS_custom_css"),e(".nav-tab-wrapper").on("click",".theme-preview",function(n){return!(e("#csoptions fieldset:not(.skip-preview-validation *)").serialize()!=t&&!confirm("You have made changes that will not be visible in the preview until you save them. Please save changes first.\nContinue anyway?"))||(n.preventDefault(),!1)})});
|
niteo-cmp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: CMP - Coming Soon & Maintenance Plugin
|
4 |
Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
|
5 |
Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
|
6 |
-
Version: 3.5.
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
@@ -64,7 +64,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
64 |
|
65 |
private function constants() {
|
66 |
// define constants
|
67 |
-
$this->define( 'CMP_VERSION', '3.5.
|
68 |
$this->define( 'CMP_DEBUG', FALSE );
|
69 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
70 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
@@ -102,6 +102,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
102 |
add_action( 'wp_ajax_niteo_subscribe', array( $this, 'niteo_subscribe' ) );
|
103 |
add_action( 'wp_ajax_cmp_mailchimp_list_ajax', array( $this, 'cmp_mailchimp_list_ajax' ) );
|
104 |
add_action( 'wp_ajax_cmp_ajax_upload_font', array( $this, 'cmp_ajax_upload_font' ) );
|
|
|
|
|
105 |
|
106 |
add_filter('upload_mimes', array( $this, 'cmp_allow_font_mimes' ));
|
107 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this,'add_action_links' ) );
|
@@ -149,6 +151,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
149 |
wp_register_script( 'cmp-select2-js', plugins_url('/js/external/select2.min.js', __FILE__) );
|
150 |
wp_register_script( 'cmp-typography', plugins_url('/js/typography'.CMP_ASSET_SUFFIX.'.js', __FILE__), array('cmp-select2-js' ), CMP_VERSION );
|
151 |
wp_register_script( 'cmp_settings_js', plugins_url('/js/settings'.CMP_ASSET_SUFFIX.'.js', __FILE__), array('webfont', 'cmp-select2-js'), CMP_VERSION );
|
|
|
152 |
wp_register_script( 'countdown_flatpicker_js', plugins_url('/js/external/flatpickr.min.js', __FILE__) );
|
153 |
}
|
154 |
|
@@ -222,29 +225,29 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
222 |
|
223 |
$premium_themes = array();
|
224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
array_push( $premium_themes, array('name' => 'timex', 'url' => 'https://niteothemes.com/downloads/cmp-timex-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=timex', 'price' => '15') );
|
226 |
|
|
|
|
|
227 |
array_push( $premium_themes, array('name' => 'ares', 'url' => 'https://niteothemes.com/downloads/cmp-ares-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=ares', 'price' => '10') );
|
228 |
|
229 |
array_push( $premium_themes, array('name' => 'juno', 'url' => 'https://niteothemes.com/downloads/cmp-juno-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=juno', 'price' => '10') );
|
230 |
|
231 |
array_push( $premium_themes, array('name' => 'pluto', 'url' => 'https://niteothemes.com/downloads/cmp-pluto-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=pluto', 'price' => '10') );
|
232 |
|
233 |
-
array_push( $premium_themes, array('name' => 'mercury', 'url' => 'https://niteothemes.com/downloads/cmp-mercury-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=mercury', 'price' => '10') );
|
234 |
-
|
235 |
array_push( $premium_themes, array('name' => 'agency', 'url' => 'https://niteothemes.com/downloads/cmp-agency-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=agency', 'price' => '15') );
|
236 |
|
237 |
-
array_push( $premium_themes, array('name' => '
|
238 |
|
239 |
-
array_push( $premium_themes, array('name' => '
|
240 |
-
|
241 |
-
array_push( $premium_themes, array('name' => 'vega', 'url' => 'https://niteothemes.com/downloads/cmp-vega-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=vega', 'price' => '10') );
|
242 |
-
|
243 |
-
array_push( $premium_themes, array('name' => 'apollo', 'url' => 'https://niteothemes.com/downloads/cmp-apollo-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=apollo', 'price' => '10') );
|
244 |
-
|
245 |
-
array_push( $premium_themes, array('name' => 'element', 'url' => 'https://niteothemes.com/downloads/cmp-element-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=element', 'price' => '10') );
|
246 |
-
|
247 |
-
array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://niteothemes.com/downloads/cmp-hardwork-premium/?utm_source=cmp&utm_medium=referral&utm_campaign=hardwork_premium', 'price' => '10') );
|
248 |
|
249 |
array_push( $premium_themes, array('name' => 'postery', 'url' => 'https://niteothemes.com/downloads/cmp-postery/?utm_source=cmp&utm_medium=referral&utm_campaign=postery', 'price' => '10') );
|
250 |
|
@@ -440,6 +443,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
440 |
*/
|
441 |
public function cmp_advanced_page() {
|
442 |
wp_enqueue_script( 'cmp-select2-js' );
|
|
|
443 |
wp_enqueue_style( 'font-awesome' );
|
444 |
require_once ('cmp-advanced.php');
|
445 |
}
|
@@ -831,10 +835,17 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
831 |
// Display CMP Settings in topbar only for administrator
|
832 |
if ( current_user_can( 'administrator' ) ) {
|
833 |
$wp_admin_bar->add_node( array(
|
834 |
-
'id' => 'cmp-settings',
|
835 |
-
'title' => __('CMP Settings', 'cmp-coming-soon-maintenancee'),
|
836 |
'href' => admin_url('admin.php?page=cmp-settings'),
|
837 |
'parent' => 'cmp-admin-notice'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
838 |
));
|
839 |
}
|
840 |
|
@@ -2305,7 +2316,240 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
2305 |
// echo confirmation
|
2306 |
echo 'success';
|
2307 |
wp_die();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2308 |
|
|
|
2309 |
}
|
2310 |
}
|
2311 |
|
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.5.6
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
64 |
|
65 |
private function constants() {
|
66 |
// define constants
|
67 |
+
$this->define( 'CMP_VERSION', '3.5.6' );
|
68 |
$this->define( 'CMP_DEBUG', FALSE );
|
69 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
70 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
102 |
add_action( 'wp_ajax_niteo_subscribe', array( $this, 'niteo_subscribe' ) );
|
103 |
add_action( 'wp_ajax_cmp_mailchimp_list_ajax', array( $this, 'cmp_mailchimp_list_ajax' ) );
|
104 |
add_action( 'wp_ajax_cmp_ajax_upload_font', array( $this, 'cmp_ajax_upload_font' ) );
|
105 |
+
add_action( 'wp_ajax_cmp_ajax_export_settings', array( $this, 'cmp_ajax_export_settings' ) );
|
106 |
+
add_action( 'wp_ajax_cmp_ajax_import_settings', array( $this, 'cmp_ajax_import_settings' ) );
|
107 |
|
108 |
add_filter('upload_mimes', array( $this, 'cmp_allow_font_mimes' ));
|
109 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this,'add_action_links' ) );
|
151 |
wp_register_script( 'cmp-select2-js', plugins_url('/js/external/select2.min.js', __FILE__) );
|
152 |
wp_register_script( 'cmp-typography', plugins_url('/js/typography'.CMP_ASSET_SUFFIX.'.js', __FILE__), array('cmp-select2-js' ), CMP_VERSION );
|
153 |
wp_register_script( 'cmp_settings_js', plugins_url('/js/settings'.CMP_ASSET_SUFFIX.'.js', __FILE__), array('webfont', 'cmp-select2-js'), CMP_VERSION );
|
154 |
+
wp_register_script( 'cmp_advanced_js', plugins_url('/js/cmp-advanced'.CMP_ASSET_SUFFIX.'.js', __FILE__), array(), CMP_VERSION );
|
155 |
wp_register_script( 'countdown_flatpicker_js', plugins_url('/js/external/flatpickr.min.js', __FILE__) );
|
156 |
}
|
157 |
|
225 |
|
226 |
$premium_themes = array();
|
227 |
|
228 |
+
array_push( $premium_themes, array('name' => 'mercury', 'url' => 'https://niteothemes.com/downloads/cmp-mercury-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=mercury', 'price' => '10') );
|
229 |
+
|
230 |
+
array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://niteothemes.com/downloads/cmp-fifty-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=fifty', 'price' => '10') );
|
231 |
+
|
232 |
+
array_push( $premium_themes, array('name' => 'stylo', 'url' => 'https://niteothemes.com/downloads/cmp-stylo-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=stylo', 'price' => '10') );
|
233 |
+
|
234 |
+
array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://niteothemes.com/downloads/cmp-hardwork-premium/?utm_source=cmp&utm_medium=referral&utm_campaign=hardwork_premium', 'price' => '10') );
|
235 |
+
|
236 |
array_push( $premium_themes, array('name' => 'timex', 'url' => 'https://niteothemes.com/downloads/cmp-timex-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=timex', 'price' => '15') );
|
237 |
|
238 |
+
array_push( $premium_themes, array('name' => 'apollo', 'url' => 'https://niteothemes.com/downloads/cmp-apollo-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=apollo', 'price' => '10') );
|
239 |
+
|
240 |
array_push( $premium_themes, array('name' => 'ares', 'url' => 'https://niteothemes.com/downloads/cmp-ares-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=ares', 'price' => '10') );
|
241 |
|
242 |
array_push( $premium_themes, array('name' => 'juno', 'url' => 'https://niteothemes.com/downloads/cmp-juno-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=juno', 'price' => '10') );
|
243 |
|
244 |
array_push( $premium_themes, array('name' => 'pluto', 'url' => 'https://niteothemes.com/downloads/cmp-pluto-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=pluto', 'price' => '10') );
|
245 |
|
|
|
|
|
246 |
array_push( $premium_themes, array('name' => 'agency', 'url' => 'https://niteothemes.com/downloads/cmp-agency-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=agency', 'price' => '15') );
|
247 |
|
248 |
+
array_push( $premium_themes, array('name' => 'vega', 'url' => 'https://niteothemes.com/downloads/cmp-vega-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=vega', 'price' => '10') );
|
249 |
|
250 |
+
array_push( $premium_themes, array('name' => 'element', 'url' => 'https://niteothemes.com/downloads/cmp-element-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=element', 'price' => '10') );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
|
252 |
array_push( $premium_themes, array('name' => 'postery', 'url' => 'https://niteothemes.com/downloads/cmp-postery/?utm_source=cmp&utm_medium=referral&utm_campaign=postery', 'price' => '10') );
|
253 |
|
443 |
*/
|
444 |
public function cmp_advanced_page() {
|
445 |
wp_enqueue_script( 'cmp-select2-js' );
|
446 |
+
wp_enqueue_script( 'cmp_advanced_js' );
|
447 |
wp_enqueue_style( 'font-awesome' );
|
448 |
require_once ('cmp-advanced.php');
|
449 |
}
|
835 |
// Display CMP Settings in topbar only for administrator
|
836 |
if ( current_user_can( 'administrator' ) ) {
|
837 |
$wp_admin_bar->add_node( array(
|
838 |
+
'id' => 'cmp-basic-settings',
|
839 |
+
'title' => __('CMP Basic Settings', 'cmp-coming-soon-maintenancee'),
|
840 |
'href' => admin_url('admin.php?page=cmp-settings'),
|
841 |
'parent' => 'cmp-admin-notice'
|
842 |
+
));
|
843 |
+
|
844 |
+
$wp_admin_bar->add_node( array(
|
845 |
+
'id' => 'cmp-advanced-settings',
|
846 |
+
'title' => __('CMP Advanced Settings', 'cmp-coming-soon-maintenancee'),
|
847 |
+
'href' => admin_url('admin.php?page=cmp-advanced'),
|
848 |
+
'parent' => 'cmp-admin-notice'
|
849 |
));
|
850 |
}
|
851 |
|
2316 |
// echo confirmation
|
2317 |
echo 'success';
|
2318 |
wp_die();
|
2319 |
+
}
|
2320 |
+
|
2321 |
+
/**
|
2322 |
+
* Export function of CMP Settings to JSON
|
2323 |
+
*
|
2324 |
+
* @since 3.5.3
|
2325 |
+
* @access public
|
2326 |
+
* @return string
|
2327 |
+
*/
|
2328 |
+
public function cmp_export_settings() {
|
2329 |
+
|
2330 |
+
$options = array();
|
2331 |
+
// add default cmp identifier
|
2332 |
+
$options[0] = 'CMP_EXPORT';
|
2333 |
+
|
2334 |
+
global $wpdb;
|
2335 |
+
$saved_options = $wpdb->get_results( "SELECT * FROM $wpdb->options WHERE option_name LIKE 'niteoCS_%'", OBJECT );
|
2336 |
+
$i = 1;
|
2337 |
+
|
2338 |
+
foreach ($saved_options as $option) {
|
2339 |
+
|
2340 |
+
$option_name = $option->option_name;
|
2341 |
+
$option_value = get_option( $option_name );
|
2342 |
+
|
2343 |
+
$img_settings = array( 'niteoCS_banner_id', 'niteoCS_logo_id', 'niteoCS_seo_img_id' );
|
2344 |
+
|
2345 |
+
if ( in_array($option_name, $img_settings) && $option_value && $option_value != '' ) {
|
2346 |
+
$option_value = $this->cmp_get_img_urls($option_value);
|
2347 |
+
}
|
2348 |
+
|
2349 |
+
if ( $option_name === 'niteoCS_posts' ) {
|
2350 |
+
$option_value = '[]';
|
2351 |
+
}
|
2352 |
+
|
2353 |
+
|
2354 |
+
$options[$i] = array( $option_name => $option_value );
|
2355 |
+
$i++;
|
2356 |
+
}
|
2357 |
+
|
2358 |
+
return json_encode($options);
|
2359 |
+
}
|
2360 |
+
|
2361 |
+
/**
|
2362 |
+
* Helper function to retrieve full img URL, comma separated, by ID
|
2363 |
+
*
|
2364 |
+
* @since 3.5.3
|
2365 |
+
* @access public
|
2366 |
+
* @return string
|
2367 |
+
*/
|
2368 |
+
|
2369 |
+
public function cmp_get_img_urls( $ids ) {
|
2370 |
+
|
2371 |
+
$id_array = explode(',', $ids);
|
2372 |
+
$i = 1;
|
2373 |
+
$urls = '';
|
2374 |
+
|
2375 |
+
foreach ($id_array as $id) {
|
2376 |
+
$sep = ($i < count($id_array)) ? ',' : '';
|
2377 |
+
$image_url = wp_get_attachment_image_src( $id, 'full');
|
2378 |
+
|
2379 |
+
if ( isset( $image_url[0] ) ) {
|
2380 |
+
$image_url = $image_url[0];
|
2381 |
+
}
|
2382 |
+
|
2383 |
+
$urls .= $image_url . $sep;
|
2384 |
+
|
2385 |
+
$i++;
|
2386 |
+
}
|
2387 |
+
|
2388 |
+
return $urls;
|
2389 |
+
}
|
2390 |
+
|
2391 |
+
/**
|
2392 |
+
* export settings to JSON via AJAX
|
2393 |
+
*
|
2394 |
+
* @since 3.5.3
|
2395 |
+
* @access public
|
2396 |
+
* @return string
|
2397 |
+
*/
|
2398 |
+
public function cmp_ajax_export_settings() {
|
2399 |
+
// verify nonce
|
2400 |
+
check_ajax_referer( 'cmp-coming-soon-ajax-secret', 'security' );
|
2401 |
+
|
2402 |
+
// verify user rights
|
2403 |
+
if( !current_user_can('publish_pages') ) {
|
2404 |
+
die('Sorry, but this request is invalid');
|
2405 |
+
}
|
2406 |
+
|
2407 |
+
$settings = $this->cmp_export_settings();
|
2408 |
+
|
2409 |
+
$replace = array('https://', 'http://');
|
2410 |
+
$home_url = str_replace($replace, '', get_home_url());
|
2411 |
+
|
2412 |
+
if ( !empty($settings) ) {
|
2413 |
+
$filename = $home_url. '-cmp-settings-' . date('Y-m-d') . '.json';
|
2414 |
+
|
2415 |
+
header('Content-Type: application/json');
|
2416 |
+
header('Content-Disposition: attachment;filename=' . $filename);
|
2417 |
+
|
2418 |
+
$fp = fopen('php://output', 'w');
|
2419 |
+
|
2420 |
+
fwrite($fp , $settings);
|
2421 |
+
fclose($fp);
|
2422 |
+
}
|
2423 |
+
die();
|
2424 |
+
}
|
2425 |
+
|
2426 |
+
/**
|
2427 |
+
* import settings function
|
2428 |
+
*
|
2429 |
+
* @since 3.5.3
|
2430 |
+
* @access public
|
2431 |
+
* @return string
|
2432 |
+
*/
|
2433 |
+
public function cmp_ajax_import_settings( ) {
|
2434 |
+
|
2435 |
+
check_ajax_referer( 'cmp-coming-soon-ajax-secret', 'security' );
|
2436 |
+
|
2437 |
+
// verify user rights
|
2438 |
+
if( !current_user_can('publish_pages') ) {
|
2439 |
+
die('Sorry, but this request is invalid');
|
2440 |
+
}
|
2441 |
+
|
2442 |
+
$settings = json_decode( stripslashes($_POST['json']), true );
|
2443 |
+
|
2444 |
+
$result = array(
|
2445 |
+
'result' => 'success',
|
2446 |
+
'message' => __('All done!', 'cmp-coming-soon-maintenance')
|
2447 |
+
);
|
2448 |
+
|
2449 |
+
if ( json_last_error() == JSON_ERROR_NONE ) {
|
2450 |
+
if ( $settings[0] === 'CMP_EXPORT' ) {
|
2451 |
+
// remove first value used for JSON CMP Settings check
|
2452 |
+
unset($settings[0]);
|
2453 |
+
|
2454 |
+
// delete all current CMP Settings
|
2455 |
+
global $wpdb;
|
2456 |
+
$saved_options = $wpdb->get_results( "SELECT * FROM $wpdb->options WHERE option_name LIKE 'niteoCS_%'", OBJECT );
|
2457 |
+
foreach ($saved_options as $option) {
|
2458 |
+
delete_option($option->option_name);
|
2459 |
+
}
|
2460 |
+
|
2461 |
+
// import cmp settings from JSON structure
|
2462 |
+
foreach ( $settings as $setting ) {
|
2463 |
+
|
2464 |
+
$img_settings = array('niteoCS_banner_id', 'niteoCS_logo_id', 'niteoCS_seo_img_id' );
|
2465 |
+
|
2466 |
+
$name = key($setting);
|
2467 |
+
$value = $setting[$name];
|
2468 |
+
|
2469 |
+
if ( in_array($name, $img_settings) ) {
|
2470 |
+
|
2471 |
+
$urls = explode(',', $value);
|
2472 |
+
|
2473 |
+
if (is_array($urls)) {
|
2474 |
+
foreach ( $urls as $url ) {
|
2475 |
+
$value = $this->cmp_insert_attachment_from_url($url);
|
2476 |
+
$value .= ',' . $value;
|
2477 |
+
}
|
2478 |
+
}
|
2479 |
+
}
|
2480 |
+
|
2481 |
+
update_option( $name, $value );
|
2482 |
+
}
|
2483 |
+
} else {
|
2484 |
+
$result = array(
|
2485 |
+
'result' => 'error',
|
2486 |
+
'message' => __('JSON file is valid but it does not contain CMP Settings.', 'cmp-coming-soon-maintenance')
|
2487 |
+
);
|
2488 |
+
}
|
2489 |
+
} else {
|
2490 |
+
$result = array(
|
2491 |
+
'result' => 'error',
|
2492 |
+
'message' => __('Please insert valid JSON file and try again.', 'cmp-coming-soon-maintenance')
|
2493 |
+
);
|
2494 |
+
|
2495 |
+
}
|
2496 |
+
|
2497 |
+
echo json_encode($result);
|
2498 |
+
wp_die();
|
2499 |
+
|
2500 |
+
}
|
2501 |
+
|
2502 |
+
/**
|
2503 |
+
* Insert an attachment from an URL address.
|
2504 |
+
* by https://gist.github.com/m1r0/f22d5237ee93bcccb0d9
|
2505 |
+
*
|
2506 |
+
* @param String $url
|
2507 |
+
* @param Int $parent_post_id
|
2508 |
+
* @return Int Attachment ID
|
2509 |
+
*/
|
2510 |
+
private function cmp_insert_attachment_from_url($url, $parent_post_id = null) {
|
2511 |
+
|
2512 |
+
if( !class_exists( 'WP_Http' ) ) {
|
2513 |
+
include_once( ABSPATH . WPINC . '/class-http.php' );
|
2514 |
+
}
|
2515 |
+
|
2516 |
+
$http = new WP_Http();
|
2517 |
+
|
2518 |
+
$response = $http->request( $url );
|
2519 |
+
|
2520 |
+
if( is_wp_error( $response ) || $response['response']['code'] != 200 ) {
|
2521 |
+
return false;
|
2522 |
+
}
|
2523 |
+
|
2524 |
+
$upload = wp_upload_bits( basename($url), null, $response['body'] );
|
2525 |
+
|
2526 |
+
if( !empty( $upload['error'] ) ) {
|
2527 |
+
return false;
|
2528 |
+
}
|
2529 |
+
|
2530 |
+
$file_path = $upload['file'];
|
2531 |
+
$file_name = basename( $file_path );
|
2532 |
+
$file_type = wp_check_filetype( $file_name, null );
|
2533 |
+
$attachment_title = sanitize_file_name( pathinfo( $file_name, PATHINFO_FILENAME ) );
|
2534 |
+
$wp_upload_dir = wp_upload_dir();
|
2535 |
+
$post_info = array(
|
2536 |
+
'guid' => $wp_upload_dir['url'] . '/' . $file_name,
|
2537 |
+
'post_mime_type' => $file_type['type'],
|
2538 |
+
'post_title' => $attachment_title,
|
2539 |
+
'post_content' => '',
|
2540 |
+
'post_status' => 'inherit',
|
2541 |
+
);
|
2542 |
+
|
2543 |
+
// Create the attachment
|
2544 |
+
$attach_id = wp_insert_attachment( $post_info, $file_path, $parent_post_id );
|
2545 |
+
// Include image.php
|
2546 |
+
require_once( ABSPATH . 'wp-admin/includes/image.php' );
|
2547 |
+
// Define attachment metadata
|
2548 |
+
$attach_data = wp_generate_attachment_metadata( $attach_id, $file_path );
|
2549 |
+
// Assign metadata to attachment
|
2550 |
+
wp_update_attachment_metadata( $attach_id, $attach_data );
|
2551 |
|
2552 |
+
return $attach_id;
|
2553 |
}
|
2554 |
}
|
2555 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: coming soon, landing page, launch page, maintenance mode, under constructi
|
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.2
|
8 |
-
Stable tag: 3.5.
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -43,6 +43,13 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
43 |
<li>Plugin is fully translatable.</li>
|
44 |
</ul>
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
<h3>Administration page overview</h3>
|
47 |
https://www.youtube.com/watch?v=uxuJfHzwdtE
|
48 |
|
@@ -135,6 +142,13 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
|
|
135 |
<p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
|
136 |
|
137 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
<h4>CMP 3.5.5 - 13-Jun-19</h4>
|
139 |
<ul>
|
140 |
<li>YouTube brand name corrected - @khpro!</li>
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.2
|
8 |
+
Stable tag: 3.5.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
43 |
<li>Plugin is fully translatable.</li>
|
44 |
</ul>
|
45 |
|
46 |
+
<h3>Compatibles Plugins</h3>
|
47 |
+
<ul>
|
48 |
+
<li><a href="https://wordpress.org/plugins/insert-headers-and-footers/" target="_blank>Insert Headers and Footers</a> fully compatible.</li>
|
49 |
+
<li><a href="https://wordpress.org/plugins/simpleanalytics/" target="_blank>Simple Analytics</a> fully compatible.</li>
|
50 |
+
<li>We are working on more plugins to be compatible with CMP - feel free to send us suggestions what plugin you might need together with CMP.</li>
|
51 |
+
</ul>
|
52 |
+
|
53 |
<h3>Administration page overview</h3>
|
54 |
https://www.youtube.com/watch?v=uxuJfHzwdtE
|
55 |
|
142 |
<p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
|
143 |
|
144 |
== Changelog ==
|
145 |
+
<h4>CMP 3.5.6 - 22-Jun-19</h4>
|
146 |
+
<ul>
|
147 |
+
<li>New feature - CMP Import and Export! You can now import/export/backup CMP Settings under CMP Advanced submenu!</li>
|
148 |
+
<li>Added Support Headers and Footers plugin and SimpleAnalytics plugin!</li>
|
149 |
+
<li>Redesigned CMP Advanced Menu!</li>
|
150 |
+
</ul>
|
151 |
+
|
152 |
<h4>CMP 3.5.5 - 13-Jun-19</h4>
|
153 |
<ul>
|
154 |
<li>YouTube brand name corrected - @khpro!</li>
|