Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 3.3 |
Comparing to | |
See all releases |
Code changes from version 3.2.2 to 3.3
- cmp-settings.php +31 -6
- css/cmp-settings-style.css +28 -0
- css/cmp-settings-style.min.css +1 -1
- img/thumbnails/pluto/screenshot1.jpg +0 -0
- img/thumbnails/pluto/screenshot2.jpg +0 -0
- img/thumbnails/pluto/screenshot3.jpg +0 -0
- img/thumbnails/pluto_thumbnail.jpg +0 -0
- inc/class-cmp-render_html.php +100 -21
- inc/settings/settings-background.php +11 -4
- inc/settings/settings-logo.php +14 -2
- inc/settings/settings-special_effects.php +1 -1
- js/preview-iframe.js +189 -153
- js/settings.js +12 -4
- js/settings.min.js +1 -1
- niteo-cmp.php +22 -20
- readme.txt +8 -1
- themes/pluto.txt +4 -0
cmp-settings.php
CHANGED
@@ -16,6 +16,12 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
16 |
|
17 |
$this->cmp_purge_cache();
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
if ( isset($_POST['cmp-activate']) && is_numeric($_POST['cmp-activate']) ) {
|
20 |
update_option('niteoCS_activation', sanitize_text_field($_POST['cmp-activate']));
|
21 |
}
|
@@ -39,6 +45,17 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
39 |
update_option('niteoCS_logo_id', sanitize_text_field($_POST['niteoCS_logo_id']));
|
40 |
}
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
if (isset($_POST['niteoCS_text_logo'])) {
|
43 |
update_option('niteoCS_text_logo', sanitize_text_field($_POST['niteoCS_text_logo']));
|
44 |
}
|
@@ -361,7 +378,8 @@ $niteoCS_custom_css = stripslashes(get_option('niteoCS_custom_css', ''));
|
|
361 |
$niteoCS_logo_type = get_option('niteoCS_logo_type', 'text');
|
362 |
$niteoCS_logo_id = get_option('niteoCS_logo_id');
|
363 |
$niteoCS_text_logo = stripslashes(get_option('niteoCS_text_logo', get_bloginfo( 'name', 'display' )));
|
364 |
-
|
|
|
365 |
$niteoCS_heading_animation = get_option('niteoCS_heading_animation['.$themeslug.']', 'fadeInDown');
|
366 |
$niteoCS_content_animation = get_option('niteoCS_content_animation['.$themeslug.']', 'fadeInUp');
|
367 |
|
@@ -481,10 +499,7 @@ if ( $niteoCS_banner_pattern == 'custom' && $niteoCS_banner_pattern_custom != ''
|
|
481 |
// define patterns array
|
482 |
$patterns = array('fabric', 'gray_sand', 'green_dust_scratch', 'mirrored_squares', 'noisy', 'photography', 'playstation', 'sakura', 'white_sand', 'white_texture');
|
483 |
|
484 |
-
|
485 |
-
if( isset($_POST['submit_theme']) ) {
|
486 |
-
$this->cmp_theme_upload($_FILES['fileToUpload']);
|
487 |
-
}
|
488 |
|
489 |
|
490 |
add_thickbox();
|
@@ -681,6 +696,16 @@ add_thickbox();
|
|
681 |
// build previews for downloadable themes
|
682 |
foreach ( $downloadable_themes as $premium_theme ) {
|
683 |
$theme_slug = $premium_theme['name'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
684 |
$thumbnail = plugins_url('/img/thumbnails/'. $theme_slug . '_thumbnail.jpg', __FILE__); ?>
|
685 |
|
686 |
<div class="theme-wrapper premium" data-security="<?php echo esc_attr($ajax_nonce);?>" data-slug="<?php echo esc_attr($theme_slug);?>" data-type="premium">
|
@@ -691,7 +716,7 @@ add_thickbox();
|
|
691 |
|
692 |
<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>
|
693 |
|
694 |
-
<a href="<?php echo 'http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='.$theme_slug.'&utm_source=cmp&utm_medium=referral&utm_campaign='.$theme_slug.'';?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a>
|
695 |
|
696 |
<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>
|
697 |
|
16 |
|
17 |
$this->cmp_purge_cache();
|
18 |
|
19 |
+
// Handle ZIP UPLOAD
|
20 |
+
if( isset($_POST['submit_theme']) ) {
|
21 |
+
$this->cmp_theme_upload($_FILES['fileToUpload']);
|
22 |
+
|
23 |
+
}
|
24 |
+
|
25 |
if ( isset($_POST['cmp-activate']) && is_numeric($_POST['cmp-activate']) ) {
|
26 |
update_option('niteoCS_activation', sanitize_text_field($_POST['cmp-activate']));
|
27 |
}
|
45 |
update_option('niteoCS_logo_id', sanitize_text_field($_POST['niteoCS_logo_id']));
|
46 |
}
|
47 |
|
48 |
+
if ( isset($_POST['niteoCS_logo_custom_size']) ) {
|
49 |
+
update_option('niteoCS_logo_custom_size', $this->sanitize_checkbox( $_POST['niteoCS_logo_custom_size'] ));
|
50 |
+
} else {
|
51 |
+
update_option('niteoCS_logo_custom_size', '0');
|
52 |
+
}
|
53 |
+
|
54 |
+
if (isset($_POST['niteoCS_logo_size']) && ( is_numeric($_POST['niteoCS_logo_size']) || empty($_POST['niteoCS_logo_size']))) {
|
55 |
+
update_option('niteoCS_logo_size', sanitize_text_field($_POST['niteoCS_logo_size']));
|
56 |
+
}
|
57 |
+
|
58 |
+
|
59 |
if (isset($_POST['niteoCS_text_logo'])) {
|
60 |
update_option('niteoCS_text_logo', sanitize_text_field($_POST['niteoCS_text_logo']));
|
61 |
}
|
378 |
$niteoCS_logo_type = get_option('niteoCS_logo_type', 'text');
|
379 |
$niteoCS_logo_id = get_option('niteoCS_logo_id');
|
380 |
$niteoCS_text_logo = stripslashes(get_option('niteoCS_text_logo', get_bloginfo( 'name', 'display' )));
|
381 |
+
$niteoCS_logo_custom_size = get_option('niteoCS_logo_custom_size', '0');
|
382 |
+
$niteoCS_logo_size = get_option('niteoCS_logo_size', '100');
|
383 |
$niteoCS_heading_animation = get_option('niteoCS_heading_animation['.$themeslug.']', 'fadeInDown');
|
384 |
$niteoCS_content_animation = get_option('niteoCS_content_animation['.$themeslug.']', 'fadeInUp');
|
385 |
|
499 |
// define patterns array
|
500 |
$patterns = array('fabric', 'gray_sand', 'green_dust_scratch', 'mirrored_squares', 'noisy', 'photography', 'playstation', 'sakura', 'white_sand', 'white_texture');
|
501 |
|
502 |
+
|
|
|
|
|
|
|
503 |
|
504 |
|
505 |
add_thickbox();
|
696 |
// build previews for downloadable themes
|
697 |
foreach ( $downloadable_themes as $premium_theme ) {
|
698 |
$theme_slug = $premium_theme['name'];
|
699 |
+
|
700 |
+
switch ( $theme_slug ) {
|
701 |
+
case 'pluto':
|
702 |
+
$background = '4';
|
703 |
+
break;
|
704 |
+
default:
|
705 |
+
$background = '1';
|
706 |
+
break;
|
707 |
+
}
|
708 |
+
|
709 |
$thumbnail = plugins_url('/img/thumbnails/'. $theme_slug . '_thumbnail.jpg', __FILE__); ?>
|
710 |
|
711 |
<div class="theme-wrapper premium" data-security="<?php echo esc_attr($ajax_nonce);?>" data-slug="<?php echo esc_attr($theme_slug);?>" data-type="premium">
|
716 |
|
717 |
<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>
|
718 |
|
719 |
+
<a href="<?php echo 'http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='.$theme_slug.'&background='.$background.'&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>
|
720 |
|
721 |
<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>
|
722 |
|
css/cmp-settings-style.css
CHANGED
@@ -386,6 +386,25 @@
|
|
386 |
margin-top: 1em
|
387 |
}
|
388 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
.cmp-coming-soon-maintenance .theme-overlay .screenshot,
|
390 |
.cmp-coming-soon-maintenance .thumbnail-holder {
|
391 |
position: relative;
|
@@ -1014,6 +1033,15 @@
|
|
1014 |
float: right;
|
1015 |
}
|
1016 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1017 |
.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}
|
1018 |
.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice {background-color: #2980b9;color: white;border:none;padding:3px 5px;}
|
1019 |
.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {color:white;}
|
386 |
margin-top: 1em
|
387 |
}
|
388 |
|
389 |
+
.chameleon.color-preview {
|
390 |
+
-webkit-animation: chameleon 19s infinite;
|
391 |
+
animation: chameleon 19s infinite;
|
392 |
+
}
|
393 |
+
@-webkit-keyframes chameleon {
|
394 |
+
0% {background: #2ecc71;}
|
395 |
+
25% { background: #f1c40f;}
|
396 |
+
50% { background: #e74c3c;}
|
397 |
+
75% {background: #3498db;}
|
398 |
+
100% {background: #2ecc71;}
|
399 |
+
}
|
400 |
+
@keyframes chameleon {
|
401 |
+
0% {background: #2ecc71;}
|
402 |
+
25% {background: #f1c40f;}
|
403 |
+
50% {background: #e74c3c;}
|
404 |
+
75% {background: #3498db;}
|
405 |
+
100% {background: #2ecc71;}
|
406 |
+
}
|
407 |
+
|
408 |
.cmp-coming-soon-maintenance .theme-overlay .screenshot,
|
409 |
.cmp-coming-soon-maintenance .thumbnail-holder {
|
410 |
position: relative;
|
1033 |
float: right;
|
1034 |
}
|
1035 |
|
1036 |
+
.logo-height-wrap {
|
1037 |
+
display: flex;
|
1038 |
+
line-height: 2;
|
1039 |
+
}
|
1040 |
+
|
1041 |
+
.logo-height-wrap input[type="range"]{
|
1042 |
+
margin-right: 1em;
|
1043 |
+
}
|
1044 |
+
|
1045 |
.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}
|
1046 |
.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice {background-color: #2980b9;color: white;border:none;padding:3px 5px;}
|
1047 |
.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {color:white;}
|
css/cmp-settings-style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:1em}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:12px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-o-transition:.3s ease-in-out;transition:.3s ease-in-out}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance .table-wrapper.content,.cmp-coming-soon-maintenance .table-wrapper.install,.cmp-coming-soon-maintenance .table-wrapper.seo,.cmp-coming-soon-maintenance .table-wrapper.theme-setup{display:none}.cmp-coming-soon-maintenance .wp-upload-form.cmp{padding:4em;display:block}.cmp-coming-soon-maintenance .cmp-status{width:95%;padding:10px;cursor:pointer}.cmp-coming-soon-maintenance .cmp-status.active{background-color:#ddd}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{margin-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left;font-weight:600}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-seo_img,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-inputs li.social-labels{display:block}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.2em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .unsplash-feed{display:none}.cmp-coming-soon-maintenance .social-inputs p{position:relative;padding-left:50px;height:50px}.cmp-coming-soon-maintenance .social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.cmp-coming-soon-maintenance .theme-details,.cmp-coming-soon-maintenance .toggle{cursor:pointer}.cmp-coming-soon-maintenance .social-inputs label{padding-left:100px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}.cmp-coming-soon-maintenance #unsplash-media{position:relative}.cmp-coming-soon-maintenance .color-preview,.cmp-coming-soon-maintenance .gradient-preview,.cmp-coming-soon-maintenance .pattern-wrapper{position:relative;background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.cmp-coming-soon-maintenance .theme-overlay .screenshot,.cmp-coming-soon-maintenance .thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.cmp-coming-soon-maintenance .video-local-wrapper,.cmp-coming-soon-maintenance .video-yt-wrapper{position:relative;width:100%;margin-top:1em}.cmp-coming-soon-maintenance #add-pattern{margin-bottom:1em}.cmp-coming-soon-maintenance .info{font-size:12px}.cmp-coming-soon-maintenance .nav-tab i{padding-right:3px}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper,.cmp-coming-soon-maintenance .seo_img-wrapper{margin:1em 0}.cmp-coming-soon-maintenance .favicon-wrapper img,.cmp-coming-soon-maintenance .logo-wrapper img{background-color:#efefef;padding:1em}.cmp-coming-soon-maintenance .favicon-wrapper img{max-width:32px}.cmp-coming-soon-maintenance .background-media img,.cmp-coming-soon-maintenance .logo-wrapper img,.cmp-coming-soon-maintenance .seo_img-wrapper img{max-width:100%;width:100%;vertical-align:top}.cmp-coming-soon-maintenance .background-thumb-wrapper,.cmp-coming-soon-maintenance .video-thumb-wrapper{position:relative;margin:1em 0;overflow:hidden}.cmp-coming-soon-maintenance .thumbnail-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2){display:-ms-grid;display:grid;height:auto;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;-ms-grid-rows:1fr auto;grid-template-rows:1fr auto;grid-template-areas:"Big Big Big" "small-3 small-2 small-1";grid-gap:10px}.cmp-coming-soon-maintenance .custom-gallery.gallery-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"Big Big" "small-2 small-1"!important}.cmp-coming-soon-maintenance .gallery-2 .big-thumb{margin-bottom:1em}.cmp-coming-soon-maintenance .big-thumb{grid-area:Big/Big;overflow:hidden;position:relative}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden}.cmp-coming-soon-maintenance #heading-example{border-bottom:none;line-height:1.5;padding:0}.cmp-coming-soon-maintenance .font-selector td:first-of-type{padding-bottom:2em}.cmp-coming-soon-maintenance .font-selector fieldset{padding:.5em 0}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;-o-transition:background-color .1s;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px 10px 5px 5px;height:2em;background:#656565;line-height:2em;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#27ae60}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-o-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#c0392b;color:#fff;border:none;-o-transition:background-color .5s;transition:background-color .5s}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;min-width:190px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#32b2ff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{-o-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-o-transition:opacity .5s;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{-webkit-transition:all .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:1em}.cmp-coming-soon-maintenance .toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);-ms-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle_handler{background:#e74c3c}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:22px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#23282d}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:26px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.content-settings .cmp-sidebar-wrapper{margin-top:58px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}.cmp-coming-soon-maintenance #niteoCS_subscribe_label{height:150px}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}.cmp-coming-soon-maintenance .cmp-hint{font-size:.9em}.cmp-coming-soon-maintenance .source-repeater-fields input,.cmp-coming-soon-maintenance .target-repeater-fields input{width:95%;margin-bottom:1em}.cmp-coming-soon-maintenance .source-repeater-fields i,.cmp-coming-soon-maintenance .target-repeater-fields i{line-height:2.5;float:right}.cmp-coming-soon-maintenance .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:35px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #dedede;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear,.select2-search--dropdown.select2-search--hide{display:none}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--classic .select2-results>.select2-results__options,.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-selection--single{background-color:#fff;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:1px solid #000;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #dedede;border-radius:4px}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-o-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-o-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:4px 0 0 4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-o-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-o-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#2980b9;color:#fff;border:none;padding:3px 5px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#fff}.cmp-coming-soon-maintenance .select2-container--default .select2-search--inline .select2-search__field{line-height:2.5em;margin-top:0}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__rendered li{margin-bottom:0}.cmp-coming-soon-maintenance .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.cmp-coming-soon-maintenance .select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.cmp-coming-soon-maintenance .select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#2980b9}@media screen and (max-width:1450px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:70%}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{width:calc(30% - 2em + 7px);margin:0}.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{width:calc(50% - 3em - 5px)}}@media screen and (max-width:1270px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:100%;max-width:100%}}@media screen and (max-width:1110px){.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.cmp-coming-soon-maintenance .table-wrapper th{display:block}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:1em}}@media screen and (max-width:1024px){.cmp-coming-soon-maintenance .table-wrapper table{width:100%}.cmp-coming-soon-maintenance .table-wrapper th{width:140px}}@media screen and (max-width:782px){.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;margin-bottom:1em!important}.cmp-coming-soon-maintenance .theme-overlay .theme-info,.cmp-coming-soon-maintenance .theme-overlay .theme-screenshots{width:100%;float:none}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{font-size:13px}}@media screen and (max-width:560px){.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:50px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:105px}.cmp-coming-soon-maintenance .social-inputs p i{top:22px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{top:28px;left:53px}.cmp-coming-soon-maintenance .social-inputs label{padding-left:55px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
|
1 |
+
.cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:1em}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:12px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-o-transition:.3s ease-in-out;transition:.3s ease-in-out}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance .table-wrapper.content,.cmp-coming-soon-maintenance .table-wrapper.install,.cmp-coming-soon-maintenance .table-wrapper.seo,.cmp-coming-soon-maintenance .table-wrapper.theme-setup{display:none}.cmp-coming-soon-maintenance .wp-upload-form.cmp{padding:4em;display:block}.cmp-coming-soon-maintenance .cmp-status{width:95%;padding:10px;cursor:pointer}.cmp-coming-soon-maintenance .cmp-status.active{background-color:#ddd}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{margin-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left;font-weight:600}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-seo_img,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-inputs li.social-labels{display:block}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.2em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .unsplash-feed{display:none}.cmp-coming-soon-maintenance .social-inputs p{position:relative;padding-left:50px;height:50px}.cmp-coming-soon-maintenance .social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.cmp-coming-soon-maintenance .theme-details,.cmp-coming-soon-maintenance .toggle{cursor:pointer}.cmp-coming-soon-maintenance .social-inputs label{padding-left:100px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}.cmp-coming-soon-maintenance #unsplash-media{position:relative}.cmp-coming-soon-maintenance .color-preview,.cmp-coming-soon-maintenance .gradient-preview,.cmp-coming-soon-maintenance .pattern-wrapper{position:relative;background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.chameleon.color-preview{-webkit-animation:chameleon 19s infinite;animation:chameleon 19s infinite}@-webkit-keyframes chameleon{0%,100%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}}@keyframes chameleon{0%,100%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}}.cmp-coming-soon-maintenance .theme-overlay .screenshot,.cmp-coming-soon-maintenance .thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.cmp-coming-soon-maintenance .video-local-wrapper,.cmp-coming-soon-maintenance .video-yt-wrapper{position:relative;width:100%;margin-top:1em}.cmp-coming-soon-maintenance #add-pattern{margin-bottom:1em}.cmp-coming-soon-maintenance .info{font-size:12px}.cmp-coming-soon-maintenance .nav-tab i{padding-right:3px}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper,.cmp-coming-soon-maintenance .seo_img-wrapper{margin:1em 0}.cmp-coming-soon-maintenance .favicon-wrapper img,.cmp-coming-soon-maintenance .logo-wrapper img{background-color:#efefef;padding:1em}.cmp-coming-soon-maintenance .favicon-wrapper img{max-width:32px}.cmp-coming-soon-maintenance .background-media img,.cmp-coming-soon-maintenance .logo-wrapper img,.cmp-coming-soon-maintenance .seo_img-wrapper img{max-width:100%;width:100%;vertical-align:top}.cmp-coming-soon-maintenance .background-thumb-wrapper,.cmp-coming-soon-maintenance .video-thumb-wrapper{position:relative;margin:1em 0;overflow:hidden}.cmp-coming-soon-maintenance .thumbnail-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2){display:-ms-grid;display:grid;height:auto;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;-ms-grid-rows:1fr auto;grid-template-rows:1fr auto;grid-template-areas:"Big Big Big" "small-3 small-2 small-1";grid-gap:10px}.cmp-coming-soon-maintenance .custom-gallery.gallery-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"Big Big" "small-2 small-1"!important}.cmp-coming-soon-maintenance .gallery-2 .big-thumb{margin-bottom:1em}.cmp-coming-soon-maintenance .big-thumb{grid-area:Big/Big;overflow:hidden;position:relative}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden}.cmp-coming-soon-maintenance #heading-example{border-bottom:none;line-height:1.5;padding:0}.cmp-coming-soon-maintenance .font-selector td:first-of-type{padding-bottom:2em}.cmp-coming-soon-maintenance .font-selector fieldset{padding:.5em 0}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;-o-transition:background-color .1s;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px 10px 5px 5px;height:2em;background:#656565;line-height:2em;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#27ae60}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-o-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#c0392b;color:#fff;border:none;-o-transition:background-color .5s;transition:background-color .5s}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;min-width:190px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#32b2ff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{-o-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-o-transition:opacity .5s;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{-webkit-transition:all .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:1em}.cmp-coming-soon-maintenance .toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);-ms-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle_handler{background:#e74c3c}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:22px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#23282d}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:26px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.content-settings .cmp-sidebar-wrapper{margin-top:58px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}.cmp-coming-soon-maintenance #niteoCS_subscribe_label{height:150px}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}.cmp-coming-soon-maintenance .cmp-hint{font-size:.9em}.cmp-coming-soon-maintenance .source-repeater-fields input,.cmp-coming-soon-maintenance .target-repeater-fields input{width:95%;margin-bottom:1em}.cmp-coming-soon-maintenance .source-repeater-fields i,.cmp-coming-soon-maintenance .target-repeater-fields i{line-height:2.5;float:right}.logo-height-wrap{display:flex;line-height:2}.logo-height-wrap input[type=range]{margin-right:1em}.cmp-coming-soon-maintenance .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:35px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #dedede;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear,.select2-search--dropdown.select2-search--hide{display:none}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--classic .select2-results>.select2-results__options,.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-selection--single{background-color:#fff;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:1px solid #000;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #dedede;border-radius:4px}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-o-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-o-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:4px 0 0 4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-o-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-o-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#2980b9;color:#fff;border:none;padding:3px 5px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#fff}.cmp-coming-soon-maintenance .select2-container--default .select2-search--inline .select2-search__field{line-height:2.5em;margin-top:0}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__rendered li{margin-bottom:0}.cmp-coming-soon-maintenance .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.cmp-coming-soon-maintenance .select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.cmp-coming-soon-maintenance .select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#2980b9}@media screen and (max-width:1450px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:70%}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{width:calc(30% - 2em + 7px);margin:0}.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{width:calc(50% - 3em - 5px)}}@media screen and (max-width:1270px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:100%;max-width:100%}}@media screen and (max-width:1110px){.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.cmp-coming-soon-maintenance .table-wrapper th{display:block}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:1em}}@media screen and (max-width:1024px){.cmp-coming-soon-maintenance .table-wrapper table{width:100%}.cmp-coming-soon-maintenance .table-wrapper th{width:140px}}@media screen and (max-width:782px){.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;margin-bottom:1em!important}.cmp-coming-soon-maintenance .theme-overlay .theme-info,.cmp-coming-soon-maintenance .theme-overlay .theme-screenshots{width:100%;float:none}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{font-size:13px}}@media screen and (max-width:560px){.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:50px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:105px}.cmp-coming-soon-maintenance .social-inputs p i{top:22px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{top:28px;left:53px}.cmp-coming-soon-maintenance .social-inputs label{padding-left:55px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
|
img/thumbnails/pluto/screenshot1.jpg
ADDED
Binary file
|
img/thumbnails/pluto/screenshot2.jpg
ADDED
Binary file
|
img/thumbnails/pluto/screenshot3.jpg
ADDED
Binary file
|
img/thumbnails/pluto_thumbnail.jpg
ADDED
Binary file
|
inc/class-cmp-render_html.php
CHANGED
@@ -13,11 +13,12 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
13 |
if ( isset($_GET['theme']) && !empty($_GET['theme']) && isset($_GET['background']) && $_GET['background'] == 1 ) {
|
14 |
|
15 |
$theme = esc_attr( $_GET['theme'] );
|
|
|
16 |
switch ( $theme ) {
|
17 |
case 'fifty':
|
18 |
case 'stylo':
|
19 |
case 'apollo':
|
20 |
-
$this->cmp_slider();
|
21 |
return;
|
22 |
|
23 |
default:
|
@@ -27,6 +28,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
27 |
|
28 |
$size = $this->isMobile() ? 'large' : 'full';
|
29 |
$html = '';
|
|
|
30 |
// change background to default image, if image preview background is set
|
31 |
if ( isset( $_GET['background'] ) && !empty($_GET['background']) ) {
|
32 |
$niteoCS_banner = esc_attr( $_GET['background'] );
|
@@ -42,6 +44,16 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
42 |
$niteoCS_banner = '2';
|
43 |
}
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
switch ( $niteoCS_banner ) {
|
46 |
// custom media
|
47 |
case '0':
|
@@ -169,7 +181,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
169 |
|
170 |
break;
|
171 |
|
172 |
-
|
173 |
// default image
|
174 |
$banner_url = $this->cmp_themeURL( $themeslug ).$themeslug.'/img/'.$themeslug.'_banner_'.$size.'.jpg';
|
175 |
$html = '<div id="background-image" class="image" style="background-image:url(\''.esc_url( $banner_url ).'\')"></div>';
|
@@ -235,18 +247,22 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
235 |
|
236 |
$html = '<div id="background-image" class="gradient loaded" style="background:-moz-linear-gradient(-45deg, '.esc_attr( $niteoCS_gradient_one ).' 0%, '.esc_attr( $niteoCS_gradient_two ).' 100%);background:-webkit-linear-gradient(-45deg, '.esc_attr( $niteoCS_gradient_one ).' 0%, '.esc_attr( $niteoCS_gradient_two ).' 100%);background:linear-gradient(135deg,'.esc_attr( $niteoCS_gradient_one ).' 0%, '.esc_attr( $niteoCS_gradient_two ).' 100%)"></div>';
|
237 |
break;
|
|
|
|
|
|
|
|
|
|
|
238 |
default:
|
239 |
break;
|
240 |
}
|
241 |
|
242 |
// add overlay to images/videos
|
243 |
-
if ( $niteoCS_banner != '4' && $niteoCS_banner != '6' ) {
|
244 |
$overlay = $this->background_overlay( $themeslug );
|
245 |
$html .= $overlay;
|
246 |
}
|
247 |
|
248 |
// add text overlay
|
249 |
-
|
250 |
$html .= $this->background_text_overlay( $themeslug );
|
251 |
|
252 |
return $html;
|
@@ -257,8 +273,8 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
257 |
public function cmp_slider( $themeslug ) {
|
258 |
|
259 |
// change to background, if theme preview specific themes
|
260 |
-
if ( isset($_GET['background']) && $_GET['background']
|
261 |
-
echo $this->cmp_background();
|
262 |
return;
|
263 |
}
|
264 |
|
@@ -269,6 +285,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
269 |
$size = $this->isMobile() ? 'large' : 'full';
|
270 |
|
271 |
$banner_id = get_option('niteoCS_banner_id');
|
|
|
272 |
if ( $banner_id != '' ) {
|
273 |
$banner_ids = explode(',', $banner_id);
|
274 |
}
|
@@ -292,11 +309,11 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
292 |
$banner_ids = array(35, 36, 37);
|
293 |
$slider_effect = 'mask-transition';
|
294 |
break;
|
295 |
-
case 'vega':
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
default:
|
301 |
$slider_effect = 'true';
|
302 |
break;
|
@@ -307,7 +324,6 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
307 |
if ( $niteoCS_banner == '0' && isset( $banner_ids ) && count( $banner_ids ) < 2 ) {
|
308 |
echo $this->cmp_background( '0', $themeslug ) ;
|
309 |
return false;
|
310 |
-
|
311 |
}
|
312 |
?>
|
313 |
|
@@ -589,19 +605,19 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
589 |
|
590 |
switch ($social['name']) {
|
591 |
case 'envelope-o':
|
592 |
-
echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="mailto:'.antispambot(esc_html($social['url'])).'" target="_blank">Email</a></li>' : '<li class="social-child' . $liclass . '"><a href="mailto:'.antispambot(esc_html($social['url'])).'" target="_blank">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
|
593 |
break;
|
594 |
|
595 |
case 'phone':
|
596 |
-
echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="tel:'.esc_attr($social['url']).'" target="_blank">'.__('Phone', 'cmp-coming-soon-maintenance').'</a></li>' : '<li class="social-child' . $liclass . '"><a href="tel:'.esc_html($social['url']).'" target="_blank">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
|
597 |
break;
|
598 |
|
599 |
case 'whatsapp':
|
600 |
-
echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="https://api.whatsapp.com/send?phone='.esc_html(str_replace('+', '', $social['url'])).'" target="_blank">'.ucfirst($social['name']).'</a></li>' : '<li class="social-child' . $liclass . '"><a href="https://api.whatsapp.com/send?phone='.esc_html(str_replace('+', '', $social['url'])).'" target="_blank">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
|
601 |
break;
|
602 |
|
603 |
default:
|
604 |
-
echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="'.esc_url($social['url']).'" target="top">'.ucfirst($social['name']).'</a></li>' : '<li class="social-child' . $liclass . '"><a href="'.esc_url($social['url']).'" target="top">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
|
605 |
break;
|
606 |
}
|
607 |
}
|
@@ -643,6 +659,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
643 |
case 'fifty':
|
644 |
case 'element':
|
645 |
case 'countdown':
|
|
|
646 |
$logo_type = 'graphic';
|
647 |
break;
|
648 |
|
@@ -738,7 +755,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
738 |
$submit = isset($translation[8]['translation']) ? stripslashes( $translation[8]['translation'] ) : 'Submit';
|
739 |
|
740 |
// override label if in Theme preview
|
741 |
-
if ( isset( $_GET['theme'] ) ) {
|
742 |
switch ( $_GET['theme'] ) {
|
743 |
case 'element':
|
744 |
$placeholder = 'SUBSCRIBE US';
|
@@ -764,6 +781,11 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
764 |
$placeholder_lastname = ' ' . $placeholder_lastname;
|
765 |
}
|
766 |
|
|
|
|
|
|
|
|
|
|
|
767 |
$submit = ( ( $this->cmp_selectedTheme() == 'postery' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'postery' ) ) ? '' : $submit;
|
768 |
$submit = ( ( $this->cmp_selectedTheme() == 'agency' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'agency' ) ) ? '' : $submit;
|
769 |
|
@@ -978,6 +1000,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
978 |
$body = '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ipsum a arcu cursus vitae congue mauris. Eros in cursus turpis massa tincidunt.</p>';
|
979 |
break;
|
980 |
|
|
|
|
|
|
|
|
|
981 |
default:
|
982 |
$body = wpautop( stripslashes( get_option('niteoCS_body', '') ) );
|
983 |
break;
|
@@ -1052,8 +1078,12 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1052 |
case 'mercury':
|
1053 |
$title = 'NEW COLLECTION ON THE WAY!';
|
1054 |
break;
|
|
|
|
|
|
|
|
|
1055 |
|
1056 |
-
|
1057 |
break;
|
1058 |
}
|
1059 |
|
@@ -1180,11 +1210,23 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1180 |
$themeslug = esc_attr($_GET['theme']);
|
1181 |
}
|
1182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1183 |
// add CMP CSS to all themes
|
1184 |
ob_start();
|
1185 |
|
1186 |
// add blur effect if enabled
|
1187 |
$blur = get_option('niteoCS_effect_blur', '0.0');
|
|
|
1188 |
if ( $blur != '0.0' ) {
|
1189 |
?>
|
1190 |
<!-- blur effect -->
|
@@ -1202,12 +1244,45 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1202 |
<style>
|
1203 |
.wp-video {margin: 0 auto;}
|
1204 |
.wp-video-shortcode {max-width: 100%;}
|
|
|
1205 |
</style>
|
1206 |
|
|
|
|
|
|
|
1207 |
<style>
|
1208 |
-
|
|
|
|
|
1209 |
</style>
|
1210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1211 |
<?php
|
1212 |
// check for premium themes special effects
|
1213 |
if ( in_array( $themeslug, $this->cmp_premium_themes_installed() ) ) {
|
@@ -1301,7 +1376,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1301 |
*
|
1302 |
* @return void
|
1303 |
**/
|
1304 |
-
public function cmp_enqueue_styles( $themeslug = 'hardwork', $font_ani = 'none', $slider = '0', $banner_type = '2' ) {
|
1305 |
|
1306 |
$ver = $this->cmp_theme_version( $themeslug );
|
1307 |
|
@@ -1316,6 +1391,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1316 |
echo '<link href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" rel="stylesheet">';
|
1317 |
}
|
1318 |
|
|
|
|
|
|
|
|
|
1319 |
}
|
1320 |
|
1321 |
|
13 |
if ( isset($_GET['theme']) && !empty($_GET['theme']) && isset($_GET['background']) && $_GET['background'] == 1 ) {
|
14 |
|
15 |
$theme = esc_attr( $_GET['theme'] );
|
16 |
+
|
17 |
switch ( $theme ) {
|
18 |
case 'fifty':
|
19 |
case 'stylo':
|
20 |
case 'apollo':
|
21 |
+
$this->cmp_slider( $theme );
|
22 |
return;
|
23 |
|
24 |
default:
|
28 |
|
29 |
$size = $this->isMobile() ? 'large' : 'full';
|
30 |
$html = '';
|
31 |
+
|
32 |
// change background to default image, if image preview background is set
|
33 |
if ( isset( $_GET['background'] ) && !empty($_GET['background']) ) {
|
34 |
$niteoCS_banner = esc_attr( $_GET['background'] );
|
44 |
$niteoCS_banner = '2';
|
45 |
}
|
46 |
|
47 |
+
// pluto specific - change default image to chameleon
|
48 |
+
if ( $themeslug === 'pluto' && $niteoCS_banner === '2' && !isset($_GET['theme']) ) {
|
49 |
+
$niteoCS_banner = '7';
|
50 |
+
}
|
51 |
+
|
52 |
+
// pluto specific theme preview
|
53 |
+
if ( (isset($_GET['theme']) && $_GET['theme'] === 'pluto') && isset( $_GET['background'] ) && $_GET['background'] == '4' ) {
|
54 |
+
$niteoCS_banner = '7';
|
55 |
+
}
|
56 |
+
|
57 |
switch ( $niteoCS_banner ) {
|
58 |
// custom media
|
59 |
case '0':
|
181 |
|
182 |
break;
|
183 |
|
184 |
+
case '2':
|
185 |
// default image
|
186 |
$banner_url = $this->cmp_themeURL( $themeslug ).$themeslug.'/img/'.$themeslug.'_banner_'.$size.'.jpg';
|
187 |
$html = '<div id="background-image" class="image" style="background-image:url(\''.esc_url( $banner_url ).'\')"></div>';
|
247 |
|
248 |
$html = '<div id="background-image" class="gradient loaded" style="background:-moz-linear-gradient(-45deg, '.esc_attr( $niteoCS_gradient_one ).' 0%, '.esc_attr( $niteoCS_gradient_two ).' 100%);background:-webkit-linear-gradient(-45deg, '.esc_attr( $niteoCS_gradient_one ).' 0%, '.esc_attr( $niteoCS_gradient_two ).' 100%);background:linear-gradient(135deg,'.esc_attr( $niteoCS_gradient_one ).' 0%, '.esc_attr( $niteoCS_gradient_two ).' 100%)"></div>';
|
249 |
break;
|
250 |
+
|
251 |
+
// CHAMELEON BACKGROUND
|
252 |
+
case '7':
|
253 |
+
$html ='<div id="background-image" class="color chameleon loaded"></div>';
|
254 |
+
break;
|
255 |
default:
|
256 |
break;
|
257 |
}
|
258 |
|
259 |
// add overlay to images/videos
|
260 |
+
if ( $niteoCS_banner != '4' && $niteoCS_banner != '6' && $niteoCS_banner != '7') {
|
261 |
$overlay = $this->background_overlay( $themeslug );
|
262 |
$html .= $overlay;
|
263 |
}
|
264 |
|
265 |
// add text overlay
|
|
|
266 |
$html .= $this->background_text_overlay( $themeslug );
|
267 |
|
268 |
return $html;
|
273 |
public function cmp_slider( $themeslug ) {
|
274 |
|
275 |
// change to background, if theme preview specific themes
|
276 |
+
if ( isset($_GET['background']) && $_GET['background'] !== '1' ) {
|
277 |
+
echo $this->cmp_background( $_GET['background'], $themeslug );
|
278 |
return;
|
279 |
}
|
280 |
|
285 |
$size = $this->isMobile() ? 'large' : 'full';
|
286 |
|
287 |
$banner_id = get_option('niteoCS_banner_id');
|
288 |
+
|
289 |
if ( $banner_id != '' ) {
|
290 |
$banner_ids = explode(',', $banner_id);
|
291 |
}
|
309 |
$banner_ids = array(35, 36, 37);
|
310 |
$slider_effect = 'mask-transition';
|
311 |
break;
|
312 |
+
// case 'vega':
|
313 |
+
// $niteoCS_banner = '0';
|
314 |
+
// $banner_ids = array(52, 53);
|
315 |
+
// $slider_effect = 'true';
|
316 |
+
// break;
|
317 |
default:
|
318 |
$slider_effect = 'true';
|
319 |
break;
|
324 |
if ( $niteoCS_banner == '0' && isset( $banner_ids ) && count( $banner_ids ) < 2 ) {
|
325 |
echo $this->cmp_background( '0', $themeslug ) ;
|
326 |
return false;
|
|
|
327 |
}
|
328 |
?>
|
329 |
|
605 |
|
606 |
switch ($social['name']) {
|
607 |
case 'envelope-o':
|
608 |
+
echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="mailto:'.antispambot(esc_html($social['url'])).'" target="_blank" class="social-'.$social['name'].'">Email</a></li>' : '<li class="social-child' . $liclass . '"><a href="mailto:'.antispambot(esc_html($social['url'])).'" target="_blank" class="social-'.$social['name'].'">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
|
609 |
break;
|
610 |
|
611 |
case 'phone':
|
612 |
+
echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="tel:'.esc_attr($social['url']).'" target="_blank" class="social-'.$social['name'].'">'.__('Phone', 'cmp-coming-soon-maintenance').'</a></li>' : '<li class="social-child' . $liclass . '"><a href="tel:'.esc_html($social['url']).'" target="_blank" class="social-'.$social['name'].'">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
|
613 |
break;
|
614 |
|
615 |
case 'whatsapp':
|
616 |
+
echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="https://api.whatsapp.com/send?phone='.esc_html(str_replace('+', '', $social['url'])).'" target="_blank" class="social-'.$social['name'].'">'.ucfirst($social['name']).'</a></li>' : '<li class="social-child' . $liclass . '"><a href="https://api.whatsapp.com/send?phone='.esc_html(str_replace('+', '', $social['url'])).'" target="_blank" class="social-'.$social['name'].'">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
|
617 |
break;
|
618 |
|
619 |
default:
|
620 |
+
echo ( $mode == 'text' ) ? '<li class="social-child' . $liclass . '"><a href="'.esc_url($social['url']).'" target="top" class="social-'.$social['name'].'">'.ucfirst($social['name']).'</a></li>' : '<li class="social-child' . $liclass . '"><a href="'.esc_url($social['url']).'" target="top" class="social-'.$social['name'].'">'.$theme_html.'<i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
|
621 |
break;
|
622 |
}
|
623 |
}
|
659 |
case 'fifty':
|
660 |
case 'element':
|
661 |
case 'countdown':
|
662 |
+
case 'pluto':
|
663 |
$logo_type = 'graphic';
|
664 |
break;
|
665 |
|
755 |
$submit = isset($translation[8]['translation']) ? stripslashes( $translation[8]['translation'] ) : 'Submit';
|
756 |
|
757 |
// override label if in Theme preview
|
758 |
+
if ( isset( $_GET['theme'] ) ) {
|
759 |
switch ( $_GET['theme'] ) {
|
760 |
case 'element':
|
761 |
$placeholder = 'SUBSCRIBE US';
|
781 |
$placeholder_lastname = ' ' . $placeholder_lastname;
|
782 |
}
|
783 |
|
784 |
+
// overwrite it with theme specific requirements
|
785 |
+
if ( ( $this->cmp_selectedTheme() == 'pluto' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'pluto' ) ) {
|
786 |
+
$placeholder = ' ' . $placeholder;
|
787 |
+
}
|
788 |
+
|
789 |
$submit = ( ( $this->cmp_selectedTheme() == 'postery' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'postery' ) ) ? '' : $submit;
|
790 |
$submit = ( ( $this->cmp_selectedTheme() == 'agency' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'agency' ) ) ? '' : $submit;
|
791 |
|
1000 |
$body = '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ipsum a arcu cursus vitae congue mauris. Eros in cursus turpis massa tincidunt.</p>';
|
1001 |
break;
|
1002 |
|
1003 |
+
case 'pluto':
|
1004 |
+
$body = '';
|
1005 |
+
break;
|
1006 |
+
|
1007 |
default:
|
1008 |
$body = wpautop( stripslashes( get_option('niteoCS_body', '') ) );
|
1009 |
break;
|
1078 |
case 'mercury':
|
1079 |
$title = 'NEW COLLECTION ON THE WAY!';
|
1080 |
break;
|
1081 |
+
|
1082 |
+
case 'mercury':
|
1083 |
+
$title = 'WE WILL BE ONINE AS SOON AS POSSIBLE!';
|
1084 |
+
break;
|
1085 |
|
1086 |
+
default:
|
1087 |
break;
|
1088 |
}
|
1089 |
|
1210 |
$themeslug = esc_attr($_GET['theme']);
|
1211 |
}
|
1212 |
|
1213 |
+
|
1214 |
+
$banner = get_option('niteoCS_banner', '2');
|
1215 |
+
|
1216 |
+
if ( isset( $_GET['background'] ) && !empty($_GET['background']) ) {
|
1217 |
+
$banner = esc_attr( $_GET['background'] );
|
1218 |
+
|
1219 |
+
if ( $themeslug === 'pluto' && $banner === '4' ) {
|
1220 |
+
$banner = '2';
|
1221 |
+
}
|
1222 |
+
}
|
1223 |
+
|
1224 |
// add CMP CSS to all themes
|
1225 |
ob_start();
|
1226 |
|
1227 |
// add blur effect if enabled
|
1228 |
$blur = get_option('niteoCS_effect_blur', '0.0');
|
1229 |
+
|
1230 |
if ( $blur != '0.0' ) {
|
1231 |
?>
|
1232 |
<!-- blur effect -->
|
1244 |
<style>
|
1245 |
.wp-video {margin: 0 auto;}
|
1246 |
.wp-video-shortcode {max-width: 100%;}
|
1247 |
+
.grecaptcha-badge {display: none;}
|
1248 |
</style>
|
1249 |
|
1250 |
+
<?php
|
1251 |
+
if ( get_option('niteoCS_logo_custom_size', '0') !== '0' ) { ?>
|
1252 |
+
<!-- custom logo height -->
|
1253 |
<style>
|
1254 |
+
@media screen and (min-width:1024px) {
|
1255 |
+
.logo-wrapper img {max-height: <?php echo esc_attr(get_option('niteoCS_logo_size', '0'));?>px}
|
1256 |
+
}
|
1257 |
</style>
|
1258 |
+
<?php
|
1259 |
+
}
|
1260 |
+
|
1261 |
+
|
1262 |
+
// CHAMELEON BACKGROUND STYLES
|
1263 |
+
if ( $themeslug === 'pluto' && $banner === '2' ): ?>
|
1264 |
+
<style>
|
1265 |
+
#background-image {
|
1266 |
+
-webkit-animation: chameleon 19s infinite;
|
1267 |
+
animation: chameleon 19s infinite;
|
1268 |
+
}
|
1269 |
+
@-webkit-keyframes chameleon {
|
1270 |
+
0% {background: #2ecc71;}
|
1271 |
+
25% { background: #f1c40f;}
|
1272 |
+
50% { background: #e74c3c;}
|
1273 |
+
75% {background: #3498db;}
|
1274 |
+
100% {background: #2ecc71;}
|
1275 |
+
}
|
1276 |
+
@keyframes chameleon {
|
1277 |
+
0% {background: #2ecc71; }
|
1278 |
+
25% {background: #f1c40f;}
|
1279 |
+
50% {background: #e74c3c;}
|
1280 |
+
75% {background: #3498db;}
|
1281 |
+
100% {background: #2ecc71;}
|
1282 |
+
}
|
1283 |
+
</style>
|
1284 |
+
<?php endif;?>
|
1285 |
+
|
1286 |
<?php
|
1287 |
// check for premium themes special effects
|
1288 |
if ( in_array( $themeslug, $this->cmp_premium_themes_installed() ) ) {
|
1376 |
*
|
1377 |
* @return void
|
1378 |
**/
|
1379 |
+
public function cmp_enqueue_styles( $themeslug = 'hardwork', $font_ani = 'none', $slider = '0', $banner_type = '2', $fa = false ) {
|
1380 |
|
1381 |
$ver = $this->cmp_theme_version( $themeslug );
|
1382 |
|
1391 |
echo '<link href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" rel="stylesheet">';
|
1392 |
}
|
1393 |
|
1394 |
+
if ( $fa === true ) {
|
1395 |
+
echo '<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">';
|
1396 |
+
}
|
1397 |
+
|
1398 |
}
|
1399 |
|
1400 |
|
inc/settings/settings-background.php
CHANGED
@@ -77,7 +77,6 @@ $gradient_array = array(
|
|
77 |
<input type="radio" class="background-type" name="niteoCS_banner" value="6" <?php checked( '6', $banner_type ); ?>> <?php _e('Gradient Color', 'cmp-coming-soon-maintenance');?>
|
78 |
</label>
|
79 |
</p>
|
80 |
-
|
81 |
</fieldset>
|
82 |
</th>
|
83 |
|
@@ -85,11 +84,20 @@ $gradient_array = array(
|
|
85 |
|
86 |
<!-- DEFAULT BACKGROUND -->
|
87 |
<fieldset class="background-type-switch default_banner x2">
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
<div class="background-thumb-wrapper">
|
89 |
<img src="<?php echo esc_url( $this->cmp_themeURL( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/img/'.$this->cmp_selectedTheme().'_banner_large.jpg' );?>" alt="Default Media">
|
90 |
<div class="thumbnail-overlay"></div>
|
91 |
</div>
|
92 |
-
|
|
|
|
|
|
|
93 |
</fieldset>
|
94 |
|
95 |
<!-- CUSTOM BACKGROUND -->
|
@@ -339,9 +347,8 @@ $gradient_array = array(
|
|
339 |
<div class="gradient-preview" style="background:-moz-linear-gradient(-45deg, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_one_custom ) : esc_attr( $niteoCS_gradient_one ); ?> 0%, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_two_custom ) : esc_attr( $niteoCS_gradient_two ); ?> 100%);background:-webkit-linear-gradient(-45deg, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_one_custom ) : esc_attr( $niteoCS_gradient_one ); ?> 0%, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_two_custom ) : esc_attr( $niteoCS_gradient_two ); ?> 100%);background:linear-gradient(135deg, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_one_custom ) : esc_attr( $niteoCS_gradient_one ); ?> 0%, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_two_custom ) : esc_attr( $niteoCS_gradient_two ); ?> 100%)"></div>
|
340 |
</fieldset>
|
341 |
|
342 |
-
|
343 |
<!-- BACKGROUND OVERLAY SETTINGS -->
|
344 |
-
<div class="background-type-switch x0 x1
|
345 |
|
346 |
<fieldset>
|
347 |
<legend class="screen-reader-text">
|
77 |
<input type="radio" class="background-type" name="niteoCS_banner" value="6" <?php checked( '6', $banner_type ); ?>> <?php _e('Gradient Color', 'cmp-coming-soon-maintenance');?>
|
78 |
</label>
|
79 |
</p>
|
|
|
80 |
</fieldset>
|
81 |
</th>
|
82 |
|
84 |
|
85 |
<!-- DEFAULT BACKGROUND -->
|
86 |
<fieldset class="background-type-switch default_banner x2">
|
87 |
+
|
88 |
+
<?php if ( $this->cmp_selectedTheme() === 'pluto' ) { ?>
|
89 |
+
<div class="chameleon color-preview"></div>
|
90 |
+
<?php
|
91 |
+
} else { ?>
|
92 |
+
|
93 |
<div class="background-thumb-wrapper">
|
94 |
<img src="<?php echo esc_url( $this->cmp_themeURL( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/img/'.$this->cmp_selectedTheme().'_banner_large.jpg' );?>" alt="Default Media">
|
95 |
<div class="thumbnail-overlay"></div>
|
96 |
</div>
|
97 |
+
<?php
|
98 |
+
} ?>
|
99 |
+
|
100 |
+
<p class="info"><?php _e('Every CMP Theme is using unique default background.','cmp-coming-soon-maintenance')?></p>
|
101 |
</fieldset>
|
102 |
|
103 |
<!-- CUSTOM BACKGROUND -->
|
347 |
<div class="gradient-preview" style="background:-moz-linear-gradient(-45deg, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_one_custom ) : esc_attr( $niteoCS_gradient_one ); ?> 0%, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_two_custom ) : esc_attr( $niteoCS_gradient_two ); ?> 100%);background:-webkit-linear-gradient(-45deg, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_one_custom ) : esc_attr( $niteoCS_gradient_one ); ?> 0%, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_two_custom ) : esc_attr( $niteoCS_gradient_two ); ?> 100%);background:linear-gradient(135deg, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_one_custom ) : esc_attr( $niteoCS_gradient_one ); ?> 0%, <?php echo ( $niteoCS_gradient == 'custom' ) ? esc_attr( $niteoCS_gradient_two_custom ) : esc_attr( $niteoCS_gradient_two ); ?> 100%)"></div>
|
348 |
</fieldset>
|
349 |
|
|
|
350 |
<!-- BACKGROUND OVERLAY SETTINGS -->
|
351 |
+
<div class="background-type-switch x0 x1 x3 x5 <?php echo ( $this->cmp_selectedTheme() === 'pluto' ) ? '' : 'x2';?>">
|
352 |
|
353 |
<fieldset>
|
354 |
<legend class="screen-reader-text">
|
inc/settings/settings-logo.php
CHANGED
@@ -49,12 +49,24 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
49 |
<div class="logo-wrapper">
|
50 |
<?php
|
51 |
if ( isset($logo_url) && $logo_url !== '' ) {
|
52 |
-
echo '<img src="'.esc_url($logo_url).'" alt="">';
|
53 |
} ?>
|
54 |
</div>
|
55 |
-
<input id="delete-logo" type="button" class="button" value="Remove Logo"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
</fieldset>
|
|
|
|
|
|
|
58 |
|
59 |
<p class="cmp-logo-switch disabled"><?php _e('Logo is disabled', 'cmp-coming-soon-maintenance');?></p>
|
60 |
</td>
|
49 |
<div class="logo-wrapper">
|
50 |
<?php
|
51 |
if ( isset($logo_url) && $logo_url !== '' ) {
|
52 |
+
echo '<img src="'.esc_url($logo_url).'" alt="CMP Logo">';
|
53 |
} ?>
|
54 |
</div>
|
55 |
+
<input id="delete-logo" type="button" class="button" value="Remove Logo" /><br><br>
|
56 |
+
|
57 |
+
<label for="niteoCS_logo_custom_size"><input type="checkbox" name="niteoCS_logo_custom_size" id="niteoCS_logo_custom_size" class="cmp-logo-size" value='1' <?php checked($niteoCS_logo_custom_size, '1');?>><?php _e('Set custom logo height', 'cmp-coming-soon-maintenance');?></label>
|
58 |
+
|
59 |
+
<fieldset class="cmp-logo-size-switch x1">
|
60 |
+
<div class="logo-height-wrap">
|
61 |
+
<input type="range" id="logo_size_slider" min="50" max="500" step="5" value="<?php echo esc_attr( $niteoCS_logo_size ); ?>" data-type="content" />
|
62 |
+
<input type="number" id="niteoCS_logo_size" name="niteoCS_logo_size" min="50" max="500" step="5" value="<?php echo esc_attr( $niteoCS_logo_size ); ?>"><span>px</span>
|
63 |
+
</div>
|
64 |
+
</fieldset>
|
65 |
|
66 |
</fieldset>
|
67 |
+
|
68 |
+
|
69 |
+
|
70 |
|
71 |
<p class="cmp-logo-switch disabled"><?php _e('Logo is disabled', 'cmp-coming-soon-maintenance');?></p>
|
72 |
</td>
|
inc/settings/settings-special_effects.php
CHANGED
@@ -48,7 +48,7 @@ $constellation_color = get_option('niteoCS_special_effect[constellation][color]
|
|
48 |
|
49 |
<td>
|
50 |
<fieldset class="special-effect-switch disabled">
|
51 |
-
<p><?php _e('
|
52 |
|
53 |
</fieldset>
|
54 |
|
48 |
|
49 |
<td>
|
50 |
<fieldset class="special-effect-switch disabled">
|
51 |
+
<p><?php _e('Background effects are disabled', 'cmp-coming-soon-maintenance')?></p>
|
52 |
|
53 |
</fieldset>
|
54 |
|
js/preview-iframe.js
CHANGED
@@ -9,7 +9,26 @@ $( document ).ready(function() {
|
|
9 |
}
|
10 |
}
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
$('iframe').one('load', function() {
|
15 |
$('body').addClass('loaded');
|
@@ -45,6 +64,7 @@ $( document ).ready(function() {
|
|
45 |
|
46 |
// // reload iframe and change browser URL history
|
47 |
$('#theme-preview').attr('src', iframe_url);
|
|
|
48 |
ChangeUrl(new_url, new_url);
|
49 |
|
50 |
// change customizers href src to new params
|
@@ -60,164 +80,180 @@ $( document ).ready(function() {
|
|
60 |
|
61 |
});
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
obj.style.height = 0;
|
67 |
-
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
|
68 |
-
}
|
69 |
-
|
70 |
-
function ChangeUrl(page, url) {
|
71 |
-
if (typeof (window.parent.history.pushState) != "undefined") {
|
72 |
-
var obj = { Page: page, Url: url };
|
73 |
-
window.parent.history.pushState(obj, obj.Page, obj.Url);
|
74 |
-
} else {
|
75 |
-
return;
|
76 |
}
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
$('#slider').css({ width: slideWidth, height: slideHeight });
|
86 |
-
|
87 |
-
$('#slider ul').css({ width: sliderUlWidth, marginLeft: - slideWidth });
|
88 |
-
|
89 |
-
$('#slider ul li:last-child').prependTo('#slider ul');
|
90 |
-
|
91 |
-
function moveLeft() {
|
92 |
-
$('#slider ul').animate({
|
93 |
-
left: + slideWidth
|
94 |
-
}, 200, function () {
|
95 |
-
$('#slider ul li:last-child').prependTo('#slider ul');
|
96 |
-
$('#slider ul').css('left', '');
|
97 |
-
changeSlide();
|
98 |
-
});
|
99 |
-
};
|
100 |
-
|
101 |
-
function moveRight() {
|
102 |
-
$('#slider ul').animate({
|
103 |
-
left: - slideWidth
|
104 |
-
}, 200, function () {
|
105 |
-
$('#slider ul li:first-child').appendTo('#slider ul');
|
106 |
-
$('#slider ul').css('left', '');
|
107 |
-
changeSlide();
|
108 |
-
});
|
109 |
-
};
|
110 |
-
|
111 |
-
function changeSlide() {
|
112 |
-
var title = $('#slider ul li:nth-child(2)').data('title');
|
113 |
-
var position = $('#slider ul li:nth-child(2)').data('position');
|
114 |
-
var slug = $('#slider ul li:nth-child(2)').data('slug');
|
115 |
-
var currentSubmitUrl = $('#submit-change').attr('href');
|
116 |
-
var currentSlug = getUrlStringParameter('theme', currentSubmitUrl);
|
117 |
-
var newSubmitUrl = '';
|
118 |
-
|
119 |
-
$('.theme-title').text(title);
|
120 |
-
$('.theme-count').text(position);
|
121 |
-
|
122 |
-
newSubmitUrl = currentSubmitUrl.replace('theme=' + currentSlug, 'theme=' + slug)
|
123 |
-
|
124 |
-
// change submit button theme attr in href
|
125 |
-
$('#submit-change').attr('href', newSubmitUrl);
|
126 |
-
}
|
127 |
-
|
128 |
-
$('a.control_prev').click(function (e) {
|
129 |
-
e.preventDefault();
|
130 |
-
moveLeft();
|
131 |
-
clearTimeout(autoslide);
|
132 |
-
});
|
133 |
-
|
134 |
-
$('a.control_next').click(function (e) {
|
135 |
-
e.preventDefault();
|
136 |
-
moveRight();
|
137 |
-
clearTimeout(autoslide);
|
138 |
-
});
|
139 |
-
|
140 |
-
autoslide = setInterval(function () {
|
141 |
-
moveRight();
|
142 |
-
}, 7000);
|
143 |
-
}
|
144 |
-
|
145 |
-
$('#submit-change').click(function (e) {
|
146 |
-
e.preventDefault();
|
147 |
-
var newUrl = $(this).attr('href');
|
148 |
-
var newSlug = getUrlStringParameter('theme', newUrl);
|
149 |
-
var premiumThemes = $('.buy-theme').data('premium');
|
150 |
-
var customize = $(this).data('customize');
|
151 |
-
clearTimeout(autoslide);
|
152 |
-
// get buy url
|
153 |
-
for (var i = 0, len = premiumThemes.length; i < len; i++) {
|
154 |
-
if ( premiumThemes[i].name === newSlug) {
|
155 |
-
var buyUrl = premiumThemes[i].url;
|
156 |
-
break;
|
157 |
-
}
|
158 |
-
}
|
159 |
-
|
160 |
-
// get customize sections supported
|
161 |
-
for (var i = 0, len = customize.length; i < len; i++) {
|
162 |
-
if ( customize[i].theme === newSlug) {
|
163 |
-
var section = customize[i].section;
|
164 |
-
break;
|
165 |
-
}
|
166 |
}
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
|
|
172 |
|
173 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
|
175 |
-
|
176 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
$(this).attr('href', new_href)
|
184 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
|
186 |
-
// change select preview button url
|
187 |
-
$('#theme-preview').attr('src', $(this).attr('href').replace('&selector=true', ''));
|
188 |
-
|
189 |
-
$('.buy-theme').attr('href', buyUrl);
|
190 |
-
|
191 |
-
ga('send', 'event', 'Change Theme', 'Change Theme to: ' + newSlug);
|
192 |
});
|
193 |
|
194 |
-
|
195 |
-
var getUrlParameter = function getUrlParameter(sParam) {
|
196 |
-
var sPageURL = window.location.search.substring(1),
|
197 |
-
sURLVariables = sPageURL.split('&'),
|
198 |
-
sParameterName,
|
199 |
-
i;
|
200 |
-
|
201 |
-
for (i = 0; i < sURLVariables.length; i++) {
|
202 |
-
sParameterName = sURLVariables[i].split('=');
|
203 |
-
|
204 |
-
if (sParameterName[0] === sParam) {
|
205 |
-
return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
|
206 |
-
}
|
207 |
-
}
|
208 |
-
};
|
209 |
-
|
210 |
-
var getUrlStringParameter = function getUrlStringParameter(sParam, urlString) {
|
211 |
-
var sPageURL = urlString.substring(1),
|
212 |
-
sURLVariables = sPageURL.split('&'),
|
213 |
-
sParameterName,
|
214 |
-
i;
|
215 |
-
|
216 |
-
for (i = 0; i < sURLVariables.length; i++) {
|
217 |
-
sParameterName = sURLVariables[i].split('=');
|
218 |
-
|
219 |
-
if (sParameterName[0] === sParam) {
|
220 |
-
return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
|
221 |
-
}
|
222 |
-
}
|
223 |
-
};
|
9 |
}
|
10 |
}
|
11 |
|
12 |
+
const defaultBackground = {
|
13 |
+
"construct" : '1',
|
14 |
+
"countdown" : '6',
|
15 |
+
"hardwork" : '1',
|
16 |
+
"agency" : '1',
|
17 |
+
"apollo" : '1',
|
18 |
+
"eclipse" : '1',
|
19 |
+
"element" : '1',
|
20 |
+
"fifty" : '1',
|
21 |
+
"frame" : '1',
|
22 |
+
"hardwork_premium" : '1',
|
23 |
+
"mercury" : '1',
|
24 |
+
"orbit" : '1',
|
25 |
+
"postery" : '1',
|
26 |
+
"stylo" : '1',
|
27 |
+
"vega" : '1',
|
28 |
+
"pluto" : '4'
|
29 |
+
}
|
30 |
+
|
31 |
+
slider(defaultBackground);
|
32 |
|
33 |
$('iframe').one('load', function() {
|
34 |
$('body').addClass('loaded');
|
64 |
|
65 |
// // reload iframe and change browser URL history
|
66 |
$('#theme-preview').attr('src', iframe_url);
|
67 |
+
|
68 |
ChangeUrl(new_url, new_url);
|
69 |
|
70 |
// change customizers href src to new params
|
80 |
|
81 |
});
|
82 |
|
83 |
+
function resizeIframe(obj) {
|
84 |
+
obj.style.height = 0;
|
85 |
+
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
}
|
87 |
+
|
88 |
+
function ChangeUrl(page, url) {
|
89 |
+
if (typeof (window.parent.history.pushState) != "undefined") {
|
90 |
+
var obj = { Page: page, Url: url };
|
91 |
+
window.parent.history.pushState(obj, obj.Page, obj.Url);
|
92 |
+
} else {
|
93 |
+
return;
|
94 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
+
|
97 |
+
function slider(defaultBackground) {
|
98 |
+
var slideCount = $('#slider ul li').length;
|
99 |
+
var slideWidth = $('#slider ul li').width();
|
100 |
+
var slideHeight = 200;
|
101 |
+
var sliderUlWidth = slideCount * slideWidth;
|
102 |
|
103 |
+
$('#slider').css({ width: slideWidth, height: slideHeight });
|
104 |
+
|
105 |
+
$('#slider ul').css({ width: sliderUlWidth, marginLeft: - slideWidth });
|
106 |
+
|
107 |
+
$('#slider ul li:last-child').prependTo('#slider ul');
|
108 |
+
|
109 |
+
function moveLeft() {
|
110 |
+
$('#slider ul').animate({
|
111 |
+
left: + slideWidth
|
112 |
+
}, 200, function () {
|
113 |
+
$('#slider ul li:last-child').prependTo('#slider ul');
|
114 |
+
$('#slider ul').css('left', '');
|
115 |
+
changeSlide();
|
116 |
+
});
|
117 |
+
};
|
118 |
+
|
119 |
+
function moveRight() {
|
120 |
+
$('#slider ul').animate({
|
121 |
+
left: - slideWidth
|
122 |
+
}, 200, function () {
|
123 |
+
$('#slider ul li:first-child').appendTo('#slider ul');
|
124 |
+
$('#slider ul').css('left', '');
|
125 |
+
changeSlide();
|
126 |
+
});
|
127 |
+
};
|
128 |
+
|
129 |
+
function changeSlide() {
|
130 |
+
var title = $('#slider ul li:nth-child(2)').data('title');
|
131 |
+
var position = $('#slider ul li:nth-child(2)').data('position');
|
132 |
+
var slug = $('#slider ul li:nth-child(2)').data('slug');
|
133 |
+
var currentSubmitUrl = $('#submit-change').attr('href');
|
134 |
+
var currentSlug = getUrlStringParameter('theme', currentSubmitUrl);
|
135 |
+
var currentBckgr = getUrlStringParameter('background', currentSubmitUrl);
|
136 |
+
var newSubmitUrl = '';
|
137 |
+
|
138 |
+
$('.theme-title').text(title);
|
139 |
+
$('.theme-count').text(position);
|
140 |
+
|
141 |
+
newSubmitUrl = currentSubmitUrl.replace('theme=' + currentSlug, 'theme=' + slug);
|
142 |
+
newSubmitUrl = newSubmitUrl.replace('background=' + currentBckgr, 'background=' + defaultBackground[slug]);
|
143 |
+
|
144 |
+
// change submit button theme attr in href
|
145 |
+
$('#submit-change').attr('href', newSubmitUrl);
|
146 |
+
}
|
147 |
+
|
148 |
+
$('a.control_prev').click(function (e) {
|
149 |
+
e.preventDefault();
|
150 |
+
moveLeft();
|
151 |
+
clearTimeout(autoslide);
|
152 |
+
});
|
153 |
+
|
154 |
+
$('a.control_next').click(function (e) {
|
155 |
+
e.preventDefault();
|
156 |
+
moveRight();
|
157 |
+
clearTimeout(autoslide);
|
158 |
+
});
|
159 |
+
|
160 |
+
autoslide = setInterval(function () {
|
161 |
+
moveRight();
|
162 |
+
}, 7000);
|
163 |
+
}
|
164 |
+
|
165 |
+
$('#submit-change').click(function (e) {
|
166 |
+
e.preventDefault();
|
167 |
+
var newUrl = $(this).attr('href');
|
168 |
+
var newSlug = getUrlStringParameter('theme', newUrl);
|
169 |
+
var newBckgr = getUrlStringParameter('background', newUrl);
|
170 |
+
var premiumThemes = $('.buy-theme').data('premium');
|
171 |
+
var customize = $(this).data('customize');
|
172 |
+
clearTimeout(autoslide);
|
173 |
+
// get buy url
|
174 |
+
for (var i = 0, len = premiumThemes.length; i < len; i++) {
|
175 |
+
if ( premiumThemes[i].name === newSlug) {
|
176 |
+
var buyUrl = premiumThemes[i].url;
|
177 |
+
break;
|
178 |
+
}
|
179 |
+
}
|
180 |
+
|
181 |
+
// get customize sections supported
|
182 |
+
for (var i = 0, len = customize.length; i < len; i++) {
|
183 |
+
if ( customize[i].theme === newSlug) {
|
184 |
+
var section = customize[i].section;
|
185 |
+
break;
|
186 |
+
}
|
187 |
+
}
|
188 |
+
|
189 |
+
$('.settings-section').removeClass('zoomIn').addClass('zoomOut');
|
190 |
+
|
191 |
+
$.each(section, function( index, value ) {
|
192 |
+
$('.settings-section.' + value ).removeClass('zoomOut').removeClass('not-active').addClass('zoomIn');
|
193 |
+
|
194 |
+
});
|
195 |
+
|
196 |
+
// change browser url history
|
197 |
+
ChangeUrl(newUrl, newUrl);
|
198 |
+
|
199 |
+
// change customizers href src to new theme
|
200 |
+
$('.settings-section a').each(function(){
|
201 |
+
const oldUrl = $(this).attr('href');
|
202 |
+
const currentSlug = getUrlStringParameter('theme', oldUrl);
|
203 |
+
const new_href = oldUrl.replace( 'theme=' + currentSlug, 'theme=' + newSlug );
|
204 |
+
$(this).attr('href', new_href);
|
205 |
+
});
|
206 |
|
207 |
+
$('.settings-section.effect a').each(function(){
|
208 |
+
const oldUrl = $(this).attr('href');
|
209 |
+
const currentBckgr = getUrlStringParameter('background', oldUrl);
|
210 |
+
const new_href = oldUrl.replace( 'background=' + currentBckgr, 'background=' + newBckgr );
|
211 |
+
$(this).attr('href', new_href);
|
212 |
+
});
|
213 |
+
|
214 |
+
// change select preview button url
|
215 |
+
$('#theme-preview').attr('src', $(this).attr('href').replace('&selector=true', ''));
|
216 |
+
|
217 |
+
$('.settings-section.background a').removeClass('selected');
|
218 |
|
219 |
+
$('.settings-section.background a[data-background="'+ defaultBackground[newSlug] +'"]').addClass('selected');
|
220 |
+
|
221 |
+
$('.buy-theme').attr('href', buyUrl);
|
222 |
+
|
223 |
+
ga('send', 'event', 'Change Theme', 'Change Theme to: ' + newSlug);
|
|
|
224 |
});
|
225 |
+
|
226 |
+
|
227 |
+
var getUrlParameter = function getUrlParameter(sParam) {
|
228 |
+
var sPageURL = window.location.search.substring(1),
|
229 |
+
sURLVariables = sPageURL.split('&'),
|
230 |
+
sParameterName,
|
231 |
+
i;
|
232 |
+
|
233 |
+
for (i = 0; i < sURLVariables.length; i++) {
|
234 |
+
sParameterName = sURLVariables[i].split('=');
|
235 |
+
|
236 |
+
if (sParameterName[0] === sParam) {
|
237 |
+
return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
|
238 |
+
}
|
239 |
+
}
|
240 |
+
};
|
241 |
+
|
242 |
+
var getUrlStringParameter = function getUrlStringParameter(sParam, urlString) {
|
243 |
+
var sPageURL = urlString.substring(1),
|
244 |
+
sURLVariables = sPageURL.split('&'),
|
245 |
+
sParameterName,
|
246 |
+
i;
|
247 |
+
|
248 |
+
for (i = 0; i < sURLVariables.length; i++) {
|
249 |
+
sParameterName = sURLVariables[i].split('=');
|
250 |
+
|
251 |
+
if (sParameterName[0] === sParam) {
|
252 |
+
return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
|
253 |
+
}
|
254 |
+
}
|
255 |
+
};
|
256 |
+
|
257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
});
|
259 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/settings.js
CHANGED
@@ -45,8 +45,10 @@ jQuery(document).ready(function($){
|
|
45 |
});
|
46 |
|
47 |
// update range inputs on change
|
48 |
-
update_range('.cmp-coming-soon-maintenance .blur-range');
|
49 |
-
update_range('.cmp-coming-soon-maintenance .background-overlay-opacity');
|
|
|
|
|
50 |
|
51 |
// create media upload buttons
|
52 |
// selector, multipe, type, element to render
|
@@ -68,6 +70,7 @@ jQuery(document).ready(function($){
|
|
68 |
toggle_settings( 'background-type' );
|
69 |
toggle_settings( 'counter' );
|
70 |
toggle_settings( 'overlay-text' );
|
|
|
71 |
|
72 |
toggle_select( 'counter-action' );
|
73 |
toggle_select( 'subscribe-method' );
|
@@ -1013,12 +1016,17 @@ jQuery(document).ready(function($){
|
|
1013 |
jQuery('.'+classname).first().trigger('change');
|
1014 |
}
|
1015 |
|
1016 |
-
function update_range ( selector ) {
|
1017 |
jQuery( selector ).on('input', function () {
|
1018 |
var value = jQuery(this).val();
|
1019 |
// change label value
|
1020 |
-
|
|
|
|
|
1021 |
|
|
|
|
|
|
|
1022 |
});
|
1023 |
}
|
1024 |
|
45 |
});
|
46 |
|
47 |
// update range inputs on change
|
48 |
+
update_range('.cmp-coming-soon-maintenance .blur-range', 'span', 'html');
|
49 |
+
update_range('.cmp-coming-soon-maintenance .background-overlay-opacity', 'span', 'html');
|
50 |
+
update_range('#logo_size_slider', '#niteoCS_logo_size', 'val');
|
51 |
+
update_range('#niteoCS_logo_size', '#logo_size_slider', 'val');
|
52 |
|
53 |
// create media upload buttons
|
54 |
// selector, multipe, type, element to render
|
70 |
toggle_settings( 'background-type' );
|
71 |
toggle_settings( 'counter' );
|
72 |
toggle_settings( 'overlay-text' );
|
73 |
+
toggle_settings( 'cmp-logo-size' );
|
74 |
|
75 |
toggle_select( 'counter-action' );
|
76 |
toggle_select( 'subscribe-method' );
|
1016 |
jQuery('.'+classname).first().trigger('change');
|
1017 |
}
|
1018 |
|
1019 |
+
function update_range ( selector, target, method ) {
|
1020 |
jQuery( selector ).on('input', function () {
|
1021 |
var value = jQuery(this).val();
|
1022 |
// change label value
|
1023 |
+
if ( method === 'html' ) {
|
1024 |
+
jQuery(this).parent().find(target).html(value);
|
1025 |
+
}
|
1026 |
|
1027 |
+
if ( method === 'val' ) {
|
1028 |
+
jQuery(this).parent().find(target).val(value);
|
1029 |
+
}
|
1030 |
});
|
1031 |
}
|
1032 |
|
js/settings.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(e){var n=document.location.hash.substring(1),a=jQuery("#csoptions").attr("action"),t=e("#csoptions fieldset:not(.skip-preview-validation *)").serialize();navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+e).addClass("nav-tab-active"),jQuery(".cmp-coming-soon-maintenance .table-wrapper."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .comingsoon."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(."+e+")").css("display","none"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(."+e).css("display","none"),jQuery(".cmp-coming-soon-maintenance .comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".cmp-coming-soon-maintenance .submit").css("display","none"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a)):(jQuery(".cmp-coming-soon-maintenance .submit").css("display","block"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a+"#"+e))},""!=n?navtab(n):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){n=document.location.hash.substring(1),navtab(n)},e(".cmp-coming-soon-maintenance .nav-tab:not(.theme-preview)").click(function(a){a.preventDefault(),n=e(this).data("tab"),document.location.hash=n}),d(".cmp-coming-soon-maintenance .blur-range"),d(".cmp-coming-soon-maintenance .background-overlay-opacity"),u("logo",!1,"image","img"),u("favicon",!1,"image","img"),u("seo_img",!1,"image","img"),u("images",!0,"image","img"),u("pattern",!1,"image","background"),u("video-thumb",!1,"image","img"),u("video-local",!1,"video","video"),m("analytics"),m("contact-form"),m("subscribe"),m("background-effect"),m("special-effect"),m("cmp-logo"),m("background-type"),m("counter"),m("overlay-text"),p("counter-action"),p("subscribe-method"),p("background-overlay"),p("banner-video-source"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1,placeholder:"Click to select.."}),jQuery(".cmp-coming-soon-maintenance #cmp-status").click(function(){jQuery(".cmp-coming-soon-maintenance .cmp-status input[type=radio]").prop("disabled",function(e,n){return!n}),jQuery("#cmp-toggle-adminbar").toggleClass("status-1")}),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch:not(.disabled)").click(function(){if(0!=jQuery(".cmp-coming-soon-maintenance #cmp-status").prop("checked")){var e=jQuery(this).children("input");e.prop("checked",!0),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch").removeClass("active"),jQuery(this).addClass("active"),e.trigger("change"),"3"==e.val()?jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeIn("fast"):jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeOut("fast")}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper h3").click(function(){jQuery(this).parent().toggleClass("closed")}),jQuery(".cmp-coming-soon-maintenance #test-unsplash").click(function(n){n.preventDefault();var a=jQuery(".cmp-coming-soon-maintenance #unsplash-media"),t=jQuery('.cmp-coming-soon-maintenance .unsplash_banner select[name^="unsplash_feed"] option:selected').val(),i="",o=jQuery(this).data("security");if(0==t){switch(t){case"0":i=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val()}if(3==t||""!=i){var r={feed:t,url:i,feat:"",custom_str:""};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var c={action:"niteo_unsplash",security:o,params:r};e.post(ajaxurl,c,function(e){var n=JSON.parse(e);jQuery("#unsplash_img").remove();var t=setTimeout(function(){jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5e3);if("200"==n.response){if((n=jQuery.parseJSON(n.body))[0])var i=n[0].urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n[0].user.name,r=n[0].user.links.html,c=n[0].links.html,s=n[0].id;else i=n.urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n.user.name,r=n.user.links.html,c=n.links.html,s=n.id;jQuery("<img />",{src:i,id:"unsplash_img"}).one("load",function(){jQuery(this).appendTo(a),jQuery(this).fadeIn(),jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery(".unsplash-id").html('<a href="'+c+'" target="_blank">Photo</a> (ID: '+s+') by <a href="'+r+'" target="_blank">'+o+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a>'),jQuery(".blur-range").trigger("input"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #test-unsplash").prop("disabled",!1),jQuery(".cmp-coming-soon-maintenance #test-unsplash").text("Display Unsplash Photo"),jQuery(".cmp-coming-soon-maintenance #unsplash-media").html("<p>Error "+n.response+': <span style="text-transform:lowercase;">'+n.body+"</span></p>"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #unsplash_img").remove()}}),videoPreview=function(){if("5"==jQuery(".cmp-coming-soon-maintenance .background-type:checked").val()){var n=e(".cmp-coming-soon-maintenance .banner-video-source").val();if("youtube"==n){var a=e(".cmp-coming-soon-maintenance #niteoCS-youtube-url").val();if(""!=a){var t=a.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);if(t&&11==t[7].length){jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("");var i="https://img.youtube.com/vi/"+t[7]+"/maxresdefault.jpg";jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").append('<img src="'+i+'" alt=""/>'),jQuery(".cmp-coming-soon-maintenance .blur-range").trigger("input")}else jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("")}}if("local"==n){var o=jQuery("#niteoCS-video-local-id").data("url");""!=o&&e(".cmp-coming-soon-maintenance .video-local-wrapper").html('<video width="600" height="400" controls><source src="'+o+'" type="video/mp4">Your browser does not support the video tag.</video>')}}},videoPreview(),jQuery(".cmp-coming-soon-maintenance .background-type").on("change",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").on("keyup",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance .banner-video-source").on("change",function(){videoPreview()});var i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function o(e){switch(e){case"solid-color":jQuery(".thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val());break;case"gradient":jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").trigger("change");break;case"disabled":jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background","none")}}jQuery(".unsplash-feed-"+i).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery(".unsplash-feed-"+i).css("display","block"),jQuery("#test-unsplash").trigger("click")}),1==jQuery("#csoptions .niteoCS_banner:checked").val()&&jQuery("#test-unsplash").trigger("click"),jQuery(".cmp-coming-soon-maintenance select.background-gradient").on("change",function(){var e=jQuery(".cmp-coming-soon-maintenance select.background-gradient option:selected").val();"custom"==e?(jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","block"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})):(colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"}))}).trigger("change"),jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_color").wpColorPicker({change:function(e,n){jQuery(".color-preview").css("background-color",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_one").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_two").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_overlay_color").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css("background",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val()),jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").on("change",function(){var e=jQuery("select.overlay-gradient option:selected").val();if("custom"==e){jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","block");var n=jQuery("#niteoCS_overlay_gradient_one").val(),a=jQuery("#niteoCS_overlay_gradient_two").val();jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"linear-gradient(135deg, "+n+" 0%, "+a+" 100%)"})}else colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"})}),jQuery("#niteoCS_overlay_gradient_one").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)"})}}),jQuery("#niteoCS_overlay_gradient_two").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".background-overlay-opacity").on("input",function(){var e=jQuery(this).val();jQuery(".thumbnail-overlay").css("opacity",e)}).trigger("input"),o(jQuery(".cmp-coming-soon-maintenance .background-overlay").val()),jQuery(".cmp-coming-soon-maintenance .background-overlay").on("change",function(){o(jQuery(this).val())}),jQuery(".cmp-coming-soon-maintenance .blur-range").on("input",function(){var e=jQuery(this).val();jQuery(".cmp-coming-soon-maintenance .background-thumb-wrapper img:not(.no-blur)").css("filter","blur("+e+"px)")}).trigger("input"),jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"]').on("change",function(){var e=jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"] option:selected').val();if("custom"!=e){var n=jQuery(this).data("url");jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","none"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+e+".png')")}else{n=jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_pattern_custom").val();jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","block"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+"')")}}),jQuery(".cmp-coming-soon-maintenance .heading-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .heading-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #heading-example").removeClass().addClass("animated "+heading_anim)}),jQuery(".cmp-coming-soon-maintenance .content-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .content-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #content-example").removeClass().addClass("animated "+heading_anim)});var r,c=function(n,a,t){var i=e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value");i=e.parseJSON(i),e.each(i,function(e,i){i.name==n&&(i[a]=t)}),e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value",JSON.stringify(i))};if(!/Mobi/.test(navigator.userAgent)){var s=e(".cmp-coming-soon-maintenance .social-inputs"),l=function(n,a){var t=s.find('input[type="text"]');a.item.index();t.each(function(n,a){var t=e(a).data("name");c(t,"order",n)})};s.sortable({stop:l}),s.on("sortchange",l)}function u(e,n,a,t){var i,o=jQuery("."+e+"-wrapper"),r=jQuery("#add-"+e),c=jQuery("#delete-"+e),s="",l=e.replace("-"," ");l=l[0].toUpperCase()+l.slice(1),""!=jQuery("#niteoCS-"+e+"-id").val()&&c.css("display","block"),r.click(function(r){if(r.preventDefault(),u)u.open();else var u=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=u.state().get("selection").toJSON();n.length>0&&(o.find("img").remove(),o.attr("class",e+"-wrapper custom-gallery"),o.addClass("gallery-"+n.length),jQuery(n).each(function(e){switch(i=n[e].sizes&&n[e].sizes.large?n[e].sizes.large.url:n[e].url,s+=(0===e?"":",")+n[e].id,t){case"video":o.append('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>');break;case"background":o.css("background-image","url('"+i+"')");break;case"img":default:n.length>1&&0==e?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):n.length>1&&0!==e?o.append('<img src="'+i+'" alt="" class="no-blur"/>'):o.find(".big-thumb").length?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):o.append('<img src="'+i+'" alt=""/>'),jQuery(".blur-range").trigger("input")}}),c.css("display","block")),jQuery("#niteoCS-"+e+"-id").val(s).trigger("change")}).open()}),c.click(function(n){jQuery(this).css("display","none"),o.find("img").remove(),jQuery("#niteoCS-"+e+"-id").val(""),jQuery("#niteoCS-"+e+"-id").trigger("change")})}function m(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery(".cmp-coming-soon-maintenance ."+e+":checked").val();n=void 0===(n=jQuery.isNumeric(n)?"x"+n:n)?"off":n,jQuery(".cmp-coming-soon-maintenance ."+e+"-switch."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+"-switch:not(."+n+")").css("display","none")}),jQuery(".cmp-coming-soon-maintenance ."+e).first().trigger("change")}function p(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery("."+e).val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+":not(."+n+")").css("display","none")}),jQuery("."+e).first().trigger("change")}function d(e){jQuery(e).on("input",function(){var e=jQuery(this).val();jQuery(this).parent().find("span").html(e)})}(r=jQuery).fn.toggleDisabled=function(){return this.each(function(){var e,n=r(this),a=n.data("name");n.attr("disabled")?(n.prop("disabled",!1),e="1"):(n.prop("disabled",!0),e="0"),c(a,"active",e)})},jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="text"]').focusout(function(){var e=jQuery(this).data("name"),n=jQuery(this).attr("value");c(e,"url",n)}),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="checkbox"]').click(function(n){e(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".cmp-coming-soon-maintenance .social-media i").click(function(){var e=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e+" input").trigger("change"),jQuery(this).hasClass("active")?c(e,"hidden","0"):c(e,"hidden","1"),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length?jQuery(".social-inputs .label").css("display","block"):jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","none")}),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length&&jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","block"),jQuery(".cmp.update-theme").click(function(n){n.preventDefault();var a=e(this),t=a.parents(".notice"),i=a.data("security"),o=a.data("slug"),r=a.data("name"),c={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:jQuery(this).data("remote_url")+"?action=download&slug="+o}};t.find(".message").html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'),e.post(ajaxurl,c,function(n){if("success"==(n=n.trim()))setTimeout(function(){t.removeClass("notice-warning").addClass("notice-success"),t.find(".message").html("<span> "+r+' CMP theme was updated sucessfully! You can enjoy latest features now :) </span><i class="fa fa-smile-o" aria-hidden="true"></i>')},1500);else{n=n.slice(0,-1);var a=e("p",e(n)).text();t.removeClass("notice-warning").addClass("notice-error"),t.find(".message").html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+a+"</span>")}})}),jQuery(".cmp-coming-soon-maintenance .theme-select").click(function(){jQuery(this).parent().find('input[name="niteoCS_select_theme"]').prop("checked",!0).trigger("change"),jQuery(".cmp-coming-soon-maintenance .theme-select").removeClass("selected"),jQuery(this).parent().find(".theme-select").addClass("selected")}),jQuery(".cmp-coming-soon-maintenance .theme-update.button").one("click",function(n){n.preventDefault();var a=e(this),t=a.closest(".theme-wrapper"),i=t.data("security"),o=t.data("slug"),r={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:t.data("remote_url")+"?action=download&slug="+o}};a.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>'),e.post(ajaxurl,r,function(e){"success"==e?setTimeout(function(){a.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>'),setTimeout(function(){a.fadeOut()},1500)},1500):(e=e.slice(0,-1),a.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>'))})}),jQuery(".cmp-coming-soon-maintenance .theme-details").click(function(){var n=e(this),a=n.closest(".theme-wrapper"),t=a.data("slug"),i=a.data("version"),o=a.data("remote_url"),r=a.data("type"),c=a.data("purchased"),s=(a.data("freebie"),jQuery(".update-theme").data("security")),l=(a.data("price"),0),u={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};e.post(ajaxurl,u,function(u){var m="",p="",d="",g="";if("true"==(u=jQuery.parseJSON(u)).result){if(jQuery("body").addClass("modal-open"),"1"==c&&(d='<span class="theme-version">Version: '+i+"</span>",g='<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>',jQuery(".update-theme").length)){var y=jQuery(".update-theme").data("slug");if(t==y){var h=jQuery(".update-theme").data("new_ver");g='<div class="notice notice-warning notice-alt notice-large"><h3 class="notice-title">Update Available</h3><p class="message"><strong>There is a new version of '+u.name+' theme available. <a href="'+o+"readme/"+t+'-readme.php" class="view-release">View update '+h+' notes</a> or <a href="'+window.location.href+"&action=update-cmp-theme&theme="+t+'" class="update-theme" data-security="'+s+'" data-slug="'+t+'" data-remote_url="'+o+'">Update now.</a></strong></p><div class="release-note"></div></div>'}}if("1"!=c&&"premium"==r)m="disabled ",p='<button type="button" class="theme-purchase button hide"><a href="'+a.find("a").attr("href")+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';var v=u.screenshots,j="";Object.keys(v).length>1&&(j='<div class="screenshots-nav"><div class="left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div>');var f=e(['<div class="theme-backdrop">','\t<div class="theme-wrap">','\t\t<div class="theme-header">','\t\t\t<button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',"\t\t</div>",'\t\t<div class="theme-about">','\t\t\t<div class="theme-screenshots">','\t\t\t\t<div class="screenshot" style="background-image:url(\''+v[0]+"')\">"+j+"</div>","\t\t\t</div>",'\t\t\t<div class="theme-info">','\t\t\t\t<h2 class="theme-name">'+u.name+d+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+u.author_homepage+'" target="_blank">'+u.author+"</a></p>",g,p,'\t\t\t\t<div class="theme-description">'+u.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<button type="submit" '+m+'class="button activate" name="Submit" aria-label="Select '+u.name+'">Activate</button>','\t\t\t<a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='+t+"&utm_source=cmp&utm_medium=referral&utm_campaign="+t+'" class="button cmp-preview" target="_blank" aria-label="Preview '+u.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(f),jQuery(".theme-overlay.cmp .view-release").click(function(e){e.preventDefault();var a=(n=jQuery(this)).attr("href");jQuery.get(a,function(e){n.closest(".notice").find(".release-note .notes").remove(),n.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){n.closest(".notice").find(".release-note p").remove(),n.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".theme-overlay.cmp .close").click(function(e){e.preventDefault(),jQuery("body").removeClass("modal-open"),jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast")}),jQuery(".theme-overlay.cmp .activate").click(function(e){e.preventDefault(),jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_select_theme"]').each(function(){jQuery(this).val()==t&&(jQuery(this).prop("checked",!0),jQuery(".theme-select").removeClass("selected"),jQuery(this).parent().addClass("selected"))}),jQuery(this).submit()}),jQuery(".screenshots-nav .right").click(function(){++l==Object.keys(v).length&&(l=0),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")}),jQuery(".screenshots-nav .left").click(function(){--l<0&&(l=Object.keys(v).length-1),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")})}})}),jQuery(".cmp-coming-soon-maintenance #connect-mailchimp").click(function(n){n.preventDefault();var a=jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_mailchimp_apikey"]').val(),t=jQuery(this).data("security"),i=jQuery(this);if(""!=a){var o={apikey:a,security:t};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var r={action:"cmp_mailchimp_list_ajax",security:t,params:o};e.post(ajaxurl,r,function(n){var a=JSON.parse(n);200==a.response?(e("#niteoCS_mailchimp_list").empty().prop("disabled",!1),e.each(a.lists,function(n,a){e("#niteoCS_mailchimp_list").append('<option value="'+a.id+'">'+a.name+"</option>")})):e("#niteoCS_mailchimp_list").empty().prop("disabled",!0).html('<option value="error">'+a.message+"</option>").trigger("change"),i.html("Retrieve Lists"),i.prop("disabled",!1)}).fail(function(){i.html("Retrieve Lists"),i.prop("disabled",!1)})}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper.theme-setup h4").each(function(){if("Overlay Color"==jQuery(this).html())return jQuery(this).parents("tr").remove(),!1}),wp.codeEditor&&wp.codeEditor.initialize("niteoCS_custom_css"),e(".nav-tab-wrapper").on("click",".theme-preview",function(n){return!(e("#csoptions fieldset:not(.skip-preview-validation *)").serialize()!=t&&!confirm("You have made changes that will not be visible in the preview until you save them. Please save changes first.\nContinue anyway?"))||(n.preventDefault(),!1)})});
|
1 |
+
jQuery(document).ready(function(e){var n=document.location.hash.substring(1),a=jQuery("#csoptions").attr("action"),t=e("#csoptions fieldset:not(.skip-preview-validation *)").serialize();navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+e).addClass("nav-tab-active"),jQuery(".cmp-coming-soon-maintenance .table-wrapper."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .comingsoon."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(."+e+")").css("display","none"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(."+e).css("display","none"),jQuery(".cmp-coming-soon-maintenance .comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".cmp-coming-soon-maintenance .submit").css("display","none"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a)):(jQuery(".cmp-coming-soon-maintenance .submit").css("display","block"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a+"#"+e))},""!=n?navtab(n):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){n=document.location.hash.substring(1),navtab(n)},e(".cmp-coming-soon-maintenance .nav-tab:not(.theme-preview)").click(function(a){a.preventDefault(),n=e(this).data("tab"),document.location.hash=n}),d(".cmp-coming-soon-maintenance .blur-range","span","html"),d(".cmp-coming-soon-maintenance .background-overlay-opacity","span","html"),d("#logo_size_slider","#niteoCS_logo_size","val"),d("#niteoCS_logo_size","#logo_size_slider","val"),u("logo",!1,"image","img"),u("favicon",!1,"image","img"),u("seo_img",!1,"image","img"),u("images",!0,"image","img"),u("pattern",!1,"image","background"),u("video-thumb",!1,"image","img"),u("video-local",!1,"video","video"),m("analytics"),m("contact-form"),m("subscribe"),m("background-effect"),m("special-effect"),m("cmp-logo"),m("background-type"),m("counter"),m("overlay-text"),m("cmp-logo-size"),p("counter-action"),p("subscribe-method"),p("background-overlay"),p("banner-video-source"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1,placeholder:"Click to select.."}),jQuery(".cmp-coming-soon-maintenance #cmp-status").click(function(){jQuery(".cmp-coming-soon-maintenance .cmp-status input[type=radio]").prop("disabled",function(e,n){return!n}),jQuery("#cmp-toggle-adminbar").toggleClass("status-1")}),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch:not(.disabled)").click(function(){if(0!=jQuery(".cmp-coming-soon-maintenance #cmp-status").prop("checked")){var e=jQuery(this).children("input");e.prop("checked",!0),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch").removeClass("active"),jQuery(this).addClass("active"),e.trigger("change"),"3"==e.val()?jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeIn("fast"):jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeOut("fast")}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper h3").click(function(){jQuery(this).parent().toggleClass("closed")}),jQuery(".cmp-coming-soon-maintenance #test-unsplash").click(function(n){n.preventDefault();var a=jQuery(".cmp-coming-soon-maintenance #unsplash-media"),t=jQuery('.cmp-coming-soon-maintenance .unsplash_banner select[name^="unsplash_feed"] option:selected').val(),i="",o=jQuery(this).data("security");if(0==t){switch(t){case"0":i=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val()}if(3==t||""!=i){var r={feed:t,url:i,feat:"",custom_str:""};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var c={action:"niteo_unsplash",security:o,params:r};e.post(ajaxurl,c,function(e){var n=JSON.parse(e);jQuery("#unsplash_img").remove();var t=setTimeout(function(){jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5e3);if("200"==n.response){if((n=jQuery.parseJSON(n.body))[0])var i=n[0].urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n[0].user.name,r=n[0].user.links.html,c=n[0].links.html,s=n[0].id;else i=n.urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n.user.name,r=n.user.links.html,c=n.links.html,s=n.id;jQuery("<img />",{src:i,id:"unsplash_img"}).one("load",function(){jQuery(this).appendTo(a),jQuery(this).fadeIn(),jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery(".unsplash-id").html('<a href="'+c+'" target="_blank">Photo</a> (ID: '+s+') by <a href="'+r+'" target="_blank">'+o+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a>'),jQuery(".blur-range").trigger("input"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #test-unsplash").prop("disabled",!1),jQuery(".cmp-coming-soon-maintenance #test-unsplash").text("Display Unsplash Photo"),jQuery(".cmp-coming-soon-maintenance #unsplash-media").html("<p>Error "+n.response+': <span style="text-transform:lowercase;">'+n.body+"</span></p>"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #unsplash_img").remove()}}),videoPreview=function(){if("5"==jQuery(".cmp-coming-soon-maintenance .background-type:checked").val()){var n=e(".cmp-coming-soon-maintenance .banner-video-source").val();if("youtube"==n){var a=e(".cmp-coming-soon-maintenance #niteoCS-youtube-url").val();if(""!=a){var t=a.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);if(t&&11==t[7].length){jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("");var i="https://img.youtube.com/vi/"+t[7]+"/maxresdefault.jpg";jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").append('<img src="'+i+'" alt=""/>'),jQuery(".cmp-coming-soon-maintenance .blur-range").trigger("input")}else jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("")}}if("local"==n){var o=jQuery("#niteoCS-video-local-id").data("url");""!=o&&e(".cmp-coming-soon-maintenance .video-local-wrapper").html('<video width="600" height="400" controls><source src="'+o+'" type="video/mp4">Your browser does not support the video tag.</video>')}}},videoPreview(),jQuery(".cmp-coming-soon-maintenance .background-type").on("change",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").on("keyup",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance .banner-video-source").on("change",function(){videoPreview()});var i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function o(e){switch(e){case"solid-color":jQuery(".thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val());break;case"gradient":jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").trigger("change");break;case"disabled":jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background","none")}}jQuery(".unsplash-feed-"+i).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery(".unsplash-feed-"+i).css("display","block"),jQuery("#test-unsplash").trigger("click")}),1==jQuery("#csoptions .niteoCS_banner:checked").val()&&jQuery("#test-unsplash").trigger("click"),jQuery(".cmp-coming-soon-maintenance select.background-gradient").on("change",function(){var e=jQuery(".cmp-coming-soon-maintenance select.background-gradient option:selected").val();"custom"==e?(jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","block"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})):(colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"}))}).trigger("change"),jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_color").wpColorPicker({change:function(e,n){jQuery(".color-preview").css("background-color",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_one").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_two").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_overlay_color").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css("background",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val()),jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").on("change",function(){var e=jQuery("select.overlay-gradient option:selected").val();if("custom"==e){jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","block");var n=jQuery("#niteoCS_overlay_gradient_one").val(),a=jQuery("#niteoCS_overlay_gradient_two").val();jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"linear-gradient(135deg, "+n+" 0%, "+a+" 100%)"})}else colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"})}),jQuery("#niteoCS_overlay_gradient_one").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)"})}}),jQuery("#niteoCS_overlay_gradient_two").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".background-overlay-opacity").on("input",function(){var e=jQuery(this).val();jQuery(".thumbnail-overlay").css("opacity",e)}).trigger("input"),o(jQuery(".cmp-coming-soon-maintenance .background-overlay").val()),jQuery(".cmp-coming-soon-maintenance .background-overlay").on("change",function(){o(jQuery(this).val())}),jQuery(".cmp-coming-soon-maintenance .blur-range").on("input",function(){var e=jQuery(this).val();jQuery(".cmp-coming-soon-maintenance .background-thumb-wrapper img:not(.no-blur)").css("filter","blur("+e+"px)")}).trigger("input"),jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"]').on("change",function(){var e=jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"] option:selected').val();if("custom"!=e){var n=jQuery(this).data("url");jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","none"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+e+".png')")}else{n=jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_pattern_custom").val();jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","block"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+"')")}}),jQuery(".cmp-coming-soon-maintenance .heading-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .heading-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #heading-example").removeClass().addClass("animated "+heading_anim)}),jQuery(".cmp-coming-soon-maintenance .content-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .content-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #content-example").removeClass().addClass("animated "+heading_anim)});var r,c=function(n,a,t){var i=e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value");i=e.parseJSON(i),e.each(i,function(e,i){i.name==n&&(i[a]=t)}),e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value",JSON.stringify(i))};if(!/Mobi/.test(navigator.userAgent)){var s=e(".cmp-coming-soon-maintenance .social-inputs"),l=function(n,a){var t=s.find('input[type="text"]');a.item.index();t.each(function(n,a){var t=e(a).data("name");c(t,"order",n)})};s.sortable({stop:l}),s.on("sortchange",l)}function u(e,n,a,t){var i,o=jQuery("."+e+"-wrapper"),r=jQuery("#add-"+e),c=jQuery("#delete-"+e),s="",l=e.replace("-"," ");l=l[0].toUpperCase()+l.slice(1),""!=jQuery("#niteoCS-"+e+"-id").val()&&c.css("display","block"),r.click(function(r){if(r.preventDefault(),u)u.open();else var u=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=u.state().get("selection").toJSON();n.length>0&&(o.find("img").remove(),o.attr("class",e+"-wrapper custom-gallery"),o.addClass("gallery-"+n.length),jQuery(n).each(function(e){switch(i=n[e].sizes&&n[e].sizes.large?n[e].sizes.large.url:n[e].url,s+=(0===e?"":",")+n[e].id,t){case"video":o.append('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>');break;case"background":o.css("background-image","url('"+i+"')");break;case"img":default:n.length>1&&0==e?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):n.length>1&&0!==e?o.append('<img src="'+i+'" alt="" class="no-blur"/>'):o.find(".big-thumb").length?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):o.append('<img src="'+i+'" alt=""/>'),jQuery(".blur-range").trigger("input")}}),c.css("display","block")),jQuery("#niteoCS-"+e+"-id").val(s).trigger("change")}).open()}),c.click(function(n){jQuery(this).css("display","none"),o.find("img").remove(),jQuery("#niteoCS-"+e+"-id").val(""),jQuery("#niteoCS-"+e+"-id").trigger("change")})}function m(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery(".cmp-coming-soon-maintenance ."+e+":checked").val();n=void 0===(n=jQuery.isNumeric(n)?"x"+n:n)?"off":n,jQuery(".cmp-coming-soon-maintenance ."+e+"-switch."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+"-switch:not(."+n+")").css("display","none")}),jQuery(".cmp-coming-soon-maintenance ."+e).first().trigger("change")}function p(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery("."+e).val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+":not(."+n+")").css("display","none")}),jQuery("."+e).first().trigger("change")}function d(e,n,a){jQuery(e).on("input",function(){var e=jQuery(this).val();"html"===a&&jQuery(this).parent().find(n).html(e),"val"===a&&jQuery(this).parent().find(n).val(e)})}(r=jQuery).fn.toggleDisabled=function(){return this.each(function(){var e,n=r(this),a=n.data("name");n.attr("disabled")?(n.prop("disabled",!1),e="1"):(n.prop("disabled",!0),e="0"),c(a,"active",e)})},jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="text"]').focusout(function(){var e=jQuery(this).data("name"),n=jQuery(this).attr("value");c(e,"url",n)}),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="checkbox"]').click(function(n){e(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".cmp-coming-soon-maintenance .social-media i").click(function(){var e=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e+" input").trigger("change"),jQuery(this).hasClass("active")?c(e,"hidden","0"):c(e,"hidden","1"),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length?jQuery(".social-inputs .label").css("display","block"):jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","none")}),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length&&jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","block"),jQuery(".cmp.update-theme").click(function(n){n.preventDefault();var a=e(this),t=a.parents(".notice"),i=a.data("security"),o=a.data("slug"),r=a.data("name"),c={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:jQuery(this).data("remote_url")+"?action=download&slug="+o}};t.find(".message").html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'),e.post(ajaxurl,c,function(n){if("success"==(n=n.trim()))setTimeout(function(){t.removeClass("notice-warning").addClass("notice-success"),t.find(".message").html("<span> "+r+' CMP theme was updated sucessfully! You can enjoy latest features now :) </span><i class="fa fa-smile-o" aria-hidden="true"></i>')},1500);else{n=n.slice(0,-1);var a=e("p",e(n)).text();t.removeClass("notice-warning").addClass("notice-error"),t.find(".message").html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+a+"</span>")}})}),jQuery(".cmp-coming-soon-maintenance .theme-select").click(function(){jQuery(this).parent().find('input[name="niteoCS_select_theme"]').prop("checked",!0).trigger("change"),jQuery(".cmp-coming-soon-maintenance .theme-select").removeClass("selected"),jQuery(this).parent().find(".theme-select").addClass("selected")}),jQuery(".cmp-coming-soon-maintenance .theme-update.button").one("click",function(n){n.preventDefault();var a=e(this),t=a.closest(".theme-wrapper"),i=t.data("security"),o=t.data("slug"),r={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:t.data("remote_url")+"?action=download&slug="+o}};a.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>'),e.post(ajaxurl,r,function(e){"success"==e?setTimeout(function(){a.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>'),setTimeout(function(){a.fadeOut()},1500)},1500):(e=e.slice(0,-1),a.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>'))})}),jQuery(".cmp-coming-soon-maintenance .theme-details").click(function(){var n=e(this),a=n.closest(".theme-wrapper"),t=a.data("slug"),i=a.data("version"),o=a.data("remote_url"),r=a.data("type"),c=a.data("purchased"),s=(a.data("freebie"),jQuery(".update-theme").data("security")),l=(a.data("price"),0),u={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};e.post(ajaxurl,u,function(u){var m="",p="",d="",g="";if("true"==(u=jQuery.parseJSON(u)).result){if(jQuery("body").addClass("modal-open"),"1"==c&&(d='<span class="theme-version">Version: '+i+"</span>",g='<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>',jQuery(".update-theme").length)){var y=jQuery(".update-theme").data("slug");if(t==y){var h=jQuery(".update-theme").data("new_ver");g='<div class="notice notice-warning notice-alt notice-large"><h3 class="notice-title">Update Available</h3><p class="message"><strong>There is a new version of '+u.name+' theme available. <a href="'+o+"readme/"+t+'-readme.php" class="view-release">View update '+h+' notes</a> or <a href="'+window.location.href+"&action=update-cmp-theme&theme="+t+'" class="update-theme" data-security="'+s+'" data-slug="'+t+'" data-remote_url="'+o+'">Update now.</a></strong></p><div class="release-note"></div></div>'}}if("1"!=c&&"premium"==r)m="disabled ",p='<button type="button" class="theme-purchase button hide"><a href="'+a.find("a").attr("href")+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';var v=u.screenshots,j="";Object.keys(v).length>1&&(j='<div class="screenshots-nav"><div class="left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div>');var f=e(['<div class="theme-backdrop">','\t<div class="theme-wrap">','\t\t<div class="theme-header">','\t\t\t<button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',"\t\t</div>",'\t\t<div class="theme-about">','\t\t\t<div class="theme-screenshots">','\t\t\t\t<div class="screenshot" style="background-image:url(\''+v[0]+"')\">"+j+"</div>","\t\t\t</div>",'\t\t\t<div class="theme-info">','\t\t\t\t<h2 class="theme-name">'+u.name+d+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+u.author_homepage+'" target="_blank">'+u.author+"</a></p>",g,p,'\t\t\t\t<div class="theme-description">'+u.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<button type="submit" '+m+'class="button activate" name="Submit" aria-label="Select '+u.name+'">Activate</button>','\t\t\t<a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='+t+"&utm_source=cmp&utm_medium=referral&utm_campaign="+t+'" class="button cmp-preview" target="_blank" aria-label="Preview '+u.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(f),jQuery(".theme-overlay.cmp .view-release").click(function(e){e.preventDefault();var a=(n=jQuery(this)).attr("href");jQuery.get(a,function(e){n.closest(".notice").find(".release-note .notes").remove(),n.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){n.closest(".notice").find(".release-note p").remove(),n.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".theme-overlay.cmp .close").click(function(e){e.preventDefault(),jQuery("body").removeClass("modal-open"),jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast")}),jQuery(".theme-overlay.cmp .activate").click(function(e){e.preventDefault(),jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_select_theme"]').each(function(){jQuery(this).val()==t&&(jQuery(this).prop("checked",!0),jQuery(".theme-select").removeClass("selected"),jQuery(this).parent().addClass("selected"))}),jQuery(this).submit()}),jQuery(".screenshots-nav .right").click(function(){++l==Object.keys(v).length&&(l=0),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")}),jQuery(".screenshots-nav .left").click(function(){--l<0&&(l=Object.keys(v).length-1),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")})}})}),jQuery(".cmp-coming-soon-maintenance #connect-mailchimp").click(function(n){n.preventDefault();var a=jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_mailchimp_apikey"]').val(),t=jQuery(this).data("security"),i=jQuery(this);if(""!=a){var o={apikey:a,security:t};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var r={action:"cmp_mailchimp_list_ajax",security:t,params:o};e.post(ajaxurl,r,function(n){var a=JSON.parse(n);200==a.response?(e("#niteoCS_mailchimp_list").empty().prop("disabled",!1),e.each(a.lists,function(n,a){e("#niteoCS_mailchimp_list").append('<option value="'+a.id+'">'+a.name+"</option>")})):e("#niteoCS_mailchimp_list").empty().prop("disabled",!0).html('<option value="error">'+a.message+"</option>").trigger("change"),i.html("Retrieve Lists"),i.prop("disabled",!1)}).fail(function(){i.html("Retrieve Lists"),i.prop("disabled",!1)})}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper.theme-setup h4").each(function(){if("Overlay Color"==jQuery(this).html())return jQuery(this).parents("tr").remove(),!1}),wp.codeEditor&&wp.codeEditor.initialize("niteoCS_custom_css"),e(".nav-tab-wrapper").on("click",".theme-preview",function(n){return!(e("#csoptions fieldset:not(.skip-preview-validation *)").serialize()!=t&&!confirm("You have made changes that will not be visible in the preview until you save them. Please save changes first.\nContinue anyway?"))||(n.preventDefault(),!1)})});
|
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.
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
@@ -65,7 +65,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
65 |
|
66 |
private function constants() {
|
67 |
// define constants
|
68 |
-
$this->define( 'CMP_VERSION', '3.
|
69 |
$this->define( 'CMP_DEBUG', FALSE );
|
70 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
71 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
@@ -101,15 +101,12 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
101 |
add_action( 'wp_ajax_nopriv_cmp_get_post_detail', array( $this, 'cmp_get_post_detail' ) );
|
102 |
add_action( 'wp_ajax_cmp_check_update', array( $this, 'cmp_check_update' ) );
|
103 |
|
104 |
-
|
105 |
-
|
106 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this,'add_action_links' ) );
|
107 |
|
108 |
register_activation_hook( __FILE__, array( $this, 'cmp_activate' ) );
|
109 |
register_deactivation_hook( __FILE__, array( $this, 'cmp_deactivate' ) );
|
110 |
|
111 |
require_once( dirname( __FILE__) . '/inc/class-cmp-render_html.php' );
|
112 |
-
|
113 |
}
|
114 |
|
115 |
/**
|
@@ -184,7 +181,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
184 |
* @return array
|
185 |
*/
|
186 |
public function cmp_countdown_themes() {
|
187 |
-
return array( 'frame', 'countdown', 'postery', 'countdown2', 'stylo', 'element', 'apollo', 'vega', 'agency' );
|
188 |
}
|
189 |
|
190 |
/**
|
@@ -194,7 +191,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
194 |
* @return array
|
195 |
*/
|
196 |
public function cmp_font_animation_themes() {
|
197 |
-
return array( 'hardwork_premium', 'fifty', 'orbit', 'stylo', 'apollo', 'vega' );
|
198 |
}
|
199 |
|
200 |
/**
|
@@ -226,29 +223,31 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
226 |
|
227 |
$premium_themes = array();
|
228 |
|
229 |
-
array_push( $premium_themes, array('name' => '
|
230 |
|
231 |
-
array_push( $premium_themes, array('name' => '
|
232 |
|
233 |
-
array_push( $premium_themes, array('name' => '
|
234 |
|
235 |
-
array_push( $premium_themes, array('name' => '
|
|
|
|
|
236 |
|
237 |
-
array_push( $premium_themes, array('name' => 'vega', 'url' => 'https://niteothemes.com
|
238 |
|
239 |
-
array_push( $premium_themes, array('name' => 'apollo', 'url' => 'https://niteothemes.com
|
240 |
|
241 |
-
array_push( $premium_themes, array('name' => 'element', 'url' => 'https://niteothemes.com
|
242 |
|
243 |
-
array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://niteothemes.com
|
244 |
|
245 |
-
array_push( $premium_themes, array('name' => 'postery', 'url' => 'https://niteothemes.com
|
246 |
|
247 |
-
array_push( $premium_themes, array('name' => 'frame', 'url' => 'https://niteothemes.com
|
248 |
|
249 |
-
array_push( $premium_themes, array('name' => 'eclipse', 'url' => 'https://niteothemes.com
|
250 |
|
251 |
-
array_push( $premium_themes, array('name' => 'orbit', 'url' => 'https://niteothemes.com
|
252 |
|
253 |
return $premium_themes;
|
254 |
}
|
@@ -1011,7 +1010,10 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1011 |
|
1012 |
if ( $unzipfile ) {
|
1013 |
// delete FILE
|
1014 |
-
|
|
|
|
|
|
|
1015 |
echo '<div class="notice notice-success is-dismissible"><p class="message">'.ucwords(str_replace('_', ' ', $theme_name)).' '.__(' theme was successfully installed!', 'cmp-coming-soon-maintenance').'</p></div>';
|
1016 |
return;
|
1017 |
|
3 |
Plugin Name: CMP - Coming Soon & Maintenance Plugin
|
4 |
Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
|
5 |
Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
|
6 |
+
Version: 3.3
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
65 |
|
66 |
private function constants() {
|
67 |
// define constants
|
68 |
+
$this->define( 'CMP_VERSION', '3.3' );
|
69 |
$this->define( 'CMP_DEBUG', FALSE );
|
70 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
71 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
101 |
add_action( 'wp_ajax_nopriv_cmp_get_post_detail', array( $this, 'cmp_get_post_detail' ) );
|
102 |
add_action( 'wp_ajax_cmp_check_update', array( $this, 'cmp_check_update' ) );
|
103 |
|
|
|
|
|
104 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this,'add_action_links' ) );
|
105 |
|
106 |
register_activation_hook( __FILE__, array( $this, 'cmp_activate' ) );
|
107 |
register_deactivation_hook( __FILE__, array( $this, 'cmp_deactivate' ) );
|
108 |
|
109 |
require_once( dirname( __FILE__) . '/inc/class-cmp-render_html.php' );
|
|
|
110 |
}
|
111 |
|
112 |
/**
|
181 |
* @return array
|
182 |
*/
|
183 |
public function cmp_countdown_themes() {
|
184 |
+
return array( 'frame', 'countdown', 'postery', 'countdown2', 'stylo', 'element', 'apollo', 'vega', 'agency', 'pluto' );
|
185 |
}
|
186 |
|
187 |
/**
|
191 |
* @return array
|
192 |
*/
|
193 |
public function cmp_font_animation_themes() {
|
194 |
+
return array( 'hardwork_premium', 'fifty', 'orbit', 'stylo', 'apollo', 'vega', 'pluto' );
|
195 |
}
|
196 |
|
197 |
/**
|
223 |
|
224 |
$premium_themes = array();
|
225 |
|
226 |
+
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') );
|
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' => 'agency', 'url' => 'https://niteothemes.com/downloads/cmp-agency-theme/&utm_source=cmp&utm_medium=referral&utm_campaign=agency', 'price' => '15') );
|
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' => 'fifty', 'url' => 'https://niteothemes.com/downloads/cmp-fifty-theme/&utm_source=cmp&utm_medium=referral&utm_campaign=fifty', 'price' => '10') );
|
235 |
|
236 |
+
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') );
|
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' => 'element', 'url' => 'https://niteothemes.com/downloads/cmp-element-theme/&utm_source=cmp&utm_medium=referral&utm_campaign=element', 'price' => '10') );
|
241 |
|
242 |
+
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') );
|
243 |
|
244 |
+
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') );
|
245 |
|
246 |
+
array_push( $premium_themes, array('name' => 'frame', 'url' => 'https://niteothemes.com/downloads/cmp-frame-theme/&utm_source=cmp&utm_medium=referral&utm_campaign=frame', 'price' => '10') );
|
247 |
|
248 |
+
array_push( $premium_themes, array('name' => 'eclipse', 'url' => 'https://niteothemes.com/downloads/cmp-eclipse-theme/&utm_source=cmp&utm_medium=referral&utm_campaign=eclipse', 'price' =>'0') );
|
249 |
|
250 |
+
array_push( $premium_themes, array('name' => 'orbit', 'url' => 'https://niteothemes.com/downloads/cmp-orbit-theme/&utm_source=cmp&utm_medium=referral&utm_campaign=orbit', 'price' => '0') );
|
251 |
|
252 |
return $premium_themes;
|
253 |
}
|
1010 |
|
1011 |
if ( $unzipfile ) {
|
1012 |
// delete FILE
|
1013 |
+
wp_delete_file( $source_path );
|
1014 |
+
if ( $theme_name == 'pluto' ) {
|
1015 |
+
delete_option('niteoCS_banner');
|
1016 |
+
}
|
1017 |
echo '<div class="notice notice-success is-dismissible"><p class="message">'.ucwords(str_replace('_', ' ', $theme_name)).' '.__(' theme was successfully installed!', 'cmp-coming-soon-maintenance').'</p></div>';
|
1018 |
return;
|
1019 |
|
readme.txt
CHANGED
@@ -63,6 +63,7 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
63 |
17. CMP - Vega Theme
|
64 |
18. CMP - Agency Theme
|
65 |
19. CMP - Mercury Theme
|
|
|
66 |
|
67 |
|
68 |
== Installation ==
|
@@ -106,7 +107,7 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
106 |
<p>Yes of course! You can use CMP landing pages as your main splash page! Just make sure to set CMP plugin to "Coming Soon & Landing Page" mode which returns correct response codes to web search engines.</p>
|
107 |
|
108 |
<h4>How can I translate text on buttons, countdown text and others?</h4>
|
109 |
-
<p>Simply check out CMP Settings
|
110 |
|
111 |
<h4>What are 503 or 200 HTTP codes, huh?</h4>
|
112 |
<p>OK, it`s easy - if you want to display Coming Soon page you usually wants to search engines (like Google) to be able to index your website. In that case you want the response code set to 200 HTTP "OK" - set Coming Soon mode or Landing Page.</p>
|
@@ -123,6 +124,12 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
123 |
<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>
|
124 |
|
125 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
<h4>CMP 3.2.2 - 18-Feb-19</h4>
|
127 |
<ul>
|
128 |
<li>Added Support for CF7 with Google Recaptcha v3.</li>
|
63 |
17. CMP - Vega Theme
|
64 |
18. CMP - Agency Theme
|
65 |
19. CMP - Mercury Theme
|
66 |
+
20. CMP - Pluto Theme
|
67 |
|
68 |
|
69 |
== Installation ==
|
107 |
<p>Yes of course! You can use CMP landing pages as your main splash page! Just make sure to set CMP plugin to "Coming Soon & Landing Page" mode which returns correct response codes to web search engines.</p>
|
108 |
|
109 |
<h4>How can I translate text on buttons, countdown text and others?</h4>
|
110 |
+
<p>Simply check out CMP Settings > CMP Translation sub-menu where you can translate or modify all these texts!</p>
|
111 |
|
112 |
<h4>What are 503 or 200 HTTP codes, huh?</h4>
|
113 |
<p>OK, it`s easy - if you want to display Coming Soon page you usually wants to search engines (like Google) to be able to index your website. In that case you want the response code set to 200 HTTP "OK" - set Coming Soon mode or Landing Page.</p>
|
124 |
<p>Nothing is better than a good feedback! Please go to <a href="https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/">Plugin reviews</a> and rate it! Alternatively you can click on a Donate button too!:)</p>
|
125 |
|
126 |
== Changelog ==
|
127 |
+
<h4>CMP 3.3 - 267-Feb-19</h4>
|
128 |
+
<ul>
|
129 |
+
<li>New CMP Theme: Pluto! Minimalist Theme with beautiful typography, supports Countdown, Subscribe form and Image slider!</li>
|
130 |
+
<li>New option: Set custom logo size!</li>
|
131 |
+
</ul>
|
132 |
+
|
133 |
<h4>CMP 3.2.2 - 18-Feb-19</h4>
|
134 |
<ul>
|
135 |
<li>Added Support for CF7 with Google Recaptcha v3.</li>
|
themes/pluto.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
Theme Name: Pluto
|
3 |
+
Description: <p>Pluto is a premium template that allows you to insert a logo, custom content, countdown and subscribe form. Our design contains animated changing color background but you can change it to a picture, video or a picture slideshow. The template also lets you activate background effects.</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
|
4 |
+
|