Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 4.0.0 |
Comparing to | |
See all releases |
Code changes from version 3.9.7 to 4.0.0
- cmp-advanced.php +30 -0
- cmp-settings.php +6 -2
- css/cmp-settings-style.css +17 -8
- css/cmp-settings-style.min.css +1 -1
- img/thumbnails/titan/screenshot1.jpg +0 -0
- img/thumbnails/titan/screenshot2.jpg +0 -0
- img/thumbnails/titan_thumbnail.jpg +0 -0
- inc/class-cmp-render_html.php +7 -0
- inc/render/custom-css-popup_form.php +211 -0
- inc/render/custom-css.php +10 -0
- inc/render/enqueue-styles.php +5 -0
- inc/render/footer.php +54 -1
- inc/render/javascripts.php +62 -0
- inc/render/subscribe-form-cmp.php +217 -0
- inc/render/subscribe-form.php +3 -263
- inc/settings/settings-contact_form-disabled.php +1 -1
- inc/settings/settings-counter-disabled.php +1 -1
- inc/settings/settings-footer-disabled.php +1 -1
- inc/settings/settings-logo-disabled.php +1 -1
- inc/settings/settings-slider-disabled.php +1 -1
- inc/settings/settings-special_effects-disabled.php +1 -1
- inc/settings/settings-subscribe-disabled.php +1 -1
- inc/settings/settings-subscribe.php +107 -9
- js/cmp-advanced.js +25 -11
- js/cmp-advanced.min.js +1 -1
- js/settings.js +273 -70
- js/settings.min.js +1 -1
- niteo-cmp.php +82 -32
- readme.txt +12 -1
- themes/titan.txt +3 -0
cmp-advanced.php
CHANGED
@@ -197,6 +197,9 @@ if ( isset( $_POST['niteoCS-mode-change-email-address'] ) ) {
|
|
197 |
if ( isset( $_POST['niteoCS-countdown-email-address'] ) ) {
|
198 |
update_option('niteoCS_countdown_email_address', sanitize_text_field( $_POST['niteoCS-countdown-email-address'] ));
|
199 |
}
|
|
|
|
|
|
|
200 |
|
201 |
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
202 |
if ( isset($_POST['niteoCS-countdown-notification']) ) {
|
@@ -210,6 +213,11 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
210 |
} else {
|
211 |
update_option('niteoCS_mode_change_notification', '0');
|
212 |
}
|
|
|
|
|
|
|
|
|
|
|
213 |
|
214 |
if ( isset($_POST['niteoCS-rss-status']) ) {
|
215 |
update_option('niteoCS_rss_status', $this->sanitize_checkbox($_POST['niteoCS-rss-status']) );
|
@@ -257,13 +265,16 @@ $wpautop = get_option('niteoCS_wpautop', '1');
|
|
257 |
|
258 |
$cmp_countdown_notif = get_option('niteoCS_countdown_notification', '1');
|
259 |
$cmp_mode_change_notif = get_option('niteoCS_mode_change_notification', '0');
|
|
|
260 |
$countdown_email = get_option('niteoCS_countdown_email_address', get_option( 'admin_email' ));
|
261 |
$mode_change_email = get_option('niteoCS_mode_change_email_address', get_option( 'admin_email' ));
|
|
|
262 |
$cmp_cookie_notice_comp = get_option('cmp_cookie_notice_comp', '1');
|
263 |
$cmp_rss = get_option('niteoCS_rss_status', '1');
|
264 |
$cmp_rest_api = get_option('niteoCS_rest_api_status', '1');
|
265 |
?>
|
266 |
|
|
|
267 |
<div class="wrap cmp-coming-soon-maintenance cmp-advanced">
|
268 |
|
269 |
<h1></h1>
|
@@ -592,6 +603,25 @@ $cmp_rest_api = get_option('niteoCS_rest_api_status', '1');
|
|
592 |
</td>
|
593 |
</tr>
|
594 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
595 |
<?php echo $this->render_settings->submit(); ?>
|
596 |
|
597 |
</tbody>
|
197 |
if ( isset( $_POST['niteoCS-countdown-email-address'] ) ) {
|
198 |
update_option('niteoCS_countdown_email_address', sanitize_text_field( $_POST['niteoCS-countdown-email-address'] ));
|
199 |
}
|
200 |
+
if ( isset( $_POST['niteoCS-subscribe-email-address'] ) ) {
|
201 |
+
update_option('niteoCS_subscribe_email_address', sanitize_text_field( $_POST['niteoCS-subscribe-email-address'] ));
|
202 |
+
}
|
203 |
|
204 |
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
205 |
if ( isset($_POST['niteoCS-countdown-notification']) ) {
|
213 |
} else {
|
214 |
update_option('niteoCS_mode_change_notification', '0');
|
215 |
}
|
216 |
+
if ( isset($_POST['niteoCS-subscribe-notification']) ) {
|
217 |
+
update_option('niteoCS_subscribe_notification', $this->sanitize_checkbox($_POST['niteoCS-subscribe-notification']) );
|
218 |
+
} else {
|
219 |
+
update_option('niteoCS_subscribe_notification', '0');
|
220 |
+
}
|
221 |
|
222 |
if ( isset($_POST['niteoCS-rss-status']) ) {
|
223 |
update_option('niteoCS_rss_status', $this->sanitize_checkbox($_POST['niteoCS-rss-status']) );
|
265 |
|
266 |
$cmp_countdown_notif = get_option('niteoCS_countdown_notification', '1');
|
267 |
$cmp_mode_change_notif = get_option('niteoCS_mode_change_notification', '0');
|
268 |
+
$cmp_subscribe_notif = get_option('niteoCS_subscribe_notification', '0');
|
269 |
$countdown_email = get_option('niteoCS_countdown_email_address', get_option( 'admin_email' ));
|
270 |
$mode_change_email = get_option('niteoCS_mode_change_email_address', get_option( 'admin_email' ));
|
271 |
+
$subscribe_email = get_option('niteoCS_subscribe_email_address', get_option( 'admin_email' ));
|
272 |
$cmp_cookie_notice_comp = get_option('cmp_cookie_notice_comp', '1');
|
273 |
$cmp_rss = get_option('niteoCS_rss_status', '1');
|
274 |
$cmp_rest_api = get_option('niteoCS_rest_api_status', '1');
|
275 |
?>
|
276 |
|
277 |
+
|
278 |
<div class="wrap cmp-coming-soon-maintenance cmp-advanced">
|
279 |
|
280 |
<h1></h1>
|
603 |
</td>
|
604 |
</tr>
|
605 |
|
606 |
+
<tr>
|
607 |
+
<th><?php _e('New CMP Subscriber', 'cmp-coming-soon-maintenance');?></th>
|
608 |
+
|
609 |
+
<td>
|
610 |
+
<fieldset>
|
611 |
+
|
612 |
+
<label for="cmp-subscribe-notification">
|
613 |
+
<input type="checkbox" name="niteoCS-subscribe-notification" class="subscribe-toggle" id="cmp-subscribe-notification" value="1" <?php checked('1', $cmp_subscribe_notif);?>><?php _e('Enable Email notification if there is a new CMP Subscriber. Applies only for a default CMP Custom Subscribe list.', 'cmp-coming-soon-maintenance');?>
|
614 |
+
</label>
|
615 |
+
|
616 |
+
|
617 |
+
<div class="subscribe-toggle-switch x1" style="margin-top:1em">
|
618 |
+
<h4><?php _e('Specify Email Address', 'cmp-coming-soon-maintenance');?></h4>
|
619 |
+
<input type="text" name="niteoCS-subscribe-email-address" value="<?php echo esc_attr( $subscribe_email ); ?>" class="regular-text code"><br>
|
620 |
+
</div>
|
621 |
+
</fieldset>
|
622 |
+
</td>
|
623 |
+
</tr>
|
624 |
+
|
625 |
<?php echo $this->render_settings->submit(); ?>
|
626 |
|
627 |
</tbody>
|
cmp-settings.php
CHANGED
@@ -753,8 +753,12 @@ add_thickbox();
|
|
753 |
}
|
754 |
|
755 |
// include builders related settings
|
756 |
-
if (
|
757 |
-
|
|
|
|
|
|
|
|
|
758 |
}
|
759 |
|
760 |
// special effects for premium themes
|
753 |
}
|
754 |
|
755 |
// include builders related settings
|
756 |
+
if ( defined('CMP_ADDONS_VERSION') ) {
|
757 |
+
if ( $builder_theme && file_exists( $this->cmp_theme_dir( $themeslug ).$themeslug .'/'.$themeslug.'-admin-settings.php' ) ) {
|
758 |
+
require ( $this->cmp_theme_dir( $themeslug ).$themeslug .'/'.$themeslug.'-admin-settings.php' );
|
759 |
+
}
|
760 |
+
} else {
|
761 |
+
$this->cmp_display_admin_notice('error', false, __('CMP - Bundle & Add-ons Manager must be enabled to access the Customize Settings.'));
|
762 |
}
|
763 |
|
764 |
// special effects for premium themes
|
css/cmp-settings-style.css
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
padding-bottom: 10px
|
31 |
}
|
32 |
|
33 |
-
.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single, .cmp-coming-soon-maintenance input[type=text] {
|
34 |
border: 1px solid #d4d4d4;
|
35 |
border-radius: 4px;
|
36 |
line-height: 2.5em;
|
@@ -38,6 +38,11 @@
|
|
38 |
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03)
|
39 |
}
|
40 |
|
|
|
|
|
|
|
|
|
|
|
41 |
.cmp-coming-soon-maintenance .select2-container .select2-selection--single {
|
42 |
height: 35px
|
43 |
}
|
@@ -87,10 +92,7 @@
|
|
87 |
transform: scale(1.2)
|
88 |
}
|
89 |
|
90 |
-
|
91 |
-
width: 100%;
|
92 |
-
border: 1px solid #d4d4d4;
|
93 |
-
}
|
94 |
|
95 |
.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, .cmp-coming-soon-maintenance .table-wrapper.cmp-bypass, .cmp-coming-soon-maintenance .table-wrapper.cmp-misc, .cmp-coming-soon-maintenance .table-wrapper.cmp-export-import, .cmp-coming-soon-maintenance .table-wrapper.cmp-notifications {
|
96 |
display: none
|
@@ -458,14 +460,20 @@
|
|
458 |
}
|
459 |
|
460 |
.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 {
|
461 |
-
background: #
|
462 |
-
border: 1px solid #
|
463 |
outline: none;
|
464 |
box-shadow: none;
|
465 |
color: white;
|
466 |
font-weight: 600;
|
467 |
}
|
468 |
|
|
|
|
|
|
|
|
|
|
|
|
|
469 |
.cmp-coming-soon-maintenance .logo-wrapper:empty {
|
470 |
display: none;
|
471 |
}
|
@@ -1822,7 +1830,8 @@
|
|
1822 |
min-height: 280px;
|
1823 |
}
|
1824 |
|
1825 |
-
.cmp-coming-soon-maintenance .subs-img-wrapper img
|
|
|
1826 |
max-width: 300px;
|
1827 |
margin: 1em 0;
|
1828 |
}
|
30 |
padding-bottom: 10px
|
31 |
}
|
32 |
|
33 |
+
.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single, .cmp-coming-soon-maintenance input[type=text], .cmp-coming-soon-maintenance input[type=number] {
|
34 |
border: 1px solid #d4d4d4;
|
35 |
border-radius: 4px;
|
36 |
line-height: 2.5em;
|
38 |
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03)
|
39 |
}
|
40 |
|
41 |
+
.cmp-coming-soon-maintenance input[type=text], .cmp-coming-soon-maintenance input[type=number], .cmp-coming-soon-maintenance textarea {
|
42 |
+
width: 100%;
|
43 |
+
border: 1px solid #d4d4d4;
|
44 |
+
}
|
45 |
+
|
46 |
.cmp-coming-soon-maintenance .select2-container .select2-selection--single {
|
47 |
height: 35px
|
48 |
}
|
92 |
transform: scale(1.2)
|
93 |
}
|
94 |
|
95 |
+
|
|
|
|
|
|
|
96 |
|
97 |
.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, .cmp-coming-soon-maintenance .table-wrapper.cmp-bypass, .cmp-coming-soon-maintenance .table-wrapper.cmp-misc, .cmp-coming-soon-maintenance .table-wrapper.cmp-export-import, .cmp-coming-soon-maintenance .table-wrapper.cmp-notifications {
|
98 |
display: none
|
460 |
}
|
461 |
|
462 |
.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 {
|
463 |
+
background: #7628E9;
|
464 |
+
border: 1px solid #7628E9;
|
465 |
outline: none;
|
466 |
box-shadow: none;
|
467 |
color: white;
|
468 |
font-weight: 600;
|
469 |
}
|
470 |
|
471 |
+
.cmp-coming-soon-maintenance .nav-tab.theme-preview {
|
472 |
+
background: #ff3284;
|
473 |
+
border: 1px solid #ff3284;
|
474 |
+
color: white;
|
475 |
+
}
|
476 |
+
|
477 |
.cmp-coming-soon-maintenance .logo-wrapper:empty {
|
478 |
display: none;
|
479 |
}
|
1830 |
min-height: 280px;
|
1831 |
}
|
1832 |
|
1833 |
+
.cmp-coming-soon-maintenance .subs-img-wrapper img,
|
1834 |
+
.cmp-coming-soon-maintenance .subs-img-popup-wrapper img {
|
1835 |
max-width: 300px;
|
1836 |
margin: 1em 0;
|
1837 |
}
|
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%;border:1px solid #d4d4d4}.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}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede;max-width:100%}.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-addons,.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-themes-manager{display:inline-block;max-width:1140px;width:100%}.cmp-coming-soon-maintenance .cmp-inputs-wrapper.help-settings,.cmp-coming-soon-maintenance .cmp-inputs-wrapper.subscribers-settings,.cmp-coming-soon-maintenance .cmp-inputs-wrapper.translate-settings{padding:2em}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.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 .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:"Font Awesome 5 Free";content:"\f151";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:"\f150"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:95%}.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:960px;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 .table-wrapper th p:first-of-type{margin-top:0}.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{display:inline-block;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 .logo-wrapper:empty{display:none}.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%;vertical-align:top}.cmp-coming-soon-maintenance .mobile-custom-gallery img{max-height:300px}.cmp-coming-soon-maintenance .background-thumb-wrapper{position:relative;overflow:hidden}.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),.cmp-coming-soon-maintenance .mobile-custom-gallery{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:10px 10px 0 0;width:calc(33.33% - 12px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper.active{background:#2d936c}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.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{text-transform:uppercase;flex:1}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .button{background:0 0;opacity:0;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .button{opacity:1;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{display:flex;padding:10px;height:2em;line-height:2em;color:#656565;position:relative}.cmp-coming-soon-maintenance .active .theme-inputs{color:#fff}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:calc(50% - 1em);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-activate-theme{padding:3px 9px 5px 9px;border-radius:5px;line-height:1;cursor:pointer;background:0 0;border:1px solid #dadada}.cmp-coming-soon-maintenance .cmp-purchase-theme{background:#ff3284;color:#fff;line-height:3.5;border:none;text-decoration:none;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:5px;border-top-left-radius:0;border-top-right-radius:0;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-purchase-theme i{padding-right:5px}.cmp-coming-soon-maintenance .cmp-activate-theme:hover{background:#e63946;color:#fff;border:1px solid}.cmp-coming-soon-maintenance .cmp-button.submit{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 .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{background-color:#e63946;color:#fff;border:none}.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:"Font Awesome 5 Free";content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff;font-weight:400}.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-select{margin-bottom:5px}.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:#ff3284;border:none}.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 - 1088px);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 .cmp-sidebar-wrapper .widget.selected-theme{padding:0}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget.selected-theme img{vertical-align:top}.cmp-coming-soon-maintenance .widget.donate img{padding:0}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:100%;margin-bottom:1em}.cmp-coming-soon-maintenance .cmp-rate-us .button{display:block;text-align:center;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 .font-selector .cmp-hint:first-of-type{width:100%;margin-bottom:0}.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;margin-left:10px}.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}.cmp-coming-soon-maintenance .subs-img-wrapper img{max-width:300px;margin:1em 0}.cmp-switch-editor-lang{float:left;box-sizing:content-box;position:relative;top:1px;background:#ebebeb;color:#666;cursor:pointer;font-size:13px;line-height:1.46153846;height:20px;margin:5px 0 0 5px;padding:3px 8px 4px;border:1px solid #e5e5e5}.cmp-switch-editor-lang.active{background:#f5f5f5;color:#555;border-bottom-color:#f5f5f5}.cmp-switch-editor-lang:focus{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);outline:0;color:#23282d}.cmp-switch-editor-lang:active,.html-active .switch-html:focus,.tmce-active .switch-tmce:focus{box-shadow:none}.cmp-switch-editor-langr:active{background-color:#f5f5f5;box-shadow:none}.rtl .cmp-switch-editor-lang{font-family:Tahoma,sans-serif}html:lang(he-il) .rtl .cmp-switch-editor-lang{font-family:Arial,sans-serif}@media screen and (max-width:782px){button.cmp-switch-editor-lang{font-size:16px;line-height:1;margin:7px 0 0 7px;padding:8px 12px}}@media screen and (max-width:1600px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-themes-manager{max-width:960px;min-width:initial}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{max-width:270px;min-width:initial;width:100%}}@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=number],.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 input[type=number],.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%;border:1px solid #d4d4d4}.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 .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}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede;max-width:100%}.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-addons,.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-themes-manager{display:inline-block;max-width:1140px;width:100%}.cmp-coming-soon-maintenance .cmp-inputs-wrapper.help-settings,.cmp-coming-soon-maintenance .cmp-inputs-wrapper.subscribers-settings,.cmp-coming-soon-maintenance .cmp-inputs-wrapper.translate-settings{padding:2em}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.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 .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:"Font Awesome 5 Free";content:"\f151";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:"\f150"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:95%}.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:960px;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 .table-wrapper th p:first-of-type{margin-top:0}.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{display:inline-block;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:#7628e9;border:1px solid #7628e9;outline:0;box-shadow:none;color:#fff;font-weight:600}.cmp-coming-soon-maintenance .nav-tab.theme-preview{background:#ff3284;border:1px solid #ff3284;color:#fff}.cmp-coming-soon-maintenance .logo-wrapper:empty{display:none}.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%;vertical-align:top}.cmp-coming-soon-maintenance .mobile-custom-gallery img{max-height:300px}.cmp-coming-soon-maintenance .background-thumb-wrapper{position:relative;overflow:hidden}.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),.cmp-coming-soon-maintenance .mobile-custom-gallery{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:10px 10px 0 0;width:calc(33.33% - 12px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper.active{background:#2d936c}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.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{text-transform:uppercase;flex:1}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .button{background:0 0;opacity:0;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .button{opacity:1;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{display:flex;padding:10px;height:2em;line-height:2em;color:#656565;position:relative}.cmp-coming-soon-maintenance .active .theme-inputs{color:#fff}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:calc(50% - 1em);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-activate-theme{padding:3px 9px 5px 9px;border-radius:5px;line-height:1;cursor:pointer;background:0 0;border:1px solid #dadada}.cmp-coming-soon-maintenance .cmp-purchase-theme{background:#ff3284;color:#fff;line-height:3.5;border:none;text-decoration:none;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:5px;border-top-left-radius:0;border-top-right-radius:0;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-purchase-theme i{padding-right:5px}.cmp-coming-soon-maintenance .cmp-activate-theme:hover{background:#e63946;color:#fff;border:1px solid}.cmp-coming-soon-maintenance .cmp-button.submit{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 .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{background-color:#e63946;color:#fff;border:none}.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:"Font Awesome 5 Free";content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff;font-weight:400}.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-select{margin-bottom:5px}.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:#ff3284;border:none}.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 - 1088px);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 .cmp-sidebar-wrapper .widget.selected-theme{padding:0}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget.selected-theme img{vertical-align:top}.cmp-coming-soon-maintenance .widget.donate img{padding:0}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:100%;margin-bottom:1em}.cmp-coming-soon-maintenance .cmp-rate-us .button{display:block;text-align:center;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 .font-selector .cmp-hint:first-of-type{width:100%;margin-bottom:0}.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;margin-left:10px}.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}.cmp-coming-soon-maintenance .subs-img-popup-wrapper img,.cmp-coming-soon-maintenance .subs-img-wrapper img{max-width:300px;margin:1em 0}.cmp-switch-editor-lang{float:left;box-sizing:content-box;position:relative;top:1px;background:#ebebeb;color:#666;cursor:pointer;font-size:13px;line-height:1.46153846;height:20px;margin:5px 0 0 5px;padding:3px 8px 4px;border:1px solid #e5e5e5}.cmp-switch-editor-lang.active{background:#f5f5f5;color:#555;border-bottom-color:#f5f5f5}.cmp-switch-editor-lang:focus{box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);outline:0;color:#23282d}.cmp-switch-editor-lang:active,.html-active .switch-html:focus,.tmce-active .switch-tmce:focus{box-shadow:none}.cmp-switch-editor-langr:active{background-color:#f5f5f5;box-shadow:none}.rtl .cmp-switch-editor-lang{font-family:Tahoma,sans-serif}html:lang(he-il) .rtl .cmp-switch-editor-lang{font-family:Arial,sans-serif}@media screen and (max-width:782px){button.cmp-switch-editor-lang{font-size:16px;line-height:1;margin:7px 0 0 7px;padding:8px 12px}}@media screen and (max-width:1600px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-themes-manager{max-width:960px;min-width:initial}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{max-width:270px;min-width:initial;width:100%}}@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)}}
|
img/thumbnails/titan/screenshot1.jpg
ADDED
Binary file
|
img/thumbnails/titan/screenshot2.jpg
ADDED
Binary file
|
img/thumbnails/titan_thumbnail.jpg
ADDED
Binary file
|
inc/class-cmp-render_html.php
CHANGED
@@ -80,6 +80,13 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
80 |
|
81 |
return $html;
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
}
|
84 |
|
85 |
/**
|
80 |
|
81 |
return $html;
|
82 |
|
83 |
+
}
|
84 |
+
// render subscribe form
|
85 |
+
public function cmp_get_form( $popup = false, $label = FALSE, $firstname = FALSE, $lastname = FALSE ) {
|
86 |
+
include dirname( __FILE__) . '/render/subscribe-form-cmp.php';
|
87 |
+
|
88 |
+
return $html;
|
89 |
+
|
90 |
}
|
91 |
|
92 |
/**
|
inc/render/custom-css-popup_form.php
ADDED
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<style>
|
2 |
+
#subscribe-container-popup.form-container {
|
3 |
+
visibility: hidden;
|
4 |
+
opacity: 0;
|
5 |
+
position: fixed;
|
6 |
+
overflow: auto;
|
7 |
+
width: 100%;
|
8 |
+
top: 0;
|
9 |
+
left: 0;
|
10 |
+
bottom: 0;
|
11 |
+
transform: translate(0);
|
12 |
+
color: #696969;
|
13 |
+
background: rgba(0, 0, 0, 0.9);
|
14 |
+
z-index: 10000;
|
15 |
+
transition: all 300ms ease-out;
|
16 |
+
pointer-events: none;
|
17 |
+
}
|
18 |
+
|
19 |
+
#subscribe-container-popup.form-container.in-focus {
|
20 |
+
visibility: visible;
|
21 |
+
opacity: 1;
|
22 |
+
pointer-events: initial;
|
23 |
+
}
|
24 |
+
|
25 |
+
#subscribe-container-popup .form-wrapper-popup {
|
26 |
+
position: absolute;
|
27 |
+
display: flex;
|
28 |
+
visibility: visible;
|
29 |
+
opacity: 1;
|
30 |
+
width: auto;
|
31 |
+
max-width: 900px;
|
32 |
+
min-height: 500px;
|
33 |
+
margin-left: auto;
|
34 |
+
margin-right: auto;
|
35 |
+
padding: 0;
|
36 |
+
left: 0;
|
37 |
+
right: 0;
|
38 |
+
top: 50%;
|
39 |
+
-webkit-transition: -webkit-transform .3s ease-out;
|
40 |
+
-o-transition: -o-transform .3s ease-out;
|
41 |
+
transition: transform .3s ease-out;
|
42 |
+
-webkit-transform: translate(0, -50%);
|
43 |
+
-ms-transform: translate(0, -50%);
|
44 |
+
-o-transform: translate(0, -50%);
|
45 |
+
transform: translate(0, -50%);
|
46 |
+
color: white;
|
47 |
+
background: rgba(0, 0, 0, 0.92)
|
48 |
+
}
|
49 |
+
|
50 |
+
#subscribe-container-popup .form-wrapper-popup.no-img {
|
51 |
+
max-width: 600px;
|
52 |
+
}
|
53 |
+
|
54 |
+
#subscribe-container-popup .subs-img {
|
55 |
+
width: 50%;
|
56 |
+
height: initial;
|
57 |
+
background-position: center;
|
58 |
+
background-size: cover;
|
59 |
+
background-repeat: no-repeat;
|
60 |
+
}
|
61 |
+
|
62 |
+
#subscribe-container-popup .form-content {
|
63 |
+
padding: 50px;
|
64 |
+
width: 50%;
|
65 |
+
display: flex;
|
66 |
+
flex-direction: column;
|
67 |
+
color: black;
|
68 |
+
background: white;
|
69 |
+
}
|
70 |
+
|
71 |
+
#subscribe-container-popup .no-img .form-content {
|
72 |
+
width: 100%
|
73 |
+
}
|
74 |
+
|
75 |
+
#subscribe-container-popup .in-focus .form-wrapper {
|
76 |
+
-webkit-transform: translate(0, -50%);
|
77 |
+
-ms-transform: translate(0, -50%);
|
78 |
+
-o-transform: translate(0, -50%);
|
79 |
+
transform: translate(0, -50%);
|
80 |
+
}
|
81 |
+
|
82 |
+
#subscribe-container-popup .close-popup {
|
83 |
+
cursor: pointer;
|
84 |
+
font-size: 1.5em;
|
85 |
+
position: absolute;
|
86 |
+
right: 25px;
|
87 |
+
top: 20px;
|
88 |
+
}
|
89 |
+
|
90 |
+
#subscribe-container-popup .form-title {
|
91 |
+
text-align: center;
|
92 |
+
margin-top: auto;
|
93 |
+
}
|
94 |
+
|
95 |
+
#subscribe-container-popup .cmp-subscribe {
|
96 |
+
display: flex;
|
97 |
+
flex-direction: column;
|
98 |
+
margin-bottom: auto;
|
99 |
+
}
|
100 |
+
|
101 |
+
#subscribe-container-popup .cmp-form-inputs {
|
102 |
+
display: block;
|
103 |
+
order: 1;
|
104 |
+
width: 100%;
|
105 |
+
max-width: 100%;
|
106 |
+
}
|
107 |
+
|
108 |
+
#subscribe-form-popup {
|
109 |
+
display: flex;
|
110 |
+
flex-direction: column;
|
111 |
+
margin-bottom: auto;
|
112 |
+
}
|
113 |
+
|
114 |
+
#subscribe-container-popup input {
|
115 |
+
padding: 10px 0 10px 10px;
|
116 |
+
-webkit-appearance: none;
|
117 |
+
}
|
118 |
+
|
119 |
+
|
120 |
+
#subscribe-container-popup input[type="email"],
|
121 |
+
#subscribe-container-popup input[type="text"] {
|
122 |
+
color: black;
|
123 |
+
border: 1px solid black;
|
124 |
+
min-width: 100%;
|
125 |
+
padding-left: 0;
|
126 |
+
margin: 0;
|
127 |
+
margin-bottom: 10px;
|
128 |
+
background: transparent;
|
129 |
+
text-indent: 10px;
|
130 |
+
font-size: 1em;
|
131 |
+
border-radius: 0;
|
132 |
+
line-height: 1;
|
133 |
+
height: 48px;
|
134 |
+
box-sizing: border-box;
|
135 |
+
text-align: left;
|
136 |
+
}
|
137 |
+
|
138 |
+
#subscribe-container-popup input[type="submit"],
|
139 |
+
#subscribe-container-popup button[type="submit"],
|
140 |
+
#subscribe-container-popup button[type="submit"]:hover {
|
141 |
+
border: 1px solid black;
|
142 |
+
padding: 10px 0;
|
143 |
+
min-width: calc(100% + 2px);
|
144 |
+
background: black;
|
145 |
+
color: white;
|
146 |
+
text-transform: uppercase;
|
147 |
+
border-radius: 0;
|
148 |
+
cursor: pointer;
|
149 |
+
font-size: 1em;
|
150 |
+
position: relative;
|
151 |
+
border-radius: 0;
|
152 |
+
line-height: 1;
|
153 |
+
height: 48px;
|
154 |
+
box-sizing: border-box;
|
155 |
+
margin: 0;
|
156 |
+
}
|
157 |
+
|
158 |
+
#subscribe-container-popup.subscribe-button {
|
159 |
+
display: inline-block;
|
160 |
+
padding: 20px 40px;
|
161 |
+
cursor: pointer;
|
162 |
+
font-size: 1.1em;
|
163 |
+
}
|
164 |
+
|
165 |
+
#subscribe-container-popup #subscribe-response-popup {
|
166 |
+
margin-top: .5em;
|
167 |
+
text-align: left;
|
168 |
+
}
|
169 |
+
|
170 |
+
#subscribe-container-popup #gdpr-checkbox-popup {
|
171 |
+
-webkit-appearance: checkbox;
|
172 |
+
-moz-appearance: checkbox;
|
173 |
+
width: initial;
|
174 |
+
height: initial;
|
175 |
+
}
|
176 |
+
|
177 |
+
.cmp-form-notes-popup {
|
178 |
+
text-align: left;
|
179 |
+
}
|
180 |
+
|
181 |
+
#subscribe-container-popup svg {
|
182 |
+
display: none;
|
183 |
+
}
|
184 |
+
@media only screen and (max-width: 680px) {
|
185 |
+
#subscribe-container-popup .form-wrapper-popup {
|
186 |
+
flex-direction: column;
|
187 |
+
}
|
188 |
+
|
189 |
+
#subscribe-container-popup .form-content {
|
190 |
+
padding: 20px;
|
191 |
+
font-size: 14px;
|
192 |
+
position: relative;
|
193 |
+
}
|
194 |
+
#subscribe-container-popup .form-content, #subscribe-container-popup .subs-img{
|
195 |
+
width: 100%;
|
196 |
+
box-sizing: border-box;
|
197 |
+
}
|
198 |
+
#subscribe-container-popup .subs-img {
|
199 |
+
padding-top: 75%;
|
200 |
+
}
|
201 |
+
|
202 |
+
#subscribe-container-popup .form-title {
|
203 |
+
font-size: 20px;
|
204 |
+
}
|
205 |
+
|
206 |
+
#subscribe-container-popup .close-popup {
|
207 |
+
top: 10px;
|
208 |
+
right: 10px;
|
209 |
+
}
|
210 |
+
}
|
211 |
+
</style>
|
inc/render/custom-css.php
CHANGED
@@ -193,6 +193,16 @@ if ( is_plugin_active( 'weglot/weglot.php' ) && defined('WEGLOT_VERSION') ) { ?>
|
|
193 |
<?php
|
194 |
}
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
$css = ob_get_clean();
|
197 |
|
198 |
$custom_css = ( get_option('niteoCS_custom_css', '') != '' ) ? '<style>'.stripslashes( wp_filter_nohtml_kses( get_option('niteoCS_custom_css') ) ).'</style>' : '';
|
193 |
<?php
|
194 |
}
|
195 |
|
196 |
+
// render subscribe POPUP form CSS
|
197 |
+
$subs_type = get_option('niteoCS_subscribe_type', '2');
|
198 |
+
if ( $subs_type == '2' ) {
|
199 |
+
$subscribe_popup = get_option('niteoCS_subscribe_popup', '0');
|
200 |
+
if ( $subscribe_popup ) {
|
201 |
+
|
202 |
+
require ( dirname(__FILE__). '/custom-css-popup_form.php' );
|
203 |
+
|
204 |
+
}
|
205 |
+
}
|
206 |
$css = ob_get_clean();
|
207 |
|
208 |
$custom_css = ( get_option('niteoCS_custom_css', '') != '' ) ? '<style>'.stripslashes( wp_filter_nohtml_kses( get_option('niteoCS_custom_css') ) ).'</style>' : '';
|
inc/render/enqueue-styles.php
CHANGED
@@ -2,6 +2,11 @@
|
|
2 |
|
3 |
$ver = $this->cmp_theme_version( $themeslug );
|
4 |
|
|
|
|
|
|
|
|
|
|
|
5 |
if ( $gutenberg === true ) {
|
6 |
echo '<link rel="stylesheet" href="'.includes_url('/css/dist/block-library/style.min.css').'" type="text/css" media="all" />' . PHP_EOL;
|
7 |
}
|
2 |
|
3 |
$ver = $this->cmp_theme_version( $themeslug );
|
4 |
|
5 |
+
// get font awesome, if subsscribe popup is enabled
|
6 |
+
if ( get_option('niteoCS_subscribe_type', '2') == '2' && get_option('niteoCS_subscribe_popup', '0') ) {
|
7 |
+
$fa = true;
|
8 |
+
}
|
9 |
+
|
10 |
if ( $gutenberg === true ) {
|
11 |
echo '<link rel="stylesheet" href="'.includes_url('/css/dist/block-library/style.min.css').'" type="text/css" media="all" />' . PHP_EOL;
|
12 |
}
|
inc/render/footer.php
CHANGED
@@ -1,5 +1,58 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
/**
|
5 |
* Detect plugin. For use on Front End only.
|
1 |
<?php
|
2 |
+
// render subscribe POPUP form
|
3 |
+
$subs_type = get_option('niteoCS_subscribe_type', '2');
|
4 |
+
if ( $subs_type == '2' ) {
|
5 |
+
$subscribe_popup = get_option('niteoCS_subscribe_popup', '0');
|
6 |
+
if ( $subscribe_popup ) {
|
7 |
+
$subscribe_popup_title = stripslashes( get_option('niteoCS_subscribe_popup_title', get_option('niteoCS_subscribe_title', 'SUBSCRIBE US')) );
|
8 |
+
$subscribe_popup_title = $this->cmp_wpml_translate_string( $subscribe_popup_title, 'Subscribe Popup Form Title' );
|
9 |
+
$niteoCS_subs_img_popup_id = get_option('niteoCS_subs_img_popup_id', '');
|
10 |
+
$subscribe_popup_time = get_option('niteoCS_subscribe_popup_time', '10');
|
11 |
+
$subs_img_url = '';
|
12 |
+
$firstname = get_option( 'niteoCS_subscribe_firstname_popup', '0' ) ? true : false;
|
13 |
+
$lastname = get_option( 'niteoCS_subscribe_lastname_popup', '0' ) ? true : false;
|
14 |
+
|
15 |
+
if ( $niteoCS_subs_img_popup_id != '' ) {
|
16 |
+
$subs_img_url = wp_get_attachment_image_src($niteoCS_subs_img_popup_id, 'large');
|
17 |
+
if ( isset($subs_img_url[0]) ){
|
18 |
+
$subs_img_url = $subs_img_url[0];
|
19 |
+
}
|
20 |
+
} ?>
|
21 |
+
|
22 |
+
<div id="subscribe-container-popup" class="form-container animated-fast">
|
23 |
+
|
24 |
+
<div class="form-wrapper-popup<?php echo $subs_img_url == '' ? ' no-img' : '';?>">
|
25 |
+
<?php if ( $subs_img_url !== '' ) : ?>
|
26 |
+
<div class="subs-img" style="background-image:url(<?php echo esc_url($subs_img_url);?>)"></div>
|
27 |
+
<?php endif;?>
|
28 |
+
<div class="form-content">
|
29 |
+
<?php if (!empty($subscribe_popup_title)) { ?>
|
30 |
+
<h4 class="form-title"><?php echo esc_html($subscribe_popup_title);?></h4>
|
31 |
+
<?php
|
32 |
+
} ?>
|
33 |
+
<div class="close-popup"><i class="fa fa-times" aria-hidden="true"></i></div>
|
34 |
+
<?php
|
35 |
+
echo $html = $this->cmp_get_form($popup = true, $label = false, $firstname, $lastname); ?>
|
36 |
+
</div>
|
37 |
+
</div>
|
38 |
+
</div>
|
39 |
+
|
40 |
+
<script>
|
41 |
+
var subsContainerPopup = document.getElementById('subscribe-container-popup');
|
42 |
+
var closePopup = subsContainerPopup.querySelector('.close-popup');
|
43 |
+
|
44 |
+
setTimeout(() => {
|
45 |
+
subsContainerPopup.classList.add('in-focus', 'zoomIn');
|
46 |
+
}, <?php echo esc_attr($subscribe_popup_time * 1000);?>);
|
47 |
+
|
48 |
+
|
49 |
+
closePopup.onclick = function() {
|
50 |
+
subsContainerPopup.classList.remove('in-focus', 'zoomIn');
|
51 |
+
}
|
52 |
+
</script>
|
53 |
+
<?php
|
54 |
+
}
|
55 |
+
}
|
56 |
|
57 |
/**
|
58 |
* Detect plugin. For use on Front End only.
|
inc/render/javascripts.php
CHANGED
@@ -573,6 +573,68 @@ if ( $counter_script && get_option('niteoCS_counter', '1') == '1') {
|
|
573 |
</script>
|
574 |
<?php
|
575 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
576 |
}
|
577 |
|
578 |
$this->cmp_custom_footer_scripts();
|
573 |
</script>
|
574 |
<?php
|
575 |
}
|
576 |
+
}
|
577 |
+
|
578 |
+
// Subscribe form script
|
579 |
+
if ( get_option('niteoCS_subscribe_type', '2') == '2' && ( get_option('niteoCS_inpage_subscribe', '1') || get_option('niteoCS_subscribe_popup', '0')) ) {
|
580 |
+
|
581 |
+
if ( get_option( 'niteoCS_recaptcha_status', '1' ) === '1' ) {
|
582 |
+
$site_key = get_option('niteoCS_recaptcha_site', '');
|
583 |
+
echo '<script src="https://www.google.com/recaptcha/api.js?render='.esc_attr($site_key).'" async defer></script>';
|
584 |
+
}
|
585 |
+
|
586 |
+
// get translation
|
587 |
+
$translation = $this->cmp_wpml_niteoCS_translation();
|
588 |
+
$missing_gdpr = stripslashes( $translation[13]['translation'] );
|
589 |
+
$empty_email = stripslashes( $translation[14]['translation'] );
|
590 |
+
?>
|
591 |
+
|
592 |
+
<script>
|
593 |
+
/* Subscribe form script */
|
594 |
+
var ajaxurl = '<?php echo admin_url( 'admin-ajax.php' );?>';
|
595 |
+
var security = '<?php echo wp_create_nonce( 'cmp-subscribe-action' );?>';
|
596 |
+
var msg = '';
|
597 |
+
|
598 |
+
subForm = function( form, resultElement, emailInput, firstnameInput, lastnameInput, token = '' ) {
|
599 |
+
if ( emailInput.value !== '' ) {
|
600 |
+
const firstname = firstnameInput === null ? '' : firstnameInput.value;
|
601 |
+
const lastname = lastnameInput === null ? '' : lastnameInput.value;
|
602 |
+
|
603 |
+
fetch( ajaxurl, {
|
604 |
+
method: 'POST',
|
605 |
+
headers: {
|
606 |
+
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
|
607 |
+
'Access-Control-Allow-Origin': '*',
|
608 |
+
},
|
609 |
+
body: `action=niteo_subscribe&ajax=true&form_honeypot=&email=${ emailInput.value }&firstname=${ firstname }&lastname=${ lastname }&security=${ security }&token=${ token }`,
|
610 |
+
credentials: 'same-origin'
|
611 |
+
} )
|
612 |
+
.then( (res) => {
|
613 |
+
return res.json();
|
614 |
+
} )
|
615 |
+
.then( (data) => {
|
616 |
+
resultElement.innerHTML = data.message; // Display the result inside result element.
|
617 |
+
form.classList.add('-subscribed');
|
618 |
+
if (data.status == 1) {
|
619 |
+
form.classList.remove('-subscribe-failed');
|
620 |
+
form.classList.add('-subscribe-successful');
|
621 |
+
emailInput.value = '';
|
622 |
+
firstnameInput ? firstnameInput.value = '' : null;
|
623 |
+
lastnameInput ? lastnameInput.value = '' : null;
|
624 |
+
<?php do_action('cmp-successfull-subscribe-action'); ?>
|
625 |
+
|
626 |
+
} else {
|
627 |
+
form.classList.add('-subscribe-failed');
|
628 |
+
}
|
629 |
+
} )
|
630 |
+
.catch(function(error) { console.log(error.message); });
|
631 |
+
|
632 |
+
} else {
|
633 |
+
resultElement.innerHTML = '<?php echo esc_attr($empty_email);?>';
|
634 |
+
}
|
635 |
+
}
|
636 |
+
</script>
|
637 |
+
<?php
|
638 |
}
|
639 |
|
640 |
$this->cmp_custom_footer_scripts();
|
inc/render/subscribe-form-cmp.php
ADDED
@@ -0,0 +1,217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// process emails first
|
3 |
+
$response = $this->niteo_subscribe( true );
|
4 |
+
|
5 |
+
// get current theme
|
6 |
+
$theme = $this->cmp_selectedTheme();
|
7 |
+
// get GDPR message
|
8 |
+
if ( $popup ) {
|
9 |
+
$subscribe_label = $this->cmp_wpml_translate_string( stripslashes( get_option('niteoCS_subscribe_label_popup') ), 'Popup Subscribe GDPR Message' );
|
10 |
+
$gdpr_checkbox = get_option( 'niteoCS_subscribe_gdpr_checkbox_popup', '0' );
|
11 |
+
} else {
|
12 |
+
$subscribe_label = $this->cmp_wpml_translate_string( stripslashes( get_option('niteoCS_subscribe_label') ), 'Subscribe GDPR Message' );
|
13 |
+
$gdpr_checkbox = get_option( 'niteoCS_subscribe_gdpr_checkbox', '0' );
|
14 |
+
}
|
15 |
+
|
16 |
+
// get translation if exists
|
17 |
+
$translation = $this->cmp_wpml_niteoCS_translation();
|
18 |
+
|
19 |
+
$placeholder = stripslashes( $translation[4]['translation'] );
|
20 |
+
$placeholder_firstname = stripslashes( $translation[10]['translation'] );
|
21 |
+
$placeholder_lastname = stripslashes( $translation[11]['translation'] );
|
22 |
+
|
23 |
+
$subscribe = stripslashes( $translation[12]['translation'] );
|
24 |
+
$missing_gdpr = stripslashes( $translation[13]['translation'] );
|
25 |
+
|
26 |
+
|
27 |
+
// overwrite it with theme specific requirements
|
28 |
+
if ( $theme == 'stylo' && !$popup ) {
|
29 |
+
$placeholder = ' ' . $placeholder;
|
30 |
+
$placeholder_firstname = ' ' . $placeholder_firstname;
|
31 |
+
$placeholder_lastname = ' ' . $placeholder_lastname;
|
32 |
+
}
|
33 |
+
|
34 |
+
// overwrite it with theme specific requirements
|
35 |
+
if ( $theme == 'pluto' && !$popup) {
|
36 |
+
$placeholder = ' ' . $placeholder;
|
37 |
+
}
|
38 |
+
|
39 |
+
$submit = stripslashes( $translation[8]['translation'] );
|
40 |
+
// set submit icon / text
|
41 |
+
if ( !$popup ) {
|
42 |
+
switch ($theme) {
|
43 |
+
case 'postery':
|
44 |
+
$submit = '';
|
45 |
+
break;
|
46 |
+
case 'juno':
|
47 |
+
$submit = '';
|
48 |
+
break;
|
49 |
+
case 'agency':
|
50 |
+
$submit = '';
|
51 |
+
break;
|
52 |
+
case 'libra':
|
53 |
+
$submit = '';
|
54 |
+
break;
|
55 |
+
|
56 |
+
default:
|
57 |
+
break;
|
58 |
+
}
|
59 |
+
|
60 |
+
}
|
61 |
+
ob_start();
|
62 |
+
$popup = $popup ? '-popup' : '';
|
63 |
+
?>
|
64 |
+
|
65 |
+
<form id="subscribe-form<?php echo $popup;?>" method="post" class="cmp-subscribe<?php echo $popup;?>">
|
66 |
+
<div class="cmp-form-inputs">
|
67 |
+
|
68 |
+
<?php wp_nonce_field('cmp_subscribe','cmp_subscribe_field'); ?>
|
69 |
+
<?php
|
70 |
+
// display placeholders or labels
|
71 |
+
switch ( $label ) {
|
72 |
+
case TRUE:
|
73 |
+
if ( $firstname === TRUE ) { ?>
|
74 |
+
<div class="firstname input-wrapper">
|
75 |
+
<label for="firstname-subscribe<?php echo $popup;?>"><?php echo esc_attr( $placeholder_firstname );?></label>
|
76 |
+
<input type="text" id="firstname-subscribe<?php echo $popup;?>" name="cmp_firstname<?php echo $popup;?>">
|
77 |
+
</div>
|
78 |
+
<?php
|
79 |
+
}
|
80 |
+
|
81 |
+
if ( $lastname === TRUE ) { ?>
|
82 |
+
<div class="lastname input-wrapper">
|
83 |
+
<label for="lastname-subscribe<?php echo $popup;?>"><?php echo esc_attr( $placeholder_lastname );?></label>
|
84 |
+
<input type="text" id="lastname-subscribe<?php echo $popup;?>" name="cmp_lastname<?php echo $popup;?>">
|
85 |
+
</div>
|
86 |
+
<?php
|
87 |
+
} ?>
|
88 |
+
<div class="email input-wrapper">
|
89 |
+
<label for="email-subscribe<?php echo $popup;?>"><?php echo esc_attr( $placeholder );?></label>
|
90 |
+
<input type="email" id="email-subscribe<?php echo $popup;?>" name="email<?php echo $popup;?>" required>
|
91 |
+
</div>
|
92 |
+
<?php
|
93 |
+
break;
|
94 |
+
|
95 |
+
case FALSE:
|
96 |
+
if ( $firstname === TRUE ) { ?>
|
97 |
+
<input type="text" id="firstname-subscribe<?php echo $popup;?>" name="cmp_firstname<?php echo $popup;?>" placeholder="<?php echo esc_attr( $placeholder_firstname );?>">
|
98 |
+
<?php
|
99 |
+
}
|
100 |
+
|
101 |
+
if ( $lastname === TRUE ) { ?>
|
102 |
+
<input type="text" id="lastname-subscribe<?php echo $popup;?>" name="cmp_lastname<?php echo $popup;?>" placeholder="<?php echo esc_attr( $placeholder_lastname );?>">
|
103 |
+
<?php
|
104 |
+
} ?>
|
105 |
+
|
106 |
+
<input type="email" id="email-subscribe<?php echo $popup;?>" name="email<?php echo $popup;?>" placeholder="<?php echo esc_attr( $placeholder );?>" required>
|
107 |
+
<?php
|
108 |
+
break;
|
109 |
+
|
110 |
+
default:
|
111 |
+
break;
|
112 |
+
}
|
113 |
+
|
114 |
+
switch ( $theme ) {
|
115 |
+
case 'mercury': ?>
|
116 |
+
<button type="submit" id="submit-subscribe<?php echo $popup;?>"><?php echo esc_attr( $submit );?></button>
|
117 |
+
<?php
|
118 |
+
break;
|
119 |
+
case 'headliner': ?>
|
120 |
+
<input type="submit" id="submit-subscribe<?php echo $popup;?>" value="<?php echo esc_attr( $subscribe );?>" data-subscribe="<?php echo esc_attr( $submit );?>">
|
121 |
+
<?php
|
122 |
+
break;
|
123 |
+
|
124 |
+
default: ?>
|
125 |
+
<input type="submit" id="submit-subscribe<?php echo $popup;?>" value="<?php echo esc_attr( $submit );?>">
|
126 |
+
<?php
|
127 |
+
break;
|
128 |
+
} ?>
|
129 |
+
|
130 |
+
<div style="display: none;">
|
131 |
+
<input type="text" name="form_honeypot" value="" tabindex="-1" autocomplete="off">
|
132 |
+
</div>
|
133 |
+
|
134 |
+
<div id="subscribe-response<?php echo $popup;?>"><?php echo isset( $response ) ? $response : '';?></div>
|
135 |
+
|
136 |
+
<div id="subscribe-overlay<?php echo $popup;?>"></div>
|
137 |
+
</div>
|
138 |
+
|
139 |
+
<?php
|
140 |
+
// render Subscribe form Message/GDPR
|
141 |
+
if ( $subscribe_label != '' ) {
|
142 |
+
|
143 |
+
$allowed_html = array(
|
144 |
+
'a' => array(
|
145 |
+
'href' => array(),
|
146 |
+
'title' => array()
|
147 |
+
),
|
148 |
+
'input' => array(
|
149 |
+
'type' => array(),
|
150 |
+
'checked' => array(),
|
151 |
+
'id' => array(),
|
152 |
+
'name' => array(),
|
153 |
+
'required' => array(),
|
154 |
+
),
|
155 |
+
'label' => array()
|
156 |
+
);
|
157 |
+
|
158 |
+
$checkbox = $gdpr_checkbox ? '<label><input type="checkbox" id="gdpr-checkbox'.$popup.'" name="gdpr-checkbox'.$popup.'" required /> ' : '';
|
159 |
+
$closing_checkbox = $gdpr_checkbox ? '</label>' : '';
|
160 |
+
|
161 |
+
?>
|
162 |
+
<div class="cmp-form-notes<?php echo $popup;?>">
|
163 |
+
<?php echo wpautop(wp_kses( $checkbox . $subscribe_label, $allowed_html, $closing_checkbox )); ?>
|
164 |
+
</div>
|
165 |
+
<?php
|
166 |
+
} ?>
|
167 |
+
|
168 |
+
</form>
|
169 |
+
|
170 |
+
<script>
|
171 |
+
window.addEventListener('DOMContentLoaded',function(event) {
|
172 |
+
|
173 |
+
const form = document.getElementById('subscribe-form<?php echo $popup;?>');
|
174 |
+
const submitButton = form.querySelector('#submit-subscribe<?php echo $popup;?>');
|
175 |
+
const resultElement = form.querySelector('#subscribe-response<?php echo $popup;?>');
|
176 |
+
const emailInput = form.querySelector('#email-subscribe<?php echo $popup;?>');
|
177 |
+
const firstnameInput = form.querySelector('#firstname-subscribe<?php echo $popup;?>');
|
178 |
+
const lastnameInput = form.querySelector('#lastname-subscribe<?php echo $popup;?>');
|
179 |
+
const gdprCheckbox = form.querySelector('#gdpr-checkbox<?php echo $popup;?>');
|
180 |
+
|
181 |
+
submitButton.onclick = function( e ) {
|
182 |
+
e.preventDefault();
|
183 |
+
|
184 |
+
// check GDPR checkbox
|
185 |
+
if ( gdprCheckbox && gdprCheckbox.checked === false ) {
|
186 |
+
resultElement.innerHTML = '<?php echo esc_attr($missing_gdpr);?>';
|
187 |
+
return false;
|
188 |
+
}
|
189 |
+
|
190 |
+
<?php
|
191 |
+
if ( get_option( 'niteoCS_recaptcha_status', '1' ) === '1' ) { ?>
|
192 |
+
// google recaptcha
|
193 |
+
grecaptcha.ready(function() {
|
194 |
+
grecaptcha.execute('<?php echo esc_attr($site_key);?>').then(function(token) {
|
195 |
+
subForm( form, resultElement, emailInput, firstnameInput, lastnameInput, token );
|
196 |
+
});
|
197 |
+
});
|
198 |
+
|
199 |
+
<?php
|
200 |
+
} else { ?>
|
201 |
+
// submit form
|
202 |
+
subForm( form, resultElement, emailInput, firstnameInput, lastnameInput );
|
203 |
+
<?php
|
204 |
+
} ?>
|
205 |
+
|
206 |
+
}
|
207 |
+
|
208 |
+
form.onsubmit = function(){ // Prevent page refresh
|
209 |
+
return false;
|
210 |
+
}
|
211 |
+
|
212 |
+
});
|
213 |
+
</script>
|
214 |
+
|
215 |
+
<?php
|
216 |
+
|
217 |
+
$html = ob_get_clean();
|
inc/render/subscribe-form.php
CHANGED
@@ -1,18 +1,8 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
// process emails first
|
4 |
-
$response = $this->niteo_subscribe( true );
|
5 |
-
|
6 |
-
$html = '';
|
7 |
-
|
8 |
-
|
9 |
-
// get current theme
|
10 |
-
$theme = $this->cmp_selectedTheme();
|
11 |
-
|
12 |
// get type of susbscribe
|
13 |
$subscribe_type = get_option('niteoCS_subscribe_type', '2');
|
|
|
14 |
|
15 |
-
// if subscribers is 3rd party plugin, render form by shortcode
|
16 |
switch ($subscribe_type) {
|
17 |
// custom shortcode
|
18 |
case '1':
|
@@ -21,259 +11,9 @@ switch ($subscribe_type) {
|
|
21 |
break;
|
22 |
// CMP subscribe form
|
23 |
case '2':
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
// get translation if exists
|
28 |
-
$translation = $this->cmp_wpml_niteoCS_translation();
|
29 |
-
|
30 |
-
$placeholder = stripslashes( $translation[4]['translation'] );
|
31 |
-
$placeholder_firstname = stripslashes( $translation[10]['translation'] );
|
32 |
-
$placeholder_lastname = stripslashes( $translation[11]['translation'] );
|
33 |
-
|
34 |
-
$subscribe = stripslashes( $translation[12]['translation'] );
|
35 |
-
$missing_gdpr = stripslashes( $translation[13]['translation'] );
|
36 |
-
$empty_email = stripslashes( $translation[14]['translation'] );
|
37 |
-
$gdpr_checkbox = get_option( 'niteoCS_subscribe_gdpr_checkbox', '0' );
|
38 |
-
|
39 |
-
// overwrite it with theme specific requirements
|
40 |
-
if ( $theme == 'stylo' ) {
|
41 |
-
$placeholder = ' ' . $placeholder;
|
42 |
-
$placeholder_firstname = ' ' . $placeholder_firstname;
|
43 |
-
$placeholder_lastname = ' ' . $placeholder_lastname;
|
44 |
-
}
|
45 |
-
|
46 |
-
// overwrite it with theme specific requirements
|
47 |
-
if ( $theme == 'pluto' ) {
|
48 |
-
$placeholder = ' ' . $placeholder;
|
49 |
}
|
50 |
-
|
51 |
-
// set submit icon / text
|
52 |
-
switch ($theme) {
|
53 |
-
case 'postery':
|
54 |
-
$submit = '';
|
55 |
-
break;
|
56 |
-
case 'juno':
|
57 |
-
$submit = '';
|
58 |
-
break;
|
59 |
-
case 'agency':
|
60 |
-
$submit = '';
|
61 |
-
break;
|
62 |
-
case 'libra':
|
63 |
-
$submit = '';
|
64 |
-
break;
|
65 |
-
|
66 |
-
default:
|
67 |
-
$submit = stripslashes( $translation[8]['translation'] );
|
68 |
-
break;
|
69 |
-
} ?>
|
70 |
-
|
71 |
-
<form id="subscribe-form" method="post" class="cmp-subscribe">
|
72 |
-
<div class="cmp-form-inputs">
|
73 |
-
|
74 |
-
<?php wp_nonce_field('save_options','save_options_field'); ?>
|
75 |
-
<?php
|
76 |
-
// display placeholders or labels
|
77 |
-
switch ( $label ) {
|
78 |
-
case TRUE:
|
79 |
-
if ( $firstname === TRUE ) { ?>
|
80 |
-
<div class="firstname input-wrapper">
|
81 |
-
<label for="firstname-subscribe"><?php echo esc_attr( $placeholder_firstname );?></label>
|
82 |
-
<input type="text" id="firstname-subscribe" name="cmp_firstname">
|
83 |
-
</div>
|
84 |
-
<?php
|
85 |
-
}
|
86 |
-
|
87 |
-
if ( $lastname === TRUE ) { ?>
|
88 |
-
<div class="lastname input-wrapper">
|
89 |
-
<label for="lastname-subscribe"><?php echo esc_attr( $placeholder_lastname );?></label>
|
90 |
-
<input type="text" id="lastname-subscribe" name="cmp_lastname">
|
91 |
-
</div>
|
92 |
-
<?php
|
93 |
-
} ?>
|
94 |
-
<div class="email input-wrapper">
|
95 |
-
<label for="email-subscribe"><?php echo esc_attr( $placeholder );?></label>
|
96 |
-
<input type="email" id="email-subscribe" name="email" required>
|
97 |
-
</div>
|
98 |
-
<?php
|
99 |
-
break;
|
100 |
-
|
101 |
-
case FALSE:
|
102 |
-
if ( $firstname === TRUE ) { ?>
|
103 |
-
<input type="text" id="firstname-subscribe" name="cmp_firstname" placeholder="<?php echo esc_attr( $placeholder_firstname );?>">
|
104 |
-
<?php
|
105 |
-
}
|
106 |
-
|
107 |
-
if ( $lastname === TRUE ) { ?>
|
108 |
-
<input type="text" id="lastname-subscribe" name="cmp_lastname" placeholder="<?php echo esc_attr( $placeholder_lastname );?>">
|
109 |
-
<?php
|
110 |
-
} ?>
|
111 |
-
|
112 |
-
<input type="email" id="email-subscribe" name="email" placeholder="<?php echo esc_attr( $placeholder );?>" required>
|
113 |
-
<?php
|
114 |
-
break;
|
115 |
-
|
116 |
-
default:
|
117 |
-
break;
|
118 |
-
}
|
119 |
-
|
120 |
-
switch ( $theme ) {
|
121 |
-
case 'mercury': ?>
|
122 |
-
<button type="submit" id="submit-subscribe"><?php echo esc_attr( $submit );?></button>
|
123 |
-
<?php
|
124 |
-
break;
|
125 |
-
case 'headliner': ?>
|
126 |
-
<input type="submit" id="submit-subscribe" value="<?php echo esc_attr( $subscribe );?>" data-subscribe="<?php echo esc_attr( $submit );?>">
|
127 |
-
<?php
|
128 |
-
break;
|
129 |
-
|
130 |
-
default: ?>
|
131 |
-
<input type="submit" id="submit-subscribe" value="<?php echo esc_attr( $submit );?>">
|
132 |
-
<?php
|
133 |
-
break;
|
134 |
-
} ?>
|
135 |
-
|
136 |
-
<div style="display: none;">
|
137 |
-
<input type="text" name="form_honeypot" value="" tabindex="-1" autocomplete="off">
|
138 |
-
</div>
|
139 |
-
|
140 |
-
<div id="subscribe-response"><?php echo isset( $response ) ? $response : '';?></div>
|
141 |
-
|
142 |
-
<div id="subscribe-overlay"></div>
|
143 |
-
</div>
|
144 |
-
|
145 |
-
<?php
|
146 |
-
// render Subscribe form Message/GDPR
|
147 |
-
if ( $niteoCS_subscribe_label != '' ) {
|
148 |
-
|
149 |
-
$allowed_html = array(
|
150 |
-
'a' => array(
|
151 |
-
'href' => array(),
|
152 |
-
'title' => array()
|
153 |
-
),
|
154 |
-
'input' => array(
|
155 |
-
'type' => array(),
|
156 |
-
'checked' => array(),
|
157 |
-
'id' => array(),
|
158 |
-
'name' => array(),
|
159 |
-
'required' => array(),
|
160 |
-
),
|
161 |
-
'label' => array()
|
162 |
-
);
|
163 |
-
|
164 |
-
$checkbox = $gdpr_checkbox ? '<label><input type="checkbox" id="gdpr-checkbox" name="gdpr-checkbox" required /> ' : '';
|
165 |
-
$closing_checkbox = $gdpr_checkbox ? '</label>' : '';
|
166 |
-
|
167 |
-
?>
|
168 |
-
<div class="cmp-form-notes">
|
169 |
-
<?php echo wpautop(wp_kses( $checkbox . $niteoCS_subscribe_label, $allowed_html, $closing_checkbox )); ?>
|
170 |
-
</div>
|
171 |
-
<?php
|
172 |
-
} ?>
|
173 |
-
|
174 |
-
</form>
|
175 |
-
|
176 |
-
<?php
|
177 |
-
if ( get_option( 'niteoCS_recaptcha_status', '1' ) === '1' ) {
|
178 |
-
$site_key = get_option('niteoCS_recaptcha_site', '');
|
179 |
-
echo '<script src="https://www.google.com/recaptcha/api.js?render='.esc_attr($site_key).'" async defer></script>';
|
180 |
-
} ?>
|
181 |
-
|
182 |
-
<script>
|
183 |
-
/* Subscribe form script */
|
184 |
-
<?php
|
185 |
-
$url = parse_url( admin_url() );
|
186 |
-
$path = isset($url['path']) ? $url['path'] : '/wp-admin/';
|
187 |
-
?>
|
188 |
-
|
189 |
-
var ajaxurl = '<?php echo esc_attr($path);?>admin-ajax.php';
|
190 |
-
var security = '<?php echo wp_create_nonce( 'cmp-subscribe-action' );?>';
|
191 |
-
var msg = '';
|
192 |
-
|
193 |
-
|
194 |
-
window.addEventListener('DOMContentLoaded',function(event) {
|
195 |
-
|
196 |
-
const submitButton = document.getElementById('submit-subscribe');
|
197 |
-
const form = document.getElementById('subscribe-form');
|
198 |
-
const resultElement = document.getElementById('subscribe-response');
|
199 |
-
const emailInput = document.getElementById('email-subscribe');
|
200 |
-
const firstnameInput = document.getElementById('firstname-subscribe');
|
201 |
-
const lastnameInput = document.getElementById('lastname-subscribe');
|
202 |
-
const gdprCheckbox = document.getElementById('gdpr-checkbox');
|
203 |
-
|
204 |
-
submitButton.onclick = function( e ) {
|
205 |
-
e.preventDefault();
|
206 |
-
// check GDPR checkbox
|
207 |
-
if ( gdprCheckbox && gdprCheckbox.checked === false ) {
|
208 |
-
resultElement.innerHTML = '<?php echo esc_attr($missing_gdpr);?>';
|
209 |
-
return false;
|
210 |
-
}
|
211 |
-
|
212 |
-
<?php
|
213 |
-
if ( get_option( 'niteoCS_recaptcha_status', '1' ) === '1' ) { ?>
|
214 |
-
// google recaptcha
|
215 |
-
grecaptcha.ready(function() {
|
216 |
-
grecaptcha.execute('<?php echo esc_attr($site_key);?>').then(function(token) {
|
217 |
-
subForm( form, resultElement, emailInput, firstnameInput, lastnameInput, token );
|
218 |
-
});
|
219 |
-
});
|
220 |
-
|
221 |
-
<?php
|
222 |
-
} else { ?>
|
223 |
-
// submit form
|
224 |
-
subForm( form, resultElement, emailInput, firstnameInput, lastnameInput );
|
225 |
-
<?php
|
226 |
-
} ?>
|
227 |
-
|
228 |
-
}
|
229 |
-
|
230 |
-
form.onsubmit = function(){ // Prevent page refresh
|
231 |
-
return false;
|
232 |
-
}
|
233 |
-
|
234 |
-
});
|
235 |
-
|
236 |
-
subForm = function( form, resultElement, emailInput, firstnameInput, lastnameInput, token = '' ) {
|
237 |
-
|
238 |
-
if ( emailInput.value !== '' ) {
|
239 |
-
const firstname = firstnameInput === null ? '' : firstnameInput.value;
|
240 |
-
const lastname = lastnameInput === null ? '' : lastnameInput.value;
|
241 |
-
|
242 |
-
fetch( ajaxurl, {
|
243 |
-
method: 'POST',
|
244 |
-
headers: {
|
245 |
-
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
|
246 |
-
'Access-Control-Allow-Origin': '*',
|
247 |
-
},
|
248 |
-
body: `action=niteo_subscribe&ajax=true&form_honeypot=&email=${ emailInput.value }&firstname=${ firstname }&lastname=${ lastname }&security=${ security }&token=${ token }`,
|
249 |
-
credentials: 'same-origin'
|
250 |
-
} )
|
251 |
-
.then( (res) => {
|
252 |
-
return res.json();
|
253 |
-
} )
|
254 |
-
.then( (data) => {
|
255 |
-
resultElement.innerHTML = data.message; // Display the result inside result element.
|
256 |
-
form.classList.add('-subscribed');
|
257 |
-
if (data.status == 1) {
|
258 |
-
form.classList.remove('-subscribe-failed');
|
259 |
-
form.classList.add('-subscribe-successful');
|
260 |
-
emailInput.value = '';
|
261 |
-
firstnameInput ? firstnameInput.value = '' : null;
|
262 |
-
lastnameInput ? lastnameInput.value = '' : null;
|
263 |
-
<?php do_action('cmp-successfull-subscribe-action'); ?>
|
264 |
-
|
265 |
-
} else {
|
266 |
-
form.classList.add('-subscribe-failed');
|
267 |
-
}
|
268 |
-
} )
|
269 |
-
.catch(function(error) { console.log(error.message); });
|
270 |
-
|
271 |
-
} else {
|
272 |
-
resultElement.innerHTML = '<?php echo esc_attr($empty_email);?>';
|
273 |
-
}
|
274 |
-
}
|
275 |
-
</script>
|
276 |
-
<?php
|
277 |
break;
|
278 |
// MailOPtin
|
279 |
case '3':
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
// get type of susbscribe
|
3 |
$subscribe_type = get_option('niteoCS_subscribe_type', '2');
|
4 |
+
$html = '';
|
5 |
|
|
|
6 |
switch ($subscribe_type) {
|
7 |
// custom shortcode
|
8 |
case '1':
|
11 |
break;
|
12 |
// CMP subscribe form
|
13 |
case '2':
|
14 |
+
if ( get_option('niteoCS_inpage_subscribe', '1') ) {
|
15 |
+
$html = $this->cmp_get_form($popup = false, $label, $firstname, $lastname);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
break;
|
18 |
// MailOPtin
|
19 |
case '3':
|
inc/settings/settings-contact_form-disabled.php
CHANGED
@@ -29,7 +29,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
29 |
</th>
|
30 |
|
31 |
<td id="contact-form-disabled">
|
32 |
-
<p><?php _e('Contact Form is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
|
33 |
</td>
|
34 |
|
35 |
</tbody>
|
29 |
</th>
|
30 |
|
31 |
<td id="contact-form-disabled">
|
32 |
+
<p><?php _e('Contact Form is not supported by the selected Theme.', 'cmp-coming-soon-maintenance');?></p>
|
33 |
</td>
|
34 |
|
35 |
</tbody>
|
inc/settings/settings-counter-disabled.php
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
</th>
|
25 |
|
26 |
<td id="counter-disabled">
|
27 |
-
<p><?php _e('Countdown Timer is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
|
28 |
</td>
|
29 |
|
30 |
</tr>
|
24 |
</th>
|
25 |
|
26 |
<td id="counter-disabled">
|
27 |
+
<p><?php _e('Countdown Timer is not supported by the selected Theme.', 'cmp-coming-soon-maintenance');?></p>
|
28 |
</td>
|
29 |
|
30 |
</tr>
|
inc/settings/settings-footer-disabled.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
<tr>
|
6 |
<th><?php _e('Disabled', 'cmp-coming-soon-maintenance');?></th>
|
7 |
<td>
|
8 |
-
<p class="no-margin"><?php _e('Footer is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
|
9 |
</td>
|
10 |
</tr>
|
11 |
|
5 |
<tr>
|
6 |
<th><?php _e('Disabled', 'cmp-coming-soon-maintenance');?></th>
|
7 |
<td>
|
8 |
+
<p class="no-margin"><?php _e('Footer is not supported by the selected Theme.', 'cmp-coming-soon-maintenance');?></p>
|
9 |
</td>
|
10 |
</tr>
|
11 |
|
inc/settings/settings-logo-disabled.php
CHANGED
@@ -33,7 +33,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
33 |
</fieldset>
|
34 |
</th>
|
35 |
<td>
|
36 |
-
<p class="disabled-logo"><?php _e('Logo settings is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
|
37 |
</td>
|
38 |
|
39 |
</tr>
|
33 |
</fieldset>
|
34 |
</th>
|
35 |
<td>
|
36 |
+
<p class="disabled-logo"><?php _e('Logo settings is not supported by the selected Theme.', 'cmp-coming-soon-maintenance');?></p>
|
37 |
</td>
|
38 |
|
39 |
</tr>
|
inc/settings/settings-slider-disabled.php
CHANGED
@@ -27,7 +27,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
27 |
</th>
|
28 |
|
29 |
<td id="slider-disabled">
|
30 |
-
<p><?php _e('Slider settings is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
|
31 |
</td>
|
32 |
|
33 |
</table>
|
27 |
</th>
|
28 |
|
29 |
<td id="slider-disabled">
|
30 |
+
<p><?php _e('Slider settings is not supported by the selected Theme.', 'cmp-coming-soon-maintenance');?></p>
|
31 |
</td>
|
32 |
|
33 |
</table>
|
inc/settings/settings-special_effects-disabled.php
CHANGED
@@ -36,7 +36,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
36 |
|
37 |
<td>
|
38 |
<fieldset class="special-effect-switch disabled">
|
39 |
-
<p><?php _e('Special Effects are not supported by selected Theme. Please activate another Theme with Special Effects Support.', 'cmp-coming-soon-maintenance')?></p>
|
40 |
|
41 |
</fieldset>
|
42 |
|
36 |
|
37 |
<td>
|
38 |
<fieldset class="special-effect-switch disabled">
|
39 |
+
<p><?php _e('Special Effects are not supported by the selected Theme. Please activate another Theme with Special Effects Support.', 'cmp-coming-soon-maintenance')?></p>
|
40 |
|
41 |
</fieldset>
|
42 |
|
inc/settings/settings-subscribe-disabled.php
CHANGED
@@ -35,7 +35,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
35 |
</th>
|
36 |
|
37 |
<td id="subscribe-disabled">
|
38 |
-
<p><?php _e('Subscribe Form is not supported by selected Theme.', 'cmp-coming-soon-maintenance');?></p>
|
39 |
</td>
|
40 |
|
41 |
</tbody>
|
35 |
</th>
|
36 |
|
37 |
<td id="subscribe-disabled">
|
38 |
+
<p><?php _e('Subscribe Form is not supported by the selected Theme.', 'cmp-coming-soon-maintenance');?></p>
|
39 |
</td>
|
40 |
|
41 |
</tbody>
|
inc/settings/settings-subscribe.php
CHANGED
@@ -9,6 +9,9 @@ if (isset($_POST['niteoCS_subscribe_type']) && is_numeric($_POST['niteoCS_subscr
|
|
9 |
if (isset($_POST['niteoCS_subscribe_label'])) {
|
10 |
update_option('niteoCS_subscribe_label', $this->niteo_sanitize_html($_POST['niteoCS_subscribe_label']));
|
11 |
}
|
|
|
|
|
|
|
12 |
|
13 |
if ( isset($_POST['niteoCS_subscribe_code']) ) {
|
14 |
$shortcode = str_replace('"', '\'', $_POST['niteoCS_subscribe_code']);
|
@@ -48,10 +51,20 @@ if (isset($_POST['niteoCS_recaptcha_site'])) {
|
|
48 |
if ( isset($_POST['niteoCS_subscribe_title']) ) {
|
49 |
update_option('niteoCS_subscribe_title', esc_html( $_POST['niteoCS_subscribe_title']) );
|
50 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
if (isset($_POST['niteoCS_subs_img_id']) && ( is_numeric($_POST['niteoCS_subs_img_id']) || empty($_POST['niteoCS_subs_img_id']))) {
|
53 |
update_option('niteoCS_subs_img_id', sanitize_text_field( $_POST['niteoCS_subs_img_id']) );
|
54 |
}
|
|
|
|
|
|
|
|
|
55 |
|
56 |
|
57 |
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
@@ -79,6 +92,36 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
79 |
} else {
|
80 |
update_option('niteoCS_subscribe_gdpr_checkbox', '0');
|
81 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
|
84 |
|
@@ -90,6 +133,7 @@ $niteoCS_subscribe_code = get_option('niteoCS_subscribe_code');
|
|
90 |
$niteoCS_subscribe_label = stripslashes(get_option('niteoCS_subscribe_label'));
|
91 |
$niteoCS_subscribers_list = get_option('niteoCS_subscribers_list');
|
92 |
$niteoCS_subscribe_title = stripslashes( get_option('niteoCS_subscribe_title', 'SUBSCRIBE US') );
|
|
|
93 |
|
94 |
$subscribe_method = get_option('niteoCS_subscribe_method', 'cmp');
|
95 |
$mailchimp_apikey = get_option('niteoCS_mailchimp_apikey', '');
|
@@ -100,19 +144,34 @@ $mailster_list_selected = get_option('niteoCS_mailster_list_selected');
|
|
100 |
$mailoptin_selected = get_option('niteoCS_mailoptin_selected');
|
101 |
|
102 |
|
103 |
-
$recaptcha_status
|
104 |
-
$recaptcha_secret
|
105 |
-
$recaptcha_site
|
106 |
-
$niteoCS_subs_img_id
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
// get logo url from id
|
109 |
if ( $niteoCS_subs_img_id != '' ) {
|
110 |
$subs_img_url = wp_get_attachment_image_src($niteoCS_subs_img_id, 'large');
|
111 |
-
if ( isset($subs_img_url[0]) ){
|
112 |
$subs_img_url = $subs_img_url[0];
|
113 |
}
|
114 |
}
|
115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
|
117 |
<div class="table-wrapper content" id="subscribe-section">
|
118 |
<h3><?php _e('Subscribe Form', 'cmp-coming-soon-maintenance');?></h3>
|
@@ -175,7 +234,11 @@ if ( $niteoCS_subs_img_id != '' ) {
|
|
175 |
</td>
|
176 |
|
177 |
<td class="subscribe-switch x2">
|
178 |
-
<
|
|
|
|
|
|
|
|
|
179 |
<p><?php _e('CMP Subscribe form will be used. It is guaranteed to always match selected CMP Theme\'s style.', 'cmp-coming-soon-maintenance');?></p>
|
180 |
|
181 |
<h4 class="subscribe" for="niteoCS_subscribe_label"><?php _e('Subscribe Form message (can be GDPR or any custom message). Supports anchor HTML tags.', 'cmp-coming-soon-maintenance');?></h4>
|
@@ -183,7 +246,6 @@ if ( $niteoCS_subs_img_id != '' ) {
|
|
183 |
<label><input type="checkbox" name="niteoCS_subscribe_gdpr_checkbox" value="1" <?php checked( '1', get_option( 'niteoCS_subscribe_gdpr_checkbox', '0' ) ); ?> class="regular-text code"><?php _e('Display GDPR Checkbox', 'cmp-coming-soon-maintenance');?></label>
|
184 |
<br>
|
185 |
<p class="cmp-hint"><?php printf( __('* 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>
|
186 |
-
|
187 |
</fieldset>
|
188 |
|
189 |
<?php if ( $themeslug === 'atlas' ) : ?>
|
@@ -201,6 +263,42 @@ if ( $niteoCS_subs_img_id != '' ) {
|
|
201 |
<?php endif; ?>
|
202 |
|
203 |
<fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
<h4><?php _e('Select how to save your Subscribers', 'cmp-coming-soon-maintenance');?></h4>
|
205 |
<select name="niteoCS_subscribe_method" id ="niteoCS_subscribe_method" class="subscribe-method">
|
206 |
<option value="cmp" <?php selected( 'cmp', $subscribe_method ); ?>><?php _e('CMP Custom Subscribe List', 'cmp-coming-soon-maintenance');?></option>
|
@@ -212,7 +310,7 @@ if ( $niteoCS_subs_img_id != '' ) {
|
|
212 |
|
213 |
<div class="subscribe-method cmp">
|
214 |
<p><?php _e( 'Emails will be stored in custom CMP list with CSV export support. If you ever delete CMP plugin then subscriber list will be purged as well.', 'cmp-coming-soon-maintenance' );?></p>
|
215 |
-
<p><?php _e( 'Total Subscribers: ', 'cmp-coming-soon-maintenance' );?><a href="<?php echo admin_url(); ?>admin.php?page=cmp-subscribers"><?php echo $niteoCS_subscribers_list ? count( $niteoCS_subscribers_list ) : '0';?></a></p>
|
216 |
</div>
|
217 |
|
218 |
<div class="subscribe-method mailchimp">
|
9 |
if (isset($_POST['niteoCS_subscribe_label'])) {
|
10 |
update_option('niteoCS_subscribe_label', $this->niteo_sanitize_html($_POST['niteoCS_subscribe_label']));
|
11 |
}
|
12 |
+
if (isset($_POST['niteoCS_subscribe_label_popup'])) {
|
13 |
+
update_option('niteoCS_subscribe_label_popup', $this->niteo_sanitize_html($_POST['niteoCS_subscribe_label_popup']));
|
14 |
+
}
|
15 |
|
16 |
if ( isset($_POST['niteoCS_subscribe_code']) ) {
|
17 |
$shortcode = str_replace('"', '\'', $_POST['niteoCS_subscribe_code']);
|
51 |
if ( isset($_POST['niteoCS_subscribe_title']) ) {
|
52 |
update_option('niteoCS_subscribe_title', esc_html( $_POST['niteoCS_subscribe_title']) );
|
53 |
}
|
54 |
+
if ( isset($_POST['niteoCS_subscribe_popup_title']) ) {
|
55 |
+
update_option('niteoCS_subscribe_popup_title', esc_html( $_POST['niteoCS_subscribe_popup_title']) );
|
56 |
+
}
|
57 |
+
if ( isset($_POST['niteoCS_subscribe_popup_time']) ) {
|
58 |
+
update_option('niteoCS_subscribe_popup_time', esc_html( $_POST['niteoCS_subscribe_popup_time']) );
|
59 |
+
}
|
60 |
|
61 |
if (isset($_POST['niteoCS_subs_img_id']) && ( is_numeric($_POST['niteoCS_subs_img_id']) || empty($_POST['niteoCS_subs_img_id']))) {
|
62 |
update_option('niteoCS_subs_img_id', sanitize_text_field( $_POST['niteoCS_subs_img_id']) );
|
63 |
}
|
64 |
+
|
65 |
+
if (isset($_POST['niteoCS_subs_img_popup_id']) && ( is_numeric($_POST['niteoCS_subs_img_popup_id']) || empty($_POST['niteoCS_subs_img_popup_id']))) {
|
66 |
+
update_option('niteoCS_subs_img_popup_id', sanitize_text_field( $_POST['niteoCS_subs_img_popup_id']) );
|
67 |
+
}
|
68 |
|
69 |
|
70 |
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
92 |
} else {
|
93 |
update_option('niteoCS_subscribe_gdpr_checkbox', '0');
|
94 |
}
|
95 |
+
|
96 |
+
if ( isset($_POST['niteoCS_subscribe_popup']) ) {
|
97 |
+
update_option('niteoCS_subscribe_popup', $this->sanitize_checkbox($_POST['niteoCS_subscribe_popup']));
|
98 |
+
} else {
|
99 |
+
update_option('niteoCS_subscribe_popup', '0');
|
100 |
+
}
|
101 |
+
|
102 |
+
if ( isset($_POST['niteoCS_subscribe_gdpr_checkbox_popup']) ) {
|
103 |
+
update_option('niteoCS_subscribe_gdpr_checkbox_popup', $this->sanitize_checkbox($_POST['niteoCS_subscribe_gdpr_checkbox_popup']));
|
104 |
+
} else {
|
105 |
+
update_option('niteoCS_subscribe_gdpr_checkbox_popup', '0');
|
106 |
+
}
|
107 |
+
|
108 |
+
if ( isset($_POST['niteoCS_subscribe_firstname_popup']) ) {
|
109 |
+
update_option('niteoCS_subscribe_firstname_popup', $this->sanitize_checkbox($_POST['niteoCS_subscribe_firstname_popup']));
|
110 |
+
} else {
|
111 |
+
update_option('niteoCS_subscribe_firstname_popup', '0');
|
112 |
+
}
|
113 |
+
|
114 |
+
if ( isset($_POST['niteoCS_subscribe_lastname_popup']) ) {
|
115 |
+
update_option('niteoCS_subscribe_lastname_popup', $this->sanitize_checkbox($_POST['niteoCS_subscribe_lastname_popup']));
|
116 |
+
} else {
|
117 |
+
update_option('niteoCS_subscribe_lastname_popup', '0');
|
118 |
+
}
|
119 |
+
|
120 |
+
if ( isset($_POST['niteoCS_inpage_subscribe']) ) {
|
121 |
+
update_option('niteoCS_inpage_subscribe', $this->sanitize_checkbox($_POST['niteoCS_inpage_subscribe']));
|
122 |
+
} else {
|
123 |
+
update_option('niteoCS_inpage_subscribe', '0');
|
124 |
+
}
|
125 |
}
|
126 |
|
127 |
|
133 |
$niteoCS_subscribe_label = stripslashes(get_option('niteoCS_subscribe_label'));
|
134 |
$niteoCS_subscribers_list = get_option('niteoCS_subscribers_list');
|
135 |
$niteoCS_subscribe_title = stripslashes( get_option('niteoCS_subscribe_title', 'SUBSCRIBE US') );
|
136 |
+
$inpage_subscribe = get_option('niteoCS_inpage_subscribe', '1');
|
137 |
|
138 |
$subscribe_method = get_option('niteoCS_subscribe_method', 'cmp');
|
139 |
$mailchimp_apikey = get_option('niteoCS_mailchimp_apikey', '');
|
144 |
$mailoptin_selected = get_option('niteoCS_mailoptin_selected');
|
145 |
|
146 |
|
147 |
+
$recaptcha_status = get_option('niteoCS_recaptcha_status', '0');
|
148 |
+
$recaptcha_secret = get_option('niteoCS_recaptcha_secret', '');
|
149 |
+
$recaptcha_site = get_option('niteoCS_recaptcha_site', '');
|
150 |
+
$niteoCS_subs_img_id = get_option('niteoCS_subs_img_id', '');
|
151 |
+
$subscribe_popup = get_option('niteoCS_subscribe_popup', '0');
|
152 |
+
$subscribe_popup_title = stripslashes( get_option('niteoCS_subscribe_popup_title', get_option('niteoCS_subscribe_title', 'SUBSCRIBE US')) );
|
153 |
+
$subscribe_label_popup = stripslashes(get_option('niteoCS_subscribe_label_popup'));
|
154 |
+
$subs_gdpr_popup = get_option( 'niteoCS_subscribe_gdpr_checkbox_popup', '0' );
|
155 |
+
$subs_firstname_popup = get_option( 'niteoCS_subscribe_firstname_popup', '0' );
|
156 |
+
$subs_lastname_popup = get_option( 'niteoCS_subscribe_lastname_popup', '0' );
|
157 |
+
$subscribe_popup_time = get_option('niteoCS_subscribe_popup_time', '10');
|
158 |
+
$niteoCS_subs_img_popup_id = get_option('niteoCS_subs_img_popup_id', '');
|
159 |
|
160 |
// get logo url from id
|
161 |
if ( $niteoCS_subs_img_id != '' ) {
|
162 |
$subs_img_url = wp_get_attachment_image_src($niteoCS_subs_img_id, 'large');
|
163 |
+
if ( isset($subs_img_url[0]) ) {
|
164 |
$subs_img_url = $subs_img_url[0];
|
165 |
}
|
166 |
}
|
167 |
+
|
168 |
+
|
169 |
+
if ( $niteoCS_subs_img_popup_id != '' ) {
|
170 |
+
$subs_img_url_popup = wp_get_attachment_image_src($niteoCS_subs_img_popup_id, 'large');
|
171 |
+
if ( isset($subs_img_url_popup[0]) ) {
|
172 |
+
$subs_img_url_popup = $subs_img_url_popup[0];
|
173 |
+
}
|
174 |
+
} ?>
|
175 |
|
176 |
<div class="table-wrapper content" id="subscribe-section">
|
177 |
<h3><?php _e('Subscribe Form', 'cmp-coming-soon-maintenance');?></h3>
|
234 |
</td>
|
235 |
|
236 |
<td class="subscribe-switch x2">
|
237 |
+
<label for="cmp-inpage-subscribe" style="font-weight: 600">
|
238 |
+
<input type="checkbox" class="inpage-subscribe" name="niteoCS_inpage_subscribe" id="cmp-inpage-subscribe" value="1" <?php checked('1', $inpage_subscribe);?>><?php _e('Enable In Page Subscribe Form', 'cmp-coming-soon-maintenance');?>
|
239 |
+
</label>
|
240 |
+
|
241 |
+
<fieldset class="inpage-subscribe-switch x1">
|
242 |
<p><?php _e('CMP Subscribe form will be used. It is guaranteed to always match selected CMP Theme\'s style.', 'cmp-coming-soon-maintenance');?></p>
|
243 |
|
244 |
<h4 class="subscribe" for="niteoCS_subscribe_label"><?php _e('Subscribe Form message (can be GDPR or any custom message). Supports anchor HTML tags.', 'cmp-coming-soon-maintenance');?></h4>
|
246 |
<label><input type="checkbox" name="niteoCS_subscribe_gdpr_checkbox" value="1" <?php checked( '1', get_option( 'niteoCS_subscribe_gdpr_checkbox', '0' ) ); ?> class="regular-text code"><?php _e('Display GDPR Checkbox', 'cmp-coming-soon-maintenance');?></label>
|
247 |
<br>
|
248 |
<p class="cmp-hint"><?php printf( __('* 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>
|
|
|
249 |
</fieldset>
|
250 |
|
251 |
<?php if ( $themeslug === 'atlas' ) : ?>
|
263 |
<?php endif; ?>
|
264 |
|
265 |
<fieldset>
|
266 |
+
<br>
|
267 |
+
<label for="cmp-subscribe-popup" style="font-weight: 600">
|
268 |
+
<input type="checkbox" class="subscribe-popup" name="niteoCS_subscribe_popup" id="cmp-subscribe-popup" value="1" <?php checked('1', $subscribe_popup);?>><?php _e('Enable Automatic Subscribe Popup', 'cmp-coming-soon-maintenance');?>
|
269 |
+
</label>
|
270 |
+
|
271 |
+
<div class="subscribe-popup-switch x1" style="margin-top:1em">
|
272 |
+
<h4><?php _e('Automatic Popup Timing in Seconds', 'cmp-coming-soon-maintenance');?></h4>
|
273 |
+
<input type="number" name="niteoCS_subscribe_popup_time" value="<?php echo esc_attr( $subscribe_popup_time ); ?>" min="1" max="60" class="regular-text"><br><br>
|
274 |
+
|
275 |
+
<h4><?php _e('Popup Title', 'cmp-coming-soon-maintenance');?></h4>
|
276 |
+
<input type="text" name="niteoCS_subscribe_popup_title" value="<?php echo esc_attr( $subscribe_popup_title ); ?>" class="regular-text"><br><br>
|
277 |
+
|
278 |
+
<h4 for="niteoCS_subscribe_label_popup"><?php _e('Popup Subscribe Form message (can be GDPR or any custom message). Supports anchor HTML tags.', 'cmp-coming-soon-maintenance');?></h4>
|
279 |
+
<textarea name="niteoCS_subscribe_label_popup" id="niteoCS_subscribe_label_popup" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>"><?php echo esc_attr( $subscribe_label_popup );?></textarea>
|
280 |
+
|
281 |
+
<label><input type="checkbox" name="niteoCS_subscribe_gdpr_checkbox_popup" value="1" <?php checked( '1', $subs_gdpr_popup ); ?> class="regular-text code"><?php _e('Display GDPR Checkbox', 'cmp-coming-soon-maintenance');?></label>
|
282 |
+
<br><br>
|
283 |
+
|
284 |
+
<label><input type="checkbox" name="niteoCS_subscribe_firstname_popup" value="1" <?php checked( '1', $subs_firstname_popup ); ?> class="regular-text code"><?php _e('Display Firstname Input', 'cmp-coming-soon-maintenance');?></label><br><br>
|
285 |
+
<label><input type="checkbox" name="niteoCS_subscribe_lastname_popup" value="1" <?php checked( '1', $subs_lastname_popup ); ?> class="regular-text code"><?php _e('Display Lastname Input', 'cmp-coming-soon-maintenance');?></label><br><br>
|
286 |
+
|
287 |
+
<h4 ><?php _e('Subscribe Popup Background Image', 'cmp-coming-soon-maintenance');?></h4>
|
288 |
+
<input type="hidden" class="widefat" id="niteoCS-subs-img-popup-id" name="niteoCS_subs_img_popup_id" value="<?php echo esc_attr( $niteoCS_subs_img_popup_id ); ?>" />
|
289 |
+
<input id="add-subs-img-popup" type="button" class="button" value="Select Popup Image" />
|
290 |
+
|
291 |
+
<div class="subs-img-popup-wrapper"><?php
|
292 |
+
if ( isset($subs_img_url_popup) && $subs_img_url_popup !== '' ) {
|
293 |
+
echo '<img src="'.esc_url($subs_img_url_popup).'" alt="Popup Image" style="max-width:300px">';
|
294 |
+
} ?></div>
|
295 |
+
<input id="delete-subs-img-popup" type="button" class="button" value="Remove Image" style="display:none"/>
|
296 |
+
|
297 |
+
</div>
|
298 |
+
</fieldset>
|
299 |
+
|
300 |
+
<fieldset>
|
301 |
+
<br>
|
302 |
<h4><?php _e('Select how to save your Subscribers', 'cmp-coming-soon-maintenance');?></h4>
|
303 |
<select name="niteoCS_subscribe_method" id ="niteoCS_subscribe_method" class="subscribe-method">
|
304 |
<option value="cmp" <?php selected( 'cmp', $subscribe_method ); ?>><?php _e('CMP Custom Subscribe List', 'cmp-coming-soon-maintenance');?></option>
|
310 |
|
311 |
<div class="subscribe-method cmp">
|
312 |
<p><?php _e( 'Emails will be stored in custom CMP list with CSV export support. If you ever delete CMP plugin then subscriber list will be purged as well.', 'cmp-coming-soon-maintenance' );?></p>
|
313 |
+
<p style="margin-bottom:0"><?php _e( 'Total Subscribers: ', 'cmp-coming-soon-maintenance' );?><a href="<?php echo admin_url(); ?>admin.php?page=cmp-subscribers"><?php echo $niteoCS_subscribers_list ? count( $niteoCS_subscribers_list ) : '0';?></a></p>
|
314 |
</div>
|
315 |
|
316 |
<div class="subscribe-method mailchimp">
|
js/cmp-advanced.js
CHANGED
@@ -49,6 +49,7 @@ jQuery(document).ready(function ($) {
|
|
49 |
toggle_settings('cmp-topbar-icon');
|
50 |
toggle_settings('countdown-toggle');
|
51 |
toggle_settings('mode-change-toggle');
|
|
|
52 |
toggle_settings('cmp-wpautop');
|
53 |
toggle_settings('cmp-cookienotice');
|
54 |
cmp_repeat_fields('head_scripts');
|
@@ -85,7 +86,12 @@ jQuery(document).ready(function ($) {
|
|
85 |
jQuery.post(ajaxurl, data, function (response) {
|
86 |
// if (response) {
|
87 |
jQuery('<iframe />')
|
88 |
-
.attr(
|
|
|
|
|
|
|
|
|
|
|
89 |
.appendTo('body')
|
90 |
.hide();
|
91 |
// }
|
@@ -237,15 +243,23 @@ jQuery(document).ready(function ($) {
|
|
237 |
}
|
238 |
|
239 |
function cmp_delete_field(field_id) {
|
240 |
-
jQuery('#wrapper-' + field_id + ' .target-repeater-fields').on(
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
}
|
251 |
});
|
49 |
toggle_settings('cmp-topbar-icon');
|
50 |
toggle_settings('countdown-toggle');
|
51 |
toggle_settings('mode-change-toggle');
|
52 |
+
toggle_settings('subscribe-toggle');
|
53 |
toggle_settings('cmp-wpautop');
|
54 |
toggle_settings('cmp-cookienotice');
|
55 |
cmp_repeat_fields('head_scripts');
|
86 |
jQuery.post(ajaxurl, data, function (response) {
|
87 |
// if (response) {
|
88 |
jQuery('<iframe />')
|
89 |
+
.attr(
|
90 |
+
'src',
|
91 |
+
ajaxurl +
|
92 |
+
'?action=cmp_ajax_export_settings&security=' +
|
93 |
+
jQuery('#cmp-export-json').data('security')
|
94 |
+
)
|
95 |
.appendTo('body')
|
96 |
.hide();
|
97 |
// }
|
243 |
}
|
244 |
|
245 |
function cmp_delete_field(field_id) {
|
246 |
+
jQuery('#wrapper-' + field_id + ' .target-repeater-fields').on(
|
247 |
+
'click',
|
248 |
+
'.delete-' + field_id,
|
249 |
+
function (e) {
|
250 |
+
e.preventDefault();
|
251 |
+
$(this).prev().remove();
|
252 |
+
$(this).remove();
|
253 |
+
}
|
254 |
+
);
|
255 |
+
|
256 |
+
jQuery('#wrapper-' + field_id + ' .source-repeater-fields').on(
|
257 |
+
'click',
|
258 |
+
'.delete-' + field_id,
|
259 |
+
function (e) {
|
260 |
+
e.preventDefault();
|
261 |
+
$(this).prev().val('');
|
262 |
+
}
|
263 |
+
);
|
264 |
}
|
265 |
});
|
js/cmp-advanced.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function
|
1 |
+
jQuery(document).ready(function(e){var t=document.location.hash.substring(1),a=jQuery("#csoptions").attr("action"),n=!1;function o(e){jQuery("."+e).change(function(){var t=jQuery("."+e+":checked").val();t=void 0===(t=jQuery.isNumeric(t)?"x"+t:t)?"x0":t,jQuery("."+e+"-switch."+t).css("display","block"),jQuery("."+e+"-switch:not(."+t+")").css("display","none")}),jQuery("."+e).first().trigger("change")}function s(t){jQuery("#add-"+t).click(function(a){a.preventDefault();var n=jQuery("#wrapper-"+t),o=jQuery("#wrapper-"+t+" .target-repeater-fields"),s=n.find(".source-repeater-fields").children().clone();e(s[0]).val(""),e(o).append(s)}),function(t){jQuery("#wrapper-"+t+" .target-repeater-fields").on("click",".delete-"+t,function(t){t.preventDefault(),e(this).prev().remove(),e(this).remove()}),jQuery("#wrapper-"+t+" .source-repeater-fields").on("click",".delete-"+t,function(t){t.preventDefault(),e(this).prev().val("")})}(t)}navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery('.nav-tab-wrapper .nav-tab[data-tab="'+e+'"]').addClass("nav-tab-active"),jQuery(".cmp-coming-soon-maintenance .table-wrapper."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .comingsoon."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(."+e+")").css("display","none"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(."+e).css("display","none"),jQuery(".cmp-coming-soon-maintenance .comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".cmp-coming-soon-maintenance .submit").css("display","none"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a)):(jQuery(".cmp-coming-soon-maintenance .submit").css("display","block"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a+"#"+e))},""!=t?navtab(t):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){t=document.location.hash.substring(1),navtab(t)},jQuery(".cmp-coming-soon-maintenance .nav-tab").click(function(e){e.preventDefault(),t=jQuery(this).data("tab"),document.location.hash=t}),o("page-whitelist"),o("cmp-bypass"),o("cmp-topbar-icon"),o("countdown-toggle"),o("mode-change-toggle"),o("subscribe-toggle"),o("cmp-wpautop"),o("cmp-cookienotice"),s("head_scripts"),s("footer_scripts"),jQuery("#cmp-import-json").on("change",function(t){jQuery(".import-json-label").attr("data-default",t.target.files[0].name);var a=new FileReader;a.onload=function(e){jQuery("#cmp-import-input").val(e.target.result)},a.readAsText(t.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 t={action:"cmp_ajax_export_settings",security:jQuery(this).data("security")};jQuery.post(ajaxurl,t,function(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 t=jQuery("#cmp-import-input").val(),a=jQuery(".import-json-label");if(!jQuery("#cmp-import-media").is(":checked")){var o=new Array("niteoCS_banner_id","niteoCS_logo_id","niteoCS_seo_img_id");(t=jQuery.parseJSON(t)).map(function(e,a){for(var n in e)o.indexOf(n)>-1&&t.splice(a,1)}),t=JSON.stringify(t)}var s={action:"cmp_ajax_import_settings",security:jQuery(this).data("security"),json:t};n=!0;var c=(new Date).getTime();a.html('<i class="fa fa-cog fa-spin" aria-hidden="true"></i> importing..'),a.attr("data-default",""),jQuery.post(ajaxurl,s,function(e){if(e){var t=(new Date).getTime()-c,n=jQuery.parseJSON(e);t>2e3?("success"==n.result?a.addClass("import-success"):a.addClass("import-fail"),a.html(""),a.attr("data-default",n.message)):setTimeout(function(){"success"==n.result?a.addClass("import-success"):a.addClass("import-fail"),a.html(""),a.attr("data-default",n.message)},2e3-t)}})}),jQuery(".cmp-whitelist-select, .cmp-blacklist, .cmp-user_roles").select2({width:"calc(100% - 1em)",placeholder:"Click to select.."}),jQuery('select[name="niteoCS_topbar_version"]').select2({width:"calc(100% - 1em)",minimumResultsForSearch:-1}),jQuery("#copy-bypass").click(function(e){e.preventDefault(),function(e){var t=document.createElement("textarea");t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.width="2em",t.style.height="2em",t.style.padding=0,t.style.border="none",t.style.outline="none",t.style.boxShadow="none",t.style.background="transparent",t.value=e,document.body.appendChild(t),t.focus(),t.select();try{var a=document.execCommand("copy")?"successful":"unsuccessful";console.log("Copying text command was "+a)}catch(e){console.log("Oops, unable to copy")}document.body.removeChild(t)}(jQuery("#bypass-code").html())})});
|
js/settings.js
CHANGED
@@ -42,11 +42,13 @@ jQuery(document).ready(function ($) {
|
|
42 |
navtab(tab);
|
43 |
};
|
44 |
|
45 |
-
jQuery('.cmp-coming-soon-maintenance .nav-tab:not(.theme-preview):not(.advanced)').click(
|
46 |
-
e
|
47 |
-
|
48 |
-
|
49 |
-
|
|
|
|
|
50 |
|
51 |
// update range inputs on change
|
52 |
update_range('.cmp-coming-soon-maintenance .blur-range', 'span', 'html');
|
@@ -65,6 +67,7 @@ jQuery(document).ready(function ($) {
|
|
65 |
media_upload_button('video-thumb', false, 'image', 'img');
|
66 |
media_upload_button('video-local', false, 'video', 'video');
|
67 |
media_upload_button('subs-img', false, 'image', 'img');
|
|
|
68 |
media_upload_button('avatar', false, 'image', 'img');
|
69 |
media_upload_button('gallery', true, 'image', 'img');
|
70 |
|
@@ -84,6 +87,8 @@ jQuery(document).ready(function ($) {
|
|
84 |
toggle_settings('login-icon');
|
85 |
toggle_settings('custom-mobile-imgs');
|
86 |
toggle_settings('lang-switcher');
|
|
|
|
|
87 |
|
88 |
toggle_select('counter-action');
|
89 |
toggle_select('subscribe-method');
|
@@ -92,16 +97,21 @@ jQuery(document).ready(function ($) {
|
|
92 |
toggle_select('progress-bar-type');
|
93 |
|
94 |
// change all selects to select2
|
95 |
-
jQuery(
|
|
|
|
|
96 |
width: '100%',
|
97 |
minimumResultsForSearch: -1,
|
98 |
placeholder: 'Click to select..',
|
99 |
});
|
100 |
|
101 |
jQuery('.cmp-coming-soon-maintenance #cmp-status').click(function () {
|
102 |
-
jQuery('.cmp-coming-soon-maintenance .cmp-status input[type=radio]').prop(
|
103 |
-
|
104 |
-
|
|
|
|
|
|
|
105 |
jQuery('#cmp-toggle-adminbar').toggleClass('status-1');
|
106 |
jQuery('.cmp-status-pages').fadeToggle();
|
107 |
});
|
@@ -144,7 +154,9 @@ jQuery(document).ready(function ($) {
|
|
144 |
e.preventDefault();
|
145 |
|
146 |
var media_wrapper = jQuery('.cmp-coming-soon-maintenance #unsplash-media'),
|
147 |
-
unsplash_feed = jQuery(
|
|
|
|
|
148 |
unsp_url = '',
|
149 |
feat = '',
|
150 |
custom_str = '',
|
@@ -189,20 +201,26 @@ jQuery(document).ready(function ($) {
|
|
189 |
var loadingTimeout = setTimeout(function () {
|
190 |
jQuery('#test-unsplash').prop('disabled', false);
|
191 |
jQuery('#test-unsplash').text('Display Unsplash Photo');
|
192 |
-
jQuery('#unsplash-media').html(
|
|
|
|
|
193 |
}, 5000);
|
194 |
|
195 |
if (unsplash.response == '200') {
|
196 |
var unsplash = jQuery.parseJSON(unsplash.body);
|
197 |
|
198 |
if (unsplash[0]) {
|
199 |
-
var img =
|
|
|
|
|
200 |
var author = unsplash[0]['user']['name'];
|
201 |
var author_url = unsplash[0]['user']['links']['html'];
|
202 |
var img_url = unsplash[0]['links']['html'];
|
203 |
var img_id = unsplash[0]['id'];
|
204 |
} else {
|
205 |
-
var img =
|
|
|
|
|
206 |
var author = unsplash['user']['name'];
|
207 |
var author_url = unsplash['user']['links']['html'];
|
208 |
var img_url = unsplash['links']['html'];
|
@@ -215,14 +233,30 @@ jQuery(document).ready(function ($) {
|
|
215 |
jQuery(this).fadeIn();
|
216 |
jQuery('#test-unsplash').prop('disabled', false);
|
217 |
jQuery('#test-unsplash').text('Display Unsplash Photo');
|
218 |
-
jQuery('.unsplash-id').html(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
jQuery('.blur-range').trigger('input');
|
220 |
clearTimeout(loadingTimeout);
|
221 |
});
|
222 |
} else {
|
223 |
jQuery('.cmp-coming-soon-maintenance #test-unsplash').prop('disabled', false);
|
224 |
jQuery('.cmp-coming-soon-maintenance #test-unsplash').text('Display Unsplash Photo');
|
225 |
-
jQuery('.cmp-coming-soon-maintenance #unsplash-media').html(
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
clearTimeout(loadingTimeout);
|
227 |
}
|
228 |
});
|
@@ -250,7 +284,9 @@ jQuery(document).ready(function ($) {
|
|
250 |
if (ytID && ytID[7].length == 11) {
|
251 |
jQuery('.cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper').html('');
|
252 |
var ytThumb = 'https://img.youtube.com/vi/' + ytID[7] + '/maxresdefault.jpg';
|
253 |
-
jQuery('.cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper').append(
|
|
|
|
|
254 |
jQuery('.cmp-coming-soon-maintenance .blur-range').trigger('input');
|
255 |
} else {
|
256 |
jQuery('.cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper').html('');
|
@@ -263,7 +299,11 @@ jQuery(document).ready(function ($) {
|
|
263 |
var videoURL = jQuery('#niteoCS-video-local-id').data('url');
|
264 |
|
265 |
if (videoURL != '') {
|
266 |
-
jQuery('.cmp-coming-soon-maintenance .video-local-wrapper').html(
|
|
|
|
|
|
|
|
|
267 |
}
|
268 |
}
|
269 |
};
|
@@ -304,21 +344,39 @@ jQuery(document).ready(function ($) {
|
|
304 |
// preview gradient on select change
|
305 |
jQuery('.cmp-coming-soon-maintenance select.background-gradient')
|
306 |
.on('change', function () {
|
307 |
-
var gradient = jQuery(
|
|
|
|
|
308 |
|
309 |
if (gradient == 'custom') {
|
310 |
jQuery('.cmp-coming-soon-maintenance .custom-gradient').css('display', 'block');
|
311 |
jQuery('.cmp-coming-soon-maintenance .gradient-preview').css({
|
312 |
-
background:
|
313 |
-
|
314 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
315 |
});
|
316 |
} else {
|
317 |
colors = gradient.split(':');
|
318 |
jQuery('.cmp-coming-soon-maintenance .custom-gradient').css('display', 'none');
|
319 |
jQuery('.cmp-coming-soon-maintenance .gradient-preview').css({
|
320 |
background: '-moz-linear-gradient(-45deg, ' + colors[0] + ' 0%, ' + colors[1] + ' 100%)',
|
321 |
-
background:
|
|
|
322 |
background: 'linear-gradient(135deg, ' + colors[0] + ' 0%, ' + colors[1] + ' 100%)',
|
323 |
});
|
324 |
}
|
@@ -336,9 +394,24 @@ jQuery(document).ready(function ($) {
|
|
336 |
jQuery('.cmp-coming-soon-maintenance #niteoCS_gradient_one').wpColorPicker({
|
337 |
change: function (event, ui) {
|
338 |
jQuery('.gradient-preview').css({
|
339 |
-
background:
|
340 |
-
|
341 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
});
|
343 |
},
|
344 |
});
|
@@ -347,9 +420,24 @@ jQuery(document).ready(function ($) {
|
|
347 |
jQuery('.cmp-coming-soon-maintenance #niteoCS_gradient_two').wpColorPicker({
|
348 |
change: function (event, ui) {
|
349 |
jQuery('.gradient-preview').css({
|
350 |
-
background:
|
351 |
-
|
352 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
});
|
354 |
},
|
355 |
});
|
@@ -362,7 +450,10 @@ jQuery(document).ready(function ($) {
|
|
362 |
});
|
363 |
|
364 |
// get overlay color and apply it to Background thumbnails
|
365 |
-
jQuery('.cmp-coming-soon-maintenance .thumbnail-overlay').css(
|
|
|
|
|
|
|
366 |
|
367 |
// OVERLAY GRADIENT
|
368 |
jQuery('.cmp-coming-soon-maintenance select.overlay-gradient').on('change', function () {
|
@@ -375,8 +466,10 @@ jQuery(document).ready(function ($) {
|
|
375 |
var gradient_two = jQuery('#niteoCS_overlay_gradient_two').val();
|
376 |
|
377 |
jQuery('.cmp-coming-soon-maintenance .thumbnail-overlay').css({
|
378 |
-
background:
|
379 |
-
|
|
|
|
|
380 |
background: 'linear-gradient(135deg, ' + gradient_one + ' 0%, ' + gradient_two + ' 100%)',
|
381 |
});
|
382 |
} else {
|
@@ -394,9 +487,24 @@ jQuery(document).ready(function ($) {
|
|
394 |
jQuery('#niteoCS_overlay_gradient_one').wpColorPicker({
|
395 |
change: function (event, ui) {
|
396 |
jQuery('.thumbnail-overlay').css({
|
397 |
-
background:
|
398 |
-
|
399 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
400 |
});
|
401 |
},
|
402 |
});
|
@@ -405,9 +513,24 @@ jQuery(document).ready(function ($) {
|
|
405 |
jQuery('#niteoCS_overlay_gradient_two').wpColorPicker({
|
406 |
change: function (event, ui) {
|
407 |
jQuery('.thumbnail-overlay').css({
|
408 |
-
background:
|
409 |
-
|
410 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
});
|
412 |
},
|
413 |
});
|
@@ -450,24 +573,40 @@ jQuery(document).ready(function ($) {
|
|
450 |
jQuery('.cmp-coming-soon-maintenance .blur-range')
|
451 |
.on('input', function () {
|
452 |
var value = jQuery(this).val();
|
453 |
-
jQuery('.cmp-coming-soon-maintenance .background-thumb-wrapper img:not(.no-blur)').css(
|
|
|
|
|
|
|
454 |
})
|
455 |
.trigger('input');
|
456 |
|
457 |
// banner pattern on change image preview
|
458 |
-
jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"]').on(
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
469 |
}
|
470 |
-
|
471 |
|
472 |
// preview animation
|
473 |
jQuery('.cmp-coming-soon-maintenance .heading-animation').on('change', function () {
|
@@ -496,7 +635,10 @@ jQuery(document).ready(function ($) {
|
|
496 |
}
|
497 |
});
|
498 |
|
499 |
-
jQuery('.cmp-coming-soon-maintenance #niteoCS_socialmedia').attr(
|
|
|
|
|
|
|
500 |
};
|
501 |
|
502 |
// sortable UI - disabled on Mobile phones - input elements where not clickable...
|
@@ -597,7 +739,11 @@ jQuery(document).ready(function ($) {
|
|
597 |
file: update,
|
598 |
};
|
599 |
|
600 |
-
$parent
|
|
|
|
|
|
|
|
|
601 |
|
602 |
jQuery.post(ajaxurl, data, function (response) {
|
603 |
response = response.trim();
|
@@ -605,13 +751,21 @@ jQuery(document).ready(function ($) {
|
|
605 |
if (response == 'success') {
|
606 |
setTimeout(function () {
|
607 |
$parent.removeClass('notice-warning').addClass('notice-success');
|
608 |
-
$parent
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
}, 1500);
|
610 |
} else {
|
611 |
response = response.slice(0, -1);
|
612 |
var error = jQuery('p', jQuery(response)).text();
|
613 |
$parent.removeClass('notice-warning').addClass('notice-error');
|
614 |
-
$parent
|
|
|
|
|
615 |
}
|
616 |
});
|
617 |
});
|
@@ -690,7 +844,10 @@ jQuery(document).ready(function ($) {
|
|
690 |
// if premium and not installed, display buy button
|
691 |
if (purchased != '1' && type == 'premium') {
|
692 |
var buyURL = $wrapper.find('.cmp-purchase-theme').attr('href');
|
693 |
-
var buyButton =
|
|
|
|
|
|
|
694 |
}
|
695 |
|
696 |
// get screenshots
|
@@ -698,7 +855,8 @@ jQuery(document).ready(function ($) {
|
|
698 |
var arrows = '';
|
699 |
// if we have more screenshots, generate navigation arrows
|
700 |
if (Object.keys(screenshots).length > 1) {
|
701 |
-
arrows =
|
|
|
702 |
}
|
703 |
|
704 |
// generate html to append to theme-overlay
|
@@ -711,18 +869,32 @@ jQuery(document).ready(function ($) {
|
|
711 |
' </div>',
|
712 |
' <div class="theme-about">',
|
713 |
' <div class="theme-screenshots">',
|
714 |
-
' <div class="screenshot" style="background-image:url(\'' +
|
|
|
|
|
|
|
|
|
715 |
' </div>',
|
716 |
' <div class="theme-info">',
|
717 |
' <h2 class="theme-name">' + response['name'] + versionInfo + '</h2>',
|
718 |
-
' <p class="theme-author">By <a href="' +
|
|
|
|
|
|
|
|
|
719 |
noticeHtml,
|
720 |
buyButton,
|
721 |
' <div class="theme-description">' + response['description'] + '</div>',
|
722 |
' </div>',
|
723 |
' </div>',
|
724 |
' <div class="theme-actions">',
|
725 |
-
' <a href="https://niteothemes.com/cmp-coming-soon-maintenance/?theme=' +
|
|
|
|
|
|
|
|
|
|
|
|
|
726 |
' </div>',
|
727 |
' </div>',
|
728 |
'</div>',
|
@@ -829,7 +1001,11 @@ jQuery(document).ready(function ($) {
|
|
829 |
// Send the attachment URL to our custom image input field.
|
830 |
switch (element) {
|
831 |
case 'video':
|
832 |
-
$container.append(
|
|
|
|
|
|
|
|
|
833 |
break;
|
834 |
|
835 |
case 'background':
|
@@ -839,8 +1015,14 @@ jQuery(document).ready(function ($) {
|
|
839 |
case 'img':
|
840 |
default:
|
841 |
// if gallery - more than one image, it must be a graphic background, attach the first image to big coontainer
|
842 |
-
if (
|
843 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
844 |
|
845 |
// if gallery - more than one image, it must be a graphic background, attach all others images to normal wrapper
|
846 |
} else if (attachment.length > 1 && i !== 0) {
|
@@ -848,7 +1030,9 @@ jQuery(document).ready(function ($) {
|
|
848 |
|
849 |
// if single image, and it is a background image, attach it to big container as well
|
850 |
} else if ($container.find('.big-thumb').length) {
|
851 |
-
jQuery('.' + name + '-wrapper .big-thumb').append(
|
|
|
|
|
852 |
|
853 |
// all others images
|
854 |
} else {
|
@@ -883,7 +1067,9 @@ jQuery(document).ready(function ($) {
|
|
883 |
jQuery('.cmp-coming-soon-maintenance #connect-mailchimp').click(function (e) {
|
884 |
e.preventDefault();
|
885 |
|
886 |
-
var apikey = jQuery(
|
|
|
|
|
887 |
security = jQuery(this).data('security'),
|
888 |
button = jQuery(this);
|
889 |
|
@@ -892,7 +1078,9 @@ jQuery(document).ready(function ($) {
|
|
892 |
|
893 |
jQuery(this).prop('disabled', true);
|
894 |
|
895 |
-
jQuery(this).html(
|
|
|
|
|
896 |
|
897 |
var data = {
|
898 |
action: 'cmp_mailchimp_list_ajax',
|
@@ -907,7 +1095,9 @@ jQuery(document).ready(function ($) {
|
|
907 |
if (lists.response == 200) {
|
908 |
jQuery('#niteoCS_mailchimp_list').empty().prop('disabled', false);
|
909 |
jQuery.each(lists.lists, function (i, val) {
|
910 |
-
jQuery('#niteoCS_mailchimp_list').append(
|
|
|
|
|
911 |
});
|
912 |
} else {
|
913 |
jQuery('#niteoCS_mailchimp_list')
|
@@ -934,8 +1124,14 @@ jQuery(document).ready(function ($) {
|
|
934 |
value = jQuery.isNumeric(value) ? 'x' + value : value;
|
935 |
value = value === undefined ? 'off' : value;
|
936 |
|
937 |
-
jQuery('.cmp-coming-soon-maintenance .' + classname + '-switch.' + value).css(
|
938 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
939 |
});
|
940 |
|
941 |
jQuery('.cmp-coming-soon-maintenance .' + classname)
|
@@ -949,7 +1145,10 @@ jQuery(document).ready(function ($) {
|
|
949 |
value = jQuery.isNumeric(value) ? 'x' + value : value;
|
950 |
|
951 |
jQuery('.cmp-coming-soon-maintenance .' + classname + '.' + value).css('display', 'block');
|
952 |
-
jQuery('.cmp-coming-soon-maintenance .' + classname + ':not(.' + value + ')').css(
|
|
|
|
|
|
|
953 |
});
|
954 |
|
955 |
jQuery('.' + classname)
|
@@ -982,7 +1181,11 @@ jQuery(document).ready(function ($) {
|
|
982 |
// warn users about unsaved changes for preview
|
983 |
jQuery('.nav-tab-wrapper').on('click', '.theme-preview', function (e) {
|
984 |
if (jQuery('#csoptions fieldset:not(.skip-preview-validation *)').serialize() != settings) {
|
985 |
-
if (
|
|
|
|
|
|
|
|
|
986 |
e.preventDefault();
|
987 |
return false;
|
988 |
}
|
42 |
navtab(tab);
|
43 |
};
|
44 |
|
45 |
+
jQuery('.cmp-coming-soon-maintenance .nav-tab:not(.theme-preview):not(.advanced)').click(
|
46 |
+
function (e) {
|
47 |
+
e.preventDefault();
|
48 |
+
tab = jQuery(this).data('tab');
|
49 |
+
document.location.hash = tab;
|
50 |
+
}
|
51 |
+
);
|
52 |
|
53 |
// update range inputs on change
|
54 |
update_range('.cmp-coming-soon-maintenance .blur-range', 'span', 'html');
|
67 |
media_upload_button('video-thumb', false, 'image', 'img');
|
68 |
media_upload_button('video-local', false, 'video', 'video');
|
69 |
media_upload_button('subs-img', false, 'image', 'img');
|
70 |
+
media_upload_button('subs-img-popup', false, 'image', 'img');
|
71 |
media_upload_button('avatar', false, 'image', 'img');
|
72 |
media_upload_button('gallery', true, 'image', 'img');
|
73 |
|
87 |
toggle_settings('login-icon');
|
88 |
toggle_settings('custom-mobile-imgs');
|
89 |
toggle_settings('lang-switcher');
|
90 |
+
toggle_settings('subscribe-popup');
|
91 |
+
toggle_settings('inpage-subscribe');
|
92 |
|
93 |
toggle_select('counter-action');
|
94 |
toggle_select('subscribe-method');
|
97 |
toggle_select('progress-bar-type');
|
98 |
|
99 |
// change all selects to select2
|
100 |
+
jQuery(
|
101 |
+
'.cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )'
|
102 |
+
).select2({
|
103 |
width: '100%',
|
104 |
minimumResultsForSearch: -1,
|
105 |
placeholder: 'Click to select..',
|
106 |
});
|
107 |
|
108 |
jQuery('.cmp-coming-soon-maintenance #cmp-status').click(function () {
|
109 |
+
jQuery('.cmp-coming-soon-maintenance .cmp-status input[type=radio]').prop(
|
110 |
+
'disabled',
|
111 |
+
function (_, val) {
|
112 |
+
return !val;
|
113 |
+
}
|
114 |
+
);
|
115 |
jQuery('#cmp-toggle-adminbar').toggleClass('status-1');
|
116 |
jQuery('.cmp-status-pages').fadeToggle();
|
117 |
});
|
154 |
e.preventDefault();
|
155 |
|
156 |
var media_wrapper = jQuery('.cmp-coming-soon-maintenance #unsplash-media'),
|
157 |
+
unsplash_feed = jQuery(
|
158 |
+
'.cmp-coming-soon-maintenance .unsplash_banner select[name^="unsplash_feed"] option:selected'
|
159 |
+
).val(),
|
160 |
unsp_url = '',
|
161 |
feat = '',
|
162 |
custom_str = '',
|
201 |
var loadingTimeout = setTimeout(function () {
|
202 |
jQuery('#test-unsplash').prop('disabled', false);
|
203 |
jQuery('#test-unsplash').text('Display Unsplash Photo');
|
204 |
+
jQuery('#unsplash-media').html(
|
205 |
+
'<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>'
|
206 |
+
);
|
207 |
}, 5000);
|
208 |
|
209 |
if (unsplash.response == '200') {
|
210 |
var unsplash = jQuery.parseJSON(unsplash.body);
|
211 |
|
212 |
if (unsplash[0]) {
|
213 |
+
var img =
|
214 |
+
unsplash[0]['urls']['raw'] +
|
215 |
+
'?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588';
|
216 |
var author = unsplash[0]['user']['name'];
|
217 |
var author_url = unsplash[0]['user']['links']['html'];
|
218 |
var img_url = unsplash[0]['links']['html'];
|
219 |
var img_id = unsplash[0]['id'];
|
220 |
} else {
|
221 |
+
var img =
|
222 |
+
unsplash['urls']['raw'] +
|
223 |
+
'?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588';
|
224 |
var author = unsplash['user']['name'];
|
225 |
var author_url = unsplash['user']['links']['html'];
|
226 |
var img_url = unsplash['links']['html'];
|
233 |
jQuery(this).fadeIn();
|
234 |
jQuery('#test-unsplash').prop('disabled', false);
|
235 |
jQuery('#test-unsplash').text('Display Unsplash Photo');
|
236 |
+
jQuery('.unsplash-id').html(
|
237 |
+
'<a href="' +
|
238 |
+
img_url +
|
239 |
+
'" target="_blank">Photo</a> (ID: ' +
|
240 |
+
img_id +
|
241 |
+
') by <a href="' +
|
242 |
+
author_url +
|
243 |
+
'" target="_blank">' +
|
244 |
+
author +
|
245 |
+
'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a>'
|
246 |
+
);
|
247 |
jQuery('.blur-range').trigger('input');
|
248 |
clearTimeout(loadingTimeout);
|
249 |
});
|
250 |
} else {
|
251 |
jQuery('.cmp-coming-soon-maintenance #test-unsplash').prop('disabled', false);
|
252 |
jQuery('.cmp-coming-soon-maintenance #test-unsplash').text('Display Unsplash Photo');
|
253 |
+
jQuery('.cmp-coming-soon-maintenance #unsplash-media').html(
|
254 |
+
'<p>Error ' +
|
255 |
+
unsplash.response +
|
256 |
+
': <span style="text-transform:lowercase;">' +
|
257 |
+
JSON.parse(unsplash.body).errors +
|
258 |
+
'</span></p>'
|
259 |
+
);
|
260 |
clearTimeout(loadingTimeout);
|
261 |
}
|
262 |
});
|
284 |
if (ytID && ytID[7].length == 11) {
|
285 |
jQuery('.cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper').html('');
|
286 |
var ytThumb = 'https://img.youtube.com/vi/' + ytID[7] + '/maxresdefault.jpg';
|
287 |
+
jQuery('.cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper').append(
|
288 |
+
'<img src="' + ytThumb + '" alt=""/>'
|
289 |
+
);
|
290 |
jQuery('.cmp-coming-soon-maintenance .blur-range').trigger('input');
|
291 |
} else {
|
292 |
jQuery('.cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper').html('');
|
299 |
var videoURL = jQuery('#niteoCS-video-local-id').data('url');
|
300 |
|
301 |
if (videoURL != '') {
|
302 |
+
jQuery('.cmp-coming-soon-maintenance .video-local-wrapper').html(
|
303 |
+
'<video width="600" height="400" controls><source src="' +
|
304 |
+
videoURL +
|
305 |
+
'" type="video/mp4">Your browser does not support the video tag.</video>'
|
306 |
+
);
|
307 |
}
|
308 |
}
|
309 |
};
|
344 |
// preview gradient on select change
|
345 |
jQuery('.cmp-coming-soon-maintenance select.background-gradient')
|
346 |
.on('change', function () {
|
347 |
+
var gradient = jQuery(
|
348 |
+
'.cmp-coming-soon-maintenance select.background-gradient option:selected'
|
349 |
+
).val();
|
350 |
|
351 |
if (gradient == 'custom') {
|
352 |
jQuery('.cmp-coming-soon-maintenance .custom-gradient').css('display', 'block');
|
353 |
jQuery('.cmp-coming-soon-maintenance .gradient-preview').css({
|
354 |
+
background:
|
355 |
+
'-moz-linear-gradient(-45deg, ' +
|
356 |
+
jQuery('#niteoCS_gradient_one').val() +
|
357 |
+
' 0%, ' +
|
358 |
+
jQuery('#niteoCS_gradient_two').val() +
|
359 |
+
' 100%)',
|
360 |
+
background:
|
361 |
+
'-webkit-linear-gradient(-45deg, ' +
|
362 |
+
jQuery('#niteoCS_gradient_one').val() +
|
363 |
+
' 0%, ' +
|
364 |
+
jQuery('#niteoCS_gradient_two').val() +
|
365 |
+
' 100%)',
|
366 |
+
background:
|
367 |
+
'linear-gradient(135deg, ' +
|
368 |
+
jQuery('#niteoCS_gradient_one').val() +
|
369 |
+
' 0%, ' +
|
370 |
+
jQuery('#niteoCS_gradient_two').val() +
|
371 |
+
' 100%)',
|
372 |
});
|
373 |
} else {
|
374 |
colors = gradient.split(':');
|
375 |
jQuery('.cmp-coming-soon-maintenance .custom-gradient').css('display', 'none');
|
376 |
jQuery('.cmp-coming-soon-maintenance .gradient-preview').css({
|
377 |
background: '-moz-linear-gradient(-45deg, ' + colors[0] + ' 0%, ' + colors[1] + ' 100%)',
|
378 |
+
background:
|
379 |
+
'-webkit-linear-gradient(-45deg, ' + colors[0] + ' 0%, ' + colors[1] + ' 100%)',
|
380 |
background: 'linear-gradient(135deg, ' + colors[0] + ' 0%, ' + colors[1] + ' 100%)',
|
381 |
});
|
382 |
}
|
394 |
jQuery('.cmp-coming-soon-maintenance #niteoCS_gradient_one').wpColorPicker({
|
395 |
change: function (event, ui) {
|
396 |
jQuery('.gradient-preview').css({
|
397 |
+
background:
|
398 |
+
'-moz-linear-gradient(-45deg, ' +
|
399 |
+
ui.color.toString() +
|
400 |
+
' 0%, ' +
|
401 |
+
jQuery('#niteoCS_gradient_two').val() +
|
402 |
+
' 100%)',
|
403 |
+
background:
|
404 |
+
'-webkit-linear-gradient(-45deg, ' +
|
405 |
+
ui.color.toString() +
|
406 |
+
' 0%, ' +
|
407 |
+
jQuery('#niteoCS_gradient_two').val() +
|
408 |
+
' 100%)',
|
409 |
+
background:
|
410 |
+
'linear-gradient(135deg, ' +
|
411 |
+
ui.color.toString() +
|
412 |
+
' 0%, ' +
|
413 |
+
jQuery('#niteoCS_gradient_two').val() +
|
414 |
+
' 100%)',
|
415 |
});
|
416 |
},
|
417 |
});
|
420 |
jQuery('.cmp-coming-soon-maintenance #niteoCS_gradient_two').wpColorPicker({
|
421 |
change: function (event, ui) {
|
422 |
jQuery('.gradient-preview').css({
|
423 |
+
background:
|
424 |
+
'-moz-linear-gradient(-45deg, ' +
|
425 |
+
jQuery('#niteoCS_gradient_one').val() +
|
426 |
+
' 0%, ' +
|
427 |
+
ui.color.toString() +
|
428 |
+
' 100%)',
|
429 |
+
background:
|
430 |
+
'-webkit-linear-gradient(-45deg, ' +
|
431 |
+
jQuery('#niteoCS_gradient_one').val() +
|
432 |
+
' 0%, ' +
|
433 |
+
ui.color.toString() +
|
434 |
+
' 100%)',
|
435 |
+
background:
|
436 |
+
'linear-gradient(135deg, ' +
|
437 |
+
jQuery('#niteoCS_gradient_one').val() +
|
438 |
+
' 0%, ' +
|
439 |
+
ui.color.toString() +
|
440 |
+
' 100%)',
|
441 |
});
|
442 |
},
|
443 |
});
|
450 |
});
|
451 |
|
452 |
// get overlay color and apply it to Background thumbnails
|
453 |
+
jQuery('.cmp-coming-soon-maintenance .thumbnail-overlay').css(
|
454 |
+
'background',
|
455 |
+
jQuery('#niteoCS_overlay_color').val()
|
456 |
+
);
|
457 |
|
458 |
// OVERLAY GRADIENT
|
459 |
jQuery('.cmp-coming-soon-maintenance select.overlay-gradient').on('change', function () {
|
466 |
var gradient_two = jQuery('#niteoCS_overlay_gradient_two').val();
|
467 |
|
468 |
jQuery('.cmp-coming-soon-maintenance .thumbnail-overlay').css({
|
469 |
+
background:
|
470 |
+
'-moz-linear-gradient(-45deg, ' + gradient_one + ' 0%, ' + gradient_two + ' 100%)',
|
471 |
+
background:
|
472 |
+
'-webkit-linear-gradient(-45deg, ' + gradient_one + ' 0%, ' + gradient_two + ' 100%)',
|
473 |
background: 'linear-gradient(135deg, ' + gradient_one + ' 0%, ' + gradient_two + ' 100%)',
|
474 |
});
|
475 |
} else {
|
487 |
jQuery('#niteoCS_overlay_gradient_one').wpColorPicker({
|
488 |
change: function (event, ui) {
|
489 |
jQuery('.thumbnail-overlay').css({
|
490 |
+
background:
|
491 |
+
'-moz-linear-gradient(-45deg, ' +
|
492 |
+
ui.color.toString() +
|
493 |
+
' 0%, ' +
|
494 |
+
jQuery('#niteoCS_overlay_gradient_two').val() +
|
495 |
+
' 100%)',
|
496 |
+
background:
|
497 |
+
'-webkit-linear-gradient(-45deg, ' +
|
498 |
+
ui.color.toString() +
|
499 |
+
' 0%, ' +
|
500 |
+
jQuery('#niteoCS_overlay_gradient_two').val() +
|
501 |
+
' 100%)',
|
502 |
+
background:
|
503 |
+
'linear-gradient(135deg, ' +
|
504 |
+
ui.color.toString() +
|
505 |
+
' 0%, ' +
|
506 |
+
jQuery('#niteoCS_overlay_gradient_two').val() +
|
507 |
+
' 100%)',
|
508 |
});
|
509 |
},
|
510 |
});
|
513 |
jQuery('#niteoCS_overlay_gradient_two').wpColorPicker({
|
514 |
change: function (event, ui) {
|
515 |
jQuery('.thumbnail-overlay').css({
|
516 |
+
background:
|
517 |
+
'-moz-linear-gradient(-45deg, ' +
|
518 |
+
jQuery('#niteoCS_overlay_gradient_one').val() +
|
519 |
+
' 0%, ' +
|
520 |
+
ui.color.toString() +
|
521 |
+
' 100%)',
|
522 |
+
background:
|
523 |
+
'-webkit-linear-gradient(-45deg, ' +
|
524 |
+
jQuery('#niteoCS_overlay_gradient_one').val() +
|
525 |
+
' 0%, ' +
|
526 |
+
ui.color.toString() +
|
527 |
+
' 100%)',
|
528 |
+
background:
|
529 |
+
'linear-gradient(135deg, ' +
|
530 |
+
jQuery('#niteoCS_overlay_gradient_one').val() +
|
531 |
+
' 0%, ' +
|
532 |
+
ui.color.toString() +
|
533 |
+
' 100%)',
|
534 |
});
|
535 |
},
|
536 |
});
|
573 |
jQuery('.cmp-coming-soon-maintenance .blur-range')
|
574 |
.on('input', function () {
|
575 |
var value = jQuery(this).val();
|
576 |
+
jQuery('.cmp-coming-soon-maintenance .background-thumb-wrapper img:not(.no-blur)').css(
|
577 |
+
'filter',
|
578 |
+
'blur(' + value + 'px)'
|
579 |
+
);
|
580 |
})
|
581 |
.trigger('input');
|
582 |
|
583 |
// banner pattern on change image preview
|
584 |
+
jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"]').on(
|
585 |
+
'change',
|
586 |
+
function () {
|
587 |
+
var pattern = jQuery(
|
588 |
+
'.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"] option:selected'
|
589 |
+
).val();
|
590 |
+
|
591 |
+
if (pattern != 'custom') {
|
592 |
+
var pattern_url = jQuery(this).data('url');
|
593 |
+
jQuery('.cmp-coming-soon-maintenance #add-pattern').css('display', 'none');
|
594 |
+
jQuery('.cmp-coming-soon-maintenance .pattern-wrapper').css(
|
595 |
+
'background-image',
|
596 |
+
"url('" + pattern_url + pattern + ".png')"
|
597 |
+
);
|
598 |
+
} else {
|
599 |
+
var pattern_url = jQuery(
|
600 |
+
'.cmp-coming-soon-maintenance #niteoCS_banner_pattern_custom'
|
601 |
+
).val();
|
602 |
+
jQuery('.cmp-coming-soon-maintenance #add-pattern').css('display', 'block');
|
603 |
+
jQuery('.cmp-coming-soon-maintenance .pattern-wrapper').css(
|
604 |
+
'background-image',
|
605 |
+
"url('" + pattern_url + "')"
|
606 |
+
);
|
607 |
+
}
|
608 |
}
|
609 |
+
);
|
610 |
|
611 |
// preview animation
|
612 |
jQuery('.cmp-coming-soon-maintenance .heading-animation').on('change', function () {
|
635 |
}
|
636 |
});
|
637 |
|
638 |
+
jQuery('.cmp-coming-soon-maintenance #niteoCS_socialmedia').attr(
|
639 |
+
'value',
|
640 |
+
JSON.stringify(socialmedia)
|
641 |
+
);
|
642 |
};
|
643 |
|
644 |
// sortable UI - disabled on Mobile phones - input elements where not clickable...
|
739 |
file: update,
|
740 |
};
|
741 |
|
742 |
+
$parent
|
743 |
+
.find('.message')
|
744 |
+
.html(
|
745 |
+
'<i class="fas fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'
|
746 |
+
);
|
747 |
|
748 |
jQuery.post(ajaxurl, data, function (response) {
|
749 |
response = response.trim();
|
751 |
if (response == 'success') {
|
752 |
setTimeout(function () {
|
753 |
$parent.removeClass('notice-warning').addClass('notice-success');
|
754 |
+
$parent
|
755 |
+
.find('.message')
|
756 |
+
.html(
|
757 |
+
'<span> ' +
|
758 |
+
themeName +
|
759 |
+
' CMP theme was updated sucessfully! You can enjoy latest features now :) </span><i class="far fa-smile" aria-hidden="true"></i>'
|
760 |
+
);
|
761 |
}, 1500);
|
762 |
} else {
|
763 |
response = response.slice(0, -1);
|
764 |
var error = jQuery('p', jQuery(response)).text();
|
765 |
$parent.removeClass('notice-warning').addClass('notice-error');
|
766 |
+
$parent
|
767 |
+
.find('.message')
|
768 |
+
.html('<i class="far fa-frown" aria-hidden="true"></i><span> ' + error + '</span>');
|
769 |
}
|
770 |
});
|
771 |
});
|
844 |
// if premium and not installed, display buy button
|
845 |
if (purchased != '1' && type == 'premium') {
|
846 |
var buyURL = $wrapper.find('.cmp-purchase-theme').attr('href');
|
847 |
+
var buyButton =
|
848 |
+
'<button type="button" class="theme-purchase button hide"><a href="' +
|
849 |
+
buyURL +
|
850 |
+
'" target="_blank"><i class="fas fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';
|
851 |
}
|
852 |
|
853 |
// get screenshots
|
855 |
var arrows = '';
|
856 |
// if we have more screenshots, generate navigation arrows
|
857 |
if (Object.keys(screenshots).length > 1) {
|
858 |
+
arrows =
|
859 |
+
'<div class="screenshots-nav"><div class="left"><i class="fas fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fas fa-chevron-right" aria-hidden="true"></i></div></div>';
|
860 |
}
|
861 |
|
862 |
// generate html to append to theme-overlay
|
869 |
' </div>',
|
870 |
' <div class="theme-about">',
|
871 |
' <div class="theme-screenshots">',
|
872 |
+
' <div class="screenshot" style="background-image:url(\'' +
|
873 |
+
screenshots['0'] +
|
874 |
+
'\')">' +
|
875 |
+
arrows +
|
876 |
+
'</div>',
|
877 |
' </div>',
|
878 |
' <div class="theme-info">',
|
879 |
' <h2 class="theme-name">' + response['name'] + versionInfo + '</h2>',
|
880 |
+
' <p class="theme-author">By <a href="' +
|
881 |
+
response['author_homepage'] +
|
882 |
+
'" target="_blank">' +
|
883 |
+
response['author'] +
|
884 |
+
'</a></p>',
|
885 |
noticeHtml,
|
886 |
buyButton,
|
887 |
' <div class="theme-description">' + response['description'] + '</div>',
|
888 |
' </div>',
|
889 |
' </div>',
|
890 |
' <div class="theme-actions">',
|
891 |
+
' <a href="https://niteothemes.com/cmp-coming-soon-maintenance/?theme=' +
|
892 |
+
slug +
|
893 |
+
'&utm_source=cmp&utm_medium=referral&utm_campaign=' +
|
894 |
+
slug +
|
895 |
+
'" class="button cmp-preview" target="_blank" aria-label="Preview ' +
|
896 |
+
response['name'] +
|
897 |
+
'">Live Preview</a>',
|
898 |
' </div>',
|
899 |
' </div>',
|
900 |
'</div>',
|
1001 |
// Send the attachment URL to our custom image input field.
|
1002 |
switch (element) {
|
1003 |
case 'video':
|
1004 |
+
$container.append(
|
1005 |
+
'<video width="600" height="400" controls><source src="' +
|
1006 |
+
image +
|
1007 |
+
'" type="video/mp4">Your browser does not support the video tag.</video>'
|
1008 |
+
);
|
1009 |
break;
|
1010 |
|
1011 |
case 'background':
|
1015 |
case 'img':
|
1016 |
default:
|
1017 |
// if gallery - more than one image, it must be a graphic background, attach the first image to big coontainer
|
1018 |
+
if (
|
1019 |
+
attachment.length > 1 &&
|
1020 |
+
i == 0 &&
|
1021 |
+
jQuery('.' + name + '-wrapper .big-thumb').length
|
1022 |
+
) {
|
1023 |
+
jQuery('.' + name + '-wrapper .big-thumb').append(
|
1024 |
+
'<img src="' + image + '" alt=""/>'
|
1025 |
+
);
|
1026 |
|
1027 |
// if gallery - more than one image, it must be a graphic background, attach all others images to normal wrapper
|
1028 |
} else if (attachment.length > 1 && i !== 0) {
|
1030 |
|
1031 |
// if single image, and it is a background image, attach it to big container as well
|
1032 |
} else if ($container.find('.big-thumb').length) {
|
1033 |
+
jQuery('.' + name + '-wrapper .big-thumb').append(
|
1034 |
+
'<img src="' + image + '" alt=""/>'
|
1035 |
+
);
|
1036 |
|
1037 |
// all others images
|
1038 |
} else {
|
1067 |
jQuery('.cmp-coming-soon-maintenance #connect-mailchimp').click(function (e) {
|
1068 |
e.preventDefault();
|
1069 |
|
1070 |
+
var apikey = jQuery(
|
1071 |
+
'.cmp-coming-soon-maintenance input[name="niteoCS_mailchimp_apikey"]'
|
1072 |
+
).val(),
|
1073 |
security = jQuery(this).data('security'),
|
1074 |
button = jQuery(this);
|
1075 |
|
1078 |
|
1079 |
jQuery(this).prop('disabled', true);
|
1080 |
|
1081 |
+
jQuery(this).html(
|
1082 |
+
'<i class="fas fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>'
|
1083 |
+
);
|
1084 |
|
1085 |
var data = {
|
1086 |
action: 'cmp_mailchimp_list_ajax',
|
1095 |
if (lists.response == 200) {
|
1096 |
jQuery('#niteoCS_mailchimp_list').empty().prop('disabled', false);
|
1097 |
jQuery.each(lists.lists, function (i, val) {
|
1098 |
+
jQuery('#niteoCS_mailchimp_list').append(
|
1099 |
+
'<option value="' + val.id + '">' + val.name + '</option>'
|
1100 |
+
);
|
1101 |
});
|
1102 |
} else {
|
1103 |
jQuery('#niteoCS_mailchimp_list')
|
1124 |
value = jQuery.isNumeric(value) ? 'x' + value : value;
|
1125 |
value = value === undefined ? 'off' : value;
|
1126 |
|
1127 |
+
jQuery('.cmp-coming-soon-maintenance .' + classname + '-switch.' + value).css(
|
1128 |
+
'display',
|
1129 |
+
'block'
|
1130 |
+
);
|
1131 |
+
jQuery('.cmp-coming-soon-maintenance .' + classname + '-switch:not(.' + value + ')').css(
|
1132 |
+
'display',
|
1133 |
+
'none'
|
1134 |
+
);
|
1135 |
});
|
1136 |
|
1137 |
jQuery('.cmp-coming-soon-maintenance .' + classname)
|
1145 |
value = jQuery.isNumeric(value) ? 'x' + value : value;
|
1146 |
|
1147 |
jQuery('.cmp-coming-soon-maintenance .' + classname + '.' + value).css('display', 'block');
|
1148 |
+
jQuery('.cmp-coming-soon-maintenance .' + classname + ':not(.' + value + ')').css(
|
1149 |
+
'display',
|
1150 |
+
'none'
|
1151 |
+
);
|
1152 |
});
|
1153 |
|
1154 |
jQuery('.' + classname)
|
1181 |
// warn users about unsaved changes for preview
|
1182 |
jQuery('.nav-tab-wrapper').on('click', '.theme-preview', function (e) {
|
1183 |
if (jQuery('#csoptions fieldset:not(.skip-preview-validation *)').serialize() != settings) {
|
1184 |
+
if (
|
1185 |
+
!confirm(
|
1186 |
+
'You have made changes that will not be visible in the preview until you save them. Please save changes first.\nContinue anyway?'
|
1187 |
+
)
|
1188 |
+
) {
|
1189 |
e.preventDefault();
|
1190 |
return false;
|
1191 |
}
|
js/settings.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(e){var n=document.location.hash.substring(1),a=jQuery("#csoptions").attr("action"),t=jQuery("#csoptions fieldset:not(.skip-preview-validation *)").serialize();wp.codeEditor&&jQuery("#niteoCS_custom_css").length&&wp.codeEditor.initialize("niteoCS_custom_css"),navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+e).addClass("nav-tab-active"),jQuery(".cmp-coming-soon-maintenance .table-wrapper."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .comingsoon."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(."+e+")").css("display","none"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(."+e).css("display","none"),jQuery(".cmp-coming-soon-maintenance .comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".cmp-coming-soon-maintenance .submit").css("display","none"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a)):(jQuery(".cmp-coming-soon-maintenance .submit").css("display","block"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a+"#"+e))},""!=n?navtab(n):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){n=document.location.hash.substring(1),navtab(n)},jQuery(".cmp-coming-soon-maintenance .nav-tab:not(.theme-preview):not(.advanced)").click(function(e){e.preventDefault(),n=jQuery(this).data("tab"),document.location.hash=n}),p(".cmp-coming-soon-maintenance .blur-range","span","html"),p(".cmp-coming-soon-maintenance .background-overlay-opacity","span","html"),p("#logo_size_slider","#niteoCS_logo_size","val"),p("#niteoCS_logo_size","#logo_size_slider","val"),l("logo",!1,"image","img"),l("favicon",!1,"image","img"),l("seo_img",!1,"image","img"),l("images",!0,"image","img"),l("mobile-images",!0,"image","img"),l("pattern",!1,"image","background"),l("video-thumb",!1,"image","img"),l("video-local",!1,"video","video"),l("subs-img",!1,"image","img"),l("avatar",!1,"image","img"),l("gallery",!0,"image","img"),u("analytics"),u("contact-form"),u("subscribe"),u("background-effect"),u("special-effect"),u("cmp-logo"),u("background-type"),u("counter"),u("progress-bar"),u("overlay-text"),u("cmp-logo-size"),u("recaptcha-toggle"),u("login-icon"),u("custom-mobile-imgs"),u("lang-switcher"),m("counter-action"),m("subscribe-method"),m("background-overlay"),m("banner-video-source"),m("progress-bar-type"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1,placeholder:"Click to select.."}),jQuery(".cmp-coming-soon-maintenance #cmp-status").click(function(){jQuery(".cmp-coming-soon-maintenance .cmp-status input[type=radio]").prop("disabled",function(e,n){return!n}),jQuery("#cmp-toggle-adminbar").toggleClass("status-1"),jQuery(".cmp-status-pages").fadeToggle()}),jQuery(".cmp-status-pages input[type=radio]").change(function(){jQuery(".cmp-status-pages input[type=radio]").parent().removeClass("active"),jQuery(this).parent().addClass("active")}),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch:not(.disabled)").click(function(){if(0!=jQuery(".cmp-coming-soon-maintenance #cmp-status").prop("checked")){var e=jQuery(this).children("input");e.prop("checked",!0),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch").removeClass("active"),jQuery(this).addClass("active"),e.trigger("change"),"3"==e.val()?jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeIn("fast"):jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeOut("fast")}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper h3").click(function(){jQuery(this).parent().toggleClass("closed")}),jQuery(".cmp-coming-soon-maintenance #test-unsplash").click(function(e){e.preventDefault();var n=jQuery(".cmp-coming-soon-maintenance #unsplash-media"),a=jQuery('.cmp-coming-soon-maintenance .unsplash_banner select[name^="unsplash_feed"] option:selected').val(),t="",i=jQuery(this).data("security");if(0==a){switch(a){case"0":t=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val()}if(3==a||""!=t){var o={feed:a,url:t,feat:"",custom_str:""};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fas fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var r={action:"niteo_unsplash",security:i,params:o};jQuery.post(ajaxurl,r,function(e){var a=JSON.parse(e);jQuery("#unsplash_img").remove();var t=setTimeout(function(){jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5e3);if("200"==a.response){if((a=jQuery.parseJSON(a.body))[0])var i=a[0].urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=a[0].user.name,r=a[0].user.links.html,s=a[0].links.html,c=a[0].id;else i=a.urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=a.user.name,r=a.user.links.html,s=a.links.html,c=a.id;jQuery("<img />",{src:i,id:"unsplash_img"}).one("load",function(){jQuery(this).appendTo(n),jQuery(this).fadeIn(),jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery(".unsplash-id").html('<a href="'+s+'" target="_blank">Photo</a> (ID: '+c+') by <a href="'+r+'" target="_blank">'+o+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a>'),jQuery(".blur-range").trigger("input"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #test-unsplash").prop("disabled",!1),jQuery(".cmp-coming-soon-maintenance #test-unsplash").text("Display Unsplash Photo"),jQuery(".cmp-coming-soon-maintenance #unsplash-media").html("<p>Error "+a.response+': <span style="text-transform:lowercase;">'+JSON.parse(a.body).errors+"</span></p>"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #unsplash_img").remove()}}),videoPreview=function(){if("5"==jQuery(".cmp-coming-soon-maintenance .background-type:checked").val()){var e=jQuery(".cmp-coming-soon-maintenance .banner-video-source").val();if("youtube"==e){var n=jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").val();if(""!=n){var a=n.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);if(a&&11==a[7].length){jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("");var t="https://img.youtube.com/vi/"+a[7]+"/maxresdefault.jpg";jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").append('<img src="'+t+'" alt=""/>'),jQuery(".cmp-coming-soon-maintenance .blur-range").trigger("input")}else jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("")}}if("local"==e){var i=jQuery("#niteoCS-video-local-id").data("url");""!=i&&jQuery(".cmp-coming-soon-maintenance .video-local-wrapper").html('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>')}}},videoPreview(),jQuery(".cmp-coming-soon-maintenance .background-type").on("change",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").on("keyup",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance .banner-video-source").on("change",function(){videoPreview()});var i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function o(e){switch(e){case"solid-color":jQuery(".thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val());break;case"gradient":jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").trigger("change");break;case"disabled":jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background","none")}}jQuery(".unsplash-feed-"+i).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery(".unsplash-feed-"+i).css("display","block"),jQuery("#test-unsplash").trigger("click")}),1==jQuery("#csoptions .niteoCS_banner:checked").val()&&jQuery("#test-unsplash").trigger("click"),jQuery(".cmp-coming-soon-maintenance select.background-gradient").on("change",function(){var e=jQuery(".cmp-coming-soon-maintenance select.background-gradient option:selected").val();"custom"==e?(jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","block"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})):(colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"}))}).trigger("change"),jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_color").wpColorPicker({change:function(e,n){jQuery(".color-preview").css("background-color",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_one").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_two").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_overlay_color").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css("background",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val()),jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").on("change",function(){var e=jQuery("select.overlay-gradient option:selected").val();if("custom"==e){jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","block");var n=jQuery("#niteoCS_overlay_gradient_one").val(),a=jQuery("#niteoCS_overlay_gradient_two").val();jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"linear-gradient(135deg, "+n+" 0%, "+a+" 100%)"})}else colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"})}),jQuery("#niteoCS_overlay_gradient_one").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)"})}}),jQuery("#niteoCS_overlay_gradient_two").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".background-overlay-opacity").on("input",function(){var e=jQuery(this).val();jQuery(".thumbnail-overlay").css("opacity",e)}).trigger("input"),o(jQuery(".cmp-coming-soon-maintenance .background-overlay").val()),jQuery(".cmp-coming-soon-maintenance .background-overlay").on("change",function(){o(jQuery(this).val())}),jQuery(".cmp-coming-soon-maintenance .blur-range").on("input",function(){var e=jQuery(this).val();jQuery(".cmp-coming-soon-maintenance .background-thumb-wrapper img:not(.no-blur)").css("filter","blur("+e+"px)")}).trigger("input"),jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"]').on("change",function(){var e=jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"] option:selected').val();if("custom"!=e){var n=jQuery(this).data("url");jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","none"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+e+".png')")}else{n=jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_pattern_custom").val();jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","block"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+"')")}}),jQuery(".cmp-coming-soon-maintenance .heading-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .heading-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #heading-example").removeClass().addClass("animated "+heading_anim)}),jQuery(".cmp-coming-soon-maintenance .content-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .content-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #content-example").removeClass().addClass("animated "+heading_anim)});var r=function(e,n,a){var t=jQuery(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value");t=jQuery.parseJSON(t),jQuery.each(t,function(t,i){i.name==e&&(i[n]=a)}),jQuery(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value",JSON.stringify(t))};if(!/Mobi/.test(navigator.userAgent)){var s=jQuery(".cmp-coming-soon-maintenance .social-inputs"),c=function(e,n){var a=s.find('input[type="text"]');n.item.index();a.each(function(e,n){var a=jQuery(n).data("name");r(a,"order",e)})};s.sortable({stop:c}),s.on("sortchange",c)}function l(e,n,a,t){var i,o=jQuery("."+e+"-wrapper"),r=jQuery("#add-"+e),s=jQuery("#delete-"+e),c="",l=e.replace("-"," ");l=l[0].toUpperCase()+l.slice(1),""!=jQuery("#niteoCS-"+e+"-id").val()&&s.css("display","block"),r.click(function(r){if(r.preventDefault(),u)u.open();else var u=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=u.state().get("selection").toJSON();n.length>0&&(o.find("img").remove(),o.attr("class",e+"-wrapper custom-gallery"),o.addClass("gallery-"+n.length),jQuery(n).each(function(a){switch(i=n[a].sizes&&n[a].sizes.large?n[a].sizes.large.url:n[a].url,c+=(0===a?"":",")+n[a].id,t){case"video":o.append('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>');break;case"background":o.css("background-image","url('"+i+"')");break;case"img":default:n.length>1&&0==a&&jQuery("."+e+"-wrapper .big-thumb").length?jQuery("."+e+"-wrapper .big-thumb").append('<img src="'+i+'" alt=""/>'):n.length>1&&0!==a?o.append('<img src="'+i+'" alt="" class="no-blur"/>'):o.find(".big-thumb").length?jQuery("."+e+"-wrapper .big-thumb").append('<img src="'+i+'" alt=""/>'):o.append('<img src="'+i+'" alt=""/>'),jQuery(".blur-range").trigger("input")}}),s.css("display","block")),jQuery("#niteoCS-"+e+"-id").val(c).trigger("change")}).open()}),s.click(function(n){jQuery(this).css("display","none"),o.find("img").remove(),jQuery("#niteoCS-"+e+"-id").val(""),jQuery("#niteoCS-"+e+"-id").trigger("change")})}function u(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery(".cmp-coming-soon-maintenance ."+e+":checked").val();n=void 0===(n=jQuery.isNumeric(n)?"x"+n:n)?"off":n,jQuery(".cmp-coming-soon-maintenance ."+e+"-switch."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+"-switch:not(."+n+")").css("display","none")}),jQuery(".cmp-coming-soon-maintenance ."+e).first().trigger("change")}function m(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery("."+e).val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+":not(."+n+")").css("display","none")}),jQuery("."+e).first().trigger("change")}function p(e,n,a){jQuery(e).on("input",function(){var e=jQuery(this).val();"html"===a&&jQuery(this).parent().find(n).html(e),"val"===a&&jQuery(this).parent().find(n).val(e)})}jQuery,jQuery.fn.toggleDisabled=function(){return this.each(function(){var e,n=jQuery(this),a=n.data("name");n.attr("disabled")?(n.prop("disabled",!1),e="1"):(n.prop("disabled",!0),e="0"),r(a,"active",e)})},jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="text"]').focusout(function(){var e=jQuery(this).data("name"),n=jQuery(this).val();r(e,"url",n)}),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="checkbox"]').click(function(e){jQuery(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".cmp-coming-soon-maintenance .social-media i").click(function(){var e=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e+" input").trigger("change"),jQuery(this).hasClass("active")?r(e,"hidden","0"):r(e,"hidden","1"),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length?jQuery(".social-inputs .label").css("display","block"):jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","none")}),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length&&jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","block"),jQuery(".cmp.update-theme").click(function(e){e.preventDefault();var n=jQuery(this),a=n.parents(".notice"),t=n.data("security"),i=n.data("slug"),o=n.data("name"),r={action:"cmp_theme_update_install",security:t,file:{name:i,tmp_name:"",url:jQuery(this).data("remote_url")+"?action=download&slug="+i}};a.find(".message").html('<i class="fas fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'),jQuery.post(ajaxurl,r,function(e){if("success"==(e=e.trim()))setTimeout(function(){a.removeClass("notice-warning").addClass("notice-success"),a.find(".message").html("<span> "+o+' CMP theme was updated sucessfully! You can enjoy latest features now :) </span><i class="far fa-smile" aria-hidden="true"></i>')},1500);else{e=e.slice(0,-1);var n=jQuery("p",jQuery(e)).text();a.removeClass("notice-warning").addClass("notice-error"),a.find(".message").html('<i class="far fa-frown" aria-hidden="true"></i><span> '+n+"</span>")}})}),jQuery(".cmp-coming-soon-maintenance .theme-update.button").one("click",function(e){e.preventDefault();var n=jQuery(this),a=n.closest(".theme-wrapper"),t=a.data("security"),i=a.data("slug"),o={action:"cmp_theme_update_install",security:t,file:{name:i,tmp_name:"",url:a.data("remote_url")+"?action=download&slug="+i}};n.html('<i class="fas fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>'),jQuery.post(ajaxurl,o,function(e){"success"==e?setTimeout(function(){n.html('<i class="far fa-smile" aria-hidden="true"></i><span>Updated!</span>'),setTimeout(function(){n.fadeOut()},1500)},1500):(e=e.slice(0,-1),n.html('<i class="far fa-frown" aria-hidden="true"></i><span>Update Failed!</span>'))})}),jQuery(".cmp-coming-soon-maintenance .theme-details").click(function(e){e.preventDefault();var n=jQuery(this).closest(".theme-wrapper"),a=n.data("slug"),t=n.data("version"),i=n.data("type"),o=n.data("purchased"),r=0,s={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};jQuery.post(ajaxurl,s,function(e){var s="",c="";if("true"==(e=jQuery.parseJSON(e)).result){if(jQuery("body").addClass("modal-open"),"1"==o&&(c='<span class="theme-version">Installed version: '+t+"</span>"),"1"!=o&&"premium"==i)s='<button type="button" class="theme-purchase button hide"><a href="'+n.find(".cmp-purchase-theme").attr("href")+'" target="_blank"><i class="fas fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';var l=e.screenshots,u="";Object.keys(l).length>1&&(u='<div class="screenshots-nav"><div class="left"><i class="fas fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fas fa-chevron-right" aria-hidden="true"></i></div></div>');var m=jQuery(['<div class="theme-backdrop">','\t<div class="theme-wrap">','\t\t<div class="theme-header">','\t\t\t<button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',"\t\t</div>",'\t\t<div class="theme-about">','\t\t\t<div class="theme-screenshots">','\t\t\t\t<div class="screenshot" style="background-image:url(\''+l[0]+"')\">"+u+"</div>","\t\t\t</div>",'\t\t\t<div class="theme-info">','\t\t\t\t<h2 class="theme-name">'+e.name+c+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+e.author_homepage+'" target="_blank">'+e.author+"</a></p>","",s,'\t\t\t\t<div class="theme-description">'+e.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<a href="https://niteothemes.com/cmp-coming-soon-maintenance/?theme='+a+"&utm_source=cmp&utm_medium=referral&utm_campaign="+a+'" class="button cmp-preview" target="_blank" aria-label="Preview '+e.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(m),jQuery(".theme-overlay.cmp .close").click(function(e){e.preventDefault(),jQuery("body").removeClass("modal-open"),jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast")}),jQuery(".screenshots-nav .right").click(function(){++r==Object.keys(l).length&&(r=0),r in l&&jQuery(".screenshot").css("background-image","url('"+l[r]+"')")}),jQuery(".screenshots-nav .left").click(function(){--r<0&&(r=Object.keys(l).length-1),r in l&&jQuery(".screenshot").css("background-image","url('"+l[r]+"')")})}})}),jQuery(".cmp-coming-soon-maintenance #connect-mailchimp").click(function(e){e.preventDefault();var n=jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_mailchimp_apikey"]').val(),a=jQuery(this).data("security"),t=jQuery(this);if(""!=n){var i={apikey:n,security:a};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fas fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var o={action:"cmp_mailchimp_list_ajax",security:a,params:i};jQuery.post(ajaxurl,o,function(e){var n=JSON.parse(e);200==n.response?(jQuery("#niteoCS_mailchimp_list").empty().prop("disabled",!1),jQuery.each(n.lists,function(e,n){jQuery("#niteoCS_mailchimp_list").append('<option value="'+n.id+'">'+n.name+"</option>")})):jQuery("#niteoCS_mailchimp_list").empty().prop("disabled",!0).html('<option value="error">'+n.message+"</option>").trigger("change"),t.html("Retrieve Lists"),t.prop("disabled",!1)}).fail(function(){t.html("Retrieve Lists"),t.prop("disabled",!1)})}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper.theme-setup h4").each(function(){if("Overlay Color"==jQuery(this).html())return jQuery(this).parents("tr").remove(),!1}),jQuery(".nav-tab-wrapper").on("click",".theme-preview",function(e){return!(jQuery("#csoptions fieldset:not(.skip-preview-validation *)").serialize()!=t&&!confirm("You have made changes that will not be visible in the preview until you save them. Please save changes first.\nContinue anyway?"))||(e.preventDefault(),!1)})});
|
1 |
+
jQuery(document).ready(function(e){var n=document.location.hash.substring(1),a=jQuery("#csoptions").attr("action"),t=jQuery("#csoptions fieldset:not(.skip-preview-validation *)").serialize();wp.codeEditor&&jQuery("#niteoCS_custom_css").length&&wp.codeEditor.initialize("niteoCS_custom_css"),navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+e).addClass("nav-tab-active"),jQuery(".cmp-coming-soon-maintenance .table-wrapper."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .comingsoon."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(."+e+")").css("display","none"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(."+e).css("display","none"),jQuery(".cmp-coming-soon-maintenance .comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".cmp-coming-soon-maintenance .submit").css("display","none"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a)):(jQuery(".cmp-coming-soon-maintenance .submit").css("display","block"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a+"#"+e))},""!=n?navtab(n):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){n=document.location.hash.substring(1),navtab(n)},jQuery(".cmp-coming-soon-maintenance .nav-tab:not(.theme-preview):not(.advanced)").click(function(e){e.preventDefault(),n=jQuery(this).data("tab"),document.location.hash=n}),p(".cmp-coming-soon-maintenance .blur-range","span","html"),p(".cmp-coming-soon-maintenance .background-overlay-opacity","span","html"),p("#logo_size_slider","#niteoCS_logo_size","val"),p("#niteoCS_logo_size","#logo_size_slider","val"),l("logo",!1,"image","img"),l("favicon",!1,"image","img"),l("seo_img",!1,"image","img"),l("images",!0,"image","img"),l("mobile-images",!0,"image","img"),l("pattern",!1,"image","background"),l("video-thumb",!1,"image","img"),l("video-local",!1,"video","video"),l("subs-img",!1,"image","img"),l("subs-img-popup",!1,"image","img"),l("avatar",!1,"image","img"),l("gallery",!0,"image","img"),u("analytics"),u("contact-form"),u("subscribe"),u("background-effect"),u("special-effect"),u("cmp-logo"),u("background-type"),u("counter"),u("progress-bar"),u("overlay-text"),u("cmp-logo-size"),u("recaptcha-toggle"),u("login-icon"),u("custom-mobile-imgs"),u("lang-switcher"),u("subscribe-popup"),u("inpage-subscribe"),m("counter-action"),m("subscribe-method"),m("background-overlay"),m("banner-video-source"),m("progress-bar-type"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1,placeholder:"Click to select.."}),jQuery(".cmp-coming-soon-maintenance #cmp-status").click(function(){jQuery(".cmp-coming-soon-maintenance .cmp-status input[type=radio]").prop("disabled",function(e,n){return!n}),jQuery("#cmp-toggle-adminbar").toggleClass("status-1"),jQuery(".cmp-status-pages").fadeToggle()}),jQuery(".cmp-status-pages input[type=radio]").change(function(){jQuery(".cmp-status-pages input[type=radio]").parent().removeClass("active"),jQuery(this).parent().addClass("active")}),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch:not(.disabled)").click(function(){if(0!=jQuery(".cmp-coming-soon-maintenance #cmp-status").prop("checked")){var e=jQuery(this).children("input");e.prop("checked",!0),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch").removeClass("active"),jQuery(this).addClass("active"),e.trigger("change"),"3"==e.val()?jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeIn("fast"):jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeOut("fast")}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper h3").click(function(){jQuery(this).parent().toggleClass("closed")}),jQuery(".cmp-coming-soon-maintenance #test-unsplash").click(function(e){e.preventDefault();var n=jQuery(".cmp-coming-soon-maintenance #unsplash-media"),a=jQuery('.cmp-coming-soon-maintenance .unsplash_banner select[name^="unsplash_feed"] option:selected').val(),t="",i=jQuery(this).data("security");if(0==a){switch(a){case"0":t=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val()}if(3==a||""!=t){var o={feed:a,url:t,feat:"",custom_str:""};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fas fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var r={action:"niteo_unsplash",security:i,params:o};jQuery.post(ajaxurl,r,function(e){var a=JSON.parse(e);jQuery("#unsplash_img").remove();var t=setTimeout(function(){jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5e3);if("200"==a.response){if((a=jQuery.parseJSON(a.body))[0])var i=a[0].urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=a[0].user.name,r=a[0].user.links.html,s=a[0].links.html,c=a[0].id;else i=a.urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=a.user.name,r=a.user.links.html,s=a.links.html,c=a.id;jQuery("<img />",{src:i,id:"unsplash_img"}).one("load",function(){jQuery(this).appendTo(n),jQuery(this).fadeIn(),jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery(".unsplash-id").html('<a href="'+s+'" target="_blank">Photo</a> (ID: '+c+') by <a href="'+r+'" target="_blank">'+o+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a>'),jQuery(".blur-range").trigger("input"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #test-unsplash").prop("disabled",!1),jQuery(".cmp-coming-soon-maintenance #test-unsplash").text("Display Unsplash Photo"),jQuery(".cmp-coming-soon-maintenance #unsplash-media").html("<p>Error "+a.response+': <span style="text-transform:lowercase;">'+JSON.parse(a.body).errors+"</span></p>"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #unsplash_img").remove()}}),videoPreview=function(){if("5"==jQuery(".cmp-coming-soon-maintenance .background-type:checked").val()){var e=jQuery(".cmp-coming-soon-maintenance .banner-video-source").val();if("youtube"==e){var n=jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").val();if(""!=n){var a=n.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);if(a&&11==a[7].length){jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("");var t="https://img.youtube.com/vi/"+a[7]+"/maxresdefault.jpg";jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").append('<img src="'+t+'" alt=""/>'),jQuery(".cmp-coming-soon-maintenance .blur-range").trigger("input")}else jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("")}}if("local"==e){var i=jQuery("#niteoCS-video-local-id").data("url");""!=i&&jQuery(".cmp-coming-soon-maintenance .video-local-wrapper").html('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>')}}},videoPreview(),jQuery(".cmp-coming-soon-maintenance .background-type").on("change",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").on("keyup",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance .banner-video-source").on("change",function(){videoPreview()});var i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function o(e){switch(e){case"solid-color":jQuery(".thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val());break;case"gradient":jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").trigger("change");break;case"disabled":jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background","none")}}jQuery(".unsplash-feed-"+i).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery(".unsplash-feed-"+i).css("display","block"),jQuery("#test-unsplash").trigger("click")}),1==jQuery("#csoptions .niteoCS_banner:checked").val()&&jQuery("#test-unsplash").trigger("click"),jQuery(".cmp-coming-soon-maintenance select.background-gradient").on("change",function(){var e=jQuery(".cmp-coming-soon-maintenance select.background-gradient option:selected").val();"custom"==e?(jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","block"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})):(colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"}))}).trigger("change"),jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_color").wpColorPicker({change:function(e,n){jQuery(".color-preview").css("background-color",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_one").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_two").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_overlay_color").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css("background",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val()),jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").on("change",function(){var e=jQuery("select.overlay-gradient option:selected").val();if("custom"==e){jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","block");var n=jQuery("#niteoCS_overlay_gradient_one").val(),a=jQuery("#niteoCS_overlay_gradient_two").val();jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"linear-gradient(135deg, "+n+" 0%, "+a+" 100%)"})}else colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"})}),jQuery("#niteoCS_overlay_gradient_one").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)"})}}),jQuery("#niteoCS_overlay_gradient_two").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".background-overlay-opacity").on("input",function(){var e=jQuery(this).val();jQuery(".thumbnail-overlay").css("opacity",e)}).trigger("input"),o(jQuery(".cmp-coming-soon-maintenance .background-overlay").val()),jQuery(".cmp-coming-soon-maintenance .background-overlay").on("change",function(){o(jQuery(this).val())}),jQuery(".cmp-coming-soon-maintenance .blur-range").on("input",function(){var e=jQuery(this).val();jQuery(".cmp-coming-soon-maintenance .background-thumb-wrapper img:not(.no-blur)").css("filter","blur("+e+"px)")}).trigger("input"),jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"]').on("change",function(){var e=jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"] option:selected').val();if("custom"!=e){var n=jQuery(this).data("url");jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","none"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+e+".png')")}else{n=jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_pattern_custom").val();jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","block"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+"')")}}),jQuery(".cmp-coming-soon-maintenance .heading-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .heading-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #heading-example").removeClass().addClass("animated "+heading_anim)}),jQuery(".cmp-coming-soon-maintenance .content-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .content-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #content-example").removeClass().addClass("animated "+heading_anim)});var r=function(e,n,a){var t=jQuery(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value");t=jQuery.parseJSON(t),jQuery.each(t,function(t,i){i.name==e&&(i[n]=a)}),jQuery(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value",JSON.stringify(t))};if(!/Mobi/.test(navigator.userAgent)){var s=jQuery(".cmp-coming-soon-maintenance .social-inputs"),c=function(e,n){var a=s.find('input[type="text"]');n.item.index();a.each(function(e,n){var a=jQuery(n).data("name");r(a,"order",e)})};s.sortable({stop:c}),s.on("sortchange",c)}function l(e,n,a,t){var i,o=jQuery("."+e+"-wrapper"),r=jQuery("#add-"+e),s=jQuery("#delete-"+e),c="",l=e.replace("-"," ");l=l[0].toUpperCase()+l.slice(1),""!=jQuery("#niteoCS-"+e+"-id").val()&&s.css("display","block"),r.click(function(r){if(r.preventDefault(),u)u.open();else var u=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=u.state().get("selection").toJSON();n.length>0&&(o.find("img").remove(),o.attr("class",e+"-wrapper custom-gallery"),o.addClass("gallery-"+n.length),jQuery(n).each(function(a){switch(i=n[a].sizes&&n[a].sizes.large?n[a].sizes.large.url:n[a].url,c+=(0===a?"":",")+n[a].id,t){case"video":o.append('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>');break;case"background":o.css("background-image","url('"+i+"')");break;case"img":default:n.length>1&&0==a&&jQuery("."+e+"-wrapper .big-thumb").length?jQuery("."+e+"-wrapper .big-thumb").append('<img src="'+i+'" alt=""/>'):n.length>1&&0!==a?o.append('<img src="'+i+'" alt="" class="no-blur"/>'):o.find(".big-thumb").length?jQuery("."+e+"-wrapper .big-thumb").append('<img src="'+i+'" alt=""/>'):o.append('<img src="'+i+'" alt=""/>'),jQuery(".blur-range").trigger("input")}}),s.css("display","block")),jQuery("#niteoCS-"+e+"-id").val(c).trigger("change")}).open()}),s.click(function(n){jQuery(this).css("display","none"),o.find("img").remove(),jQuery("#niteoCS-"+e+"-id").val(""),jQuery("#niteoCS-"+e+"-id").trigger("change")})}function u(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery(".cmp-coming-soon-maintenance ."+e+":checked").val();n=void 0===(n=jQuery.isNumeric(n)?"x"+n:n)?"off":n,jQuery(".cmp-coming-soon-maintenance ."+e+"-switch."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+"-switch:not(."+n+")").css("display","none")}),jQuery(".cmp-coming-soon-maintenance ."+e).first().trigger("change")}function m(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery("."+e).val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+":not(."+n+")").css("display","none")}),jQuery("."+e).first().trigger("change")}function p(e,n,a){jQuery(e).on("input",function(){var e=jQuery(this).val();"html"===a&&jQuery(this).parent().find(n).html(e),"val"===a&&jQuery(this).parent().find(n).val(e)})}jQuery,jQuery.fn.toggleDisabled=function(){return this.each(function(){var e,n=jQuery(this),a=n.data("name");n.attr("disabled")?(n.prop("disabled",!1),e="1"):(n.prop("disabled",!0),e="0"),r(a,"active",e)})},jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="text"]').focusout(function(){var e=jQuery(this).data("name"),n=jQuery(this).val();r(e,"url",n)}),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="checkbox"]').click(function(e){jQuery(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".cmp-coming-soon-maintenance .social-media i").click(function(){var e=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e+" input").trigger("change"),jQuery(this).hasClass("active")?r(e,"hidden","0"):r(e,"hidden","1"),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length?jQuery(".social-inputs .label").css("display","block"):jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","none")}),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length&&jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","block"),jQuery(".cmp.update-theme").click(function(e){e.preventDefault();var n=jQuery(this),a=n.parents(".notice"),t=n.data("security"),i=n.data("slug"),o=n.data("name"),r={action:"cmp_theme_update_install",security:t,file:{name:i,tmp_name:"",url:jQuery(this).data("remote_url")+"?action=download&slug="+i}};a.find(".message").html('<i class="fas fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'),jQuery.post(ajaxurl,r,function(e){if("success"==(e=e.trim()))setTimeout(function(){a.removeClass("notice-warning").addClass("notice-success"),a.find(".message").html("<span> "+o+' CMP theme was updated sucessfully! You can enjoy latest features now :) </span><i class="far fa-smile" aria-hidden="true"></i>')},1500);else{e=e.slice(0,-1);var n=jQuery("p",jQuery(e)).text();a.removeClass("notice-warning").addClass("notice-error"),a.find(".message").html('<i class="far fa-frown" aria-hidden="true"></i><span> '+n+"</span>")}})}),jQuery(".cmp-coming-soon-maintenance .theme-update.button").one("click",function(e){e.preventDefault();var n=jQuery(this),a=n.closest(".theme-wrapper"),t=a.data("security"),i=a.data("slug"),o={action:"cmp_theme_update_install",security:t,file:{name:i,tmp_name:"",url:a.data("remote_url")+"?action=download&slug="+i}};n.html('<i class="fas fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>'),jQuery.post(ajaxurl,o,function(e){"success"==e?setTimeout(function(){n.html('<i class="far fa-smile" aria-hidden="true"></i><span>Updated!</span>'),setTimeout(function(){n.fadeOut()},1500)},1500):(e=e.slice(0,-1),n.html('<i class="far fa-frown" aria-hidden="true"></i><span>Update Failed!</span>'))})}),jQuery(".cmp-coming-soon-maintenance .theme-details").click(function(e){e.preventDefault();var n=jQuery(this).closest(".theme-wrapper"),a=n.data("slug"),t=n.data("version"),i=n.data("type"),o=n.data("purchased"),r=0,s={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};jQuery.post(ajaxurl,s,function(e){var s="",c="";if("true"==(e=jQuery.parseJSON(e)).result){if(jQuery("body").addClass("modal-open"),"1"==o&&(c='<span class="theme-version">Installed version: '+t+"</span>"),"1"!=o&&"premium"==i)s='<button type="button" class="theme-purchase button hide"><a href="'+n.find(".cmp-purchase-theme").attr("href")+'" target="_blank"><i class="fas fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';var l=e.screenshots,u="";Object.keys(l).length>1&&(u='<div class="screenshots-nav"><div class="left"><i class="fas fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fas fa-chevron-right" aria-hidden="true"></i></div></div>');var m=jQuery(['<div class="theme-backdrop">','\t<div class="theme-wrap">','\t\t<div class="theme-header">','\t\t\t<button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',"\t\t</div>",'\t\t<div class="theme-about">','\t\t\t<div class="theme-screenshots">','\t\t\t\t<div class="screenshot" style="background-image:url(\''+l[0]+"')\">"+u+"</div>","\t\t\t</div>",'\t\t\t<div class="theme-info">','\t\t\t\t<h2 class="theme-name">'+e.name+c+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+e.author_homepage+'" target="_blank">'+e.author+"</a></p>","",s,'\t\t\t\t<div class="theme-description">'+e.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<a href="https://niteothemes.com/cmp-coming-soon-maintenance/?theme='+a+"&utm_source=cmp&utm_medium=referral&utm_campaign="+a+'" class="button cmp-preview" target="_blank" aria-label="Preview '+e.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(m),jQuery(".theme-overlay.cmp .close").click(function(e){e.preventDefault(),jQuery("body").removeClass("modal-open"),jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast")}),jQuery(".screenshots-nav .right").click(function(){++r==Object.keys(l).length&&(r=0),r in l&&jQuery(".screenshot").css("background-image","url('"+l[r]+"')")}),jQuery(".screenshots-nav .left").click(function(){--r<0&&(r=Object.keys(l).length-1),r in l&&jQuery(".screenshot").css("background-image","url('"+l[r]+"')")})}})}),jQuery(".cmp-coming-soon-maintenance #connect-mailchimp").click(function(e){e.preventDefault();var n=jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_mailchimp_apikey"]').val(),a=jQuery(this).data("security"),t=jQuery(this);if(""!=n){var i={apikey:n,security:a};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fas fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var o={action:"cmp_mailchimp_list_ajax",security:a,params:i};jQuery.post(ajaxurl,o,function(e){var n=JSON.parse(e);200==n.response?(jQuery("#niteoCS_mailchimp_list").empty().prop("disabled",!1),jQuery.each(n.lists,function(e,n){jQuery("#niteoCS_mailchimp_list").append('<option value="'+n.id+'">'+n.name+"</option>")})):jQuery("#niteoCS_mailchimp_list").empty().prop("disabled",!0).html('<option value="error">'+n.message+"</option>").trigger("change"),t.html("Retrieve Lists"),t.prop("disabled",!1)}).fail(function(){t.html("Retrieve Lists"),t.prop("disabled",!1)})}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper.theme-setup h4").each(function(){if("Overlay Color"==jQuery(this).html())return jQuery(this).parents("tr").remove(),!1}),jQuery(".nav-tab-wrapper").on("click",".theme-preview",function(e){return!(jQuery("#csoptions fieldset:not(.skip-preview-validation *)").serialize()!=t&&!confirm("You have made changes that will not be visible in the preview until you save them. Please save changes first.\nContinue anyway?"))||(e.preventDefault(),!1)})});
|
niteo-cmp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: CMP - Coming Soon & Maintenance Plugin
|
4 |
Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
|
5 |
Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
|
6 |
-
Version:
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
@@ -63,7 +63,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
63 |
|
64 |
// define constants
|
65 |
private function constants() {
|
66 |
-
$this->define( 'CMP_VERSION', '
|
67 |
$this->define( 'CMP_DEBUG', FALSE );
|
68 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
69 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
@@ -110,26 +110,21 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
110 |
add_action( 'admin_head', array( $this, 'cmp_admin_css') );
|
111 |
add_action( 'after_setup_theme', array( $this, 'cmp_create_translation'), 10 );
|
112 |
add_action( 'after_setup_theme', array( $this, 'cmp_register_wpml_strings'), 20 );
|
113 |
-
add_action( 'rest_api_init', array( $this, 'restrict_rest_api'), 0 );
|
114 |
add_filter( 'upload_mimes', array( $this, 'cmp_allow_font_mimes' ));
|
115 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this,'add_action_links' ) );
|
116 |
-
|
117 |
register_activation_hook( __FILE__, array( $this, 'cmp_activate' ) );
|
118 |
register_deactivation_hook( __FILE__, array( $this, 'cmp_deactivate' ) );
|
119 |
-
|
120 |
require_once( dirname( __FILE__) . '/inc/class-cmp-render_html.php' );
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
*/
|
126 |
-
function restrict_rest_api() {
|
127 |
-
if ( !get_option('niteoCS_rest_api_status', '1') ){
|
128 |
-
echo '{"code":"json_disabled","message":"JSON API is disabled by CMP – Coming Soon & Maintenance Plugin."}';
|
129 |
-
die();
|
130 |
}
|
131 |
}
|
132 |
|
|
|
133 |
/**
|
134 |
* Define constant if not already set.
|
135 |
*
|
@@ -234,7 +229,9 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
234 |
$this->cmp_register_string( 'CMP - Coming Soon & Maintenance', 'Extended Footer Content', stripslashes( get_option('niteoCS_contact_content', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.') ) );
|
235 |
$this->cmp_register_string( 'CMP - Coming Soon & Maintenance', 'Contact Form Title', stripslashes( get_option('niteoCS_contact_form_label', 'Get in Touch') ) );
|
236 |
$this->cmp_register_string( 'CMP - Coming Soon & Maintenance', 'SEO Title', stripslashes( get_option('niteoCS_title', get_bloginfo('name').' Coming soon!') ) );
|
237 |
-
$this->cmp_register_string( 'CMP - Coming Soon & Maintenance', 'SEO Description', stripslashes( get_option('niteoCS_descr', 'Just Another Coming Soon Page') ) );
|
|
|
|
|
238 |
|
239 |
foreach ( $translation as $translate ) {
|
240 |
$this->cmp_register_string( 'CMP - Coming Soon & Maintenance', $translate['name'], stripslashes( $translate['translation'] ) );
|
@@ -466,6 +463,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
466 |
public function cmp_premium_themes() {
|
467 |
|
468 |
$premium_themes = array();
|
|
|
469 |
array_push( $premium_themes, array('name' => 'saturn', 'url' => 'https://niteothemes.com/downloads/cmp-saturn-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=saturn', 'price' => '12') );
|
470 |
array_push( $premium_themes, array('name' => 'mercury', 'url' => 'https://niteothemes.com/downloads/cmp-mercury-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=mercury', 'price' => '10') );
|
471 |
array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://niteothemes.com/downloads/cmp-fifty-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=fifty', 'price' => '10') );
|
@@ -1695,7 +1693,15 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1695 |
array_push( $subscribe_list, $new_email );
|
1696 |
update_option('niteoCS_subscribers_list', $subscribe_list);
|
1697 |
$response = array( 'status' => '1', 'message' => $response_ok);
|
1698 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1699 |
// if email exists return duplicate response
|
1700 |
} else {
|
1701 |
$response = array( 'status' => '0', 'message' => $response_duplicate);
|
@@ -2090,23 +2096,46 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
2090 |
return $url[7];
|
2091 |
}
|
2092 |
|
2093 |
-
public function cmp_get_pages( $post_status = 'publish,draft') {
|
2094 |
-
$
|
2095 |
-
$pages
|
2096 |
-
$published = get_pages(
|
2097 |
-
array (
|
2098 |
-
'post_status' => $post_status,
|
2099 |
-
)
|
2100 |
-
);
|
2101 |
-
|
2102 |
-
$page_ids = wp_list_pluck( $published, 'ID' );
|
2103 |
|
2104 |
-
|
2105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2106 |
}
|
2107 |
|
2108 |
-
|
2109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2110 |
}
|
2111 |
|
2112 |
return $pages;
|
@@ -2818,7 +2847,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
2818 |
$option_name = $option->option_name;
|
2819 |
$option_value = get_option( $option_name );
|
2820 |
|
2821 |
-
$img_settings = array( 'niteoCS_banner_id', 'niteoCS_logo_id', 'niteoCS_seo_img_id', 'niteoCS_favicon_id' );
|
2822 |
|
2823 |
if ( in_array($option_name, $img_settings) && $option_value && $option_value != '' ) {
|
2824 |
$option_value = $this->cmp_get_img_urls($option_value);
|
@@ -2939,7 +2968,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
2939 |
// import cmp settings from JSON structure
|
2940 |
foreach ( $settings as $setting ) {
|
2941 |
|
2942 |
-
$img_settings = array('niteoCS_banner_id', 'niteoCS_logo_id', 'niteoCS_seo_img_id', 'niteoCS_favicon_id' );
|
2943 |
|
2944 |
$name = key($setting);
|
2945 |
$value = $setting[$name];
|
@@ -3073,6 +3102,27 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
3073 |
|
3074 |
echo '<div class="notice notice-'.$type.' '.$dismisable.'"><p class="message">'.$message.'</p></div>';
|
3075 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3076 |
}
|
3077 |
|
3078 |
|
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: 4.0.0
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
63 |
|
64 |
// define constants
|
65 |
private function constants() {
|
66 |
+
$this->define( 'CMP_VERSION', '4.0.0' );
|
67 |
$this->define( 'CMP_DEBUG', FALSE );
|
68 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
69 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
110 |
add_action( 'admin_head', array( $this, 'cmp_admin_css') );
|
111 |
add_action( 'after_setup_theme', array( $this, 'cmp_create_translation'), 10 );
|
112 |
add_action( 'after_setup_theme', array( $this, 'cmp_register_wpml_strings'), 20 );
|
|
|
113 |
add_filter( 'upload_mimes', array( $this, 'cmp_allow_font_mimes' ));
|
114 |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this,'add_action_links' ) );
|
115 |
+
|
116 |
register_activation_hook( __FILE__, array( $this, 'cmp_activate' ) );
|
117 |
register_deactivation_hook( __FILE__, array( $this, 'cmp_deactivate' ) );
|
118 |
+
|
119 |
require_once( dirname( __FILE__) . '/inc/class-cmp-render_html.php' );
|
120 |
+
|
121 |
+
if ( $this->cmp_active() === '1' && get_option('niteoCS_rest_api_status', '1') !== '1' ) {
|
122 |
+
add_filter( 'rest_authentication_errors', array( $this, 'restrict_rest_api'), 0, 1 );
|
123 |
+
|
|
|
|
|
|
|
|
|
|
|
124 |
}
|
125 |
}
|
126 |
|
127 |
+
|
128 |
/**
|
129 |
* Define constant if not already set.
|
130 |
*
|
229 |
$this->cmp_register_string( 'CMP - Coming Soon & Maintenance', 'Extended Footer Content', stripslashes( get_option('niteoCS_contact_content', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.') ) );
|
230 |
$this->cmp_register_string( 'CMP - Coming Soon & Maintenance', 'Contact Form Title', stripslashes( get_option('niteoCS_contact_form_label', 'Get in Touch') ) );
|
231 |
$this->cmp_register_string( 'CMP - Coming Soon & Maintenance', 'SEO Title', stripslashes( get_option('niteoCS_title', get_bloginfo('name').' Coming soon!') ) );
|
232 |
+
$this->cmp_register_string( 'CMP - Coming Soon & Maintenance', 'SEO Description', stripslashes( get_option('niteoCS_descr', 'Just Another Coming Soon Page') ) );
|
233 |
+
$this->cmp_register_string( 'CMP - Coming Soon & Maintenance', 'Subscribe Popup Form Title', stripslashes( get_option('niteoCS_subscribe_popup_title', get_option('niteoCS_subscribe_title', 'SUBSCRIBE US') ) ) );
|
234 |
+
$this->cmp_register_string( 'CMP - Coming Soon & Maintenance', 'Popup Subscribe GDPR Message', stripslashes(get_option('niteoCS_subscribe_label_popup') ) );
|
235 |
|
236 |
foreach ( $translation as $translate ) {
|
237 |
$this->cmp_register_string( 'CMP - Coming Soon & Maintenance', $translate['name'], stripslashes( $translate['translation'] ) );
|
463 |
public function cmp_premium_themes() {
|
464 |
|
465 |
$premium_themes = array();
|
466 |
+
array_push( $premium_themes, array('name' => 'titan', 'url' => 'https://niteothemes.com/downloads/cmp-titan-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=titan', 'price' => '12') );
|
467 |
array_push( $premium_themes, array('name' => 'saturn', 'url' => 'https://niteothemes.com/downloads/cmp-saturn-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=saturn', 'price' => '12') );
|
468 |
array_push( $premium_themes, array('name' => 'mercury', 'url' => 'https://niteothemes.com/downloads/cmp-mercury-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=mercury', 'price' => '10') );
|
469 |
array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://niteothemes.com/downloads/cmp-fifty-theme/?utm_source=cmp&utm_medium=referral&utm_campaign=fifty', 'price' => '10') );
|
1693 |
array_push( $subscribe_list, $new_email );
|
1694 |
update_option('niteoCS_subscribers_list', $subscribe_list);
|
1695 |
$response = array( 'status' => '1', 'message' => $response_ok);
|
1696 |
+
// sent notif email
|
1697 |
+
if ( get_option('niteoCS_subscribe_notification', '0') ) {
|
1698 |
+
$subscribe_notif_email = get_option('niteoCS_subscribe_email_address', get_option( 'admin_email' ));
|
1699 |
+
$subject = sprintf(__('You have a new Subscriber on %s!', 'cmp-coming-soon-maintenance'), get_site_url());
|
1700 |
+
$body = __('This is auto generated message from CMP - Coming Soon & Maintenance WordPress Plugin. You can disable these emails under CMP Advanced Settings > Email Notifications.', 'cmp-coming-soon-maintenance');
|
1701 |
+
$headers = array('Content-Type: text/plain; charset=UTF-8');
|
1702 |
+
wp_mail( $subscribe_notif_email, $subject, $body, $headers );
|
1703 |
+
}
|
1704 |
+
|
1705 |
// if email exists return duplicate response
|
1706 |
} else {
|
1707 |
$response = array( 'status' => '0', 'message' => $response_duplicate);
|
2096 |
return $url[7];
|
2097 |
}
|
2098 |
|
2099 |
+
public function cmp_get_pages( $post_status = 'publish,draft', $builder = false) {
|
2100 |
+
$meta_query = array();
|
2101 |
+
$pages = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2102 |
|
2103 |
+
// meta_query for pages built by elementor
|
2104 |
+
if ( $builder === 'elementor' ) {
|
2105 |
+
$meta_query = array(
|
2106 |
+
'key' => '_elementor_edit_mode',
|
2107 |
+
'compare' => 'EXISTS'
|
2108 |
+
);
|
2109 |
+
}
|
2110 |
+
// meta_query for pages built by Divi
|
2111 |
+
if ( $builder === 'divi' ) {
|
2112 |
+
$meta_query = array(
|
2113 |
+
'key' => '_et_pb_use_builder',
|
2114 |
+
'compare' => 'EXISTS'
|
2115 |
+
);
|
2116 |
}
|
2117 |
|
2118 |
+
$args = array(
|
2119 |
+
'post_type' => 'page',
|
2120 |
+
'post_status' => $post_status,
|
2121 |
+
'posts_per_page' => -1,
|
2122 |
+
'meta_query' => array($meta_query)
|
2123 |
+
);
|
2124 |
+
|
2125 |
+
$the_query = new WP_Query( $args );
|
2126 |
+
|
2127 |
+
if ( $the_query->have_posts() ) {
|
2128 |
+
|
2129 |
+
foreach( $the_query->posts as $post ) {
|
2130 |
+
// check for gutenberg pages
|
2131 |
+
if ( $builder === 'gutenberg' && !has_blocks($post->ID) ) {
|
2132 |
+
continue;
|
2133 |
+
}
|
2134 |
+
|
2135 |
+
$post_info = array('id' => $post->ID, 'name' => $post->post_title);
|
2136 |
+
array_push($pages, $post_info);
|
2137 |
+
}
|
2138 |
+
wp_reset_postdata();
|
2139 |
}
|
2140 |
|
2141 |
return $pages;
|
2847 |
$option_name = $option->option_name;
|
2848 |
$option_value = get_option( $option_name );
|
2849 |
|
2850 |
+
$img_settings = array( 'niteoCS_banner_id', 'niteoCS_logo_id', 'niteoCS_seo_img_id', 'niteoCS_favicon_id', 'niteoCS_subs_img_id', 'niteoCS_subs_img_popup_id' );
|
2851 |
|
2852 |
if ( in_array($option_name, $img_settings) && $option_value && $option_value != '' ) {
|
2853 |
$option_value = $this->cmp_get_img_urls($option_value);
|
2968 |
// import cmp settings from JSON structure
|
2969 |
foreach ( $settings as $setting ) {
|
2970 |
|
2971 |
+
$img_settings = array( 'niteoCS_banner_id', 'niteoCS_logo_id', 'niteoCS_seo_img_id', 'niteoCS_favicon_id', 'niteoCS_subs_img_id', 'niteoCS_subs_img_popup_id' );
|
2972 |
|
2973 |
$name = key($setting);
|
2974 |
$value = $setting[$name];
|
3102 |
|
3103 |
echo '<div class="notice notice-'.$type.' '.$dismisable.'"><p class="message">'.$message.'</p></div>';
|
3104 |
}
|
3105 |
+
|
3106 |
+
/**
|
3107 |
+
* Disable REST API if required
|
3108 |
+
*/
|
3109 |
+
function restrict_rest_api( $result ) {
|
3110 |
+
if ( true === $result || is_wp_error( $result ) ) {
|
3111 |
+
return $result;
|
3112 |
+
}
|
3113 |
+
|
3114 |
+
// No authentication has been performed yet.
|
3115 |
+
// Return an error if user is not logged in.
|
3116 |
+
if ( ! is_user_logged_in() ) {
|
3117 |
+
return new WP_Error(
|
3118 |
+
'rest_disabled',
|
3119 |
+
__( 'JSON API is disabled by CMP – Coming Soon & Maintenance Plugin.' ),
|
3120 |
+
array( 'status' => 401 )
|
3121 |
+
);
|
3122 |
+
}
|
3123 |
+
|
3124 |
+
}
|
3125 |
+
|
3126 |
}
|
3127 |
|
3128 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: coming soon, coming soon page, launch page, maintenance mode, under constr
|
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.6
|
8 |
-
Stable tag:
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -160,6 +160,17 @@ https://www.youtube.com/watch?v=uxuJfHzwdtE
|
|
160 |
<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>
|
161 |
|
162 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
<h4>CMP 3.9.7 - 07-Jan-21</h4>
|
164 |
<ul>
|
165 |
<li>Resolved PHP Warning when "HTTP_HOST" array key was not present. - @seath thanks for reporting it.</li>
|
5 |
Requires at least: 3.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.6
|
8 |
+
Stable tag: 4.0.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
160 |
<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>
|
161 |
|
162 |
== Changelog ==
|
163 |
+
<h4>CMP 4.0.0 - 15-Feb-21</h4>
|
164 |
+
<ul>
|
165 |
+
<li>New CMP Theme: Titan.</li>
|
166 |
+
<li>Added new settings for Popup window with email subscription.</li>
|
167 |
+
<li>Added notification email option when a customer subscribes.</li>
|
168 |
+
</ul>
|
169 |
+
|
170 |
+
<h4>CMP 3.9.8 - 01-Feb-21</h4>
|
171 |
+
<ul>
|
172 |
+
<li>Resolved issue with bypassing WP JSON api on admin pages.</li>
|
173 |
+
</ul>
|
174 |
<h4>CMP 3.9.7 - 07-Jan-21</h4>
|
175 |
<ul>
|
176 |
<li>Resolved PHP Warning when "HTTP_HOST" array key was not present. - @seath thanks for reporting it.</li>
|
themes/titan.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
Theme Name: Titan
|
3 |
+
Description: <p>CMP Titan is designed as a coming soon and a maintenance page. This template is styled with picture in circle shape in the middle. If you are a manufacturer of products, you own an e-shop, you are a designer, a photographer, so this template is for you. Add a logo, title, information, social icons, countdown, or subscribe form.</p><h4>Main Features</h4><ul><li class="supported"><i class="far fa-check-square" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="far fa-check-square" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="far fa-check-square" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="far fa-check-square" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="far fa-check-square" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="far fa-check-square" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="far fa-check-square" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="far fa-check-square" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="far fa-check-square" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="far fa-check-square" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="far fa-check-square" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="far fa-check-square" aria-hidden="true"></i> Responsive Design</li><li class="not-supported"><i class="fas fa-times" aria-hidden="true"></i> Graphic Image Slider Background</li></ul>
|