Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 2.8.9 |
Comparing to | |
See all releases |
Code changes from version 2.8.8 to 2.8.9
- cmp-translate.php +4 -2
- css/cmp-settings-style.css +18 -21
- css/cmp-settings-style.min.css +1 -1
- img/thumbnails/vega/screenshot1.jpg +0 -0
- img/thumbnails/vega/screenshot2.jpg +0 -0
- img/thumbnails/vega/screenshot3.jpg +0 -0
- img/thumbnails/vega_thumbnail.jpg +0 -0
- inc/class-cmp-render_html.php +108 -38
- inc/cmp-update-process.php +11 -0
- inc/settings/settings-background.php +17 -19
- inc/settings/settings-subscribe.php +7 -5
- js/settings.js +21 -37
- js/settings.min.js +1 -1
- niteo-cmp.php +13 -7
- readme.txt +12 -1
- themes/construct/style.css +18 -0
- themes/countdown/style.css +65 -10
- themes/vega.txt +4 -0
cmp-translate.php
CHANGED
@@ -20,9 +20,10 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
20 |
9 => array('id' => 9, 'string' => 'Scroll', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_9'] )),
|
21 |
10 => array('id' => 10, 'string' => 'First Name', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_10'] )),
|
22 |
11 => array('id' => 11, 'string' => 'Last Name', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_11'] )),
|
|
|
23 |
);
|
24 |
|
25 |
-
update_option('niteoCS_translation', wp_json_encode($translation));
|
26 |
}
|
27 |
|
28 |
// Populate translation list, if not yet created
|
@@ -40,9 +41,10 @@ if ( !get_option('niteoCS_translation') ) {
|
|
40 |
9 => array('id' => 9, 'string' => 'Scroll', 'translation' => 'Scroll'),
|
41 |
10 => array('id' => 10, 'string' => 'First Name', 'translation' => 'First Name'),
|
42 |
11 => array('id' => 11, 'string' => 'Last Name', 'translation' => 'Last Name'),
|
|
|
43 |
);
|
44 |
|
45 |
-
update_option('niteoCS_translation', wp_json_encode($translation));
|
46 |
}
|
47 |
|
48 |
|
20 |
9 => array('id' => 9, 'string' => 'Scroll', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_9'] )),
|
21 |
10 => array('id' => 10, 'string' => 'First Name', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_10'] )),
|
22 |
11 => array('id' => 11, 'string' => 'Last Name', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_11'] )),
|
23 |
+
12 => array('id' => 12, 'string' => 'Subscribe', 'translation' => sanitize_text_field( $_POST['niteoCS_translate_12'] )),
|
24 |
);
|
25 |
|
26 |
+
update_option('niteoCS_translation', wp_json_encode( $translation ));
|
27 |
}
|
28 |
|
29 |
// Populate translation list, if not yet created
|
41 |
9 => array('id' => 9, 'string' => 'Scroll', 'translation' => 'Scroll'),
|
42 |
10 => array('id' => 10, 'string' => 'First Name', 'translation' => 'First Name'),
|
43 |
11 => array('id' => 11, 'string' => 'Last Name', 'translation' => 'Last Name'),
|
44 |
+
12 => array('id' => 12, 'string' => 'Subscribe', 'translation' => 'Subscribe'),
|
45 |
);
|
46 |
|
47 |
+
update_option('niteoCS_translation', wp_json_encode( $translation ));
|
48 |
}
|
49 |
|
50 |
|
css/cmp-settings-style.css
CHANGED
@@ -37,8 +37,7 @@
|
|
37 |
border-radius: 4px;
|
38 |
line-height: 2.5em;
|
39 |
height: 2.5em;
|
40 |
-
|
41 |
-
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03)
|
42 |
}
|
43 |
|
44 |
.cmp-coming-soon-maintenance .select2-container .select2-selection--single {
|
@@ -76,7 +75,6 @@
|
|
76 |
border-radius: 50%;
|
77 |
border: 1px solid #d4d4d4;
|
78 |
cursor: pointer;
|
79 |
-
-webkit-transition: .3s ease-in-out;
|
80 |
transition: .3s ease-in-out
|
81 |
}
|
82 |
|
@@ -283,8 +281,7 @@
|
|
283 |
|
284 |
.cmp-coming-soon-maintenance #niteoCS-text-logo {
|
285 |
border: none;
|
286 |
-
|
287 |
-
box-shadow: none;
|
288 |
font-size: 3em
|
289 |
}
|
290 |
|
@@ -375,6 +372,10 @@
|
|
375 |
display: none
|
376 |
}
|
377 |
|
|
|
|
|
|
|
|
|
378 |
.cmp-coming-soon-maintenance .color-preview,
|
379 |
.cmp-coming-soon-maintenance .gradient-preview,
|
380 |
.cmp-coming-soon-maintenance .pattern-wrapper {
|
@@ -460,14 +461,14 @@
|
|
460 |
grid-template-columns: 1fr 1fr 1fr;
|
461 |
-ms-grid-rows: 1fr auto;
|
462 |
grid-template-rows: 1fr auto;
|
463 |
-
|
464 |
grid-gap: 10px;
|
465 |
}
|
466 |
|
467 |
.cmp-coming-soon-maintenance .custom-gallery.gallery-3 {
|
468 |
-ms-grid-columns: 1fr 1fr!important;
|
469 |
grid-template-columns: 1fr 1fr!important;
|
470 |
-
|
471 |
|
472 |
}
|
473 |
|
@@ -536,7 +537,6 @@
|
|
536 |
content: '';
|
537 |
display: block;
|
538 |
padding-top: 56.25%;
|
539 |
-
-webkit-transition: background-color .1s;
|
540 |
transition: background-color .1s;
|
541 |
border-top-left-radius: 5px;
|
542 |
border-top-right-radius: 5px;
|
@@ -563,13 +563,11 @@
|
|
563 |
|
564 |
.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected) {
|
565 |
opacity: 0;
|
566 |
-
-webkit-transition: opacity .1s, background-color .1s;
|
567 |
transition: opacity .1s, background-color .1s;
|
568 |
}
|
569 |
|
570 |
.cmp-coming-soon-maintenance .theme-wrapper:hover .hide {
|
571 |
opacity: 1;
|
572 |
-
-webkit-transition: opacity .1s, background-color .1s;
|
573 |
transition: opacity .1s, background-color .1s;
|
574 |
}
|
575 |
|
@@ -616,7 +614,6 @@
|
|
616 |
color: #fff!important;
|
617 |
-moz-appearance: none;
|
618 |
-webkit-appearance: none;
|
619 |
-
-webkit-transition: background-color .5s;
|
620 |
transition: background-color .5s;
|
621 |
border: none!important;
|
622 |
box-shadow: none;
|
@@ -630,15 +627,13 @@
|
|
630 |
background-color: #c0392b;
|
631 |
color: #fff;
|
632 |
border: none;
|
633 |
-
-webkit-transition: background-color .5s;
|
634 |
transition: background-color .5s
|
635 |
}
|
636 |
|
637 |
.cmp-coming-soon-maintenance .theme-wrapper a.button:visited,
|
638 |
.cmp-coming-soon-maintenance .theme-wrapper a.button:focus {
|
639 |
background: transparent;
|
640 |
-
|
641 |
-
box-shadow: none;
|
642 |
}
|
643 |
|
644 |
.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase {
|
@@ -668,8 +663,7 @@
|
|
668 |
background: transparent;
|
669 |
border: none;
|
670 |
outline: none;
|
671 |
-
|
672 |
-
box-shadow: none;
|
673 |
}
|
674 |
|
675 |
.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before {
|
@@ -766,7 +760,6 @@
|
|
766 |
}
|
767 |
|
768 |
.cmp-coming-soon-maintenance .theme-overlay .screenshot {
|
769 |
-
-webkit-transition: background-image .2s ease-in-out;
|
770 |
transition: background-image .2s ease-in-out
|
771 |
}
|
772 |
|
@@ -784,7 +777,6 @@
|
|
784 |
background-color: #000;
|
785 |
line-height: 40px;
|
786 |
opacity: .7;
|
787 |
-
-webkit-transition: opacity .5s;
|
788 |
transition: opacity .5s
|
789 |
}
|
790 |
|
@@ -840,7 +832,6 @@
|
|
840 |
font-weight: 600;
|
841 |
background: 0 0;
|
842 |
border: 2px solid #f1f1f1;
|
843 |
-
-webkit-transition: all .2s ease-in-out;
|
844 |
transition: all .2s ease-in-out;
|
845 |
border-radius: 15px
|
846 |
}
|
@@ -851,7 +842,6 @@
|
|
851 |
line-height: 30px;
|
852 |
font-size: 14px;
|
853 |
z-index: 2;
|
854 |
-
-webkit-transition: all .2s ease-in-out;
|
855 |
transition: all .2s ease-in-out
|
856 |
}
|
857 |
|
@@ -868,7 +858,6 @@
|
|
868 |
height: 24px;
|
869 |
top: 3px;
|
870 |
left: 5px;
|
871 |
-
-webkit-transition: all .2s ease-in-out;
|
872 |
transition: all .2s ease-in-out;
|
873 |
-webkit-transform: translateX(0);
|
874 |
transform: translateX(0);
|
@@ -985,11 +974,19 @@
|
|
985 |
width: 5%
|
986 |
}
|
987 |
|
|
|
|
|
|
|
|
|
988 |
.cmp-coming-soon-maintenance .constellation,
|
989 |
.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset{
|
990 |
margin-top: 1em;
|
991 |
}
|
992 |
|
|
|
|
|
|
|
|
|
993 |
@media screen and (max-width:1450px) {
|
994 |
.cmp-coming-soon-maintenance .cmp-inputs-wrapper,
|
995 |
.cmp-coming-soon-maintenance #csoptions {
|
37 |
border-radius: 4px;
|
38 |
line-height: 2.5em;
|
39 |
height: 2.5em;
|
40 |
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03)
|
|
|
41 |
}
|
42 |
|
43 |
.cmp-coming-soon-maintenance .select2-container .select2-selection--single {
|
75 |
border-radius: 50%;
|
76 |
border: 1px solid #d4d4d4;
|
77 |
cursor: pointer;
|
|
|
78 |
transition: .3s ease-in-out
|
79 |
}
|
80 |
|
281 |
|
282 |
.cmp-coming-soon-maintenance #niteoCS-text-logo {
|
283 |
border: none;
|
284 |
+
box-shadow: none;
|
|
|
285 |
font-size: 3em
|
286 |
}
|
287 |
|
372 |
display: none
|
373 |
}
|
374 |
|
375 |
+
.cmp-coming-soon-maintenance #unsplash-media {
|
376 |
+
position: relative;
|
377 |
+
}
|
378 |
+
|
379 |
.cmp-coming-soon-maintenance .color-preview,
|
380 |
.cmp-coming-soon-maintenance .gradient-preview,
|
381 |
.cmp-coming-soon-maintenance .pattern-wrapper {
|
461 |
grid-template-columns: 1fr 1fr 1fr;
|
462 |
-ms-grid-rows: 1fr auto;
|
463 |
grid-template-rows: 1fr auto;
|
464 |
+
grid-template-areas: "Big Big Big" "small-3 small-2 small-1";
|
465 |
grid-gap: 10px;
|
466 |
}
|
467 |
|
468 |
.cmp-coming-soon-maintenance .custom-gallery.gallery-3 {
|
469 |
-ms-grid-columns: 1fr 1fr!important;
|
470 |
grid-template-columns: 1fr 1fr!important;
|
471 |
+
grid-template-areas: "Big Big" "small-2 small-1"!important;
|
472 |
|
473 |
}
|
474 |
|
537 |
content: '';
|
538 |
display: block;
|
539 |
padding-top: 56.25%;
|
|
|
540 |
transition: background-color .1s;
|
541 |
border-top-left-radius: 5px;
|
542 |
border-top-right-radius: 5px;
|
563 |
|
564 |
.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected) {
|
565 |
opacity: 0;
|
|
|
566 |
transition: opacity .1s, background-color .1s;
|
567 |
}
|
568 |
|
569 |
.cmp-coming-soon-maintenance .theme-wrapper:hover .hide {
|
570 |
opacity: 1;
|
|
|
571 |
transition: opacity .1s, background-color .1s;
|
572 |
}
|
573 |
|
614 |
color: #fff!important;
|
615 |
-moz-appearance: none;
|
616 |
-webkit-appearance: none;
|
|
|
617 |
transition: background-color .5s;
|
618 |
border: none!important;
|
619 |
box-shadow: none;
|
627 |
background-color: #c0392b;
|
628 |
color: #fff;
|
629 |
border: none;
|
|
|
630 |
transition: background-color .5s
|
631 |
}
|
632 |
|
633 |
.cmp-coming-soon-maintenance .theme-wrapper a.button:visited,
|
634 |
.cmp-coming-soon-maintenance .theme-wrapper a.button:focus {
|
635 |
background: transparent;
|
636 |
+
box-shadow: none;
|
|
|
637 |
}
|
638 |
|
639 |
.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase {
|
663 |
background: transparent;
|
664 |
border: none;
|
665 |
outline: none;
|
666 |
+
box-shadow: none;
|
|
|
667 |
}
|
668 |
|
669 |
.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before {
|
760 |
}
|
761 |
|
762 |
.cmp-coming-soon-maintenance .theme-overlay .screenshot {
|
|
|
763 |
transition: background-image .2s ease-in-out
|
764 |
}
|
765 |
|
777 |
background-color: #000;
|
778 |
line-height: 40px;
|
779 |
opacity: .7;
|
|
|
780 |
transition: opacity .5s
|
781 |
}
|
782 |
|
832 |
font-weight: 600;
|
833 |
background: 0 0;
|
834 |
border: 2px solid #f1f1f1;
|
|
|
835 |
transition: all .2s ease-in-out;
|
836 |
border-radius: 15px
|
837 |
}
|
842 |
line-height: 30px;
|
843 |
font-size: 14px;
|
844 |
z-index: 2;
|
|
|
845 |
transition: all .2s ease-in-out
|
846 |
}
|
847 |
|
858 |
height: 24px;
|
859 |
top: 3px;
|
860 |
left: 5px;
|
|
|
861 |
transition: all .2s ease-in-out;
|
862 |
-webkit-transform: translateX(0);
|
863 |
transform: translateX(0);
|
974 |
width: 5%
|
975 |
}
|
976 |
|
977 |
+
.cmp-coming-soon-maintenance #niteoCS_subscribe_label {
|
978 |
+
height: 150px;
|
979 |
+
}
|
980 |
+
|
981 |
.cmp-coming-soon-maintenance .constellation,
|
982 |
.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset{
|
983 |
margin-top: 1em;
|
984 |
}
|
985 |
|
986 |
+
.cmp-coming-soon-maintenance .cmp-hint {
|
987 |
+
font-size: 0.9em;
|
988 |
+
}
|
989 |
+
|
990 |
@media screen and (max-width:1450px) {
|
991 |
.cmp-coming-soon-maintenance .cmp-inputs-wrapper,
|
992 |
.cmp-coming-soon-maintenance #csoptions {
|
css/cmp-settings-style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:1em}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;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:5px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;transition:.3s ease-in-out}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance #niteoCS_countdown_redirect,.cmp-coming-soon-maintenance #niteoCS_countdown_text,.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 legend{width:95%;padding:10px;cursor:pointer}.cmp-coming-soon-maintenance .cmp-status .active{background-color:#ddd}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{margin-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left;font-weight:600}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-inputs li.social-labels{display:block}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.5em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .unsplash-feed{display:none}.cmp-coming-soon-maintenance .social-inputs p{position:relative;padding-left:50px;height:50px}.cmp-coming-soon-maintenance .social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.cmp-coming-soon-maintenance .theme-details,.cmp-coming-soon-maintenance .toggle{cursor:pointer}.cmp-coming-soon-maintenance .social-inputs label{padding-left:100px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}.cmp-coming-soon-maintenance .color-preview,.cmp-coming-soon-maintenance .gradient-preview,.cmp-coming-soon-maintenance .pattern-wrapper{position:relative;background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.cmp-coming-soon-maintenance .theme-overlay .screenshot,.cmp-coming-soon-maintenance .thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.cmp-coming-soon-maintenance .video-local-wrapper,.cmp-coming-soon-maintenance .video-yt-wrapper{position:relative;width:100%;margin-top:1em}.cmp-coming-soon-maintenance #add-pattern{margin-bottom:1em}.cmp-coming-soon-maintenance .info{font-size:12px}.cmp-coming-soon-maintenance .nav-tab i{padding-right:3px}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper{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{max-width:100%;width:100%;vertical-align:top}.cmp-coming-soon-maintenance .background-thumb-wrapper,.cmp-coming-soon-maintenance .video-thumb-wrapper{position:relative;margin:1em 0;overflow:hidden}.cmp-coming-soon-maintenance .thumbnail-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2){display:-ms-grid;display:grid;height:auto;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;-ms-grid-rows:1fr auto;grid-template-rows:1fr auto;grid-template-areas:"Big Big Big" "small-3 small-2 small-1";grid-gap:10px}.cmp-coming-soon-maintenance .custom-gallery.gallery-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"Big Big" "small-2 small-1"!important}.cmp-coming-soon-maintenance .gallery-2 .big-thumb{margin-bottom:1em}.cmp-coming-soon-maintenance .big-thumb{grid-area:Big/Big;overflow:hidden;position:relative}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden}.cmp-coming-soon-maintenance #heading-example{border-bottom:none;line-height:1.5;padding:0}.cmp-coming-soon-maintenance .font-selector td:first-of-type{padding-bottom:2em}.cmp-coming-soon-maintenance .font-selector fieldset{padding:.5em 0}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px 10px 5px 5px;height:2em;background:#656565;line-height:2em;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#27ae60}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#c0392b;color:#fff;border:none;transition:background-color .5s}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;width:180px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#32b2ff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:1em}.cmp-coming-soon-maintenance .toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;transition:all .2s ease-in-out;-webkit-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle_handler{background:#e74c3c}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:22px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#23282d}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:26px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.content-settings .cmp-sidebar-wrapper{margin-top:58px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}@media screen and (max-width:1450px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:70%}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{width:calc(30% - 2em + 7px);margin:0}.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{width:calc(50% - 3em - 5px)}}@media screen and (max-width:1270px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:100%}}@media screen and (max-width:1110px){.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.cmp-coming-soon-maintenance .table-wrapper th{display:block}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:1em}}@media screen and (max-width:1024px){.cmp-coming-soon-maintenance .table-wrapper table{width:100%}.cmp-coming-soon-maintenance .table-wrapper th{width:140px}}@media screen and (max-width:782px){.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;margin-bottom:1em!important}.cmp-coming-soon-maintenance .theme-overlay .theme-info,.cmp-coming-soon-maintenance .theme-overlay .theme-screenshots{width:100%;float:none}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{font-size:13px}}@media screen and (max-width:560px){.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:50px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:105px}.cmp-coming-soon-maintenance .social-inputs p i{top:22px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{top:28px;left:53px}.cmp-coming-soon-maintenance .social-inputs label{padding-left:55px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
|
1 |
+
.cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:1em}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.03);box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:5px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance #niteoCS_countdown_redirect,.cmp-coming-soon-maintenance #niteoCS_countdown_text,.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 legend{width:95%;padding:10px;cursor:pointer}.cmp-coming-soon-maintenance .cmp-status .active{background-color:#ddd}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{margin-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left;font-weight:600}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-inputs li.social-labels{display:block}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;-webkit-box-shadow:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.5em;padding-bottom:1em}.cmp-coming-soon-maintenance .social-media i{font-size:2.45em;cursor:pointer}.cmp-coming-soon-maintenance .social-media i.active{color:#d54e21}.cmp-coming-soon-maintenance .social-inputs li{display:none;width:100%}.cmp-coming-soon-maintenance .social-inputs li.active{display:inline-block}.cmp-coming-soon-maintenance #custom_content_font,.cmp-coming-soon-maintenance #custom_headings_font,.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .unsplash-feed{display:none}.cmp-coming-soon-maintenance .social-inputs p{position:relative;padding-left:50px;height:50px}.cmp-coming-soon-maintenance .social-inputs p i{position:absolute;left:0;top:20px;font-size:30px;width:30px;cursor:move}.cmp-coming-soon-maintenance .theme-details,.cmp-coming-soon-maintenance .toggle{cursor:pointer}.cmp-coming-soon-maintenance .social-inputs label{padding-left:100px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:100px;width:calc(100% - 100px)}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{position:absolute;width:26px;height:26px;top:23px;left:65px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:3px 0 0 1px}.cmp-coming-soon-maintenance #unsplash-media{position:relative}.cmp-coming-soon-maintenance .color-preview,.cmp-coming-soon-maintenance .gradient-preview,.cmp-coming-soon-maintenance .pattern-wrapper{position:relative;background-repeat:repeat;height:200px;border:1px solid #ededed;margin-top:1em}.cmp-coming-soon-maintenance .theme-overlay .screenshot,.cmp-coming-soon-maintenance .thumbnail-holder{position:relative;background-size:cover;background-repeat:no-repeat;background-position:center}.cmp-coming-soon-maintenance .video-local-wrapper,.cmp-coming-soon-maintenance .video-yt-wrapper{position:relative;width:100%;margin-top:1em}.cmp-coming-soon-maintenance #add-pattern{margin-bottom:1em}.cmp-coming-soon-maintenance .info{font-size:12px}.cmp-coming-soon-maintenance .nav-tab i{padding-right:3px}.cmp-coming-soon-maintenance .banner-wrapper,.cmp-coming-soon-maintenance .favicon-wrapper,.cmp-coming-soon-maintenance .logo-wrapper{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{max-width:100%;width:100%;vertical-align:top}.cmp-coming-soon-maintenance .background-thumb-wrapper,.cmp-coming-soon-maintenance .video-thumb-wrapper{position:relative;margin:1em 0;overflow:hidden}.cmp-coming-soon-maintenance .thumbnail-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2){display:-ms-grid;display:grid;height:auto;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;-ms-grid-rows:1fr auto;grid-template-rows:1fr auto;grid-template-areas:"Big Big Big" "small-3 small-2 small-1";grid-gap:10px}.cmp-coming-soon-maintenance .custom-gallery.gallery-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"Big Big" "small-2 small-1"!important}.cmp-coming-soon-maintenance .gallery-2 .big-thumb{margin-bottom:1em}.cmp-coming-soon-maintenance .big-thumb{grid-area:Big/Big;overflow:hidden;position:relative}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden}.cmp-coming-soon-maintenance #heading-example{border-bottom:none;line-height:1.5;padding:0}.cmp-coming-soon-maintenance .font-selector td:first-of-type{padding-bottom:2em}.cmp-coming-soon-maintenance .font-selector fieldset{padding:.5em 0}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;-webkit-transition:background-color .1s;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;-webkit-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-webkit-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px 10px 5px 5px;height:2em;background:#656565;line-height:2em;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#27ae60}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-webkit-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#c0392b;color:#fff;border:none;-webkit-transition:background-color .5s;transition:background-color .5s}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;-webkit-box-shadow:none;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;width:180px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;-webkit-box-shadow:none;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#32b2ff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{-webkit-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-webkit-transition:opacity .5s;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{-webkit-transition:all .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:1em}.cmp-coming-soon-maintenance .toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle_handler{background:#e74c3c}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:22px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#23282d}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:26px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.content-settings .cmp-sidebar-wrapper{margin-top:58px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}.cmp-coming-soon-maintenance #niteoCS_subscribe_label{height:150px}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}.cmp-coming-soon-maintenance .cmp-hint{font-size:.9em}@media screen and (max-width:1450px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:70%}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{width:calc(30% - 2em + 7px);margin:0}.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{width:calc(50% - 3em - 5px)}}@media screen and (max-width:1270px){.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{min-width:100%}}@media screen and (max-width:1110px){.cmp-coming-soon-maintenance .theme-wrapper,.cmp-coming-soon-maintenance .theme-wrapper.premium{margin-right:0;width:calc(100% - 5px)}.cmp-coming-soon-maintenance .table-wrapper th{display:block}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:1em}}@media screen and (max-width:1024px){.cmp-coming-soon-maintenance .table-wrapper table{width:100%}.cmp-coming-soon-maintenance .table-wrapper th{width:140px}}@media screen and (max-width:782px){.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]:checked:before{margin:-1px 0 0 -4px}.cmp-coming-soon-maintenance .cmp-inputs-wrapper,.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:block;max-width:100%;width:100%;margin:0}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;margin-bottom:1em!important}.cmp-coming-soon-maintenance .theme-overlay .theme-info,.cmp-coming-soon-maintenance .theme-overlay .theme-screenshots{width:100%;float:none}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{font-size:13px}}@media screen and (max-width:560px){.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:50px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:105px}.cmp-coming-soon-maintenance .social-inputs p i{top:22px}.cmp-coming-soon-maintenance .social-inputs input[type=checkbox]{top:28px;left:53px}.cmp-coming-soon-maintenance .social-inputs label{padding-left:55px}.cmp-coming-soon-maintenance .social-inputs input[type=text]{margin-left:55px;width:calc(100% - 55px)}}
|
img/thumbnails/vega/screenshot1.jpg
ADDED
Binary file
|
img/thumbnails/vega/screenshot2.jpg
ADDED
Binary file
|
img/thumbnails/vega/screenshot3.jpg
ADDED
Binary file
|
img/thumbnails/vega_thumbnail.jpg
ADDED
Binary file
|
inc/class-cmp-render_html.php
CHANGED
@@ -94,11 +94,9 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
94 |
|
95 |
if ( isset( $body[0] ) ) {
|
96 |
foreach ( $body as $item ) {
|
97 |
-
$
|
98 |
-
$unsplash_download = $item['links']['download_location'];
|
99 |
}
|
100 |
} else {
|
101 |
-
$unsplash_url = $body['urls']['raw'];
|
102 |
$unsplash_download = $body['links']['download_location'];
|
103 |
}
|
104 |
|
@@ -117,7 +115,6 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
117 |
ob_start(); ?>
|
118 |
|
119 |
<script>
|
120 |
-
var unsplash_img = '<?php echo esc_url( $unsplash_url );?>';
|
121 |
var unsplash_download = '<?php echo esc_url( $unsplash_download );?>';
|
122 |
|
123 |
var width = document.documentElement.clientWidth * <?php echo esc_attr( $width );?>;
|
@@ -127,7 +124,11 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
127 |
dimension = 'h=' + height;
|
128 |
}
|
129 |
|
130 |
-
|
|
|
|
|
|
|
|
|
131 |
|
132 |
var image = '<div id="background-image" class="image" style="background-image:></div>';
|
133 |
|
@@ -145,15 +146,12 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
145 |
container.appendChild(image);
|
146 |
|
147 |
// define get function for external URL
|
148 |
-
function Get(
|
149 |
var Httpreq = new XMLHttpRequest(); // a new request
|
150 |
-
Httpreq.open("GET",
|
151 |
Httpreq.send(null);
|
152 |
return Httpreq.responseText;
|
153 |
-
}
|
154 |
-
|
155 |
-
// trigger Unsplash download to meet API requirements
|
156 |
-
var json_obj = JSON.parse( Get( unsplash_download + '?client_id=41f043163758cf2e898e8a868bc142c20bc3f5966e7abac4779ee684088092ab' ) );
|
157 |
|
158 |
</script>
|
159 |
<?php
|
@@ -239,6 +237,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
239 |
$slider_count = get_option('niteoCS_slider_count['.$themeslug.']', '3');
|
240 |
$slider_effect = get_option('niteoCS_slider_effect['.$themeslug.']', 'true');
|
241 |
$slider_autoplay = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
|
|
|
242 |
$banner_id = get_option('niteoCS_banner_id['.$themeslug.']');
|
243 |
if ( $banner_id != '' ) {
|
244 |
$banner_ids = explode(',', $banner_id);
|
@@ -455,9 +454,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
455 |
}
|
456 |
|
457 |
// render Social Icons
|
458 |
-
public function cmp_social_icons( $mode = 'icon', $title = false, $themeslug = false ) {
|
459 |
|
460 |
$html = '';
|
|
|
461 |
|
462 |
if ( $title == true ) {
|
463 |
$soc_title = stripslashes( get_option('niteoCS_soc_title', 'GET SOCIAL WITH US') );
|
@@ -472,7 +472,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
472 |
//sort social icons array by hidden, then order key
|
473 |
uasort( $socialmedia , array($this,'sort_social') );
|
474 |
|
475 |
-
$html = $html.'<ul class="social-list">';
|
476 |
|
477 |
$theme_html = ( $themeslug == 'stylo' ) ? '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="3em" height="3em" viewBox="0 0 80 80" xml:space="preserve"><circle transform="rotate(-90 40 40)" class="another-circle" cx="40" cy="40" r="36" /></svg>' : '';
|
478 |
|
@@ -515,10 +515,11 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
515 |
}
|
516 |
|
517 |
// Render Logo
|
518 |
-
public function cmp_logo( $themeslug ) {
|
519 |
$logo_type = get_option('niteoCS_logo_type['.$themeslug.']', 'text');
|
520 |
$size = $this->isMobile() ? 'large' : 'full';
|
521 |
$html = '';
|
|
|
522 |
|
523 |
switch ( $logo_type ) {
|
524 |
case 'graphic':
|
@@ -530,13 +531,13 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
530 |
}
|
531 |
|
532 |
if ( isset($logo_url[0]) ) {
|
533 |
-
$html = '<div class="logo-wrapper image"><img src="'.esc_url( $logo_url[0] ).'" class="graphic-logo" alt="logo"></div>';
|
534 |
}
|
535 |
break;
|
536 |
|
537 |
case 'text':
|
538 |
$text_logo = stripslashes(get_option('niteoCS_text_logo['.$themeslug.']', get_bloginfo( 'name', 'display' )));
|
539 |
-
$html = '<div class="logo-wrapper text text-logo-wrapper"><h1 class="text-logo">'.esc_html( $text_logo ).'</h1></div>';
|
540 |
break;
|
541 |
|
542 |
case 'disabled':
|
@@ -549,13 +550,18 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
549 |
|
550 |
|
551 |
// render subscribe form
|
552 |
-
public function cmp_subscribe_form() {
|
553 |
// process emails first
|
554 |
$response = $this->niteo_subscribe( true );
|
|
|
|
|
|
|
|
|
|
|
555 |
|
|
|
556 |
$subscribe = get_option('niteoCS_subscribe_type', '2');
|
557 |
|
558 |
-
$html = '';
|
559 |
// if subscribers is 3rd party plugin, render form by shortcode
|
560 |
if ( $subscribe == '1' ) {
|
561 |
$replace = array('<p>', '</p>' );
|
@@ -563,8 +569,9 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
563 |
|
564 |
// CMP subscribe form
|
565 |
} else if ( $subscribe == '2' ) {
|
566 |
-
|
567 |
-
|
|
|
568 |
|
569 |
// override label if in Theme preview
|
570 |
if ( isset( $_GET['theme'] ) ) {
|
@@ -587,37 +594,93 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
587 |
$submit = isset($translation[8]['translation']) ? stripslashes( $translation[8]['translation'] ) : 'Submit';
|
588 |
|
589 |
// overwrite it with theme specific requirements
|
590 |
-
|
|
|
|
|
|
|
|
|
|
|
591 |
$submit = ( ( $this->cmp_selectedTheme() == 'postery' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'postery' ) ) ? '' : $submit;
|
592 |
|
593 |
?>
|
594 |
|
595 |
<form id="subscribe-form" method="post" class="cmp-subscribe">
|
596 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
597 |
|
598 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
599 |
|
600 |
-
|
|
|
|
|
|
|
|
|
601 |
|
602 |
-
|
|
|
|
|
|
|
603 |
|
604 |
-
|
|
|
|
|
605 |
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
|
610 |
-
|
611 |
-
|
612 |
-
<input type="submit" id="submit-subscribe" value="<?php echo esc_attr( $submit );?>">
|
613 |
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
|
618 |
-
|
619 |
|
620 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
621 |
|
622 |
</form>
|
623 |
|
@@ -831,6 +894,13 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
831 |
|
832 |
}
|
833 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
834 |
$title = ( $title == '' ) ? '' : '<h2 class="cmp-title animated '. $class .'">' . wp_kses( $title, $allowedposttags ) . '</h2>';
|
835 |
|
836 |
return $title;
|
@@ -871,7 +941,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
871 |
|
872 |
$subset = array_unique( array_merge( $heading_subsets, $content_subsets ) );
|
873 |
|
874 |
-
return '<link href="https://fonts.googleapis.com/css?family='. esc_attr( str_replace(' ', '+', $heading_font['family']) ) .':'. esc_attr(str_replace('italic', 'i', $heading_font['variant'] )) .'
|
875 |
}
|
876 |
|
877 |
/**
|
94 |
|
95 |
if ( isset( $body[0] ) ) {
|
96 |
foreach ( $body as $item ) {
|
97 |
+
$unsplash_download = $item['links']['download_location'];
|
|
|
98 |
}
|
99 |
} else {
|
|
|
100 |
$unsplash_download = $body['links']['download_location'];
|
101 |
}
|
102 |
|
115 |
ob_start(); ?>
|
116 |
|
117 |
<script>
|
|
|
118 |
var unsplash_download = '<?php echo esc_url( $unsplash_download );?>';
|
119 |
|
120 |
var width = document.documentElement.clientWidth * <?php echo esc_attr( $width );?>;
|
124 |
dimension = 'h=' + height;
|
125 |
}
|
126 |
|
127 |
+
// trigger Unsplash download to meet API requirements
|
128 |
+
var unsplash_img = JSON.parse( Get( unsplash_download + '?client_id=41f043163758cf2e898e8a868bc142c20bc3f5966e7abac4779ee684088092ab' ) );
|
129 |
+
|
130 |
+
unsplash_img = unsplash_img.url + '&fit=crop&' + dimension;
|
131 |
+
|
132 |
|
133 |
var image = '<div id="background-image" class="image" style="background-image:></div>';
|
134 |
|
146 |
container.appendChild(image);
|
147 |
|
148 |
// define get function for external URL
|
149 |
+
function Get(url){
|
150 |
var Httpreq = new XMLHttpRequest(); // a new request
|
151 |
+
Httpreq.open("GET", url, false);
|
152 |
Httpreq.send(null);
|
153 |
return Httpreq.responseText;
|
154 |
+
}
|
|
|
|
|
|
|
155 |
|
156 |
</script>
|
157 |
<?php
|
237 |
$slider_count = get_option('niteoCS_slider_count['.$themeslug.']', '3');
|
238 |
$slider_effect = get_option('niteoCS_slider_effect['.$themeslug.']', 'true');
|
239 |
$slider_autoplay = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
|
240 |
+
|
241 |
$banner_id = get_option('niteoCS_banner_id['.$themeslug.']');
|
242 |
if ( $banner_id != '' ) {
|
243 |
$banner_ids = explode(',', $banner_id);
|
454 |
}
|
455 |
|
456 |
// render Social Icons
|
457 |
+
public function cmp_social_icons( $mode = 'icon', $title = false, $themeslug = false, $class = '' ) {
|
458 |
|
459 |
$html = '';
|
460 |
+
$class = ( $class != '' ) ? ' ' . $class : $class;
|
461 |
|
462 |
if ( $title == true ) {
|
463 |
$soc_title = stripslashes( get_option('niteoCS_soc_title', 'GET SOCIAL WITH US') );
|
472 |
//sort social icons array by hidden, then order key
|
473 |
uasort( $socialmedia , array($this,'sort_social') );
|
474 |
|
475 |
+
$html = $html.'<ul class="social-list' . $class . '">';
|
476 |
|
477 |
$theme_html = ( $themeslug == 'stylo' ) ? '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="3em" height="3em" viewBox="0 0 80 80" xml:space="preserve"><circle transform="rotate(-90 40 40)" class="another-circle" cx="40" cy="40" r="36" /></svg>' : '';
|
478 |
|
515 |
}
|
516 |
|
517 |
// Render Logo
|
518 |
+
public function cmp_logo( $themeslug, $class = '' ) {
|
519 |
$logo_type = get_option('niteoCS_logo_type['.$themeslug.']', 'text');
|
520 |
$size = $this->isMobile() ? 'large' : 'full';
|
521 |
$html = '';
|
522 |
+
$class = ( $class != '' ) ? ' ' . $class : $class;
|
523 |
|
524 |
switch ( $logo_type ) {
|
525 |
case 'graphic':
|
531 |
}
|
532 |
|
533 |
if ( isset($logo_url[0]) ) {
|
534 |
+
$html = '<div class="logo-wrapper image' . esc_attr( $class ) . '"><img src="'.esc_url( $logo_url[0] ).'" class="graphic-logo" alt="logo"></div>';
|
535 |
}
|
536 |
break;
|
537 |
|
538 |
case 'text':
|
539 |
$text_logo = stripslashes(get_option('niteoCS_text_logo['.$themeslug.']', get_bloginfo( 'name', 'display' )));
|
540 |
+
$html = '<div class="logo-wrapper text text-logo-wrapper' . esc_attr( $class ) . '"><h1 class="text-logo">'.esc_html( $text_logo ).'</h1></div>';
|
541 |
break;
|
542 |
|
543 |
case 'disabled':
|
550 |
|
551 |
|
552 |
// render subscribe form
|
553 |
+
public function cmp_subscribe_form( $label = FALSE, $firstname = FALSE, $lastname = FALSE ) {
|
554 |
// process emails first
|
555 |
$response = $this->niteo_subscribe( true );
|
556 |
+
|
557 |
+
$html = '';
|
558 |
+
|
559 |
+
// get current theme
|
560 |
+
$theme = isset( $_GET['theme'] ) ? $_GET['theme'] : $this->cmp_selectedTheme();
|
561 |
|
562 |
+
// get type of susbscribe
|
563 |
$subscribe = get_option('niteoCS_subscribe_type', '2');
|
564 |
|
|
|
565 |
// if subscribers is 3rd party plugin, render form by shortcode
|
566 |
if ( $subscribe == '1' ) {
|
567 |
$replace = array('<p>', '</p>' );
|
569 |
|
570 |
// CMP subscribe form
|
571 |
} else if ( $subscribe == '2' ) {
|
572 |
+
|
573 |
+
// get GDPR message
|
574 |
+
$niteoCS_subscribe_label = stripslashes( get_option('niteoCS_subscribe_label') );
|
575 |
|
576 |
// override label if in Theme preview
|
577 |
if ( isset( $_GET['theme'] ) ) {
|
594 |
$submit = isset($translation[8]['translation']) ? stripslashes( $translation[8]['translation'] ) : 'Submit';
|
595 |
|
596 |
// overwrite it with theme specific requirements
|
597 |
+
if ( ( $this->cmp_selectedTheme() == 'stylo' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'stylo' ) ) {
|
598 |
+
$placeholder = ' ' . $placeholder;
|
599 |
+
$placeholder_firstname = ' ' . $placeholder;
|
600 |
+
$placeholder_lastname = ' ' . $placeholder;
|
601 |
+
}
|
602 |
+
|
603 |
$submit = ( ( $this->cmp_selectedTheme() == 'postery' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'postery' ) ) ? '' : $submit;
|
604 |
|
605 |
?>
|
606 |
|
607 |
<form id="subscribe-form" method="post" class="cmp-subscribe">
|
608 |
+
<div class="cmp-form-inputs">
|
609 |
+
|
610 |
+
<?php wp_nonce_field('save_options','save_options_field'); ?>
|
611 |
+
<?php
|
612 |
+
// display placeholders or labels
|
613 |
+
switch ( $label ) {
|
614 |
+
case TRUE:
|
615 |
+
if ( $firstname === TRUE ) { ?>
|
616 |
+
<div class="firstname input-wrapper">
|
617 |
+
<label for="firstname-subscribe"><?php echo esc_attr( $placeholder_firstname );?></label>
|
618 |
+
<input type="text" id="firstname-subscribe" name="cmp_firstname">
|
619 |
+
</div>
|
620 |
+
<?php
|
621 |
+
}
|
622 |
|
623 |
+
if ( $lastname === TRUE ) { ?>
|
624 |
+
<div class="lastname input-wrapper">
|
625 |
+
<label for="lastname-subscribe"><?php echo esc_attr( $placeholder_lastname );?></label>
|
626 |
+
<input type="text" id="lastname-subscribe" name="cmp_lastname">
|
627 |
+
</div>
|
628 |
+
<?php
|
629 |
+
} ?>
|
630 |
+
<div class="email input-wrapper">
|
631 |
+
<label for="email-subscribe"><?php echo esc_attr( $placeholder );?></label>
|
632 |
+
<input type="email" id="email-subscribe" name="email" required>
|
633 |
+
</div>
|
634 |
+
<?php
|
635 |
+
break;
|
636 |
|
637 |
+
case FALSE:
|
638 |
+
if ( $firstname === TRUE ) { ?>
|
639 |
+
<input type="text" id="firstname-subscribe" name="cmp_firstname" placeholder="<?php echo esc_attr( $placeholder_lastname );?>">
|
640 |
+
<?php
|
641 |
+
}
|
642 |
|
643 |
+
if ( $lastname === TRUE ) { ?>
|
644 |
+
<input type="text" id="lastname-subscribe" name="cmp_lastname" placeholder="<?php echo esc_attr( $placeholder_lastname );?>">
|
645 |
+
<?php
|
646 |
+
} ?>
|
647 |
|
648 |
+
<input type="email" id="email-subscribe" name="email" placeholder="<?php echo esc_attr( $placeholder );?>" required>
|
649 |
+
<?php
|
650 |
+
break;
|
651 |
|
652 |
+
default:
|
653 |
+
break;
|
654 |
+
} ?>
|
655 |
|
656 |
+
<input type="submit" id="submit-subscribe" value="<?php echo esc_attr( $submit );?>">
|
|
|
|
|
657 |
|
658 |
+
<div style="display: none;">
|
659 |
+
<input type="text" name="form_honeypot" value="" tabindex="-1" autocomplete="off">
|
660 |
+
</div>
|
661 |
|
662 |
+
<div id="subscribe-response"><?php echo isset( $response ) ? $response : '';?></div>
|
663 |
|
664 |
+
<div id="subscribe-overlay"></div>
|
665 |
+
</div>
|
666 |
+
|
667 |
+
<?php
|
668 |
+
// render Subscribe form Message/GDPR
|
669 |
+
if ( $niteoCS_subscribe_label != '' ) {
|
670 |
+
|
671 |
+
$allowed_html = array(
|
672 |
+
'a' => array(
|
673 |
+
'href' => array(),
|
674 |
+
'title' => array()
|
675 |
+
),
|
676 |
+
);
|
677 |
+
?>
|
678 |
+
|
679 |
+
<div class="cmp-form-notes">
|
680 |
+
<?php echo wpautop(wp_kses( $niteoCS_subscribe_label, $allowed_html )); ?>
|
681 |
+
</div>
|
682 |
+
<?php
|
683 |
+
} ?>
|
684 |
|
685 |
</form>
|
686 |
|
894 |
|
895 |
}
|
896 |
|
897 |
+
// wrap text between stars in title in span for future formatting
|
898 |
+
$title_array = explode('*', $title);
|
899 |
+
|
900 |
+
if ( count($title_array) == 3 ) {
|
901 |
+
$title = '<span class="cmp-title light">' . $title_array[0] . '</span><span class="cmp-title bold">' . $title_array[1] . '</span><span class="cmp-title light">' . $title_array[2] . '</span>';
|
902 |
+
}
|
903 |
+
|
904 |
$title = ( $title == '' ) ? '' : '<h2 class="cmp-title animated '. $class .'">' . wp_kses( $title, $allowedposttags ) . '</h2>';
|
905 |
|
906 |
return $title;
|
941 |
|
942 |
$subset = array_unique( array_merge( $heading_subsets, $content_subsets ) );
|
943 |
|
944 |
+
return '<link href="https://fonts.googleapis.com/css?family='. esc_attr( str_replace(' ', '+', $heading_font['family']) ) .':400,'. esc_attr(str_replace('italic', 'i', $heading_font['variant'] )) .'%7C'. esc_attr( str_replace(' ', '+', $content_font['family']) ) .':400,'. esc_attr(str_replace('italic', '', $content_font['variant'] )) .','. esc_attr(str_replace('italic', '', $content_font['variant'] )) .'i&subset=' . implode(',', $subset) . '" rel="stylesheet">';
|
945 |
}
|
946 |
|
947 |
/**
|
inc/cmp-update-process.php
CHANGED
@@ -9,6 +9,17 @@ if ( !get_option( 'niteoCS_version' ) ) {
|
|
9 |
|
10 |
if ( version_compare( get_option('niteoCS_version'), CMP_VERSION ) < 0 ) {
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
// migrate google analytics options
|
13 |
if ( get_option('niteoCS_analytics') && get_option('niteoCS_analytics') != '' ) {
|
14 |
update_option('niteoCS_analytics_status', 'google');
|
9 |
|
10 |
if ( version_compare( get_option('niteoCS_version'), CMP_VERSION ) < 0 ) {
|
11 |
|
12 |
+
// add translation string
|
13 |
+
if ( get_option('niteoCS_translation') ) {
|
14 |
+
$translation = json_decode( get_option('niteoCS_translation') );
|
15 |
+
|
16 |
+
if ( !isset( $translation[12] ) ) {
|
17 |
+
$new_translation = array('id' => 12, 'string' => 'Subscribe', 'translation' => 'Subscribe' );
|
18 |
+
array_push( $translation, $new_translation );
|
19 |
+
update_option('niteoCS_translation', wp_json_encode( $translation ));
|
20 |
+
}
|
21 |
+
}
|
22 |
+
|
23 |
// migrate google analytics options
|
24 |
if ( get_option('niteoCS_analytics') && get_option('niteoCS_analytics') != '' ) {
|
25 |
update_option('niteoCS_analytics_status', 'google');
|
inc/settings/settings-background.php
CHANGED
@@ -166,42 +166,40 @@ $gradient_array = array(
|
|
166 |
|
167 |
</select>
|
168 |
|
169 |
-
<p class="unsplash-feed
|
170 |
<label for="niteoCS_unsplash_0_<?php echo esc_attr( $themeslug );?>"><?php _e('Enter Unsplash Photo URL or Unsplash Photo ID', 'cmp-coming-soon-maintenance');?></label>
|
171 |
<input type="text" class="widefat" id="niteoCS-unsplash-0" name="niteoCS_unsplash_0_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_0 ); ?>" />
|
|
|
|
|
172 |
</p>
|
173 |
|
174 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
<label for="niteoCS_unsplash_2_<?php echo esc_attr( $themeslug );?>"><?php printf(__('Enter <a href="%s">Unsplash Collection</a> URL or Collection ID.', 'cmp-coming-soon-maintenance'), 'https://unsplash.com/collections/');?></label>
|
176 |
<input type="text" class="widefat" id="niteoCS-unsplash-2" name="niteoCS_unsplash_2_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_2 ); ?>" />
|
177 |
</p>
|
178 |
|
179 |
-
<
|
180 |
<label for="niteoCS_unsplash_3_<?php echo esc_attr( $themeslug );?>"><?php _e('Limit photos to specific keyword (fashion, nature, technology..)', 'cmp-coming-soon-maintenance');?></label>
|
181 |
<input type="text" class="widefat" id="niteoCS-unsplash-3" name="niteoCS_unsplash_3_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_3 ); ?>" />
|
182 |
|
183 |
-
<br><br>
|
184 |
-
|
185 |
<input type="checkbox" name="niteoCS_unsplash_feat_<?php echo esc_attr( $themeslug );?>" id="niteoCS_unsplash_feat" value="1" <?php checked( '1', get_option( 'niteoCS_unsplash_feat['.esc_attr( $themeslug ).']', '0' ) ); ?> class="regular-text code"><label for="niteoCS_unsplash_feat"><?php _e('Only Unsplash Featured Photos', 'cmp-coming-soon-maintenance');?></label>
|
186 |
-
</
|
187 |
-
|
188 |
-
<br>
|
189 |
|
190 |
-
<p class="unsplash-feed
|
191 |
<label for="niteoCS_unsplash_1_<?php echo esc_attr( $themeslug );?>"><?php _e('Enter Unsplash User ID', 'cmp-coming-soon-maintenance');?></label>
|
192 |
<input type="text" class="widefat" id="niteoCS-unsplash-1" name="niteoCS_unsplash_1_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_1 ); ?>" placeholder="@"/>
|
193 |
</p>
|
194 |
-
|
195 |
-
<button id="test-unsplash" class="button" data-security="<?php echo esc_attr( $ajax_nonce );?>"><?php _e('Display Unsplash Photo', 'cmp-coming-soon-maintenance');?></button>
|
196 |
-
|
197 |
-
<div class="background-thumb-wrapper">
|
198 |
-
<div id="unsplash-media">
|
199 |
-
<div class="thumbnail-overlay"></div>
|
200 |
-
</div>
|
201 |
-
|
202 |
-
</div>
|
203 |
|
204 |
-
<p class="unplash-description"><a href="http://unsplash.com" target="_blank"
|
205 |
|
206 |
</fieldset>
|
207 |
|
166 |
|
167 |
</select>
|
168 |
|
169 |
+
<p class="unsplash-feed unsplash-feed-0">
|
170 |
<label for="niteoCS_unsplash_0_<?php echo esc_attr( $themeslug );?>"><?php _e('Enter Unsplash Photo URL or Unsplash Photo ID', 'cmp-coming-soon-maintenance');?></label>
|
171 |
<input type="text" class="widefat" id="niteoCS-unsplash-0" name="niteoCS_unsplash_0_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_0 ); ?>" />
|
172 |
+
<br><br>
|
173 |
+
<button id="test-unsplash" class="button" data-security="<?php echo esc_attr( $ajax_nonce );?>"><?php _e('Display Unsplash Photo', 'cmp-coming-soon-maintenance');?></button>
|
174 |
</p>
|
175 |
|
176 |
+
<div class="background-thumb-wrapper unsplash-feed unsplash-feed-0">
|
177 |
+
<div id="unsplash-media">
|
178 |
+
<div class="thumbnail-overlay"></div>
|
179 |
+
</div>
|
180 |
+
|
181 |
+
<span class="unsplash-id"></span>
|
182 |
+
|
183 |
+
</div>
|
184 |
+
|
185 |
+
<p class="unsplash-feed unsplash-feed-2">
|
186 |
<label for="niteoCS_unsplash_2_<?php echo esc_attr( $themeslug );?>"><?php printf(__('Enter <a href="%s">Unsplash Collection</a> URL or Collection ID.', 'cmp-coming-soon-maintenance'), 'https://unsplash.com/collections/');?></label>
|
187 |
<input type="text" class="widefat" id="niteoCS-unsplash-2" name="niteoCS_unsplash_2_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_2 ); ?>" />
|
188 |
</p>
|
189 |
|
190 |
+
<p class="unsplash-feed unsplash-feed-3">
|
191 |
<label for="niteoCS_unsplash_3_<?php echo esc_attr( $themeslug );?>"><?php _e('Limit photos to specific keyword (fashion, nature, technology..)', 'cmp-coming-soon-maintenance');?></label>
|
192 |
<input type="text" class="widefat" id="niteoCS-unsplash-3" name="niteoCS_unsplash_3_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_3 ); ?>" />
|
193 |
|
|
|
|
|
194 |
<input type="checkbox" name="niteoCS_unsplash_feat_<?php echo esc_attr( $themeslug );?>" id="niteoCS_unsplash_feat" value="1" <?php checked( '1', get_option( 'niteoCS_unsplash_feat['.esc_attr( $themeslug ).']', '0' ) ); ?> class="regular-text code"><label for="niteoCS_unsplash_feat"><?php _e('Only Unsplash Featured Photos', 'cmp-coming-soon-maintenance');?></label>
|
195 |
+
</p>
|
|
|
|
|
196 |
|
197 |
+
<p class="unsplash-feed unsplash-feed-1">
|
198 |
<label for="niteoCS_unsplash_1_<?php echo esc_attr( $themeslug );?>"><?php _e('Enter Unsplash User ID', 'cmp-coming-soon-maintenance');?></label>
|
199 |
<input type="text" class="widefat" id="niteoCS-unsplash-1" name="niteoCS_unsplash_1_<?php echo esc_attr( $themeslug );?>" value="<?php echo esc_attr( $niteoCS_unsplash_1 ); ?>" placeholder="@"/>
|
200 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
|
202 |
+
<p class="unplash-description"><a href="http://unsplash.com" target="_blank"><?php _e('Unsplash');?></a> <?php _e('is a world leading source for free to use high quality stock images. All of the images that are submitted and published on Unsplash fall under under the <a href="https://unsplash.com/license"> Unsplash license</a>, which means you can use the image for any personal or commercial use.', 'cmp-coming-soon-maintenance');?></p>
|
203 |
|
204 |
</fieldset>
|
205 |
|
inc/settings/settings-subscribe.php
CHANGED
@@ -7,7 +7,7 @@ if (isset($_POST['niteoCS_subscribe_type']) && is_numeric($_POST['niteoCS_subscr
|
|
7 |
}
|
8 |
|
9 |
if (isset($_POST['niteoCS_subscribe_label'])) {
|
10 |
-
update_option('niteoCS_subscribe_label',
|
11 |
}
|
12 |
|
13 |
if ( isset($_POST['niteoCS_subscribe_code']) ) {
|
@@ -42,7 +42,7 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
42 |
// get subscribe settings
|
43 |
$niteoCS_subscribe_type = get_option('niteoCS_subscribe_type', '2');
|
44 |
$niteoCS_subscribe_code = get_option('niteoCS_subscribe_code');
|
45 |
-
$niteoCS_subscribe_label = stripslashes(get_option('niteoCS_subscribe_label'
|
46 |
$niteoCS_subscribers_list = get_option('niteoCS_subscribers_list');
|
47 |
|
48 |
$subscribe_method = get_option('niteoCS_subscribe_method', 'cmp');
|
@@ -103,9 +103,9 @@ $mailchimp_lists = json_decode(get_option('niteoCS_mailchimp_lists', false),
|
|
103 |
<td id="subscribe-niteo" class="subscribe-switch x2">
|
104 |
<fieldset>
|
105 |
<p><?php _e('CMP custom subscribe form will be used. It is guaranteed to always match selected Theme\'s style.', 'cmp-coming-soon-maintenance');?></p>
|
106 |
-
|
107 |
-
<label class="subscribe" for="niteoCS_subscribe_label"><?php _e('Subscribe
|
108 |
-
<
|
109 |
</label><br><br>
|
110 |
|
111 |
<label for="niteoCS_subscribe_method"><?php _e('Select how to store your Subscribers', 'cmp-coming-soon-maintenance');?>
|
@@ -160,6 +160,8 @@ $mailchimp_lists = json_decode(get_option('niteoCS_mailchimp_lists', false),
|
|
160 |
|
161 |
</div>
|
162 |
|
|
|
|
|
163 |
</fieldset>
|
164 |
</td>
|
165 |
|
7 |
}
|
8 |
|
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']) ) {
|
42 |
// get subscribe settings
|
43 |
$niteoCS_subscribe_type = get_option('niteoCS_subscribe_type', '2');
|
44 |
$niteoCS_subscribe_code = get_option('niteoCS_subscribe_code');
|
45 |
+
$niteoCS_subscribe_label = stripslashes(get_option('niteoCS_subscribe_label'));
|
46 |
$niteoCS_subscribers_list = get_option('niteoCS_subscribers_list');
|
47 |
|
48 |
$subscribe_method = get_option('niteoCS_subscribe_method', 'cmp');
|
103 |
<td id="subscribe-niteo" class="subscribe-switch x2">
|
104 |
<fieldset>
|
105 |
<p><?php _e('CMP custom subscribe form will be used. It is guaranteed to always match selected Theme\'s style.', 'cmp-coming-soon-maintenance');?></p>
|
106 |
+
|
107 |
+
<label 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');?>
|
108 |
+
<textarea name="niteoCS_subscribe_label" id="niteoCS_subscribe_label" class="regular-text code" placeholder="<?php _e('Leave empty to disable', 'cmp-coming-soon-maintenance');?>"><?php echo esc_attr( $niteoCS_subscribe_label );?></textarea>
|
109 |
</label><br><br>
|
110 |
|
111 |
<label for="niteoCS_subscribe_method"><?php _e('Select how to store your Subscribers', 'cmp-coming-soon-maintenance');?>
|
160 |
|
161 |
</div>
|
162 |
|
163 |
+
<p class="cmp-hint"><?php echo sprintf( __('* Did you know you can translate Subscribe Labels/Placeholders to your language in %s Settings?', 'cmp-coming-soon-maintenance'), '<a href="' . get_admin_url() . 'admin.php?page=cmp-translate">Translation</a>');?></p>
|
164 |
+
|
165 |
</fieldset>
|
166 |
</td>
|
167 |
|
js/settings.js
CHANGED
@@ -119,32 +119,15 @@ jQuery(document).ready(function($){
|
|
119 |
custom_str = '',
|
120 |
security = jQuery(this).data('security');
|
121 |
|
|
|
|
|
|
|
122 |
switch( unsplash_feed ) {
|
123 |
// specific photo
|
124 |
case '0':
|
125 |
unsp_url = jQuery('.cmp-coming-soon-maintenance #niteoCS-unsplash-0').val();
|
126 |
break;
|
127 |
|
128 |
-
// random from user
|
129 |
-
case '1':
|
130 |
-
custom_str = jQuery('.cmp-coming-soon-maintenance #niteoCS-unsplash-1').val();
|
131 |
-
break;
|
132 |
-
|
133 |
-
// random from collection
|
134 |
-
case '2':
|
135 |
-
unsp_url = jQuery('.cmp-coming-soon-maintenance .cmp-coming-soon-maintenance #niteoCS-unsplash-2').val();
|
136 |
-
break;
|
137 |
-
|
138 |
-
// random photo
|
139 |
-
case '3':
|
140 |
-
unsp_url = jQuery('#niteoCS-unsplash-3').val();
|
141 |
-
if ( jQuery('.cmp-coming-soon-maintenance #niteoCS_unsplash_feat' ).is( ':checked' ) ) {
|
142 |
-
feat = '1';
|
143 |
-
} else {
|
144 |
-
feat = '0';
|
145 |
-
}
|
146 |
-
break;
|
147 |
-
|
148 |
default:
|
149 |
break;
|
150 |
}
|
@@ -199,7 +182,7 @@ jQuery(document).ready(function($){
|
|
199 |
jQuery(this).fadeIn();
|
200 |
jQuery('#test-unsplash').prop('disabled', false);
|
201 |
jQuery('#test-unsplash').text('Display Unsplash Photo');
|
202 |
-
jQuery('
|
203 |
jQuery( '.blur-range' ).trigger('input');
|
204 |
clearTimeout(loadingTimeout);
|
205 |
});
|
@@ -284,12 +267,12 @@ jQuery(document).ready(function($){
|
|
284 |
|
285 |
// display selected unsplash feed
|
286 |
var unsplashfeed = jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();
|
287 |
-
jQuery('
|
288 |
|
289 |
jQuery('.unsplash_banner select[name^="unsplash_feed"]').on('change', function() {
|
290 |
unsplashfeed = jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();
|
291 |
jQuery('.unsplash-feed').css('display', 'none');
|
292 |
-
jQuery('
|
293 |
jQuery('#test-unsplash').trigger('click');
|
294 |
});
|
295 |
|
@@ -560,23 +543,23 @@ jQuery(document).ready(function($){
|
|
560 |
}
|
561 |
|
562 |
// theme update admin notice view release notes
|
563 |
-
jQuery('.cmp-coming-soon-maintenance .view-release').click(function(e) {
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
});
|
577 |
|
578 |
// theme update via admin notice
|
579 |
-
jQuery('.cmp
|
580 |
e.preventDefault();
|
581 |
var $this = $(this),
|
582 |
$parent = $this.parents('.notice'),
|
@@ -600,10 +583,11 @@ jQuery(document).ready(function($){
|
|
600 |
|
601 |
$.post(ajaxurl, data, function(response) {
|
602 |
response = response.trim();
|
|
|
603 |
if ( response == 'success' ) {
|
604 |
setTimeout(function(){
|
605 |
$parent.removeClass('notice-warning').addClass('notice-success');
|
606 |
-
$parent.find('.message').html('<span> '+themeName+' CMP theme was updated sucessfully! </span><i class="fa fa-smile-o" aria-hidden="true"></i>');
|
607 |
}, 1500);
|
608 |
|
609 |
} else {
|
119 |
custom_str = '',
|
120 |
security = jQuery(this).data('security');
|
121 |
|
122 |
+
// return if not specific unsplash photo selected - throttling due too much requests
|
123 |
+
if ( unsplash_feed != 0 ) return;
|
124 |
+
|
125 |
switch( unsplash_feed ) {
|
126 |
// specific photo
|
127 |
case '0':
|
128 |
unsp_url = jQuery('.cmp-coming-soon-maintenance #niteoCS-unsplash-0').val();
|
129 |
break;
|
130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
default:
|
132 |
break;
|
133 |
}
|
182 |
jQuery(this).fadeIn();
|
183 |
jQuery('#test-unsplash').prop('disabled', false);
|
184 |
jQuery('#test-unsplash').text('Display Unsplash Photo');
|
185 |
+
jQuery('.unsplash-id').html('<a href="'+img_url+'" target="_blank">Photo</a> (ID: '+img_id+') by <a href="'+author_url+'" target="_blank">' +author+ '</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a>')
|
186 |
jQuery( '.blur-range' ).trigger('input');
|
187 |
clearTimeout(loadingTimeout);
|
188 |
});
|
267 |
|
268 |
// display selected unsplash feed
|
269 |
var unsplashfeed = jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();
|
270 |
+
jQuery('.unsplash-feed-' + unsplashfeed).css('display', 'block');
|
271 |
|
272 |
jQuery('.unsplash_banner select[name^="unsplash_feed"]').on('change', function() {
|
273 |
unsplashfeed = jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();
|
274 |
jQuery('.unsplash-feed').css('display', 'none');
|
275 |
+
jQuery('.unsplash-feed-' + unsplashfeed).css('display', 'block');
|
276 |
jQuery('#test-unsplash').trigger('click');
|
277 |
});
|
278 |
|
543 |
}
|
544 |
|
545 |
// theme update admin notice view release notes
|
546 |
+
// jQuery('.cmp-coming-soon-maintenance .view-release').click(function(e) {
|
547 |
+
// e.preventDefault();
|
548 |
+
// $this = jQuery(this);
|
549 |
+
// var release_url = $this.attr('href');
|
550 |
|
551 |
+
// jQuery.get(release_url, function( release ) {
|
552 |
+
// $this.closest('.notice').find('.release-note .notes').remove();
|
553 |
+
// $this.closest('.notice').find('.release-note').append('<div class="notes">'+release+'</div>');
|
554 |
|
555 |
+
// }).fail(function() {
|
556 |
+
// $this.closest('.notice').find('.release-note p').remove();
|
557 |
+
// $this.closest('.notice').find('.release-note').append('<p>There was an error loading release notes. Please try again later.</p>');
|
558 |
+
// });
|
559 |
+
// });
|
560 |
|
561 |
// theme update via admin notice
|
562 |
+
jQuery('.cmp.update-theme').click(function(e) {
|
563 |
e.preventDefault();
|
564 |
var $this = $(this),
|
565 |
$parent = $this.parents('.notice'),
|
583 |
|
584 |
$.post(ajaxurl, data, function(response) {
|
585 |
response = response.trim();
|
586 |
+
|
587 |
if ( response == 'success' ) {
|
588 |
setTimeout(function(){
|
589 |
$parent.removeClass('notice-warning').addClass('notice-success');
|
590 |
+
$parent.find('.message').html('<span> '+themeName+' CMP theme was updated sucessfully! You can enjoy latest features now :) </span><i class="fa fa-smile-o" aria-hidden="true"></i>');
|
591 |
}, 1500);
|
592 |
|
593 |
} else {
|
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");navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+e).addClass("nav-tab-active"),jQuery(".cmp-coming-soon-maintenance .table-wrapper."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .comingsoon."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(."+e+")").css("display","none"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(."+e).css("display","none"),jQuery(".cmp-coming-soon-maintenance .comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".cmp-coming-soon-maintenance .submit").css("display","none"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a)):(jQuery(".cmp-coming-soon-maintenance .submit").css("display","block"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a+"#"+e))},""!=n?navtab(n):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){n=document.location.hash.substring(1),navtab(n)},e(".cmp-coming-soon-maintenance .nav-tab:not(.theme-preview)").click(function(a){a.preventDefault(),n=e(this).data("tab"),document.location.hash=n}),p(".cmp-coming-soon-maintenance .blur-range"),p(".cmp-coming-soon-maintenance .background-overlay-opacity"),l("logo",!1,"image","img"),l("favicon",!1,"image","img"),l("images",!0,"image","img"),l("pattern",!1,"image","background"),l("video-thumb",!1,"image","img"),l("video-local",!1,"video","video"),m("analytics"),m("contact-form"),m("subscribe"),m("background-effect"),m("special-effect"),m("cmp-logo"),m("background-type"),u("subscribe-method"),u("background-overlay"),u("banner-video-source"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1}),jQuery(".cmp-coming-soon-maintenance #cmp-status").click(function(){jQuery(".cmp-coming-soon-maintenance .cmp-status input[type=radio]").prop("disabled",function(e,n){return!n}),jQuery("#cmp-toggle-adminbar").toggleClass("status-1")}),jQuery(".cmp-coming-soon-maintenance .cmp-status legend: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 legend").removeClass("active"),jQuery(this).addClass("active"),e.trigger("change"),"3"==e.val()?jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeIn("fast"):jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeOut("fast")}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper h3").click(function(){jQuery(this).parent().toggleClass("closed")}),jQuery(".cmp-coming-soon-maintenance #test-unsplash").click(function(n){n.preventDefault();var a=jQuery(".cmp-coming-soon-maintenance #unsplash-media"),t=jQuery('.cmp-coming-soon-maintenance .unsplash_banner select[name^="unsplash_feed"] option:selected').val(),i="",o="",r="",c=jQuery(this).data("security");switch(t){case"0":i=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val();break;case"1":r=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-1").val();break;case"2":i=jQuery(".cmp-coming-soon-maintenance .cmp-coming-soon-maintenance #niteoCS-unsplash-2").val();break;case"3":i=jQuery("#niteoCS-unsplash-3").val(),o=jQuery(".cmp-coming-soon-maintenance #niteoCS_unsplash_feat").is(":checked")?"1":"0"}if(3==t||""!=i||""!=r){var s={feed:t,url:i,feat:o,custom_str:r};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var l={action:"niteo_unsplash",security:c,params:s};e.post(ajaxurl,l,function(e){var n=JSON.parse(e);jQuery("#unsplash_img").remove();var t=setTimeout(function(){jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5e3);if("200"==n.response){if((n=jQuery.parseJSON(n.body))[0])var i=n[0].urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n[0].user.name,r=n[0].user.links.html,c=n[0].links.html,s=n[0].id;else i=n.urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n.user.name,r=n.user.links.html,c=n.links.html,s=n.id;jQuery("<img />",{src:i,id:"unsplash_img"}).one("load",function(){jQuery(this).appendTo(a),jQuery(this).fadeIn(),jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").parent().after('<span><a href="'+c+'" target="_blank">Photo</a> (ID: '+s+') by <a href="'+r+'" target="_blank">'+o+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a></span>'),jQuery(".blur-range").trigger("input"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #test-unsplash").prop("disabled",!1),jQuery(".cmp-coming-soon-maintenance #test-unsplash").text("Display Unsplash Photo"),jQuery(".cmp-coming-soon-maintenance #unsplash-media").html("<p>Error "+n.response+': <span style="text-transform:lowercase;">'+n.body+"</span></p>"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #unsplash_img").remove()}),videoPreview=function(){if("5"==jQuery(".cmp-coming-soon-maintenance .background-type:checked").val()){var n=e(".cmp-coming-soon-maintenance .banner-video-source").val();if("youtube"==n){var a=e(".cmp-coming-soon-maintenance #niteoCS-youtube-url").val();if(""!=a){var t=a.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);if(t&&11==t[7].length){jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("");var i="https://img.youtube.com/vi/"+t[7]+"/maxresdefault.jpg";jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").append('<img src="'+i+'" alt=""/>'),jQuery(".cmp-coming-soon-maintenance .blur-range").trigger("input")}else jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("")}}if("local"==n){var o=jQuery("#niteoCS-video-local-id").data("url");""!=o&&e(".cmp-coming-soon-maintenance .video-local-wrapper").html('<video width="600" height="400" controls><source src="'+o+'" type="video/mp4">Your browser does not support the video tag.</video>')}}},videoPreview(),jQuery(".cmp-coming-soon-maintenance .background-type").on("change",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").on("keyup",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance .banner-video-source").on("change",function(){videoPreview()});var t=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function i(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-"+t).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){t=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery("#unsplash-feed-"+t).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"),i(jQuery(".cmp-coming-soon-maintenance .background-overlay").val()),jQuery(".cmp-coming-soon-maintenance .background-overlay").on("change",function(){i(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 o,r=function(n,a,t){var i=e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value");i=e.parseJSON(i),e.each(i,function(e,i){i.name==n&&(i[a]=t)}),e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value",JSON.stringify(i))};if(!/Mobi/.test(navigator.userAgent)){var c=e(".cmp-coming-soon-maintenance .social-inputs"),s=function(n,a){var t=c.find('input[type="text"]');a.item.index();t.each(function(n,a){var t=e(a).data("name");r(t,"order",n)})};c.sortable({stop:s}),c.on("sortchange",s)}function l(e,n,a,t){var i,o=jQuery("."+e+"-wrapper"),r=jQuery("#add-"+e),c=jQuery("#delete-"+e),s="",l=e.replace("-"," ");l=l[0].toUpperCase()+l.slice(1),""!=jQuery("#niteoCS-"+e+"-id").val()&&c.css("display","block"),r.click(function(r){if(r.preventDefault(),m)m.open();else var m=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=m.state().get("selection").toJSON();n.length>0&&(o.find("img").remove(),o.attr("class",e+"-wrapper custom-gallery"),o.addClass("gallery-"+n.length),jQuery(n).each(function(e){switch(i=n[e].sizes&&n[e].sizes.large?n[e].sizes.large.url:n[e].url,s+=(0===e?"":",")+n[e].id,t){case"video":o.append('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>');break;case"background":o.css("background-image","url('"+i+"')");break;case"img":default:n.length>1&&0==e?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):n.length>1&&0!==e?o.append('<img src="'+i+'" alt="" class="no-blur"/>'):o.find(".big-thumb").length?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):o.append('<img src="'+i+'" alt=""/>'),jQuery(".blur-range").trigger("input")}}),c.css("display","block")),jQuery("#niteoCS-"+e+"-id").val(s).trigger("change")}).open()}),c.click(function(n){jQuery(this).css("display","none"),o.find("img").remove(),jQuery("#niteoCS-"+e+"-id").val(""),jQuery("#niteoCS-"+e+"-id").trigger("change")})}function m(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery(".cmp-coming-soon-maintenance ."+e+":checked").val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"-switch."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+"-switch:not(."+n+")").css("display","none")}),jQuery(".cmp-coming-soon-maintenance ."+e).first().trigger("change")}function u(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery("."+e).val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+":not(."+n+")").css("display","none")}),jQuery("."+e).first().trigger("change")}function p(e){jQuery(e).on("input",function(){var e=jQuery(this).val();jQuery(this).parent().find("span").html(e)})}(o=jQuery).fn.toggleDisabled=function(){return this.each(function(){var e,n=o(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).attr("value");r(e,"url",n)}),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="checkbox"]').click(function(n){e(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".cmp-coming-soon-maintenance .social-media i").click(function(){var e=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e+" input").trigger("change"),jQuery(this).hasClass("active")?r(e,"hidden","0"):r(e,"hidden","1"),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length?jQuery(".social-inputs .label").css("display","block"):jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","none")}),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length&&jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","block"),jQuery(".cmp-coming-soon-maintenance .view-release").click(function(e){e.preventDefault(),$this=jQuery(this);var n=$this.attr("href");jQuery.get(n,function(e){$this.closest(".notice").find(".release-note .notes").remove(),$this.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){$this.closest(".notice").find(".release-note p").remove(),$this.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".cmp-coming-soon-maintenance .update-theme").click(function(n){n.preventDefault();var a=e(this),t=a.parents(".notice"),i=a.data("security"),o=a.data("slug"),r=a.data("name"),c={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:jQuery(this).data("remote_url")+"?action=download&slug="+o}};t.find(".message").html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'),e.post(ajaxurl,c,function(n){if("success"==(n=n.trim()))setTimeout(function(){t.removeClass("notice-warning").addClass("notice-success"),t.find(".message").html("<span> "+r+' CMP theme was updated sucessfully! </span><i class="fa fa-smile-o" aria-hidden="true"></i>')},1500);else{n=n.slice(0,-1);var a=e("p",e(n)).text();t.removeClass("notice-warning").addClass("notice-error"),t.find(".message").html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+a+"</span>")}})}),jQuery(".cmp-coming-soon-maintenance .theme-select").click(function(){jQuery(this).parent().find('input[name="niteoCS_select_theme"]').prop("checked",!0).trigger("change"),jQuery(".cmp-coming-soon-maintenance .theme-select").removeClass("selected"),jQuery(this).parent().find(".theme-select").addClass("selected")}),jQuery(".cmp-coming-soon-maintenance .theme-update.button").one("click",function(n){n.preventDefault();var a=e(this),t=a.closest(".theme-wrapper"),i=t.data("security"),o=t.data("slug"),r={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:t.data("remote_url")+"?action=download&slug="+o}};a.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>'),e.post(ajaxurl,r,function(e){"success"==e?setTimeout(function(){a.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>'),setTimeout(function(){a.fadeOut()},1500)},1500):(e=e.slice(0,-1),a.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>'))})}),jQuery(".cmp-coming-soon-maintenance .theme-details").click(function(){var n=e(this),a=n.closest(".theme-wrapper"),t=a.data("slug"),i=a.data("version"),o=a.data("remote_url"),r=a.data("type"),c=a.data("purchased"),s=(a.data("freebie"),jQuery(".update-theme").data("security")),l=(a.data("price"),0),m={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};e.post(ajaxurl,m,function(m){var u="",p="",d="",g="";if("true"==(m=jQuery.parseJSON(m)).result){if(jQuery("body").addClass("modal-open"),"1"==c&&(d='<span class="theme-version">Version: '+i+"</span>",g='<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>',jQuery(".update-theme").length)){var y=jQuery(".update-theme").data("slug");if(t==y){var h=jQuery(".update-theme").data("new_ver");g='<div class="notice notice-warning notice-alt notice-large"><h3 class="notice-title">Update Available</h3><p class="message"><strong>There is a new version of '+m.name+' theme available. <a href="'+o+"readme/"+t+'-readme.php" class="view-release">View update '+h+' notes</a> or <a href="'+window.location.href+"&action=update-cmp-theme&theme="+t+'" class="update-theme" data-security="'+s+'" data-slug="'+t+'" data-remote_url="'+o+'">Update now.</a></strong></p><div class="release-note"></div></div>'}}if("1"!=c&&"premium"==r)u="disabled ",p='<button type="button" class="theme-purchase button hide"><a href="'+a.find("a").attr("href")+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';var v=m.screenshots,j="";Object.keys(v).length>1&&(j='<div class="screenshots-nav"><div class="left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div>');var Q=e(['<div class="theme-backdrop">','\t<div class="theme-wrap">','\t\t<div class="theme-header">','\t\t\t<button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',"\t\t</div>",'\t\t<div class="theme-about">','\t\t\t<div class="theme-screenshots">','\t\t\t\t<div class="screenshot" style="background-image:url(\''+v[0]+"')\">"+j+"</div>","\t\t\t</div>",'\t\t\t<div class="theme-info">','\t\t\t\t<h2 class="theme-name">'+m.name+d+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+m.author_homepage+'" target="_blank">'+m.author+"</a></p>",g,p,'\t\t\t\t<div class="theme-description">'+m.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<button type="submit" '+u+'class="button activate" name="Submit" aria-label="Select '+m.name+'">Activate</button>','\t\t\t<a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='+t+"&utm_source=cmp&utm_medium=referral&utm_campaign="+t+'" class="button cmp-preview" target="_blank" aria-label="Preview '+m.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(Q),jQuery(".theme-overlay.cmp .view-release").click(function(e){e.preventDefault();var a=(n=jQuery(this)).attr("href");jQuery.get(a,function(e){n.closest(".notice").find(".release-note .notes").remove(),n.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){n.closest(".notice").find(".release-note p").remove(),n.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".theme-overlay.cmp .close").click(function(e){e.preventDefault(),jQuery("body").removeClass("modal-open"),jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast")}),jQuery(".theme-overlay.cmp .activate").click(function(e){e.preventDefault(),jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_select_theme"]').each(function(){jQuery(this).val()==t&&(jQuery(this).prop("checked",!0),jQuery(".theme-select").removeClass("selected"),jQuery(this).parent().addClass("selected"))}),jQuery(this).submit()}),jQuery(".screenshots-nav .right").click(function(){++l==Object.keys(v).length&&(l=0),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")}),jQuery(".screenshots-nav .left").click(function(){--l<0&&(l=Object.keys(v).length-1),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")})}})}),jQuery(".cmp-coming-soon-maintenance #connect-mailchimp").click(function(n){n.preventDefault();var a=jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_mailchimp_apikey"]').val(),t=jQuery(this).data("security"),i=jQuery(this);if(""!=a){var o={apikey:a,security:t};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var r={action:"cmp_mailchimp_list_ajax",security:t,params:o};e.post(ajaxurl,r,function(n){var a=JSON.parse(n);200==a.response?(e("#mailchimp-lists-select").empty().prop("disabled",!1),e.each(a.lists,function(n,a){e("#mailchimp-lists-select").append('<option value="'+a.id+'">'+a.name+"</option>")})):e("#mailchimp-lists-select").empty().prop("disabled",!0).html('<option value="error">'+a.message+"</option>").trigger("change"),i.html("Retrieve Lists"),i.prop("disabled",!1)}).fail(function(){i.html("Retrieve Lists"),i.prop("disabled",!1)})}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper.theme-setup h4").each(function(){if("Overlay Color"==jQuery(this).html())return jQuery(this).parents("tr").remove(),!1}),wp.codeEditor&&wp.codeEditor.initialize("niteoCS_custom_css")});
|
1 |
+
jQuery(document).ready(function(e){var n=document.location.hash.substring(1),a=jQuery("#csoptions").attr("action");navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+e).addClass("nav-tab-active"),jQuery(".cmp-coming-soon-maintenance .table-wrapper."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .comingsoon."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(."+e+")").css("display","none"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(."+e).css("display","none"),jQuery(".cmp-coming-soon-maintenance .comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".cmp-coming-soon-maintenance .submit").css("display","none"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a)):(jQuery(".cmp-coming-soon-maintenance .submit").css("display","block"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a+"#"+e))},""!=n?navtab(n):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){n=document.location.hash.substring(1),navtab(n)},e(".cmp-coming-soon-maintenance .nav-tab:not(.theme-preview)").click(function(a){a.preventDefault(),n=e(this).data("tab"),document.location.hash=n}),p(".cmp-coming-soon-maintenance .blur-range"),p(".cmp-coming-soon-maintenance .background-overlay-opacity"),l("logo",!1,"image","img"),l("favicon",!1,"image","img"),l("images",!0,"image","img"),l("pattern",!1,"image","background"),l("video-thumb",!1,"image","img"),l("video-local",!1,"video","video"),u("analytics"),u("contact-form"),u("subscribe"),u("background-effect"),u("special-effect"),u("cmp-logo"),u("background-type"),m("subscribe-method"),m("background-overlay"),m("banner-video-source"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1}),jQuery(".cmp-coming-soon-maintenance #cmp-status").click(function(){jQuery(".cmp-coming-soon-maintenance .cmp-status input[type=radio]").prop("disabled",function(e,n){return!n}),jQuery("#cmp-toggle-adminbar").toggleClass("status-1")}),jQuery(".cmp-coming-soon-maintenance .cmp-status legend: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 legend").removeClass("active"),jQuery(this).addClass("active"),e.trigger("change"),"3"==e.val()?jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeIn("fast"):jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeOut("fast")}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper h3").click(function(){jQuery(this).parent().toggleClass("closed")}),jQuery(".cmp-coming-soon-maintenance #test-unsplash").click(function(n){n.preventDefault();var a=jQuery(".cmp-coming-soon-maintenance #unsplash-media"),t=jQuery('.cmp-coming-soon-maintenance .unsplash_banner select[name^="unsplash_feed"] option:selected').val(),i="",o=jQuery(this).data("security");if(0==t){switch(t){case"0":i=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val()}if(3==t||""!=i){var r={feed:t,url:i,feat:"",custom_str:""};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var c={action:"niteo_unsplash",security:o,params:r};e.post(ajaxurl,c,function(e){var n=JSON.parse(e);jQuery("#unsplash_img").remove();var t=setTimeout(function(){jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5e3);if("200"==n.response){if((n=jQuery.parseJSON(n.body))[0])var i=n[0].urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n[0].user.name,r=n[0].user.links.html,c=n[0].links.html,s=n[0].id;else i=n.urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n.user.name,r=n.user.links.html,c=n.links.html,s=n.id;jQuery("<img />",{src:i,id:"unsplash_img"}).one("load",function(){jQuery(this).appendTo(a),jQuery(this).fadeIn(),jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery(".unsplash-id").html('<a href="'+c+'" target="_blank">Photo</a> (ID: '+s+') by <a href="'+r+'" target="_blank">'+o+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a>'),jQuery(".blur-range").trigger("input"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #test-unsplash").prop("disabled",!1),jQuery(".cmp-coming-soon-maintenance #test-unsplash").text("Display Unsplash Photo"),jQuery(".cmp-coming-soon-maintenance #unsplash-media").html("<p>Error "+n.response+': <span style="text-transform:lowercase;">'+n.body+"</span></p>"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #unsplash_img").remove()}}),videoPreview=function(){if("5"==jQuery(".cmp-coming-soon-maintenance .background-type:checked").val()){var n=e(".cmp-coming-soon-maintenance .banner-video-source").val();if("youtube"==n){var a=e(".cmp-coming-soon-maintenance #niteoCS-youtube-url").val();if(""!=a){var t=a.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);if(t&&11==t[7].length){jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("");var i="https://img.youtube.com/vi/"+t[7]+"/maxresdefault.jpg";jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").append('<img src="'+i+'" alt=""/>'),jQuery(".cmp-coming-soon-maintenance .blur-range").trigger("input")}else jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("")}}if("local"==n){var o=jQuery("#niteoCS-video-local-id").data("url");""!=o&&e(".cmp-coming-soon-maintenance .video-local-wrapper").html('<video width="600" height="400" controls><source src="'+o+'" type="video/mp4">Your browser does not support the video tag.</video>')}}},videoPreview(),jQuery(".cmp-coming-soon-maintenance .background-type").on("change",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").on("keyup",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance .banner-video-source").on("change",function(){videoPreview()});var t=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function i(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-"+t).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){t=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery(".unsplash-feed-"+t).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"),i(jQuery(".cmp-coming-soon-maintenance .background-overlay").val()),jQuery(".cmp-coming-soon-maintenance .background-overlay").on("change",function(){i(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 o,r=function(n,a,t){var i=e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value");i=e.parseJSON(i),e.each(i,function(e,i){i.name==n&&(i[a]=t)}),e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value",JSON.stringify(i))};if(!/Mobi/.test(navigator.userAgent)){var c=e(".cmp-coming-soon-maintenance .social-inputs"),s=function(n,a){var t=c.find('input[type="text"]');a.item.index();t.each(function(n,a){var t=e(a).data("name");r(t,"order",n)})};c.sortable({stop:s}),c.on("sortchange",s)}function l(e,n,a,t){var i,o=jQuery("."+e+"-wrapper"),r=jQuery("#add-"+e),c=jQuery("#delete-"+e),s="",l=e.replace("-"," ");l=l[0].toUpperCase()+l.slice(1),""!=jQuery("#niteoCS-"+e+"-id").val()&&c.css("display","block"),r.click(function(r){if(r.preventDefault(),u)u.open();else var u=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=u.state().get("selection").toJSON();n.length>0&&(o.find("img").remove(),o.attr("class",e+"-wrapper custom-gallery"),o.addClass("gallery-"+n.length),jQuery(n).each(function(e){switch(i=n[e].sizes&&n[e].sizes.large?n[e].sizes.large.url:n[e].url,s+=(0===e?"":",")+n[e].id,t){case"video":o.append('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>');break;case"background":o.css("background-image","url('"+i+"')");break;case"img":default:n.length>1&&0==e?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):n.length>1&&0!==e?o.append('<img src="'+i+'" alt="" class="no-blur"/>'):o.find(".big-thumb").length?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):o.append('<img src="'+i+'" alt=""/>'),jQuery(".blur-range").trigger("input")}}),c.css("display","block")),jQuery("#niteoCS-"+e+"-id").val(s).trigger("change")}).open()}),c.click(function(n){jQuery(this).css("display","none"),o.find("img").remove(),jQuery("#niteoCS-"+e+"-id").val(""),jQuery("#niteoCS-"+e+"-id").trigger("change")})}function u(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery(".cmp-coming-soon-maintenance ."+e+":checked").val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"-switch."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+"-switch:not(."+n+")").css("display","none")}),jQuery(".cmp-coming-soon-maintenance ."+e).first().trigger("change")}function 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){jQuery(e).on("input",function(){var e=jQuery(this).val();jQuery(this).parent().find("span").html(e)})}(o=jQuery).fn.toggleDisabled=function(){return this.each(function(){var e,n=o(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).attr("value");r(e,"url",n)}),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="checkbox"]').click(function(n){e(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".cmp-coming-soon-maintenance .social-media i").click(function(){var e=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e+" input").trigger("change"),jQuery(this).hasClass("active")?r(e,"hidden","0"):r(e,"hidden","1"),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length?jQuery(".social-inputs .label").css("display","block"):jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","none")}),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length&&jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","block"),jQuery(".cmp.update-theme").click(function(n){n.preventDefault();var a=e(this),t=a.parents(".notice"),i=a.data("security"),o=a.data("slug"),r=a.data("name"),c={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:jQuery(this).data("remote_url")+"?action=download&slug="+o}};t.find(".message").html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'),e.post(ajaxurl,c,function(n){if("success"==(n=n.trim()))setTimeout(function(){t.removeClass("notice-warning").addClass("notice-success"),t.find(".message").html("<span> "+r+' CMP theme was updated sucessfully! You can enjoy latest features now :) </span><i class="fa fa-smile-o" aria-hidden="true"></i>')},1500);else{n=n.slice(0,-1);var a=e("p",e(n)).text();t.removeClass("notice-warning").addClass("notice-error"),t.find(".message").html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+a+"</span>")}})}),jQuery(".cmp-coming-soon-maintenance .theme-select").click(function(){jQuery(this).parent().find('input[name="niteoCS_select_theme"]').prop("checked",!0).trigger("change"),jQuery(".cmp-coming-soon-maintenance .theme-select").removeClass("selected"),jQuery(this).parent().find(".theme-select").addClass("selected")}),jQuery(".cmp-coming-soon-maintenance .theme-update.button").one("click",function(n){n.preventDefault();var a=e(this),t=a.closest(".theme-wrapper"),i=t.data("security"),o=t.data("slug"),r={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:t.data("remote_url")+"?action=download&slug="+o}};a.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>'),e.post(ajaxurl,r,function(e){"success"==e?setTimeout(function(){a.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>'),setTimeout(function(){a.fadeOut()},1500)},1500):(e=e.slice(0,-1),a.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>'))})}),jQuery(".cmp-coming-soon-maintenance .theme-details").click(function(){var n=e(this),a=n.closest(".theme-wrapper"),t=a.data("slug"),i=a.data("version"),o=a.data("remote_url"),r=a.data("type"),c=a.data("purchased"),s=(a.data("freebie"),jQuery(".update-theme").data("security")),l=(a.data("price"),0),u={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};e.post(ajaxurl,u,function(u){var m="",p="",d="",g="";if("true"==(u=jQuery.parseJSON(u)).result){if(jQuery("body").addClass("modal-open"),"1"==c&&(d='<span class="theme-version">Version: '+i+"</span>",g='<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>',jQuery(".update-theme").length)){var y=jQuery(".update-theme").data("slug");if(t==y){var h=jQuery(".update-theme").data("new_ver");g='<div class="notice notice-warning notice-alt notice-large"><h3 class="notice-title">Update Available</h3><p class="message"><strong>There is a new version of '+u.name+' theme available. <a href="'+o+"readme/"+t+'-readme.php" class="view-release">View update '+h+' notes</a> or <a href="'+window.location.href+"&action=update-cmp-theme&theme="+t+'" class="update-theme" data-security="'+s+'" data-slug="'+t+'" data-remote_url="'+o+'">Update now.</a></strong></p><div class="release-note"></div></div>'}}if("1"!=c&&"premium"==r)m="disabled ",p='<button type="button" class="theme-purchase button hide"><a href="'+a.find("a").attr("href")+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';var v=u.screenshots,j="";Object.keys(v).length>1&&(j='<div class="screenshots-nav"><div class="left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div>');var Q=e(['<div class="theme-backdrop">','\t<div class="theme-wrap">','\t\t<div class="theme-header">','\t\t\t<button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',"\t\t</div>",'\t\t<div class="theme-about">','\t\t\t<div class="theme-screenshots">','\t\t\t\t<div class="screenshot" style="background-image:url(\''+v[0]+"')\">"+j+"</div>","\t\t\t</div>",'\t\t\t<div class="theme-info">','\t\t\t\t<h2 class="theme-name">'+u.name+d+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+u.author_homepage+'" target="_blank">'+u.author+"</a></p>",g,p,'\t\t\t\t<div class="theme-description">'+u.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<button type="submit" '+m+'class="button activate" name="Submit" aria-label="Select '+u.name+'">Activate</button>','\t\t\t<a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='+t+"&utm_source=cmp&utm_medium=referral&utm_campaign="+t+'" class="button cmp-preview" target="_blank" aria-label="Preview '+u.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(Q),jQuery(".theme-overlay.cmp .view-release").click(function(e){e.preventDefault();var a=(n=jQuery(this)).attr("href");jQuery.get(a,function(e){n.closest(".notice").find(".release-note .notes").remove(),n.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){n.closest(".notice").find(".release-note p").remove(),n.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".theme-overlay.cmp .close").click(function(e){e.preventDefault(),jQuery("body").removeClass("modal-open"),jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast")}),jQuery(".theme-overlay.cmp .activate").click(function(e){e.preventDefault(),jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_select_theme"]').each(function(){jQuery(this).val()==t&&(jQuery(this).prop("checked",!0),jQuery(".theme-select").removeClass("selected"),jQuery(this).parent().addClass("selected"))}),jQuery(this).submit()}),jQuery(".screenshots-nav .right").click(function(){++l==Object.keys(v).length&&(l=0),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")}),jQuery(".screenshots-nav .left").click(function(){--l<0&&(l=Object.keys(v).length-1),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")})}})}),jQuery(".cmp-coming-soon-maintenance #connect-mailchimp").click(function(n){n.preventDefault();var a=jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_mailchimp_apikey"]').val(),t=jQuery(this).data("security"),i=jQuery(this);if(""!=a){var o={apikey:a,security:t};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var r={action:"cmp_mailchimp_list_ajax",security:t,params:o};e.post(ajaxurl,r,function(n){var a=JSON.parse(n);200==a.response?(e("#mailchimp-lists-select").empty().prop("disabled",!1),e.each(a.lists,function(n,a){e("#mailchimp-lists-select").append('<option value="'+a.id+'">'+a.name+"</option>")})):e("#mailchimp-lists-select").empty().prop("disabled",!0).html('<option value="error">'+a.message+"</option>").trigger("change"),i.html("Retrieve Lists"),i.prop("disabled",!1)}).fail(function(){i.html("Retrieve Lists"),i.prop("disabled",!1)})}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper.theme-setup h4").each(function(){if("Overlay Color"==jQuery(this).html())return jQuery(this).parents("tr").remove(),!1}),wp.codeEditor&&wp.codeEditor.initialize("niteoCS_custom_css")});
|
niteo-cmp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: CMP - Coming Soon & Maintenance Plugin
|
4 |
Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
|
5 |
Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
|
6 |
-
Version: 2.8.
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
@@ -66,7 +66,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
66 |
private function constants() {
|
67 |
|
68 |
// define constants
|
69 |
-
$this->define( 'CMP_VERSION', '2.8.
|
70 |
$this->define( 'CMP_DEBUG', FALSE );
|
71 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
72 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
@@ -182,7 +182,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
182 |
* @return array
|
183 |
*/
|
184 |
public function cmp_countdown_themes() {
|
185 |
-
return array( 'frame', 'countdown', 'postery', 'countdown2', 'stylo', 'element', 'apollo' );
|
186 |
}
|
187 |
|
188 |
/**
|
@@ -192,7 +192,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
192 |
* @return array
|
193 |
*/
|
194 |
public function cmp_font_animation_themes() {
|
195 |
-
return array( 'hardwork_premium', 'fifty', 'orbit', 'stylo', 'apollo' );
|
196 |
}
|
197 |
|
198 |
/**
|
@@ -726,6 +726,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
726 |
|
727 |
$premium_themes = array();
|
728 |
|
|
|
|
|
729 |
array_push( $premium_themes, array('name' => 'apollo', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=apollo', 'apollo' => '10') );
|
730 |
|
731 |
array_push( $premium_themes, array('name' => 'element', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=element', 'price' => '10') );
|
@@ -810,7 +812,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
810 |
// if admin screen is not in updating theme
|
811 |
if (!isset($_GET['theme']) || (isset($_GET['theme']) && $_GET['theme'] != $theme_slug)) {
|
812 |
|
813 |
-
$transient = '<div class="
|
814 |
|
815 |
// set transient with 12 hour expire
|
816 |
set_transient( $theme_slug.'_updatecheck', $transient, 60*60*12 );
|
@@ -1221,8 +1223,12 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1221 |
'Authorization' => 'Basic ' . base64_encode( 'user:'. $api_key )
|
1222 |
),
|
1223 |
'body' => json_encode(array(
|
1224 |
-
'email_address'
|
1225 |
-
'status'
|
|
|
|
|
|
|
|
|
1226 |
))
|
1227 |
);
|
1228 |
|
3 |
Plugin Name: CMP - Coming Soon & Maintenance Plugin
|
4 |
Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
|
5 |
Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
|
6 |
+
Version: 2.8.9
|
7 |
Author: NiteoThemes
|
8 |
Author URI: https://www.niteothemes.com
|
9 |
Text Domain: cmp-coming-soon-maintenance
|
66 |
private function constants() {
|
67 |
|
68 |
// define constants
|
69 |
+
$this->define( 'CMP_VERSION', '2.8.9' );
|
70 |
$this->define( 'CMP_DEBUG', FALSE );
|
71 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
72 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
182 |
* @return array
|
183 |
*/
|
184 |
public function cmp_countdown_themes() {
|
185 |
+
return array( 'frame', 'countdown', 'postery', 'countdown2', 'stylo', 'element', 'apollo', 'vega' );
|
186 |
}
|
187 |
|
188 |
/**
|
192 |
* @return array
|
193 |
*/
|
194 |
public function cmp_font_animation_themes() {
|
195 |
+
return array( 'hardwork_premium', 'fifty', 'orbit', 'stylo', 'apollo', 'vega' );
|
196 |
}
|
197 |
|
198 |
/**
|
726 |
|
727 |
$premium_themes = array();
|
728 |
|
729 |
+
array_push( $premium_themes, array('name' => 'vega', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=vega', 'vega' => '10') );
|
730 |
+
|
731 |
array_push( $premium_themes, array('name' => 'apollo', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=apollo', 'apollo' => '10') );
|
732 |
|
733 |
array_push( $premium_themes, array('name' => 'element', 'url' => 'https://niteothemes.com/?filter=cmp-plugin-themes&utm_source=cmp&utm_medium=referral&utm_campaign=element', 'price' => '10') );
|
812 |
// if admin screen is not in updating theme
|
813 |
if (!isset($_GET['theme']) || (isset($_GET['theme']) && $_GET['theme'] != $theme_slug)) {
|
814 |
|
815 |
+
$transient = '<div class="notice notice-warning"><p class="message">'.sprintf(__('There is a <b>recommended</b> update of <b>CMP Theme: %s</b> available:', 'cmp-coming-soon-maintenance'), $title).' <a href="'.admin_url().'options-general.php?page=cmp-settings&action=update-cmp-theme&theme='.esc_attr($theme_slug).'&type=premium" class="cmp update-theme" data-type="premium" data-security="'.esc_attr($ajax_nonce).'" data-slug="'.esc_attr($theme_slug).'" data-name="'.esc_attr($title).'" data-remote_url="' . esc_url( CMP_UPDATE_URL ) . '" data-new_ver="' . esc_attr( $remote_version ) . '">'.sprintf(__(' click to update to %s version from NiteoThemes server now','cmp-coming-soon-maintenance'), esc_attr( $remote_version )).'!</a></div>';
|
816 |
|
817 |
// set transient with 12 hour expire
|
818 |
set_transient( $theme_slug.'_updatecheck', $transient, 60*60*12 );
|
1223 |
'Authorization' => 'Basic ' . base64_encode( 'user:'. $api_key )
|
1224 |
),
|
1225 |
'body' => json_encode(array(
|
1226 |
+
'email_address' => $email,
|
1227 |
+
'status' => $status,
|
1228 |
+
'merge_fields' => array(
|
1229 |
+
'FNAME' => $firstname,
|
1230 |
+
'LNAME' => $lastname
|
1231 |
+
)
|
1232 |
))
|
1233 |
);
|
1234 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JF
|
|
4 |
Tags: coming soon, landing page, launch page, maintenance mode, under construction
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 2.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -60,6 +60,7 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
60 |
14. CMP - Stylo Theme
|
61 |
15. CMP - Element Theme
|
62 |
16. CMP - Apollo Theme
|
|
|
63 |
|
64 |
|
65 |
== Installation ==
|
@@ -114,6 +115,16 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
114 |
<p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
|
115 |
|
116 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
<h4>CMP 2.8.8 - bug fix update</h4>
|
118 |
<ul>
|
119 |
<li>Fixed not clickable Social URL inputs on mobile devices.</li>
|
4 |
Tags: coming soon, landing page, launch page, maintenance mode, under construction
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 2.8.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
60 |
14. CMP - Stylo Theme
|
61 |
15. CMP - Element Theme
|
62 |
16. CMP - Apollo Theme
|
63 |
+
17. CMP - Vega Theme
|
64 |
|
65 |
|
66 |
== Installation ==
|
115 |
<p>Everyone loves supports and great feedback! If you find our plugin helpful, you can go to wordpress.org and rate it! alternatively you can click on Donate button :)</p>
|
116 |
|
117 |
== Changelog ==
|
118 |
+
<h4>CMP 2.8.9 - bug fix update</h4>
|
119 |
+
<ul>
|
120 |
+
<li>New CMP Theme Vega - go check it out!</li>
|
121 |
+
<li>Settings changed - Subscribe Label changed to Subscribe Message, where you can add more text (GDPR, promotions..). Make sure to update CMP themes to latest version to reflect small design changes if you are using premium themes!</li>
|
122 |
+
<li>Removed Unsplash preview from CMP Admin Settings because it generated too much requests reaching our limits of 10.000 requests / hour! you guys rock!</li>
|
123 |
+
<li>Updated MailChimp API to include Firstname and Lastname in the request.</li>
|
124 |
+
<li>Resolved CMP Theme updates issues + added message it contacts remote niteothemes servers to fetch the update files.</li>
|
125 |
+
</ul>
|
126 |
+
|
127 |
+
|
128 |
<h4>CMP 2.8.8 - bug fix update</h4>
|
129 |
<ul>
|
130 |
<li>Fixed not clickable Social URL inputs on mobile devices.</li>
|
themes/construct/style.css
CHANGED
@@ -117,7 +117,25 @@ div.wpcf7-response-output { border:none;margin: 0; padding: 0;}
|
|
117 |
transition: opacity 1500ms;
|
118 |
}
|
119 |
|
|
|
|
|
|
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
122 |
|
123 |
@media only screen and (min-width : 1024px) {
|
117 |
transition: opacity 1500ms;
|
118 |
}
|
119 |
|
120 |
+
.cmp-form-notes p {
|
121 |
+
width: 100%;
|
122 |
+
}
|
123 |
|
124 |
+
.cmp-subscribe {
|
125 |
+
display: -webkit-box;
|
126 |
+
display: -ms-flexbox;
|
127 |
+
display: flex;
|
128 |
+
-webkit-box-orient: vertical;
|
129 |
+
-webkit-box-direction: normal;
|
130 |
+
-ms-flex-direction: column;
|
131 |
+
flex-direction: column;
|
132 |
+
}
|
133 |
+
|
134 |
+
.cmp-form-inputs {
|
135 |
+
-webkit-box-ordinal-group: 2;
|
136 |
+
-ms-flex-order: 1;
|
137 |
+
order: 1;
|
138 |
+
}
|
139 |
|
140 |
|
141 |
@media only screen and (min-width : 1024px) {
|
themes/countdown/style.css
CHANGED
@@ -65,6 +65,7 @@ template {
|
|
65 |
a {
|
66 |
background-color: transparent;
|
67 |
text-decoration: none;
|
|
|
68 |
transition: color .3s ease-in-out;
|
69 |
|
70 |
}
|
@@ -124,7 +125,8 @@ figure {
|
|
124 |
}
|
125 |
|
126 |
hr {
|
127 |
-
box-sizing: content-box;
|
|
|
128 |
height: 0;
|
129 |
}
|
130 |
|
@@ -202,7 +204,8 @@ input {
|
|
202 |
|
203 |
input[type="checkbox"],
|
204 |
input[type="radio"] {
|
205 |
-
box-sizing: border-box;
|
|
|
206 |
padding: 0;
|
207 |
}
|
208 |
|
@@ -213,7 +216,8 @@ input[type="number"]::-webkit-outer-spin-button {
|
|
213 |
|
214 |
input[type="search"] {
|
215 |
-webkit-appearance: textfield;
|
216 |
-
box-sizing: content-box;
|
|
|
217 |
}
|
218 |
|
219 |
input[type="search"]::-webkit-search-cancel-button,
|
@@ -267,10 +271,15 @@ h1,h2,h3,h4,h5,h6 {
|
|
267 |
position: relative;
|
268 |
display: -moz-flex;
|
269 |
display: -o-flex;
|
|
|
|
|
270 |
display: flex;
|
271 |
min-height: 100vh;
|
272 |
padding: 0 1em;
|
273 |
-moz-flex-direction: column;
|
|
|
|
|
|
|
274 |
flex-direction: column;
|
275 |
text-align: center;
|
276 |
}
|
@@ -278,6 +287,7 @@ h1,h2,h3,h4,h5,h6 {
|
|
278 |
|
279 |
#background-image {
|
280 |
opacity: 0;
|
|
|
281 |
transition: opacity .5s;
|
282 |
}
|
283 |
|
@@ -288,6 +298,7 @@ h1,h2,h3,h4,h5,h6 {
|
|
288 |
|
289 |
.video-banner iframe,
|
290 |
.video-banner video {
|
|
|
291 |
transition: opacity 1500ms;
|
292 |
}
|
293 |
|
@@ -326,20 +337,30 @@ h1,h2,h3,h4,h5,h6 {
|
|
326 |
footer {
|
327 |
display: -moz-flex;
|
328 |
display: -o-flex;
|
|
|
|
|
329 |
display: flex;
|
330 |
max-width: 768px;
|
331 |
width: 768px;
|
332 |
margin: 0 auto;
|
333 |
padding: 0;
|
334 |
-moz-flex-direction: column;
|
|
|
|
|
|
|
335 |
flex-direction: column;
|
336 |
-
flex
|
337 |
-
|
|
|
|
|
|
|
338 |
-webkit-flex-grow: 1;
|
339 |
-webkit-flex-shrink: 0;
|
340 |
-moz-flex-grow: 1;
|
341 |
-moz-flex-shrink: 0;
|
342 |
-
|
|
|
|
|
343 |
-moz-justify-content: center;
|
344 |
-webkit-justify-content: center;
|
345 |
text-align: center;
|
@@ -353,10 +374,19 @@ footer {
|
|
353 |
|
354 |
|
355 |
footer {
|
356 |
-
|
|
|
|
|
|
|
|
|
357 |
display: flex;
|
358 |
-
|
359 |
-
|
|
|
|
|
|
|
|
|
|
|
360 |
-webkit-flex-grow: 0;
|
361 |
}
|
362 |
|
@@ -395,14 +425,17 @@ footer {
|
|
395 |
width: 2em;
|
396 |
line-height: 2em;
|
397 |
background: transparent;
|
|
|
398 |
transition: background 300ms linear;
|
399 |
}
|
400 |
.social-list i{
|
|
|
401 |
transition: all 300ms linear;
|
402 |
}
|
403 |
|
404 |
.body .social-list i{
|
405 |
font-size: 2em;
|
|
|
406 |
transition: all 300ms linear;
|
407 |
}
|
408 |
|
@@ -438,6 +471,27 @@ footer {
|
|
438 |
padding-bottom: 2em;
|
439 |
}
|
440 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
.copyright {
|
442 |
margin-top: 0;
|
443 |
}
|
@@ -457,7 +511,8 @@ input {
|
|
457 |
display: inline-block;
|
458 |
line-height: 3em;
|
459 |
height: 3em;
|
460 |
-
box-sizing: border-box;
|
|
|
461 |
vertical-align: middle;
|
462 |
margin-bottom: 10px;
|
463 |
}
|
65 |
a {
|
66 |
background-color: transparent;
|
67 |
text-decoration: none;
|
68 |
+
-webkit-transition: color .3s ease-in-out;
|
69 |
transition: color .3s ease-in-out;
|
70 |
|
71 |
}
|
125 |
}
|
126 |
|
127 |
hr {
|
128 |
+
-webkit-box-sizing: content-box;
|
129 |
+
box-sizing: content-box;
|
130 |
height: 0;
|
131 |
}
|
132 |
|
204 |
|
205 |
input[type="checkbox"],
|
206 |
input[type="radio"] {
|
207 |
+
-webkit-box-sizing: border-box;
|
208 |
+
box-sizing: border-box;
|
209 |
padding: 0;
|
210 |
}
|
211 |
|
216 |
|
217 |
input[type="search"] {
|
218 |
-webkit-appearance: textfield;
|
219 |
+
-webkit-box-sizing: content-box;
|
220 |
+
box-sizing: content-box;
|
221 |
}
|
222 |
|
223 |
input[type="search"]::-webkit-search-cancel-button,
|
271 |
position: relative;
|
272 |
display: -moz-flex;
|
273 |
display: -o-flex;
|
274 |
+
display: -webkit-box;
|
275 |
+
display: -ms-flexbox;
|
276 |
display: flex;
|
277 |
min-height: 100vh;
|
278 |
padding: 0 1em;
|
279 |
-moz-flex-direction: column;
|
280 |
+
-webkit-box-orient: vertical;
|
281 |
+
-webkit-box-direction: normal;
|
282 |
+
-ms-flex-direction: column;
|
283 |
flex-direction: column;
|
284 |
text-align: center;
|
285 |
}
|
287 |
|
288 |
#background-image {
|
289 |
opacity: 0;
|
290 |
+
-webkit-transition: opacity .5s;
|
291 |
transition: opacity .5s;
|
292 |
}
|
293 |
|
298 |
|
299 |
.video-banner iframe,
|
300 |
.video-banner video {
|
301 |
+
-webkit-transition: opacity 1500ms;
|
302 |
transition: opacity 1500ms;
|
303 |
}
|
304 |
|
337 |
footer {
|
338 |
display: -moz-flex;
|
339 |
display: -o-flex;
|
340 |
+
display: -webkit-box;
|
341 |
+
display: -ms-flexbox;
|
342 |
display: flex;
|
343 |
max-width: 768px;
|
344 |
width: 768px;
|
345 |
margin: 0 auto;
|
346 |
padding: 0;
|
347 |
-moz-flex-direction: column;
|
348 |
+
-webkit-box-orient: vertical;
|
349 |
+
-webkit-box-direction: normal;
|
350 |
+
-ms-flex-direction: column;
|
351 |
flex-direction: column;
|
352 |
+
-webkit-box-flex: 1;
|
353 |
+
-ms-flex-positive: 1;
|
354 |
+
flex-grow: 1;
|
355 |
+
-ms-flex-negative: 0;
|
356 |
+
flex-shrink: 0;
|
357 |
-webkit-flex-grow: 1;
|
358 |
-webkit-flex-shrink: 0;
|
359 |
-moz-flex-grow: 1;
|
360 |
-moz-flex-shrink: 0;
|
361 |
+
-webkit-box-pack: center;
|
362 |
+
-ms-flex-pack: center;
|
363 |
+
justify-content: center;
|
364 |
-moz-justify-content: center;
|
365 |
-webkit-justify-content: center;
|
366 |
text-align: center;
|
374 |
|
375 |
|
376 |
footer {
|
377 |
+
-webkit-box-pack: end;
|
378 |
+
-ms-flex-pack: end;
|
379 |
+
justify-content: flex-end;
|
380 |
+
display: -webkit-box;
|
381 |
+
display: -ms-flexbox;
|
382 |
display: flex;
|
383 |
+
-webkit-box-orient: vertical;
|
384 |
+
-webkit-box-direction: normal;
|
385 |
+
-ms-flex-direction: column;
|
386 |
+
flex-direction: column;
|
387 |
+
-webkit-box-flex: 0;
|
388 |
+
-ms-flex-positive: 0;
|
389 |
+
flex-grow: 0;
|
390 |
-webkit-flex-grow: 0;
|
391 |
}
|
392 |
|
425 |
width: 2em;
|
426 |
line-height: 2em;
|
427 |
background: transparent;
|
428 |
+
-webkit-transition: background 300ms linear;
|
429 |
transition: background 300ms linear;
|
430 |
}
|
431 |
.social-list i{
|
432 |
+
-webkit-transition: all 300ms linear;
|
433 |
transition: all 300ms linear;
|
434 |
}
|
435 |
|
436 |
.body .social-list i{
|
437 |
font-size: 2em;
|
438 |
+
-webkit-transition: all 300ms linear;
|
439 |
transition: all 300ms linear;
|
440 |
}
|
441 |
|
471 |
padding-bottom: 2em;
|
472 |
}
|
473 |
|
474 |
+
.cmp-form-notes p {
|
475 |
+
width: 100%;
|
476 |
+
margin-bottom: 0;
|
477 |
+
}
|
478 |
+
|
479 |
+
.cmp-subscribe {
|
480 |
+
display: -webkit-box;
|
481 |
+
display: -ms-flexbox;
|
482 |
+
display: flex;
|
483 |
+
-webkit-box-orient: vertical;
|
484 |
+
-webkit-box-direction: normal;
|
485 |
+
-ms-flex-direction: column;
|
486 |
+
flex-direction: column;
|
487 |
+
}
|
488 |
+
|
489 |
+
.cmp-form-inputs {
|
490 |
+
-webkit-box-ordinal-group: 2;
|
491 |
+
-ms-flex-order: 1;
|
492 |
+
order: 1;
|
493 |
+
}
|
494 |
+
|
495 |
.copyright {
|
496 |
margin-top: 0;
|
497 |
}
|
511 |
display: inline-block;
|
512 |
line-height: 3em;
|
513 |
height: 3em;
|
514 |
+
-webkit-box-sizing: border-box;
|
515 |
+
box-sizing: border-box;
|
516 |
vertical-align: middle;
|
517 |
margin-bottom: 10px;
|
518 |
}
|
themes/vega.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
Theme Name: Vega
|
3 |
+
Description: <p>Vega is Premium theme for CMP Plugin. Beautiful typography, stylish Countdown, animated fonts and hiding Sidebar makes Vega perfect landing page for your coming soon or maintenance page!</p><h4>Main Features</h4><ul><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Logo</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Fade in/out Text Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Content</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Background including videos</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Graphic Image Slider Background</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Countdown Timer</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Subscribe Form</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Social Media</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Colors</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Custom Fonts</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Blur Effect</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Background Special Effects</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Sidebar Support</li><li class="supported"><i class="fa fa-check-square-o" aria-hidden="true"></i> Responsive Design</li></ul>
|
4 |
+
|