Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 3.6 |
Comparing to | |
See all releases |
Code changes from version 3.5.9 to 3.6
- cmp-advanced.php +119 -6
- cmp-settings.php +8 -2
- css/cmp-settings-style.css +2 -1
- css/cmp-settings-style.min.css +1 -1
- inc/class-cmp-render_html.php +7 -4
- inc/settings/settings-background.php +5 -0
- inc/settings/settings-counter.php +1 -1
- inc/settings/settings-subscribe.php +47 -6
- js/cmp-advanced.js +4 -1
- js/cmp-advanced.min.js +1 -1
- niteo-cmp.php +91 -21
- readme.txt +12 -3
cmp-advanced.php
CHANGED
@@ -186,6 +186,33 @@ if ( isset( $_POST['niteoCS_footer_scripts'] ) ) {
|
|
186 |
update_option('niteoCS_footer_scripts', '[]');
|
187 |
}
|
188 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
$niteoCS_page_filter = get_option('niteoCS_page_filter', '0');
|
190 |
$niteoCS_page_whitelist = json_decode(get_option('niteoCS_page_whitelist', '[]'), true);
|
191 |
$niteoCS_page_whitelist_custom = json_decode(get_option('niteoCS_page_whitelist_custom', '[]'), true);
|
@@ -200,6 +227,11 @@ $bypass_id = get_option('niteoCS_bypass_id', md5( get_home_url() ));
|
|
200 |
$bypass_expire = get_option('niteoCS_bypass_expire', '172800');
|
201 |
$topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
202 |
|
|
|
|
|
|
|
|
|
|
|
203 |
?>
|
204 |
|
205 |
<div class="wrap cmp-coming-soon-maintenance cmp-advanced">
|
@@ -215,6 +247,8 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
215 |
|
216 |
<a class="nav-tab" href="<?php echo admin_url(); ?>admin.php?page=cmp-advanced#cmp-bypass" data-tab="cmp-bypass"><i class="fa fa-address-book-o" aria-hidden="true"></i><?php _e('Bypass', 'cmp-coming-soon-maintenance');?></a>
|
217 |
|
|
|
|
|
218 |
<a class="nav-tab" href="<?php echo admin_url(); ?>admin.php?page=cmp-advanced#cmp-misc" data-tab="cmp-misc"><i class="fa fa-cogs" aria-hidden="true"></i><?php _e('Misc', 'cmp-coming-soon-maintenance');?></a>
|
219 |
|
220 |
<a class="nav-tab" href="<?php echo admin_url(); ?>admin.php?page=cmp-advanced#cmp-export-import" data-tab="cmp-export-import"><i class="fa fa-upload" aria-hidden="true"></i><?php _e('Import/Export', 'cmp-coming-soon-maintenance');?></a>
|
@@ -318,6 +352,8 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
318 |
|
319 |
</div>
|
320 |
|
|
|
|
|
321 |
<div class="table-wrapper general cmp-bypass">
|
322 |
|
323 |
<h3 class="no-icon"><?php _e('CMP Bypass by User Roles', 'cmp-coming-soon-maintenance');?></h3>
|
@@ -432,6 +468,79 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
432 |
|
433 |
</div>
|
434 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
<div class="table-wrapper cmp-misc">
|
436 |
|
437 |
<h3 class="no-icon"><?php _e('CMP Top Bar Icon', 'cmp-coming-soon-maintenance');?></h3>
|
@@ -592,6 +701,8 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
592 |
|
593 |
</div>
|
594 |
|
|
|
|
|
595 |
<div class="table-wrapper cmp-export-import">
|
596 |
<h3 class="no-icon"><?php _e('Export or Import CMP Settings', 'cmp-coming-soon-maintenance');?></h3>
|
597 |
<table class="general">
|
@@ -634,16 +745,18 @@ $topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
|
634 |
<td>
|
635 |
<fieldset style="margin-top: 1em;">
|
636 |
<input type="text" hidden name="cmp-import-input" id="cmp-import-input" />
|
|
|
637 |
<label class='cmp-input-file'>
|
638 |
<span class="cmp-button import-export-button import-json-label" data-default="<?php _e('Select JSON file', 'cmp-coming-soon-maintenance');?>" style="display:inline-block"></span>
|
639 |
<input type="file" name="cmp-import-json" id="cmp-import-json" accept=".json">
|
640 |
-
|
641 |
-
<p>
|
642 |
-
<label for="cmp-import-media"><input type="checkbox" name="cmp-import-media" id="cmp-import-media" value="1" checked ><?php _e('Import with media images', 'cmp-coming-soon-maintenance');?></label>
|
643 |
-
</p>
|
644 |
-
|
645 |
-
<p class="cmp-hint"><?php _e('Insert valid JSON file with CMP Settings to import complete CMP Settings. All current settings will be overwritten.', 'cmp-coming-soon-maintenance');?></p>
|
646 |
</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
647 |
</fieldset>
|
648 |
</td>
|
649 |
</tr>
|
186 |
update_option('niteoCS_footer_scripts', '[]');
|
187 |
}
|
188 |
|
189 |
+
|
190 |
+
// Notifications save
|
191 |
+
|
192 |
+
if ( isset( $_POST['niteoCS-mode-change-email-address'] ) ) {
|
193 |
+
update_option('niteoCS_mode_change_email_address', sanitize_text_field( $_POST['niteoCS-mode-change-email-address'] ));
|
194 |
+
}
|
195 |
+
if ( isset( $_POST['niteoCS-countdown-email-address'] ) ) {
|
196 |
+
update_option('niteoCS_countdown_email_address', sanitize_text_field( $_POST['niteoCS-countdown-email-address'] ));
|
197 |
+
}
|
198 |
+
|
199 |
+
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
200 |
+
if ( isset($_POST['niteoCS-countdown-notification']) ) {
|
201 |
+
update_option('niteoCS_countdown_notification', $this->sanitize_checkbox($_POST['niteoCS-countdown-notification']) );
|
202 |
+
} else {
|
203 |
+
update_option('niteoCS_countdown_notification', '0');
|
204 |
+
}
|
205 |
+
|
206 |
+
if ( isset($_POST['niteoCS-mode-change-notification']) ) {
|
207 |
+
update_option('niteoCS_mode_change_notification', $this->sanitize_checkbox($_POST['niteoCS-mode-change-notification']) );
|
208 |
+
} else {
|
209 |
+
update_option('niteoCS_mode_change_notification', '0');
|
210 |
+
}
|
211 |
+
}
|
212 |
+
|
213 |
+
|
214 |
+
|
215 |
+
|
216 |
$niteoCS_page_filter = get_option('niteoCS_page_filter', '0');
|
217 |
$niteoCS_page_whitelist = json_decode(get_option('niteoCS_page_whitelist', '[]'), true);
|
218 |
$niteoCS_page_whitelist_custom = json_decode(get_option('niteoCS_page_whitelist_custom', '[]'), true);
|
227 |
$bypass_expire = get_option('niteoCS_bypass_expire', '172800');
|
228 |
$topbar_icon = get_option('niteoCS_topbar_icon', '1');
|
229 |
|
230 |
+
$cmp_countdown_notif = get_option('niteoCS_countdown_notification', '1');
|
231 |
+
$cmp_mode_change_notif = get_option('niteoCS_mode_change_notification', '0');
|
232 |
+
$countdown_email = get_option('niteoCS_countdown_email_address', get_option( 'admin_email' ));
|
233 |
+
$mode_change_email = get_option('niteoCS_mode_change_email_address', get_option( 'admin_email' ));
|
234 |
+
|
235 |
?>
|
236 |
|
237 |
<div class="wrap cmp-coming-soon-maintenance cmp-advanced">
|
247 |
|
248 |
<a class="nav-tab" href="<?php echo admin_url(); ?>admin.php?page=cmp-advanced#cmp-bypass" data-tab="cmp-bypass"><i class="fa fa-address-book-o" aria-hidden="true"></i><?php _e('Bypass', 'cmp-coming-soon-maintenance');?></a>
|
249 |
|
250 |
+
<a class="nav-tab" href="<?php echo admin_url(); ?>admin.php?page=cmp-advanced#cmp-notifications" data-tab="cmp-notifications"><i class="fa fa-envelope" aria-hidden="true"></i><?php _e('Notifications', 'cmp-coming-soon-maintenance');?></a>
|
251 |
+
|
252 |
<a class="nav-tab" href="<?php echo admin_url(); ?>admin.php?page=cmp-advanced#cmp-misc" data-tab="cmp-misc"><i class="fa fa-cogs" aria-hidden="true"></i><?php _e('Misc', 'cmp-coming-soon-maintenance');?></a>
|
253 |
|
254 |
<a class="nav-tab" href="<?php echo admin_url(); ?>admin.php?page=cmp-advanced#cmp-export-import" data-tab="cmp-export-import"><i class="fa fa-upload" aria-hidden="true"></i><?php _e('Import/Export', 'cmp-coming-soon-maintenance');?></a>
|
352 |
|
353 |
</div>
|
354 |
|
355 |
+
<!-- BYPASS -->
|
356 |
+
|
357 |
<div class="table-wrapper general cmp-bypass">
|
358 |
|
359 |
<h3 class="no-icon"><?php _e('CMP Bypass by User Roles', 'cmp-coming-soon-maintenance');?></h3>
|
468 |
|
469 |
</div>
|
470 |
|
471 |
+
<!-- NOTIFICATIONS -->
|
472 |
+
|
473 |
+
<div class="table-wrapper cmp-notifications">
|
474 |
+
<h3 class="no-icon"><?php _e('Email Notifications', 'cmp-coming-soon-maintenance');?></h3>
|
475 |
+
<table class="general">
|
476 |
+
<tbody>
|
477 |
+
<tr>
|
478 |
+
<th>
|
479 |
+
<fieldset>
|
480 |
+
<legend class="screen-reader-text">
|
481 |
+
<span><?php _e('Countdown expiration', 'cmp-coming-soon-maintenance');?></span>
|
482 |
+
</legend>
|
483 |
+
<p>
|
484 |
+
<h4><?php _e('Countdown expiration', 'cmp-coming-soon-maintenance');?></h4>
|
485 |
+
</p>
|
486 |
+
</fieldset>
|
487 |
+
</th>
|
488 |
+
|
489 |
+
<td>
|
490 |
+
<fieldset>
|
491 |
+
<p>
|
492 |
+
<label for="cmp-countdown-notification">
|
493 |
+
<input type="checkbox" class="countdown-toggle" name="niteoCS-countdown-notification" id="cmp-countdown-notification" value="1" <?php checked('1', $cmp_countdown_notif);?> ><?php _e('Enable Email notification when Countdown timer expires to 0.', 'cmp-coming-soon-maintenance');?>
|
494 |
+
</label>
|
495 |
+
</p>
|
496 |
+
|
497 |
+
<div class="countdown-toggle-switch x1">
|
498 |
+
<label><?php _e('Specify Email Address', 'cmp-coming-soon-maintenance');?>
|
499 |
+
<input type="text" name="niteoCS-countdown-email-address" value="<?php echo esc_attr( $countdown_email ); ?>" class="regular-text code"><br>
|
500 |
+
</label>
|
501 |
+
</div>
|
502 |
+
</fieldset>
|
503 |
+
</td>
|
504 |
+
</tr>
|
505 |
+
|
506 |
+
<tr>
|
507 |
+
<th>
|
508 |
+
<fieldset>
|
509 |
+
<legend class="screen-reader-text">
|
510 |
+
<span><?php _e('CMP Status Change', 'cmp-coming-soon-maintenance');?></span>
|
511 |
+
</legend>
|
512 |
+
<p>
|
513 |
+
<h4><?php _e('CMP Status Change', 'cmp-coming-soon-maintenance');?></h4>
|
514 |
+
</p>
|
515 |
+
</fieldset>
|
516 |
+
</th>
|
517 |
+
|
518 |
+
<td>
|
519 |
+
<fieldset>
|
520 |
+
<p>
|
521 |
+
<label for="cmp-mode-change-notification">
|
522 |
+
<input type="checkbox" name="niteoCS-mode-change-notification" class="mode-change-toggle" id="cmp-mode-change-notification" value="1" <?php checked('1', $cmp_mode_change_notif);?> ><?php _e('Enable Email notification if Coming Soon Mode is enabled or disabled by the user.', 'cmp-coming-soon-maintenance');?>
|
523 |
+
</label>
|
524 |
+
</p>
|
525 |
+
|
526 |
+
<div class="mode-change-toggle-switch x1">
|
527 |
+
<label><?php _e('Specify Email Address', 'cmp-coming-soon-maintenance');?>
|
528 |
+
<input type="text" name="niteoCS-mode-change-email-address" value="<?php echo esc_attr( $mode_change_email ); ?>" class="regular-text code"><br>
|
529 |
+
</label>
|
530 |
+
</div>
|
531 |
+
</fieldset>
|
532 |
+
</td>
|
533 |
+
</tr>
|
534 |
+
|
535 |
+
<?php echo $this->render_settings->submit(); ?>
|
536 |
+
|
537 |
+
</tbody>
|
538 |
+
</table>
|
539 |
+
|
540 |
+
</div>
|
541 |
+
|
542 |
+
<!-- MISC -->
|
543 |
+
|
544 |
<div class="table-wrapper cmp-misc">
|
545 |
|
546 |
<h3 class="no-icon"><?php _e('CMP Top Bar Icon', 'cmp-coming-soon-maintenance');?></h3>
|
701 |
|
702 |
</div>
|
703 |
|
704 |
+
<!-- IMPORT AND EXPORT -->
|
705 |
+
|
706 |
<div class="table-wrapper cmp-export-import">
|
707 |
<h3 class="no-icon"><?php _e('Export or Import CMP Settings', 'cmp-coming-soon-maintenance');?></h3>
|
708 |
<table class="general">
|
745 |
<td>
|
746 |
<fieldset style="margin-top: 1em;">
|
747 |
<input type="text" hidden name="cmp-import-input" id="cmp-import-input" />
|
748 |
+
|
749 |
<label class='cmp-input-file'>
|
750 |
<span class="cmp-button import-export-button import-json-label" data-default="<?php _e('Select JSON file', 'cmp-coming-soon-maintenance');?>" style="display:inline-block"></span>
|
751 |
<input type="file" name="cmp-import-json" id="cmp-import-json" accept=".json">
|
|
|
|
|
|
|
|
|
|
|
|
|
752 |
</label>
|
753 |
+
|
754 |
+
<p>
|
755 |
+
<label for="cmp-import-media"><input type="checkbox" name="cmp-import-media" id="cmp-import-media" value="1" checked ><?php _e('Import with media images', 'cmp-coming-soon-maintenance');?></label>
|
756 |
+
</p>
|
757 |
+
|
758 |
+
<p class="cmp-hint"><?php _e('Insert valid JSON file with CMP Settings to import complete CMP Settings. All current settings will be overwritten.', 'cmp-coming-soon-maintenance');?></p>
|
759 |
+
|
760 |
</fieldset>
|
761 |
</td>
|
762 |
</tr>
|
cmp-settings.php
CHANGED
@@ -169,6 +169,12 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
169 |
update_option('niteoCS_video_file_url', sanitize_text_field($_POST['niteoCS_video_file_url']));
|
170 |
}
|
171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
if (isset($_POST['niteoCS_banner_id'])) {
|
173 |
$allnums = true;
|
174 |
|
@@ -427,7 +433,7 @@ $niteoCS_youtube_url = get_option('niteoCS_youtube_url');
|
|
427 |
$niteoCS_vimeo_url = get_option('niteoCS_vimeo_url');
|
428 |
$niteoCS_video_thumb = get_option('niteoCS_video_thumb');
|
429 |
$niteoCS_video_file_url = get_option('niteoCS_video_file_url');
|
430 |
-
|
431 |
$overlay = get_option('niteoCS_overlay', 'solid-color');
|
432 |
$overlay_color = get_option('niteoCS_overlay[color]', '#0a0a0a');
|
433 |
$overlay_opa = get_option('niteoCS_overlay[opacity]', '0.4');
|
@@ -637,7 +643,7 @@ add_thickbox();
|
|
637 |
</fieldset>
|
638 |
|
639 |
<fieldset class="cmp-status switch<?php echo $this->cmp_mode() == 1 ? ' active' : '';?>">
|
640 |
-
<input type="radio" name="cmp-activate" value="1" <?php checked( '1', $this->cmp_mode() ); ?> <?php disabled( '0', $this->cmp_active() ); ?>> <?php _e('
|
641 |
<span class="info"><?php _e('Returns 503 HTTP Service unavailable code to indexing robots. Set this option if your site is down due to maintanance and you want to display Maintanance page.','cmp-coming-soon-maintenance')?></span>
|
642 |
</fieldset>
|
643 |
|
169 |
update_option('niteoCS_video_file_url', sanitize_text_field($_POST['niteoCS_video_file_url']));
|
170 |
}
|
171 |
|
172 |
+
if ( isset($_POST['niteoCS_video_autoloop']) ) {
|
173 |
+
update_option('niteoCS_video_autoloop', $this->sanitize_checkbox($_POST['niteoCS_video_autoloop']));
|
174 |
+
} else {
|
175 |
+
update_option('niteoCS_video_autoloop', '0');
|
176 |
+
}
|
177 |
+
|
178 |
if (isset($_POST['niteoCS_banner_id'])) {
|
179 |
$allnums = true;
|
180 |
|
433 |
$niteoCS_vimeo_url = get_option('niteoCS_vimeo_url');
|
434 |
$niteoCS_video_thumb = get_option('niteoCS_video_thumb');
|
435 |
$niteoCS_video_file_url = get_option('niteoCS_video_file_url');
|
436 |
+
$video_autoloop = get_option('niteoCS_video_autoloop', '1');
|
437 |
$overlay = get_option('niteoCS_overlay', 'solid-color');
|
438 |
$overlay_color = get_option('niteoCS_overlay[color]', '#0a0a0a');
|
439 |
$overlay_opa = get_option('niteoCS_overlay[opacity]', '0.4');
|
643 |
</fieldset>
|
644 |
|
645 |
<fieldset class="cmp-status switch<?php echo $this->cmp_mode() == 1 ? ' active' : '';?>">
|
646 |
+
<input type="radio" name="cmp-activate" value="1" <?php checked( '1', $this->cmp_mode() ); ?> <?php disabled( '0', $this->cmp_active() ); ?>> <?php _e('Maintenance Mode', 'cmp-coming-soon-maintenance');?><br>
|
647 |
<span class="info"><?php _e('Returns 503 HTTP Service unavailable code to indexing robots. Set this option if your site is down due to maintanance and you want to display Maintanance page.','cmp-coming-soon-maintenance')?></span>
|
648 |
</fieldset>
|
649 |
|
css/cmp-settings-style.css
CHANGED
@@ -100,7 +100,8 @@
|
|
100 |
.cmp-coming-soon-maintenance .table-wrapper.theme-setup,
|
101 |
.cmp-coming-soon-maintenance .table-wrapper.cmp-bypass,
|
102 |
.cmp-coming-soon-maintenance .table-wrapper.cmp-misc,
|
103 |
-
.cmp-coming-soon-maintenance .table-wrapper.cmp-export-import
|
|
|
104 |
display: none
|
105 |
}
|
106 |
|
100 |
.cmp-coming-soon-maintenance .table-wrapper.theme-setup,
|
101 |
.cmp-coming-soon-maintenance .table-wrapper.cmp-bypass,
|
102 |
.cmp-coming-soon-maintenance .table-wrapper.cmp-misc,
|
103 |
+
.cmp-coming-soon-maintenance .table-wrapper.cmp-export-import,
|
104 |
+
.cmp-coming-soon-maintenance .table-wrapper.cmp-notifications {
|
105 |
display: none
|
106 |
}
|
107 |
|
css/cmp-settings-style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:6px}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:12px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#1d3557;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-o-transition:.3s ease-in-out;transition:.3s ease-in-out}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#1d3557;border:2px solid #1d3557}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance .table-wrapper.cmp-bypass,.cmp-coming-soon-maintenance .table-wrapper.cmp-export-import,.cmp-coming-soon-maintenance .table-wrapper.cmp-misc,.cmp-coming-soon-maintenance .table-wrapper.content,.cmp-coming-soon-maintenance .table-wrapper.install,.cmp-coming-soon-maintenance .table-wrapper.seo,.cmp-coming-soon-maintenance .table-wrapper.theme-setup{display:none}.cmp-coming-soon-maintenance .wp-upload-form.cmp{padding:4em;display:block}.cmp-coming-soon-maintenance .cmp-status{width:95%;padding:10px;font-weight:600;font-size:1.2em;cursor:pointer;opacity:.8}.cmp-coming-soon-maintenance .cmp-status.active{opacity:1}.cmp-coming-soon-maintenance .cmp-status span{font-weight:400}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{margin-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left;font-weight:600}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-seo_img,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-inputs li.social-labels{display:block}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.2em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance .unsplash-feed{display:none}.cmp-coming-soon-maintenance .social-inputs p{position:relative;padding-left:50px;height:50px}.cmp-coming-soon-maintenance .social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.cmp-coming-soon-maintenance .theme-details,.cmp-coming-soon-maintenance .toggle{cursor:pointer}.cmp-coming-soon-maintenance .social-inputs label{padding-left:100px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}.cmp-coming-soon-maintenance #unsplash_img{display:none}.cmp-coming-soon-maintenance #unsplash-media{position:relative}.cmp-coming-soon-maintenance .color-preview,.cmp-coming-soon-maintenance .gradient-preview,.cmp-coming-soon-maintenance .pattern-wrapper{position:relative;background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.chameleon.color-preview{-webkit-animation:chameleon 19s infinite;animation:chameleon 19s infinite}@-webkit-keyframes chameleon{0%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}100%{background:#2ecc71}}@keyframes chameleon{0%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}100%{background:#2ecc71}}.cmp-coming-soon-maintenance .theme-overlay .screenshot,.cmp-coming-soon-maintenance .thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.cmp-coming-soon-maintenance .video-local-wrapper,.cmp-coming-soon-maintenance .video-yt-wrapper{position:relative;width:100%;margin-top:1em}.cmp-coming-soon-maintenance #add-pattern{margin-bottom:1em}.cmp-coming-soon-maintenance .info{font-size:12px}.cmp-coming-soon-maintenance .nav-tab i{padding-right:3px}.cmp-coming-soon-maintenance .nav-tab-wrapper{border:none!important}.cmp-coming-soon-maintenance .nav-tab{font-weight:400;background:#fff;padding:10px 20px;border:1px solid #e2e2e2}.cmp-coming-soon-maintenance .nav-tab:first-of-type{margin-left:0}.cmp-coming-soon-maintenance .nav-tab-active,.cmp-coming-soon-maintenance .nav-tab-active:focus,.cmp-coming-soon-maintenance .nav-tab-active:focus:active,.cmp-coming-soon-maintenance .nav-tab-active:hover{background:#1d3557;border:1px solid #1d3557;outline:0;box-shadow:none;color:#fff;font-weight:600}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper,.cmp-coming-soon-maintenance .seo_img-wrapper{margin:1em 0}.cmp-coming-soon-maintenance .favicon-wrapper img,.cmp-coming-soon-maintenance .logo-wrapper img{background-color:#efefef;padding:1em}.cmp-coming-soon-maintenance .favicon-wrapper img{max-width:32px}.cmp-coming-soon-maintenance .background-media img,.cmp-coming-soon-maintenance .logo-wrapper img,.cmp-coming-soon-maintenance .seo_img-wrapper img{max-width:100%;width:100%;vertical-align:top}.cmp-coming-soon-maintenance .background-thumb-wrapper,.cmp-coming-soon-maintenance .video-thumb-wrapper{position:relative;margin:1em 0;overflow:hidden}.cmp-coming-soon-maintenance .thumbnail-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2){display:-ms-grid;display:grid;height:auto;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;-ms-grid-rows:1fr auto;grid-template-rows:1fr auto;grid-template-areas:"Big Big Big" "small-3 small-2 small-1";grid-gap:10px}.cmp-coming-soon-maintenance .custom-gallery.gallery-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"Big Big" "small-2 small-1"!important}.cmp-coming-soon-maintenance .gallery-2 .big-thumb{margin-bottom:1em}.cmp-coming-soon-maintenance .big-thumb{grid-area:Big/Big;overflow:hidden;position:relative}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden;min-height:20em;overflow:auto}.cmp-coming-soon-maintenance #heading-example{border-bottom:none;line-height:1.5;padding:0}.cmp-coming-soon-maintenance .font-selector td:first-of-type{padding-bottom:2em;display:flex;flex-wrap:wrap}.cmp-coming-soon-maintenance .font-selector fieldset{box-sizing:border-box;padding:.5em .2em;flex:1;min-width:100%}.cmp-coming-soon-maintenance .font-selector .cmp-width-33{min-width:30%}.cmp-coming-soon-maintenance .font-selector .cmp-width-50{min-width:50%}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;-o-transition:background-color .1s;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px;height:2em;background:#656565;line-height:2em;padding-right:10px;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#2d936c}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-o-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase;cursor:pointer}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#e63946;color:#fff;border:none;-o-transition:background-color .5s;transition:background-color .5s}.cmp-coming-soon-maintenance .import-export-button{background-color:#0085ba}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-status-pages .label,.cmp-coming-soon-maintenance .cmp-status-pages label{height:33px;width:140px;display:flex;align-items:center;justify-content:center;flex-direction:inherit;text-align:center;border-bottom:2px solid transparent;border-radius:0;float:left;margin-top:2em;margin-left:3em;margin-bottom:2em}.cmp-coming-soon-maintenance .cmp-status-pages .label.active,.cmp-coming-soon-maintenance .cmp-status-pages label.active{border-color:rgba(29,53,87,.6)}.cmp-coming-soon-maintenance .cmp-status-pages label:first-of-type{margin-left:0}.cmp-coming-soon-maintenance .cmp-status-pages a{color:inherit}.cmp-coming-soon-maintenance .cmp-status-pages input{margin:0;margin-right:.5em}.redirect-inputs{font-size:.8em;font-weight:400}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e63946;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;min-width:190px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{content:'';font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{-o-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-o-transition:opacity .5s;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{-webkit-transition:all .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:1em}.cmp-coming-soon-maintenance .toggle{position:relative;width:340px;height:50px;font-weight:600;background:0 0;border:2px solid rgba(29,53,87,.6);-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:50px;font-size:1em;z-index:2;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#e63946;width:170px;height:44px;top:3px;left:5px;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);border-radius:10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{-webkit-transform:translateX(160px);-ms-transform:translateX(160px);transform:translateX(160px);background:#2d936c}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:63px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#444}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:68px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.cmp-advanced .cmp-sidebar-wrapper,.content-settings .cmp-sidebar-wrapper{margin-top:61px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}.cmp-coming-soon-maintenance #niteoCS_subscribe_label{height:150px}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}.cmp-coming-soon-maintenance .cmp-hint{font-size:.9em}.cmp-coming-soon-maintenance .source-repeater-fields input,.cmp-coming-soon-maintenance .target-repeater-fields input{width:95%;margin-bottom:1em}.cmp-coming-soon-maintenance .source-repeater-fields i,.cmp-coming-soon-maintenance .target-repeater-fields i{line-height:2.5;float:right}.logo-height-wrap{display:flex;line-height:2}.logo-height-wrap input[type=range]{margin-right:1em}.cmp-coming-soon-maintenance .table-wrapper.cmp-bundle-banner{margin:0;border:none;margin-bottom:.7em;display:block;background:0 0}.cmp-coming-soon-maintenance .table-wrapper.cmp-bundle-banner img{max-width:100%;height:auto}.cmp-coming-soon-maintenance .source-repeater-fields a{display:none}.cmp-coming-soon-maintenance .cmp-export-import textarea{display:none}.cmp-coming-soon-maintenance .import-json-label{position:relative}.cmp-coming-soon-maintenance .import-json-label.import-fail{background:red}.cmp-coming-soon-maintenance .import-json-label:before{display:block;content:attr(data-default)}.cmp-coming-soon-maintenance #cmp-import-json{display:none}.cmp-coming-soon-maintenance .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:35px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #dedede;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background-color:#fff;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #dedede;border-radius:4px}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#2980b9;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-o-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-o-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-o-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-o-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#2980b9;color:#fff;border:none;padding:3px 5px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#fff}.cmp-coming-soon-maintenance .select2-container--default .select2-search--inline .select2-search__field{line-height:2.5em;margin-top:0}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__rendered li{margin-bottom:0}.cmp-coming-soon-maintenance .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.cmp-coming-soon-maintenance .select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.cmp-coming-soon-maintenance .select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#2980b9}#niteoCS_body_ifr{min-height:280px}@media screen and (max-width:1450px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:70%}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{width:calc(30% - 2em + 7px);margin:0}}@media screen and (max-width:1270px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:100%;max-width:100%}}@media screen and (max-width:1024px){.cmp-coming-soon-maintenance .table-wrapper table{width:100%}.cmp-coming-soon-maintenance .table-wrapper th{width:140px}.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{width:calc(50% - 1em - 5px)}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:1em}}@media screen and (max-width:782px){.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.cmp-coming-soon-maintenance .table-wrapper th{display:block}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:1em}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;margin-bottom:1em!important}.cmp-coming-soon-maintenance .theme-overlay .theme-info,.cmp-coming-soon-maintenance .theme-overlay .theme-screenshots{width:100%;float:none}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{font-size:13px}.cmp-coming-soon-maintenance #font-example-wrapper{min-height:24em}}@media screen and (max-width:560px){.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:50px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:105px}.cmp-coming-soon-maintenance .social-inputs p i{top:22px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{top:28px;left:53px}.cmp-coming-soon-maintenance .social-inputs label{padding-left:55px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
|
1 |
+
.cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:6px}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:12px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#1d3557;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-o-transition:.3s ease-in-out;transition:.3s ease-in-out}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#1d3557;border:2px solid #1d3557}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance .table-wrapper.cmp-bypass,.cmp-coming-soon-maintenance .table-wrapper.cmp-export-import,.cmp-coming-soon-maintenance .table-wrapper.cmp-misc,.cmp-coming-soon-maintenance .table-wrapper.cmp-notifications,.cmp-coming-soon-maintenance .table-wrapper.content,.cmp-coming-soon-maintenance .table-wrapper.install,.cmp-coming-soon-maintenance .table-wrapper.seo,.cmp-coming-soon-maintenance .table-wrapper.theme-setup{display:none}.cmp-coming-soon-maintenance .wp-upload-form.cmp{padding:4em;display:block}.cmp-coming-soon-maintenance .cmp-status{width:95%;padding:10px;font-weight:600;font-size:1.2em;cursor:pointer;opacity:.8}.cmp-coming-soon-maintenance .cmp-status.active{opacity:1}.cmp-coming-soon-maintenance .cmp-status span{font-weight:400}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{margin-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left;font-weight:600}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-seo_img,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-inputs li.social-labels{display:block}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.2em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance .unsplash-feed{display:none}.cmp-coming-soon-maintenance .social-inputs p{position:relative;padding-left:50px;height:50px}.cmp-coming-soon-maintenance .social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.cmp-coming-soon-maintenance .theme-details,.cmp-coming-soon-maintenance .toggle{cursor:pointer}.cmp-coming-soon-maintenance .social-inputs label{padding-left:100px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}.cmp-coming-soon-maintenance #unsplash_img{display:none}.cmp-coming-soon-maintenance #unsplash-media{position:relative}.cmp-coming-soon-maintenance .color-preview,.cmp-coming-soon-maintenance .gradient-preview,.cmp-coming-soon-maintenance .pattern-wrapper{position:relative;background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.chameleon.color-preview{-webkit-animation:chameleon 19s infinite;animation:chameleon 19s infinite}@-webkit-keyframes chameleon{0%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}100%{background:#2ecc71}}@keyframes chameleon{0%{background:#2ecc71}25%{background:#f1c40f}50%{background:#e74c3c}75%{background:#3498db}100%{background:#2ecc71}}.cmp-coming-soon-maintenance .theme-overlay .screenshot,.cmp-coming-soon-maintenance .thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.cmp-coming-soon-maintenance .video-local-wrapper,.cmp-coming-soon-maintenance .video-yt-wrapper{position:relative;width:100%;margin-top:1em}.cmp-coming-soon-maintenance #add-pattern{margin-bottom:1em}.cmp-coming-soon-maintenance .info{font-size:12px}.cmp-coming-soon-maintenance .nav-tab i{padding-right:3px}.cmp-coming-soon-maintenance .nav-tab-wrapper{border:none!important}.cmp-coming-soon-maintenance .nav-tab{font-weight:400;background:#fff;padding:10px 20px;border:1px solid #e2e2e2}.cmp-coming-soon-maintenance .nav-tab:first-of-type{margin-left:0}.cmp-coming-soon-maintenance .nav-tab-active,.cmp-coming-soon-maintenance .nav-tab-active:focus,.cmp-coming-soon-maintenance .nav-tab-active:focus:active,.cmp-coming-soon-maintenance .nav-tab-active:hover{background:#1d3557;border:1px solid #1d3557;outline:0;box-shadow:none;color:#fff;font-weight:600}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper,.cmp-coming-soon-maintenance .seo_img-wrapper{margin:1em 0}.cmp-coming-soon-maintenance .favicon-wrapper img,.cmp-coming-soon-maintenance .logo-wrapper img{background-color:#efefef;padding:1em}.cmp-coming-soon-maintenance .favicon-wrapper img{max-width:32px}.cmp-coming-soon-maintenance .background-media img,.cmp-coming-soon-maintenance .logo-wrapper img,.cmp-coming-soon-maintenance .seo_img-wrapper img{max-width:100%;width:100%;vertical-align:top}.cmp-coming-soon-maintenance .background-thumb-wrapper,.cmp-coming-soon-maintenance .video-thumb-wrapper{position:relative;margin:1em 0;overflow:hidden}.cmp-coming-soon-maintenance .thumbnail-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2){display:-ms-grid;display:grid;height:auto;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;-ms-grid-rows:1fr auto;grid-template-rows:1fr auto;grid-template-areas:"Big Big Big" "small-3 small-2 small-1";grid-gap:10px}.cmp-coming-soon-maintenance .custom-gallery.gallery-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"Big Big" "small-2 small-1"!important}.cmp-coming-soon-maintenance .gallery-2 .big-thumb{margin-bottom:1em}.cmp-coming-soon-maintenance .big-thumb{grid-area:Big/Big;overflow:hidden;position:relative}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden;min-height:20em;overflow:auto}.cmp-coming-soon-maintenance #heading-example{border-bottom:none;line-height:1.5;padding:0}.cmp-coming-soon-maintenance .font-selector td:first-of-type{padding-bottom:2em;display:flex;flex-wrap:wrap}.cmp-coming-soon-maintenance .font-selector fieldset{box-sizing:border-box;padding:.5em .2em;flex:1;min-width:100%}.cmp-coming-soon-maintenance .font-selector .cmp-width-33{min-width:30%}.cmp-coming-soon-maintenance .font-selector .cmp-width-50{min-width:50%}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;-o-transition:background-color .1s;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px;height:2em;background:#656565;line-height:2em;padding-right:10px;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#2d936c}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-o-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase;cursor:pointer}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#e63946;color:#fff;border:none;-o-transition:background-color .5s;transition:background-color .5s}.cmp-coming-soon-maintenance .import-export-button{background-color:#0085ba}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-status-pages .label,.cmp-coming-soon-maintenance .cmp-status-pages label{height:33px;width:140px;display:flex;align-items:center;justify-content:center;flex-direction:inherit;text-align:center;border-bottom:2px solid transparent;border-radius:0;float:left;margin-top:2em;margin-left:3em;margin-bottom:2em}.cmp-coming-soon-maintenance .cmp-status-pages .label.active,.cmp-coming-soon-maintenance .cmp-status-pages label.active{border-color:rgba(29,53,87,.6)}.cmp-coming-soon-maintenance .cmp-status-pages label:first-of-type{margin-left:0}.cmp-coming-soon-maintenance .cmp-status-pages a{color:inherit}.cmp-coming-soon-maintenance .cmp-status-pages input{margin:0;margin-right:.5em}.redirect-inputs{font-size:.8em;font-weight:400}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e63946;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;min-width:190px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{content:'';font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{-o-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-o-transition:opacity .5s;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{-webkit-transition:all .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:1em}.cmp-coming-soon-maintenance .toggle{position:relative;width:340px;height:50px;font-weight:600;background:0 0;border:2px solid rgba(29,53,87,.6);-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:50px;font-size:1em;z-index:2;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#e63946;width:170px;height:44px;top:3px;left:5px;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);border-radius:10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{-webkit-transform:translateX(160px);-ms-transform:translateX(160px);transform:translateX(160px);background:#2d936c}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:63px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#444}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:68px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.cmp-advanced .cmp-sidebar-wrapper,.content-settings .cmp-sidebar-wrapper{margin-top:61px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}.cmp-coming-soon-maintenance #niteoCS_subscribe_label{height:150px}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}.cmp-coming-soon-maintenance .cmp-hint{font-size:.9em}.cmp-coming-soon-maintenance .source-repeater-fields input,.cmp-coming-soon-maintenance .target-repeater-fields input{width:95%;margin-bottom:1em}.cmp-coming-soon-maintenance .source-repeater-fields i,.cmp-coming-soon-maintenance .target-repeater-fields i{line-height:2.5;float:right}.logo-height-wrap{display:flex;line-height:2}.logo-height-wrap input[type=range]{margin-right:1em}.cmp-coming-soon-maintenance .table-wrapper.cmp-bundle-banner{margin:0;border:none;margin-bottom:.7em;display:block;background:0 0}.cmp-coming-soon-maintenance .table-wrapper.cmp-bundle-banner img{max-width:100%;height:auto}.cmp-coming-soon-maintenance .source-repeater-fields a{display:none}.cmp-coming-soon-maintenance .cmp-export-import textarea{display:none}.cmp-coming-soon-maintenance .import-json-label{position:relative}.cmp-coming-soon-maintenance .import-json-label.import-fail{background:red}.cmp-coming-soon-maintenance .import-json-label:before{display:block;content:attr(data-default)}.cmp-coming-soon-maintenance #cmp-import-json{display:none}.cmp-coming-soon-maintenance .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:35px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #dedede;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background-color:#fff;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #dedede;border-radius:4px}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#2980b9;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-o-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-o-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-o-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-o-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#2980b9;color:#fff;border:none;padding:3px 5px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#fff}.cmp-coming-soon-maintenance .select2-container--default .select2-search--inline .select2-search__field{line-height:2.5em;margin-top:0}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--multiple .select2-selection__rendered li{margin-bottom:0}.cmp-coming-soon-maintenance .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.cmp-coming-soon-maintenance .select2-container--default.select2-container--focus .select2-selection--multiple{border-color:#5b9dd9;box-shadow:0 0 2px rgba(30,140,190,.8)}.cmp-coming-soon-maintenance .select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#2980b9}#niteoCS_body_ifr{min-height:280px}@media screen and (max-width:1450px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:70%}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{width:calc(30% - 2em + 7px);margin:0}}@media screen and (max-width:1270px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:100%;max-width:100%}}@media screen and (max-width:1024px){.cmp-coming-soon-maintenance .table-wrapper table{width:100%}.cmp-coming-soon-maintenance .table-wrapper th{width:140px}.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{width:calc(50% - 1em - 5px)}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:1em}}@media screen and (max-width:782px){.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.cmp-coming-soon-maintenance .table-wrapper th{display:block}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:1em}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;margin-bottom:1em!important}.cmp-coming-soon-maintenance .theme-overlay .theme-info,.cmp-coming-soon-maintenance .theme-overlay .theme-screenshots{width:100%;float:none}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{font-size:13px}.cmp-coming-soon-maintenance #font-example-wrapper{min-height:24em}}@media screen and (max-width:560px){.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:50px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:105px}.cmp-coming-soon-maintenance .social-inputs p i{top:22px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{top:28px;left:53px}.cmp-coming-soon-maintenance .social-inputs label{padding-left:55px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
|
inc/class-cmp-render_html.php
CHANGED
@@ -1364,7 +1364,8 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1364 |
// include background scripts
|
1365 |
switch ( $background ) {
|
1366 |
// VIDIM script for background video
|
1367 |
-
case '5':
|
|
|
1368 |
<script src='<?php echo plugins_url('cmp-coming-soon-maintenance/js/external/vidim.min.js');?>'></script>
|
1369 |
<script>
|
1370 |
<?php
|
@@ -1397,7 +1398,8 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1397 |
type: 'YouTube',
|
1398 |
poster: '<?php echo esc_url( $video_poster ); ?>',
|
1399 |
quality: 'hd1080',
|
1400 |
-
muted: true
|
|
|
1401 |
});
|
1402 |
|
1403 |
<?php
|
@@ -1409,8 +1411,8 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1409 |
src: '<?php echo esc_url( $banner_url ); ?>',
|
1410 |
type: 'vimeo',
|
1411 |
poster: '<?php echo esc_url( $video_poster ); ?>',
|
1412 |
-
|
1413 |
-
);
|
1414 |
<?php
|
1415 |
break;
|
1416 |
|
@@ -1425,6 +1427,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1425 |
},
|
1426 |
],
|
1427 |
poster: '<?php echo esc_url( $video_poster ); ?>',
|
|
|
1428 |
});
|
1429 |
<?php
|
1430 |
break;
|
1364 |
// include background scripts
|
1365 |
switch ( $background ) {
|
1366 |
// VIDIM script for background video
|
1367 |
+
case '5':
|
1368 |
+
$video_autoloop = get_option('niteoCS_video_autoloop', '1'); ?>
|
1369 |
<script src='<?php echo plugins_url('cmp-coming-soon-maintenance/js/external/vidim.min.js');?>'></script>
|
1370 |
<script>
|
1371 |
<?php
|
1398 |
type: 'YouTube',
|
1399 |
poster: '<?php echo esc_url( $video_poster ); ?>',
|
1400 |
quality: 'hd1080',
|
1401 |
+
muted: true,
|
1402 |
+
loop: <?php echo $video_autoloop ? 'true' : 'false' ; ?>
|
1403 |
});
|
1404 |
|
1405 |
<?php
|
1411 |
src: '<?php echo esc_url( $banner_url ); ?>',
|
1412 |
type: 'vimeo',
|
1413 |
poster: '<?php echo esc_url( $video_poster ); ?>',
|
1414 |
+
loop: <?php echo $video_autoloop ? 'true' : 'false' ; ?>
|
1415 |
+
});
|
1416 |
<?php
|
1417 |
break;
|
1418 |
|
1427 |
},
|
1428 |
],
|
1429 |
poster: '<?php echo esc_url( $video_poster ); ?>',
|
1430 |
+
loop: <?php echo $video_autoloop ? 'true' : 'false' ; ?>
|
1431 |
});
|
1432 |
<?php
|
1433 |
break;
|
inc/settings/settings-background.php
CHANGED
@@ -269,6 +269,8 @@ $gradient_array = array(
|
|
269 |
<!-- Video mobile Thumbnail -->
|
270 |
<div class="banner-video-source youtube local">
|
271 |
|
|
|
|
|
272 |
<p><?php _e('YouTube background doesn`t work on mobile devices therefore only thumbnail will be displayed on mobile devices. You can upload custom thumbnail image by pressing button below. ', 'cmp-coming-soon-maintenance');?></p>
|
273 |
<input type="hidden" class="widefat" id="niteoCS-video-thumb-id" name="niteoCS_video_thumb" value="<?php echo esc_attr( $niteoCS_video_thumb ); ?>" />
|
274 |
<input id="add-video-thumb" type="button" class="button" value="<?php _e('Media Library', 'cmp-coming-soon-maintenance');?>" /><br><br>
|
@@ -287,8 +289,11 @@ $gradient_array = array(
|
|
287 |
</div>
|
288 |
|
289 |
<input id="delete-video-thumb" type="button" class="button" value="Remove Thumbnail" />
|
|
|
290 |
</div>
|
291 |
|
|
|
|
|
292 |
</fieldset>
|
293 |
|
294 |
<!-- PATTERN BACKGROUND -->
|
269 |
<!-- Video mobile Thumbnail -->
|
270 |
<div class="banner-video-source youtube local">
|
271 |
|
272 |
+
<label><input type="checkbox" name="niteoCS_video_autoloop" value="1" <?php checked( '1', get_option( 'niteoCS_video_autoloop', '1' ) ); ?> class="regular-text code"><?php _e('Loop video automatically', 'cmp-coming-soon-maintenance');?></label>
|
273 |
+
|
274 |
<p><?php _e('YouTube background doesn`t work on mobile devices therefore only thumbnail will be displayed on mobile devices. You can upload custom thumbnail image by pressing button below. ', 'cmp-coming-soon-maintenance');?></p>
|
275 |
<input type="hidden" class="widefat" id="niteoCS-video-thumb-id" name="niteoCS_video_thumb" value="<?php echo esc_attr( $niteoCS_video_thumb ); ?>" />
|
276 |
<input id="add-video-thumb" type="button" class="button" value="<?php _e('Media Library', 'cmp-coming-soon-maintenance');?>" /><br><br>
|
289 |
</div>
|
290 |
|
291 |
<input id="delete-video-thumb" type="button" class="button" value="Remove Thumbnail" />
|
292 |
+
|
293 |
</div>
|
294 |
|
295 |
+
<!-- enable / disable autoolop video checkbox -->
|
296 |
+
|
297 |
</fieldset>
|
298 |
|
299 |
<!-- PATTERN BACKGROUND -->
|
inc/settings/settings-counter.php
CHANGED
@@ -98,7 +98,7 @@ $niteoCS_counter_heading = get_option('niteoCS_counter_heading', 'STAY TUNED, W
|
|
98 |
|
99 |
</select>
|
100 |
|
101 |
-
<span class="cmp-hint">* <?php echo sprintf(__('Notification Email will be sent to
|
102 |
|
103 |
<label for="niteoCS_countdown_redirect" class="counter-action redirect" style="padding-top:1em"><?php _e('Enter redirect URL', 'cmp-coming-soon-maintenance');?>
|
104 |
<input type="text" id="niteoCS_countdown_redirect" name="niteoCS_countdown_redirect" value="<?php echo esc_url( $niteoCS_countdown_redirect ); ?>" class="regular-text code"><br>
|
98 |
|
99 |
</select>
|
100 |
|
101 |
+
<span class="cmp-hint">* <?php echo sprintf(__('Notification Email will be sent to %s email address once counter expires.', 'cmp-coming-soon-maintenance'), '('. get_option( 'admin_email' ) . ')');?></span>
|
102 |
|
103 |
<label for="niteoCS_countdown_redirect" class="counter-action redirect" style="padding-top:1em"><?php _e('Enter redirect URL', 'cmp-coming-soon-maintenance');?>
|
104 |
<input type="text" id="niteoCS_countdown_redirect" name="niteoCS_countdown_redirect" value="<?php echo esc_url( $niteoCS_countdown_redirect ); ?>" class="regular-text code"><br>
|
inc/settings/settings-subscribe.php
CHANGED
@@ -31,6 +31,10 @@ if (isset($_POST['niteoCS_mailpoet_list_selected'])) {
|
|
31 |
update_option('niteoCS_mailpoet_list_selected', sanitize_text_field($_POST['niteoCS_mailpoet_list_selected']));
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
34 |
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
35 |
|
36 |
if ( isset($_POST['niteoCS_mailchimp_double_opt']) ) {
|
@@ -38,6 +42,12 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
38 |
} else {
|
39 |
update_option('niteoCS_mailchimp[double-opt]', false);
|
40 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
|
43 |
|
@@ -54,6 +64,7 @@ $mailchimp_apikey = get_option('niteoCS_mailchimp_apikey', '');
|
|
54 |
$mailchimp_list_selected = get_option('niteoCS_mailchimp_list_selected');
|
55 |
$mailchimp_lists = json_decode(get_option('niteoCS_mailchimp_lists', false), true);
|
56 |
$mailpoet_list_selected = get_option('niteoCS_mailpoet_list_selected');
|
|
|
57 |
|
58 |
?>
|
59 |
|
@@ -129,11 +140,12 @@ $mailpoet_list_selected = get_option('niteoCS_mailpoet_list_selected');
|
|
129 |
<textarea name="niteoCS_subscribe_label" id="niteoCS_subscribe_label" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>"><?php echo esc_attr( $niteoCS_subscribe_label );?></textarea>
|
130 |
</label><br><br>
|
131 |
|
132 |
-
<label for="niteoCS_subscribe_method"><?php _e('Select how to
|
133 |
<select name="niteoCS_subscribe_method" id ="niteoCS_subscribe_method" class="subscribe-method">
|
134 |
<option value="cmp" <?php selected( 'cmp', $subscribe_method ); ?>><?php _e('CMP Custom Subscribe List', 'cmp-coming-soon-maintenance');?></option>
|
135 |
<option value="mailchimp" <?php selected( 'mailchimp', $subscribe_method ); ?>><?php _e('MailChimp Integration', 'cmp-coming-soon-maintenance');?></option>
|
136 |
<option value="mailpoet" <?php selected( 'mailpoet', $subscribe_method ); ?>><?php _e('MailPoet Integration', 'cmp-coming-soon-maintenance');?></option>
|
|
|
137 |
</select>
|
138 |
</label>
|
139 |
|
@@ -149,7 +161,7 @@ $mailpoet_list_selected = get_option('niteoCS_mailpoet_list_selected');
|
|
149 |
</label><br><br>
|
150 |
<button id="connect-mailchimp" class="button" data-security="<?php echo esc_attr($ajax_nonce);?>"><?php _e('Retrieve Lists', 'cmp-coming-soon-maintenance');?></button>
|
151 |
<p><?php printf(__('You can find or create new API key in your %s.', 'cmp-coming-soon-maintenance'), '<a href="https://admin.mailchimp.com/account/api/" target="_blank">MailChimp Account</a>'); ?></p>
|
152 |
-
<label for="niteoCS_mailchimp_list"><?php _e('Select MailChimp
|
153 |
<select name="niteoCS_mailchimp_list_selected" id="niteoCS_mailchimp_list">
|
154 |
<?php
|
155 |
if ( is_array( $mailchimp_lists ) ) {
|
@@ -175,7 +187,6 @@ $mailpoet_list_selected = get_option('niteoCS_mailpoet_list_selected');
|
|
175 |
</div>
|
176 |
|
177 |
<div class="subscribe-method mailpoet">
|
178 |
-
|
179 |
<?php
|
180 |
$mailpoet_lists = null;
|
181 |
// get MailPoet Lists
|
@@ -188,7 +199,7 @@ $mailpoet_list_selected = get_option('niteoCS_mailpoet_list_selected');
|
|
188 |
|
189 |
<br>
|
190 |
|
191 |
-
<label for="niteoCS_mailpoet_list"><?php _e('Select MailPoet
|
192 |
<select name="niteoCS_mailpoet_list_selected" id="niteoCS_mailpoet_list">
|
193 |
<?php
|
194 |
if ( is_array( $mailpoet_lists ) ) {
|
@@ -198,15 +209,45 @@ $mailpoet_list_selected = get_option('niteoCS_mailpoet_list_selected');
|
|
198 |
}
|
199 |
|
200 |
} else { ?>
|
201 |
-
<option value="error"><?php _e('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
<?php
|
203 |
} ?>
|
204 |
</select>
|
205 |
</label>
|
|
|
|
|
206 |
|
207 |
</div>
|
208 |
|
209 |
-
<p class="cmp-hint"><?php echo sprintf( __('* Did you know you can translate Subscribe Labels
|
210 |
|
211 |
</fieldset>
|
212 |
</td>
|
31 |
update_option('niteoCS_mailpoet_list_selected', sanitize_text_field($_POST['niteoCS_mailpoet_list_selected']));
|
32 |
}
|
33 |
|
34 |
+
if (isset($_POST['niteoCS_mailster_list_selected'])) {
|
35 |
+
update_option('niteoCS_mailster_list_selected', sanitize_text_field($_POST['niteoCS_mailster_list_selected']));
|
36 |
+
}
|
37 |
+
|
38 |
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
39 |
|
40 |
if ( isset($_POST['niteoCS_mailchimp_double_opt']) ) {
|
42 |
} else {
|
43 |
update_option('niteoCS_mailchimp[double-opt]', false);
|
44 |
}
|
45 |
+
|
46 |
+
if ( isset($_POST['niteoCS_mailster_double_opt']) ) {
|
47 |
+
update_option('niteoCS_mailster_double_opt', $this->sanitize_checkbox($_POST['niteoCS_mailster_double_opt']));
|
48 |
+
} else {
|
49 |
+
update_option('niteoCS_mailster_double_opt', '0');
|
50 |
+
}
|
51 |
}
|
52 |
|
53 |
|
64 |
$mailchimp_list_selected = get_option('niteoCS_mailchimp_list_selected');
|
65 |
$mailchimp_lists = json_decode(get_option('niteoCS_mailchimp_lists', false), true);
|
66 |
$mailpoet_list_selected = get_option('niteoCS_mailpoet_list_selected');
|
67 |
+
$mailster_list_selected = get_option('niteoCS_mailster_list_selected');
|
68 |
|
69 |
?>
|
70 |
|
140 |
<textarea name="niteoCS_subscribe_label" id="niteoCS_subscribe_label" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>"><?php echo esc_attr( $niteoCS_subscribe_label );?></textarea>
|
141 |
</label><br><br>
|
142 |
|
143 |
+
<label for="niteoCS_subscribe_method"><?php _e('Select how to save your Subscribers', 'cmp-coming-soon-maintenance');?>
|
144 |
<select name="niteoCS_subscribe_method" id ="niteoCS_subscribe_method" class="subscribe-method">
|
145 |
<option value="cmp" <?php selected( 'cmp', $subscribe_method ); ?>><?php _e('CMP Custom Subscribe List', 'cmp-coming-soon-maintenance');?></option>
|
146 |
<option value="mailchimp" <?php selected( 'mailchimp', $subscribe_method ); ?>><?php _e('MailChimp Integration', 'cmp-coming-soon-maintenance');?></option>
|
147 |
<option value="mailpoet" <?php selected( 'mailpoet', $subscribe_method ); ?>><?php _e('MailPoet Integration', 'cmp-coming-soon-maintenance');?></option>
|
148 |
+
<option value="mailster" <?php selected( 'mailster', $subscribe_method ); ?>><?php _e('Mailster Integration', 'cmp-coming-soon-maintenance');?></option>
|
149 |
</select>
|
150 |
</label>
|
151 |
|
161 |
</label><br><br>
|
162 |
<button id="connect-mailchimp" class="button" data-security="<?php echo esc_attr($ajax_nonce);?>"><?php _e('Retrieve Lists', 'cmp-coming-soon-maintenance');?></button>
|
163 |
<p><?php printf(__('You can find or create new API key in your %s.', 'cmp-coming-soon-maintenance'), '<a href="https://admin.mailchimp.com/account/api/" target="_blank">MailChimp Account</a>'); ?></p>
|
164 |
+
<label for="niteoCS_mailchimp_list"><?php _e('Select MailChimp subscriber`s list.', 'cmp-coming-soon-maintenance');?>
|
165 |
<select name="niteoCS_mailchimp_list_selected" id="niteoCS_mailchimp_list">
|
166 |
<?php
|
167 |
if ( is_array( $mailchimp_lists ) ) {
|
187 |
</div>
|
188 |
|
189 |
<div class="subscribe-method mailpoet">
|
|
|
190 |
<?php
|
191 |
$mailpoet_lists = null;
|
192 |
// get MailPoet Lists
|
199 |
|
200 |
<br>
|
201 |
|
202 |
+
<label for="niteoCS_mailpoet_list"><?php _e('Select MailPoet subscriber`s list.', 'cmp-coming-soon-maintenance');?>
|
203 |
<select name="niteoCS_mailpoet_list_selected" id="niteoCS_mailpoet_list">
|
204 |
<?php
|
205 |
if ( is_array( $mailpoet_lists ) ) {
|
209 |
}
|
210 |
|
211 |
} else { ?>
|
212 |
+
<option value="error"><?php _e('Could not retrieve MailPoet subcribers lists. Please make sure MailPoet is correctly installed and configured.', 'cmp-coming-soon-maintenance');?></option>
|
213 |
+
<?php
|
214 |
+
} ?>
|
215 |
+
</select>
|
216 |
+
</label>
|
217 |
+
</div>
|
218 |
+
|
219 |
+
<div class="subscribe-method mailster">
|
220 |
+
|
221 |
+
<?php
|
222 |
+
$mailster_lists = null;
|
223 |
+
// get Mailster Lists
|
224 |
+
if ( function_exists( 'mailster' ) ){
|
225 |
+
// Get available list so that a subscriber can choose in which to subscribe
|
226 |
+
$mailster_lists = mailster( 'lists' )->get();
|
227 |
+
} ?>
|
228 |
+
|
229 |
+
<br>
|
230 |
+
|
231 |
+
<label for="niteoCS_mailster_list"><?php _e('Select Mailster subscriber`s list.', 'cmp-coming-soon-maintenance');?>
|
232 |
+
<select name="niteoCS_mailster_list_selected" id="niteoCS_mailster_list">
|
233 |
+
<?php
|
234 |
+
if ( is_array( $mailster_lists ) ) {
|
235 |
+
foreach ( $mailster_lists as $list) { ?>
|
236 |
+
<option value="<?php echo esc_attr( $list->ID );?>" <?php selected( $list->ID, $mailster_list_selected ); ?>><?php echo esc_attr( $list->name );?></option>
|
237 |
+
<?php
|
238 |
+
}
|
239 |
+
} else { ?>
|
240 |
+
<option value="error"><?php _e('Could not retrieve Mailster subribers lists. Please make sure Mailster is correctly installed and configured.', 'cmp-coming-soon-maintenance');?></option>
|
241 |
<?php
|
242 |
} ?>
|
243 |
</select>
|
244 |
</label>
|
245 |
+
<br><br>
|
246 |
+
<label><input type="checkbox" name="niteoCS_mailster_double_opt" value="1" <?php checked( '1', get_option( 'niteoCS_mailster_double_opt', '1' ) ); ?> class="regular-text code"><?php _e('Enable Mailster Double Opt In', 'cmp-coming-soon-maintenance');?></label>
|
247 |
|
248 |
</div>
|
249 |
|
250 |
+
<p class="cmp-hint"><?php echo sprintf( __('* Did you know you can translate Subscribe form Labels and Placeholders to your language in %s Settings?', 'cmp-coming-soon-maintenance'), '<a href="' . get_admin_url() . 'admin.php?page=cmp-translate">Translation</a>');?></p>
|
251 |
|
252 |
</fieldset>
|
253 |
</td>
|
js/cmp-advanced.js
CHANGED
@@ -68,6 +68,8 @@ jQuery(document).ready(function($) {
|
|
68 |
toggle_settings('page-whitelist');
|
69 |
toggle_settings('cmp-bypass');
|
70 |
toggle_settings('cmp-topbar-icon');
|
|
|
|
|
71 |
cmp_repeat_fields('head_scripts');
|
72 |
cmp_repeat_fields('footer_scripts');
|
73 |
|
@@ -189,7 +191,8 @@ jQuery(document).ready(function($) {
|
|
189 |
function toggle_settings ( classname ) {
|
190 |
jQuery('.'+classname).change(function() {
|
191 |
var value = jQuery('.'+classname+':checked' ).val();
|
192 |
-
|
|
|
193 |
|
194 |
jQuery('.'+classname+'-switch.'+value).css('display','block');
|
195 |
jQuery('.'+classname+'-switch:not(.'+value+')').css('display','none');
|
68 |
toggle_settings('page-whitelist');
|
69 |
toggle_settings('cmp-bypass');
|
70 |
toggle_settings('cmp-topbar-icon');
|
71 |
+
toggle_settings('countdown-toggle');
|
72 |
+
toggle_settings('mode-change-toggle');
|
73 |
cmp_repeat_fields('head_scripts');
|
74 |
cmp_repeat_fields('footer_scripts');
|
75 |
|
191 |
function toggle_settings ( classname ) {
|
192 |
jQuery('.'+classname).change(function() {
|
193 |
var value = jQuery('.'+classname+':checked' ).val();
|
194 |
+
value = ( jQuery.isNumeric(value) ) ? 'x'+value : value;
|
195 |
+
value = ( value === undefined ) ? 'x'+0 : value;
|
196 |
|
197 |
jQuery('.'+classname+'-switch.'+value).css('display','block');
|
198 |
jQuery('.'+classname+'-switch:not(.'+value+')').css('display','none');
|
js/cmp-advanced.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(
|
1 |
+
jQuery(document).ready(function(e){var a=document.location.hash.substring(1),t=jQuery("#csoptions").attr("action"),n=!1;function r(e){jQuery("."+e).change(function(){var a=jQuery("."+e+":checked").val();a=void 0===(a=jQuery.isNumeric(a)?"x"+a:a)?"x0":a,jQuery("."+e+"-switch."+a).css("display","block"),jQuery("."+e+"-switch:not(."+a+")").css("display","none")}),jQuery("."+e).first().trigger("change")}function i(a){jQuery("#add-"+a).click(function(t){t.preventDefault();var n=jQuery("#wrapper-"+a),r=jQuery("#wrapper-"+a+" .target-repeater-fields"),i=n.find(".source-repeater-fields").children().clone();e(i[0]).val(""),e(r).append(i)}),function(a){jQuery("#wrapper-"+a+" .target-repeater-fields").on("click","a[href=#delete-"+a+"]",function(a){a.preventDefault(),e(this).prev().remove(),e(this).remove()}),jQuery("#wrapper-"+a+" .source-repeater-fields").on("click","a[href=#delete-"+a+"]",function(a){a.preventDefault(),e(this).prev().val("")})}(a)}navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery('.nav-tab-wrapper .nav-tab[data-tab="'+e+'"]').addClass("nav-tab-active"),jQuery(".cmp-coming-soon-maintenance .table-wrapper."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .comingsoon."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(."+e+")").css("display","none"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(."+e).css("display","none"),jQuery(".cmp-coming-soon-maintenance .comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".cmp-coming-soon-maintenance .submit").css("display","none"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",t)):(jQuery(".cmp-coming-soon-maintenance .submit").css("display","block"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",t+"#"+e))},""!=a?navtab(a):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){a=document.location.hash.substring(1),navtab(a)},r("page-whitelist"),r("cmp-bypass"),r("cmp-topbar-icon"),r("countdown-toggle"),r("mode-change-toggle"),i("head_scripts"),i("footer_scripts"),jQuery("#cmp-import-json").on("change",function(a){jQuery(".import-json-label").attr("data-default",a.target.files[0].name);var t=new FileReader;t.onload=function(e){jQuery("#cmp-import-input").val(e.target.result)},t.readAsText(a.target.files[0]),e("#cmp-import-settings").attr("disabled",!1),jQuery(".import-json-label").removeClass("import-fail"),n=!1}),jQuery("#cmp-export-json").click(function(e){e.preventDefault();var a={action:"cmp_ajax_export_settings",security:jQuery(this).data("security")};jQuery.post(ajaxurl,a,function(e){e&&jQuery("<iframe />").attr("src",ajaxurl+"?action=cmp_ajax_export_settings&security="+jQuery("#cmp-export-json").data("security")).appendTo("body").hide()})}),jQuery("#cmp-import-settings").click(function(e){if(e.preventDefault(),!0===n)return!1;var a=jQuery("#cmp-import-input").val(),t=jQuery(".import-json-label");if(!jQuery("#cmp-import-media").is(":checked")){var r=new Array("niteoCS_banner_id","niteoCS_logo_id","niteoCS_seo_img_id");(a=jQuery.parseJSON(a)).map(function(e,t){for(var n in e)r.indexOf(n)>-1&&a.splice(t,1)}),a=JSON.stringify(a)}var i={action:"cmp_ajax_import_settings",security:jQuery(this).data("security"),json:a};n=!0;var s=(new Date).getTime();t.html('<i class="fa fa-cog fa-spin" aria-hidden="true"></i> importing..'),t.attr("data-default",""),jQuery.post(ajaxurl,i,function(e){if(e){var a=(new Date).getTime()-s,n=jQuery.parseJSON(e);a>2e3?("success"==n.result?t.addClass("import-success"):t.addClass("import-fail"),t.html(""),t.attr("data-default",n.message)):setTimeout(function(){"success"==n.result?t.addClass("import-success"):t.addClass("import-fail"),t.html(""),t.attr("data-default",n.message)},2e3-a)}})}),jQuery(".cmp-whitelist-select, .cmp-blacklist, .cmp-user_roles").select2({width:"calc(100% - 1em)",placeholder:"Click to select.."})});
|
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
|
@@ -64,7 +64,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
64 |
|
65 |
private function constants() {
|
66 |
// define constants
|
67 |
-
$this->define( 'CMP_VERSION', '3.
|
68 |
$this->define( 'CMP_DEBUG', FALSE );
|
69 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
70 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
@@ -622,8 +622,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
622 |
|
623 |
$action = get_option('niteoCS_countdown_action', 'no-action');
|
624 |
|
625 |
-
//
|
626 |
-
if ( get_transient('cmp_counter_email')
|
627 |
switch ( $action ) {
|
628 |
case 'no-action':
|
629 |
$message = __('Counter expired but it is set to make no action - you should login to your Wordpress Admin and adjust the expired timer or disable Coming Soon / Maintenance Mode.', 'cmp-coming-soon-maintenance');
|
@@ -641,15 +641,15 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
641 |
break;
|
642 |
}
|
643 |
|
644 |
-
|
645 |
-
$to = get_option( 'admin_email' );
|
646 |
$subject = 'Countdown timer just expired on your Coming Soon Page - ' . get_site_url();
|
647 |
$body = $message . ' This is auto generated message from CMP - Coming Soon & Maintenance Plugin. ';
|
648 |
$headers = array('Content-Type: text/plain; charset=UTF-8');
|
649 |
// send email
|
650 |
wp_mail( $to, $subject, $body, $headers );
|
651 |
// set email transient
|
652 |
-
set_transient( 'cmp_counter_email',
|
|
|
653 |
}
|
654 |
|
655 |
// if action set to disable cmp
|
@@ -707,10 +707,12 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
707 |
}
|
708 |
|
709 |
if ( $this->cmp_active() === '0' ) {
|
710 |
-
|
|
|
711 |
|
712 |
} else {
|
713 |
-
|
|
|
714 |
}
|
715 |
|
716 |
$this->cmp_purge_cache();
|
@@ -760,12 +762,11 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
760 |
}
|
761 |
}
|
762 |
|
763 |
-
|
764 |
// display admin topbar notice
|
765 |
public function cmp_admin_bar() {
|
766 |
|
767 |
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
768 |
-
if ( current_user_can('publish_pages') && function_exists('get_current_screen') && get_current_screen()->id == 'cmp-settings_page_cmp-advanced' && wp_verify_nonce( $_POST['save_options_field'], 'save_options' ) ) {
|
769 |
// check POST if user wants to enable or disable the topbar from settings
|
770 |
if ( isset( $_POST['niteoCS_topbar_icon'] ) && is_numeric( $_POST['niteoCS_topbar_icon'] ) ) {
|
771 |
update_option('niteoCS_topbar_icon', sanitize_text_field( $_POST['niteoCS_topbar_icon'] ));
|
@@ -778,7 +779,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
778 |
}
|
779 |
|
780 |
// CMP PLUGIN ACTIVATION AND STATUS CHANGE SETTINGS!
|
781 |
-
if ( $_SERVER['REQUEST_METHOD'] == 'POST' && ( function_exists('get_current_screen') && get_current_screen()->id == 'toplevel_page_cmp-settings' ) ) {
|
782 |
|
783 |
// verify nonce and user rights
|
784 |
if ( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
|
@@ -791,9 +792,11 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
791 |
|
792 |
if ( isset($_POST['cmp_status']) ) {
|
793 |
update_option('niteoCS_status', $this->sanitize_checkbox($_POST['cmp_status']));
|
|
|
794 |
|
795 |
} else if ( !isset($_POST['submit_theme']) ) {
|
796 |
update_option('niteoCS_status', '0');
|
|
|
797 |
}
|
798 |
}
|
799 |
|
@@ -1338,7 +1341,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1338 |
// save subscribe function
|
1339 |
// $check must be true, to avoid duplicated requests after update to 2.1
|
1340 |
public function niteo_subscribe( $check ) {
|
1341 |
-
$subscribe_method
|
1342 |
$response = '';
|
1343 |
|
1344 |
// get translation lists
|
@@ -1446,6 +1449,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1446 |
|
1447 |
// MailPoet integration
|
1448 |
case 'mailpoet':
|
|
|
1449 |
$mailpoet_list = get_option('niteoCS_mailpoet_list_selected');
|
1450 |
$list_ids = array($mailpoet_list);
|
1451 |
$firstname = $firstname === '' ? null : $firstname;
|
@@ -1456,38 +1460,70 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1456 |
'last_name' => $lastname
|
1457 |
);
|
1458 |
|
1459 |
-
$response = array( 'status' => '0', 'message' => __('Something went wrong please try again later.', 'cmp-coming-soon-maintenance') );
|
1460 |
-
|
1461 |
if ( class_exists(\MailPoet\API\API::class) ) {
|
1462 |
// Get MailPoet API instance
|
1463 |
$mailpoet_api = \MailPoet\API\API::MP('v1');
|
1464 |
|
1465 |
// Check if subscriber exists. If subscriber doesn't exist an exception is thrown
|
1466 |
try {
|
1467 |
-
$subscribed = $mailpoet_api->getSubscriber($subscriber['email']);
|
1468 |
} catch (\Exception $e) {}
|
1469 |
|
1470 |
try {
|
1471 |
if (!$subscribed) {
|
1472 |
// Subscriber doesn't exist let's create one
|
1473 |
-
$mailpoet_api->addSubscriber($subscriber, $list_ids);
|
1474 |
-
$response = array( 'status' => '1', 'message' => $response_ok);
|
1475 |
|
1476 |
} else {
|
1477 |
// In case subscriber exists just add him to new lists
|
1478 |
-
$mailpoet_api->subscribeToLists($subscriber['email'], $list_ids);
|
1479 |
-
$response = array( 'status' => '1', 'message' => $response_ok);
|
1480 |
|
1481 |
}
|
1482 |
} catch (\Exception $e) {
|
1483 |
$error_message = $e->getMessage();
|
1484 |
-
$response = array( 'status' => '0', 'message' => $error_message);
|
1485 |
}
|
1486 |
|
1487 |
}
|
1488 |
|
1489 |
break;
|
1490 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1491 |
default:
|
1492 |
break;
|
1493 |
}
|
@@ -2617,6 +2653,40 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
2617 |
|
2618 |
return $attach_id;
|
2619 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2620 |
}
|
2621 |
|
2622 |
|
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.6
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
64 |
|
65 |
private function constants() {
|
66 |
// define constants
|
67 |
+
$this->define( 'CMP_VERSION', '3.6' );
|
68 |
$this->define( 'CMP_DEBUG', FALSE );
|
69 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
70 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
622 |
|
623 |
$action = get_option('niteoCS_countdown_action', 'no-action');
|
624 |
|
625 |
+
// send notification email if email transient is not set
|
626 |
+
if ( get_option('niteoCS_countdown_notification', '1') == '1' && get_transient('cmp_counter_email') !== TRUE ) {
|
627 |
switch ( $action ) {
|
628 |
case 'no-action':
|
629 |
$message = __('Counter expired but it is set to make no action - you should login to your Wordpress Admin and adjust the expired timer or disable Coming Soon / Maintenance Mode.', 'cmp-coming-soon-maintenance');
|
641 |
break;
|
642 |
}
|
643 |
|
644 |
+
$to = get_option('niteoCS_countdown_email_address', get_option( 'admin_email' ));
|
|
|
645 |
$subject = 'Countdown timer just expired on your Coming Soon Page - ' . get_site_url();
|
646 |
$body = $message . ' This is auto generated message from CMP - Coming Soon & Maintenance Plugin. ';
|
647 |
$headers = array('Content-Type: text/plain; charset=UTF-8');
|
648 |
// send email
|
649 |
wp_mail( $to, $subject, $body, $headers );
|
650 |
// set email transient
|
651 |
+
set_transient( 'cmp_counter_email', TRUE, 0 );
|
652 |
+
|
653 |
}
|
654 |
|
655 |
// if action set to disable cmp
|
707 |
}
|
708 |
|
709 |
if ( $this->cmp_active() === '0' ) {
|
710 |
+
update_option('niteoCS_status', '1');
|
711 |
+
$this->cmp_send_notification('on');
|
712 |
|
713 |
} else {
|
714 |
+
update_option('niteoCS_status', '0');
|
715 |
+
$this->cmp_send_notification('off');
|
716 |
}
|
717 |
|
718 |
$this->cmp_purge_cache();
|
762 |
}
|
763 |
}
|
764 |
|
|
|
765 |
// display admin topbar notice
|
766 |
public function cmp_admin_bar() {
|
767 |
|
768 |
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
769 |
+
if ( current_user_can('publish_pages') && function_exists('get_current_screen') && is_admin() && get_current_screen()->id == 'cmp-settings_page_cmp-advanced' && wp_verify_nonce( $_POST['save_options_field'], 'save_options' ) ) {
|
770 |
// check POST if user wants to enable or disable the topbar from settings
|
771 |
if ( isset( $_POST['niteoCS_topbar_icon'] ) && is_numeric( $_POST['niteoCS_topbar_icon'] ) ) {
|
772 |
update_option('niteoCS_topbar_icon', sanitize_text_field( $_POST['niteoCS_topbar_icon'] ));
|
779 |
}
|
780 |
|
781 |
// CMP PLUGIN ACTIVATION AND STATUS CHANGE SETTINGS!
|
782 |
+
if ( $_SERVER['REQUEST_METHOD'] == 'POST' && ( function_exists('get_current_screen') && is_admin() && get_current_screen()->id == 'toplevel_page_cmp-settings' ) ) {
|
783 |
|
784 |
// verify nonce and user rights
|
785 |
if ( !wp_verify_nonce($_POST['save_options_field'], 'save_options') || !current_user_can('publish_pages') ) {
|
792 |
|
793 |
if ( isset($_POST['cmp_status']) ) {
|
794 |
update_option('niteoCS_status', $this->sanitize_checkbox($_POST['cmp_status']));
|
795 |
+
$this->cmp_send_notification('on');
|
796 |
|
797 |
} else if ( !isset($_POST['submit_theme']) ) {
|
798 |
update_option('niteoCS_status', '0');
|
799 |
+
$this->cmp_send_notification('off');
|
800 |
}
|
801 |
}
|
802 |
|
1341 |
// save subscribe function
|
1342 |
// $check must be true, to avoid duplicated requests after update to 2.1
|
1343 |
public function niteo_subscribe( $check ) {
|
1344 |
+
$subscribe_method = get_option('niteoCS_subscribe_method', 'cmp');
|
1345 |
$response = '';
|
1346 |
|
1347 |
// get translation lists
|
1449 |
|
1450 |
// MailPoet integration
|
1451 |
case 'mailpoet':
|
1452 |
+
$response = array( 'status' => '0', 'message' => __('Something went wrong please try again later.', 'cmp-coming-soon-maintenance') );
|
1453 |
$mailpoet_list = get_option('niteoCS_mailpoet_list_selected');
|
1454 |
$list_ids = array($mailpoet_list);
|
1455 |
$firstname = $firstname === '' ? null : $firstname;
|
1460 |
'last_name' => $lastname
|
1461 |
);
|
1462 |
|
|
|
|
|
1463 |
if ( class_exists(\MailPoet\API\API::class) ) {
|
1464 |
// Get MailPoet API instance
|
1465 |
$mailpoet_api = \MailPoet\API\API::MP('v1');
|
1466 |
|
1467 |
// Check if subscriber exists. If subscriber doesn't exist an exception is thrown
|
1468 |
try {
|
1469 |
+
$subscribed = $mailpoet_api->getSubscriber( $subscriber['email'] );
|
1470 |
} catch (\Exception $e) {}
|
1471 |
|
1472 |
try {
|
1473 |
if (!$subscribed) {
|
1474 |
// Subscriber doesn't exist let's create one
|
1475 |
+
$mailpoet_api->addSubscriber( $subscriber, $list_ids );
|
1476 |
+
$response = array( 'status' => '1', 'message' => $response_ok );
|
1477 |
|
1478 |
} else {
|
1479 |
// In case subscriber exists just add him to new lists
|
1480 |
+
$mailpoet_api->subscribeToLists( $subscriber['email'], $list_ids );
|
1481 |
+
$response = array( 'status' => '1', 'message' => $response_ok );
|
1482 |
|
1483 |
}
|
1484 |
} catch (\Exception $e) {
|
1485 |
$error_message = $e->getMessage();
|
1486 |
+
$response = array( 'status' => '0', 'message' => $error_message );
|
1487 |
}
|
1488 |
|
1489 |
}
|
1490 |
|
1491 |
break;
|
1492 |
|
1493 |
+
// Mailster integration
|
1494 |
+
case 'mailster':
|
1495 |
+
$response = array( 'status' => '0', 'message' => __('Something went wrong please try again later.', 'cmp-coming-soon-maintenance') );
|
1496 |
+
$mailster_list_id = get_option('niteoCS_mailster_list_selected');
|
1497 |
+
|
1498 |
+
if ( function_exists( 'mailster' ) ){
|
1499 |
+
// define to overwrite existing users
|
1500 |
+
$overwrite = true;
|
1501 |
+
|
1502 |
+
// add with double opt in
|
1503 |
+
$double_opt_in = true;
|
1504 |
+
|
1505 |
+
$subscriber = array(
|
1506 |
+
'email' => $email,
|
1507 |
+
'firstname' => $firstname,
|
1508 |
+
'lastname' => $lastname,
|
1509 |
+
'status' => get_option( 'niteoCS_mailster_double_opt', '1' ) ? 0 :1
|
1510 |
+
);
|
1511 |
+
|
1512 |
+
// add a new subscriber and $overwrite it if exists
|
1513 |
+
$subscriber_id = mailster( 'subscribers' )->add( $subscriber, $overwrite );
|
1514 |
+
|
1515 |
+
// if result isn't a WP_error assign the lists
|
1516 |
+
if ( ! is_wp_error( $subscriber_id ) ) {
|
1517 |
+
mailster( 'subscribers' )->assign_lists( $subscriber_id, $mailster_list_id );
|
1518 |
+
$response = array( 'status' => '1', 'message' => $response_ok);
|
1519 |
+
|
1520 |
+
} else {
|
1521 |
+
$response = array( 'status' => '0', 'message' => $subscriber_id->get_error_message() );
|
1522 |
+
}
|
1523 |
+
}
|
1524 |
+
|
1525 |
+
break;
|
1526 |
+
|
1527 |
default:
|
1528 |
break;
|
1529 |
}
|
2653 |
|
2654 |
return $attach_id;
|
2655 |
}
|
2656 |
+
|
2657 |
+
|
2658 |
+
/**
|
2659 |
+
* Send email notification to specify user
|
2660 |
+
*
|
2661 |
+
* @param String $message
|
2662 |
+
*/
|
2663 |
+
private function cmp_send_notification( $status ) {
|
2664 |
+
// send notification email to admin, if enabled
|
2665 |
+
if ( get_option('niteoCS_mode_change_notification', '0') == '1' ) {
|
2666 |
+
switch ( $this->cmp_mode() ) {
|
2667 |
+
case '1':
|
2668 |
+
$mode = __('Maintenance','cmp-coming-soon-maintenance');
|
2669 |
+
break;
|
2670 |
+
case '2':
|
2671 |
+
$mode = __('Coming Soon','cmp-coming-soon-maintenance');
|
2672 |
+
break;
|
2673 |
+
case '3':
|
2674 |
+
$mode = __('Redirect','cmp-coming-soon-maintenance');
|
2675 |
+
break;
|
2676 |
+
default:
|
2677 |
+
break;
|
2678 |
+
}
|
2679 |
+
$current_user = wp_get_current_user();
|
2680 |
+
$email = get_option('niteoCS_mode_change_email_address', get_option( 'admin_email' ));
|
2681 |
+
$subject = $mode . ' mode on your website - ' . get_site_url() . ' - was just turned ' . $status . ' by ' . $current_user->user_login;
|
2682 |
+
$body = 'This is auto generated message from CMP - Coming Soon & Maintenance WordPress Plugin. You can disable these messages under CMP Advanced Settings > Email Notifications.';
|
2683 |
+
$headers = array('Content-Type: text/plain; charset=UTF-8');
|
2684 |
+
// send email
|
2685 |
+
wp_mail( $email, $subject, $body, $headers );
|
2686 |
+
}
|
2687 |
+
|
2688 |
+
return;
|
2689 |
+
}
|
2690 |
}
|
2691 |
|
2692 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: coming soon, landing page, launch page, maintenance mode, under constructi
|
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.2
|
8 |
-
Stable tag: 3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -25,7 +25,7 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
25 |
<ul>
|
26 |
<li>You can choose from 3 bundled Themes (many more downloadable - freebies and premium) with completely different design. We try to develop new CPM Theme every month for you!</li>
|
27 |
<li>Our Plugin works with any WordPress Theme and on all desktop or mobile devices (yes it is 100% responsive).</li>
|
28 |
-
<li>Some of CMP themes supports custom Subscribe Form to store emails in local database, MailChimp
|
29 |
<li>Fullscreen background media supports Video (YouTube, custom file video), Images or Image Slider (Unsplash library, custom images), Patterns, Color Gradients or Solid Colors.</li>
|
30 |
<li>You can search from more than million of free beautiful professional photos from most popular <a href="http://unsplash.com" target="_blank">Unsplash source</a> with built-in search API (random images, search by keyword, category, etc).</li>
|
31 |
<li>You can set custom Logo, choose from 100 most popular Google fonts and customize Font Weight, Letter Spacing and Line Height.</li>
|
@@ -47,7 +47,8 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
47 |
<ul>
|
48 |
<li><a href="https://wordpress.org/plugins/insert-headers-and-footers/" target="_blank>Insert Headers and Footers</a> fully compatible.</li>
|
49 |
<li><a href="https://wordpress.org/plugins/simpleanalytics/" target="_blank>Simple Analytics</a> fully compatible.</li>
|
50 |
-
<li><a href="https://wordpress.org/plugins/mailpoet/" target="_blank>MailPoet –
|
|
|
51 |
<li>We are working on more plugins to be compatible with CMP - feel free to send us suggestions what plugin you might need together with CMP.</li>
|
52 |
</ul>
|
53 |
|
@@ -144,6 +145,14 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
|
|
144 |
<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>
|
145 |
|
146 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
<h4>CMP 3.5.9 - 05-Aug-19</h4>
|
148 |
<ul>
|
149 |
<li>Resolved issue with CF7 integration.</li>
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.2
|
8 |
+
Stable tag: 3.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
25 |
<ul>
|
26 |
<li>You can choose from 3 bundled Themes (many more downloadable - freebies and premium) with completely different design. We try to develop new CPM Theme every month for you!</li>
|
27 |
<li>Our Plugin works with any WordPress Theme and on all desktop or mobile devices (yes it is 100% responsive).</li>
|
28 |
+
<li>Some of CMP themes supports custom Subscribe Form to store emails in local database, MailChimp, MailPoet and Mailster.</li>
|
29 |
<li>Fullscreen background media supports Video (YouTube, custom file video), Images or Image Slider (Unsplash library, custom images), Patterns, Color Gradients or Solid Colors.</li>
|
30 |
<li>You can search from more than million of free beautiful professional photos from most popular <a href="http://unsplash.com" target="_blank">Unsplash source</a> with built-in search API (random images, search by keyword, category, etc).</li>
|
31 |
<li>You can set custom Logo, choose from 100 most popular Google fonts and customize Font Weight, Letter Spacing and Line Height.</li>
|
47 |
<ul>
|
48 |
<li><a href="https://wordpress.org/plugins/insert-headers-and-footers/" target="_blank>Insert Headers and Footers</a> fully compatible.</li>
|
49 |
<li><a href="https://wordpress.org/plugins/simpleanalytics/" target="_blank>Simple Analytics</a> fully compatible.</li>
|
50 |
+
<li><a href="https://wordpress.org/plugins/mailpoet/" target="_blank>MailPoet – Emails and Newsletters in WordPress</a> fully integrated.</li>
|
51 |
+
<li><a href="https://mailster.co/" target="_blank>Mailster – The Ultimate Newsletter Plugin for WordPress</a> fully integrated.</li>
|
52 |
<li>We are working on more plugins to be compatible with CMP - feel free to send us suggestions what plugin you might need together with CMP.</li>
|
53 |
</ul>
|
54 |
|
145 |
<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>
|
146 |
|
147 |
== Changelog ==
|
148 |
+
<h4>CMP 3.6 - 26-Aug-19</h4>
|
149 |
+
<ul>
|
150 |
+
<li>Added new Subscribe integration with Mailster premium WordPress plugin.</li>
|
151 |
+
<li>New settings to enable or disable email notifications for countdown expiration and CMP status change under Advanced settings. Advised by @iclicknz.</li>
|
152 |
+
<li>New Settings to enable or disable background video autolooping - requested by @aetasserenus.</li>
|
153 |
+
<li>Removed PHP noticed from niteo-cmp.php file on line 781 - noticed by @scarpinoc.</li>
|
154 |
+
</ul>
|
155 |
+
|
156 |
<h4>CMP 3.5.9 - 05-Aug-19</h4>
|
157 |
<ul>
|
158 |
<li>Resolved issue with CF7 integration.</li>
|