Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 2.9 |
Comparing to | |
See all releases |
Code changes from version 2.8.9.1 to 2.9
- cmp-settings.php +95 -38
- css/cmp-admin-head.css +1 -1
- css/cmp-settings-style.css +27 -9
- css/cmp-settings-style.min.css +1 -1
- inc/class-cmp-render_html.php +59 -24
- inc/settings/settings-counter.php +11 -11
- js/select2.min.js +1 -1
- js/settings.js +16 -0
- niteo-cmp.php +17 -13
- readme.txt +26 -7
- themes/countdown/countdown-theme.php +5 -5
- themes/hardwork/style.css +5 -26
cmp-settings.php
CHANGED
@@ -25,13 +25,10 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
25 |
|
26 |
$this->cmp_purge_cache();
|
27 |
|
28 |
-
|
29 |
if ( isset($_POST['niteoCS_select_theme']) && in_array($_POST['niteoCS_select_theme'], $this->cmp_themes_available())) {
|
30 |
update_option('niteoCS_theme', sanitize_text_field($_POST['niteoCS_select_theme']));
|
31 |
}
|
32 |
|
33 |
-
|
34 |
-
|
35 |
if (isset($_POST['niteoCS_logo_id_'.$themeslug]) && ( is_numeric($_POST['niteoCS_logo_id_'.$themeslug]) || empty($_POST['niteoCS_logo_id_'.$themeslug]))) {
|
36 |
update_option('niteoCS_logo_id['.$themeslug.']', sanitize_text_field($_POST['niteoCS_logo_id_'.$themeslug]));
|
37 |
}
|
@@ -203,6 +200,10 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
203 |
update_option('niteoCS_favicon_id', sanitize_text_field($_POST['niteoCS_favicon_id']));
|
204 |
}
|
205 |
|
|
|
|
|
|
|
|
|
206 |
|
207 |
if (isset($_POST['niteoCS_title'])) {
|
208 |
update_option('niteoCS_title', sanitize_text_field($_POST['niteoCS_title']));
|
@@ -227,6 +228,18 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
227 |
update_option('niteoCS_analytics_other', sanitize_text_field($js_code));
|
228 |
}
|
229 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
|
231 |
if (isset($_POST['niteoCS_custom_css'])) {
|
232 |
update_option('niteoCS_custom_css', $_POST['niteoCS_custom_css']);
|
@@ -293,6 +306,8 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
293 |
if (isset($_POST['niteoCS_effect_blur_'.$themeslug]) && is_numeric($_POST['niteoCS_effect_blur_'.$themeslug])) {
|
294 |
update_option('niteoCS_effect_blur['.$themeslug.']', sanitize_text_field($_POST['niteoCS_effect_blur_'.$themeslug]));
|
295 |
}
|
|
|
|
|
296 |
}
|
297 |
|
298 |
$overlay = get_option('niteoCS_overlay['.$themeslug.']', 'disabled');
|
@@ -316,11 +331,14 @@ $niteoCS_soc_title = stripslashes(get_option('niteoCS_soc_title', 'GET SOCIAL
|
|
316 |
|
317 |
// get SEO
|
318 |
$niteoCS_favicon_id = get_option('niteoCS_favicon_id');
|
319 |
-
$
|
320 |
-
$
|
|
|
321 |
$niteoCS_analytics_status = get_option('niteoCS_analytics_status', 'disabled');
|
322 |
$niteoCS_analytics = stripslashes(get_option('niteoCS_analytics', ''));
|
323 |
$niteoCS_analytics_other = get_option('niteoCS_analytics_other', '');
|
|
|
|
|
324 |
|
325 |
// get Custom CSS
|
326 |
$niteoCS_custom_css = stripslashes(get_option('niteoCS_custom_css', ''));
|
@@ -408,6 +426,14 @@ if ( $niteoCS_favicon_id != '' ) {
|
|
408 |
}
|
409 |
}
|
410 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
// get logo url from id
|
412 |
if ( $niteoCS_banner_pattern == 'custom' && $niteoCS_banner_pattern_custom != '' ) {
|
413 |
$pattern_url = wp_get_attachment_image_src($niteoCS_banner_pattern_custom, 'thumbnail');
|
@@ -474,7 +500,7 @@ add_thickbox();
|
|
474 |
|
475 |
<a class="nav-tab theme-setup" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="theme-setup"><i class="fa fa-wrench" aria-hidden="true"></i><?php _e('Theme Setup', 'cmp-coming-soon-maintenance');?></a>
|
476 |
|
477 |
-
<a class="nav-tab seo" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="seo"><i class="fa fa-line-chart" aria-hidden="true"></i><?php _e('SEO', 'cmp-coming-soon-maintenance');?></a>
|
478 |
|
479 |
<a class="nav-tab custom_css" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="custom_css"><i class="fa fa-code" aria-hidden="true"></i><?php _e('Custom CSS', 'cmp-coming-soon-maintenance');?></a>
|
480 |
|
@@ -486,7 +512,7 @@ add_thickbox();
|
|
486 |
|
487 |
<div class="cmp-inputs-wrapper">
|
488 |
|
489 |
-
<div class="table-wrapper general">
|
490 |
<h3><?php _e('General Settings', 'cmp-coming-soon-maintenance');?></h3>
|
491 |
<table class="general">
|
492 |
<tbody>
|
@@ -640,7 +666,7 @@ add_thickbox();
|
|
640 |
|
641 |
<div class="buttons-wrapper">
|
642 |
|
643 |
-
<a href="<?php echo esc_url ($premium_theme['url'] );?>" target="_blank" class="theme-purchase button hide"><i class="fa fa-download" aria-hidden="true"></i><?php
|
644 |
|
645 |
<a href="<?php echo 'http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='.$theme_slug.'&utm_source=cmp&utm_medium=referral&utm_campaign='.$theme_slug.'';?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a>
|
646 |
|
@@ -844,8 +870,10 @@ add_thickbox();
|
|
844 |
} ?>
|
845 |
|
846 |
</ul>
|
847 |
-
|
|
|
848 |
<input type="hidden" name="niteoCS_socialmedia" id="niteoCS_socialmedia" value="<?php echo esc_attr( $niteoCS_socialmedia ); ?>" class="regular-text code active">
|
|
|
849 |
</td>
|
850 |
</tr>
|
851 |
|
@@ -1061,26 +1089,69 @@ add_thickbox();
|
|
1061 |
echo '<img src="'.esc_url($niteoCS_favicon_url).'" alt="">';
|
1062 |
} ?>
|
1063 |
</div>
|
|
|
|
|
1064 |
<input id="delete-favicon" type="button" class="button" value="Remove Favicon" />
|
1065 |
-
|
1066 |
</fieldset>
|
1067 |
</td>
|
1068 |
</tr>
|
1069 |
|
1070 |
<tr class="seo-title">
|
1071 |
-
<th><?php _e('
|
1072 |
<td>
|
1073 |
<fieldset>
|
1074 |
<input type="text" name="niteoCS_title" id="niteoCS_title" value="<?php echo esc_attr( $niteoCS_title); ?>" class="regular-text code">
|
|
|
1075 |
</fieldset>
|
1076 |
</td>
|
1077 |
</tr>
|
1078 |
|
1079 |
<tr>
|
1080 |
-
<th><?php _e('Description', 'cmp-coming-soon-maintenance');?></th>
|
1081 |
<td>
|
1082 |
<fieldset>
|
1083 |
<textarea name="niteoCS_descr" id="niteoCS_descr" class="code"><?php echo esc_attr( $niteoCS_descr); ?></textarea>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1084 |
</fieldset>
|
1085 |
</td>
|
1086 |
</tr>
|
@@ -1105,19 +1176,19 @@ add_thickbox();
|
|
1105 |
|
1106 |
<p>
|
1107 |
<label title="<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>">
|
1108 |
-
<input type="radio" class="analytics" name="niteoCS_analytics_status" value="disabled"<?php
|
1109 |
</label>
|
1110 |
</p>
|
1111 |
|
1112 |
<p>
|
1113 |
<label title="<?php _e('Google Analytics', 'cmp-coming-soon-maintenance');?>">
|
1114 |
-
<input type="radio" class="analytics" name="niteoCS_analytics_status" value="google"<?php
|
1115 |
</label>
|
1116 |
</p>
|
1117 |
|
1118 |
<p>
|
1119 |
<label title="<?php _e('Other', 'cmp-coming-soon-maintenance');?>">
|
1120 |
-
<input type="radio" class="analytics" name="niteoCS_analytics_status" value="other"<?php
|
1121 |
</label>
|
1122 |
</p>
|
1123 |
|
@@ -1126,23 +1197,19 @@ add_thickbox();
|
|
1126 |
|
1127 |
<td>
|
1128 |
<fieldset>
|
1129 |
-
|
1130 |
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
</p>
|
1137 |
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
</fieldset>
|
1143 |
-
|
1144 |
</td>
|
1145 |
-
|
1146 |
</tr>
|
1147 |
|
1148 |
<?php echo $this->render_settings->submit(); ?>
|
@@ -1151,8 +1218,6 @@ add_thickbox();
|
|
1151 |
</table>
|
1152 |
</div>
|
1153 |
|
1154 |
-
|
1155 |
-
|
1156 |
<div class="table-wrapper-css custom_css">
|
1157 |
<h3><?php _e('Enter Custom CSS', 'cmp-coming-soon-maintenance');?></h3>
|
1158 |
|
@@ -1164,16 +1229,8 @@ add_thickbox();
|
|
1164 |
</p>
|
1165 |
</div>
|
1166 |
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
</div> <!-- <div class="cmp-settings-wrapper"> -->
|
1174 |
|
1175 |
-
|
1176 |
-
|
1177 |
</div> <!-- <div class="cmp-inputs-wrapper"> -->
|
1178 |
|
1179 |
</form>
|
25 |
|
26 |
$this->cmp_purge_cache();
|
27 |
|
|
|
28 |
if ( isset($_POST['niteoCS_select_theme']) && in_array($_POST['niteoCS_select_theme'], $this->cmp_themes_available())) {
|
29 |
update_option('niteoCS_theme', sanitize_text_field($_POST['niteoCS_select_theme']));
|
30 |
}
|
31 |
|
|
|
|
|
32 |
if (isset($_POST['niteoCS_logo_id_'.$themeslug]) && ( is_numeric($_POST['niteoCS_logo_id_'.$themeslug]) || empty($_POST['niteoCS_logo_id_'.$themeslug]))) {
|
33 |
update_option('niteoCS_logo_id['.$themeslug.']', sanitize_text_field($_POST['niteoCS_logo_id_'.$themeslug]));
|
34 |
}
|
200 |
update_option('niteoCS_favicon_id', sanitize_text_field($_POST['niteoCS_favicon_id']));
|
201 |
}
|
202 |
|
203 |
+
if (isset($_POST['niteoCS_seo_img_id']) && ( is_numeric($_POST['niteoCS_seo_img_id']) || empty($_POST['niteoCS_seo_img_id']))) {
|
204 |
+
update_option('niteoCS_seo_img_id', sanitize_text_field($_POST['niteoCS_seo_img_id']));
|
205 |
+
}
|
206 |
+
|
207 |
|
208 |
if (isset($_POST['niteoCS_title'])) {
|
209 |
update_option('niteoCS_title', sanitize_text_field($_POST['niteoCS_title']));
|
228 |
update_option('niteoCS_analytics_other', sanitize_text_field($js_code));
|
229 |
}
|
230 |
|
231 |
+
if ( isset($_POST['niteoCS_seo_visibility']) ) {
|
232 |
+
update_option('niteoCS_seo_visibility', '0');
|
233 |
+
} else {
|
234 |
+
update_option('niteoCS_seo_visibility', $this->sanitize_checkbox( $_POST['niteoCS_seo_visibility'] ));
|
235 |
+
}
|
236 |
+
|
237 |
+
if ( isset($_POST['niteoCS_seo_nocache']) ) {
|
238 |
+
update_option('niteoCS_seo_nocache', $this->sanitize_checkbox( $_POST['niteoCS_seo_nocache'] ));
|
239 |
+
} else {
|
240 |
+
update_option('niteoCS_seo_nocache', '0');
|
241 |
+
}
|
242 |
+
|
243 |
|
244 |
if (isset($_POST['niteoCS_custom_css'])) {
|
245 |
update_option('niteoCS_custom_css', $_POST['niteoCS_custom_css']);
|
306 |
if (isset($_POST['niteoCS_effect_blur_'.$themeslug]) && is_numeric($_POST['niteoCS_effect_blur_'.$themeslug])) {
|
307 |
update_option('niteoCS_effect_blur['.$themeslug.']', sanitize_text_field($_POST['niteoCS_effect_blur_'.$themeslug]));
|
308 |
}
|
309 |
+
|
310 |
+
$themeslug = sanitize_text_field($_POST['niteoCS_select_theme']);
|
311 |
}
|
312 |
|
313 |
$overlay = get_option('niteoCS_overlay['.$themeslug.']', 'disabled');
|
331 |
|
332 |
// get SEO
|
333 |
$niteoCS_favicon_id = get_option('niteoCS_favicon_id');
|
334 |
+
$niteoCS_seo_img_id = get_option('niteoCS_seo_img_id');
|
335 |
+
$niteoCS_title = stripslashes( get_option('niteoCS_title', get_bloginfo('name')) );
|
336 |
+
$niteoCS_descr = stripslashes( get_option('niteoCS_descr', get_bloginfo('description'))) ;
|
337 |
$niteoCS_analytics_status = get_option('niteoCS_analytics_status', 'disabled');
|
338 |
$niteoCS_analytics = stripslashes(get_option('niteoCS_analytics', ''));
|
339 |
$niteoCS_analytics_other = get_option('niteoCS_analytics_other', '');
|
340 |
+
$seo_visibility = get_option('niteoCS_seo_visibility', get_option( 'blog_public', '1' ));
|
341 |
+
$seo_nocache = get_option('niteoCS_seo_nocache', '0');
|
342 |
|
343 |
// get Custom CSS
|
344 |
$niteoCS_custom_css = stripslashes(get_option('niteoCS_custom_css', ''));
|
426 |
}
|
427 |
}
|
428 |
|
429 |
+
// get favicon url from id
|
430 |
+
if ( $niteoCS_seo_img_id != '' ) {
|
431 |
+
$niteoCS_seo_img_url = wp_get_attachment_image_src($niteoCS_seo_img_id, 'medium');
|
432 |
+
if ( isset($niteoCS_seo_img_url[0]) ){
|
433 |
+
$niteoCS_seo_img_url = $niteoCS_seo_img_url[0];
|
434 |
+
}
|
435 |
+
}
|
436 |
+
|
437 |
// get logo url from id
|
438 |
if ( $niteoCS_banner_pattern == 'custom' && $niteoCS_banner_pattern_custom != '' ) {
|
439 |
$pattern_url = wp_get_attachment_image_src($niteoCS_banner_pattern_custom, 'thumbnail');
|
500 |
|
501 |
<a class="nav-tab theme-setup" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="theme-setup"><i class="fa fa-wrench" aria-hidden="true"></i><?php _e('Theme Setup', 'cmp-coming-soon-maintenance');?></a>
|
502 |
|
503 |
+
<a class="nav-tab seo" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="seo"><i class="fa fa-line-chart" aria-hidden="true"></i><?php _e('SEO & Analytics', 'cmp-coming-soon-maintenance');?></a>
|
504 |
|
505 |
<a class="nav-tab custom_css" href="<?php echo admin_url(); ?>admin.php?page=cmp-settings" data-tab="custom_css"><i class="fa fa-code" aria-hidden="true"></i><?php _e('Custom CSS', 'cmp-coming-soon-maintenance');?></a>
|
506 |
|
512 |
|
513 |
<div class="cmp-inputs-wrapper">
|
514 |
|
515 |
+
<div class="table-wrapper general skip-preview-validation">
|
516 |
<h3><?php _e('General Settings', 'cmp-coming-soon-maintenance');?></h3>
|
517 |
<table class="general">
|
518 |
<tbody>
|
666 |
|
667 |
<div class="buttons-wrapper">
|
668 |
|
669 |
+
<a href="<?php echo esc_url ($premium_theme['url'] );?>" target="_blank" class="theme-purchase button hide"><i class="fa fa-download" aria-hidden="true"></i><?php echo sprintf(__('Get %s', 'cmp-coming-soon-maintenance'), ucwords( esc_html( str_replace('_', ' ', $theme_slug) ) ));?></a>
|
670 |
|
671 |
<a href="<?php echo 'http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='.$theme_slug.'&utm_source=cmp&utm_medium=referral&utm_campaign='.$theme_slug.'';?>" target="_blank" class="theme-preview button hide"><i class="fa fa-external-link" aria-hidden="true"></i><?php _e('PREVIEW', 'cmp-coming-soon-maintenance');?></a>
|
672 |
|
870 |
} ?>
|
871 |
|
872 |
</ul>
|
873 |
+
|
874 |
+
<fieldset>
|
875 |
<input type="hidden" name="niteoCS_socialmedia" id="niteoCS_socialmedia" value="<?php echo esc_attr( $niteoCS_socialmedia ); ?>" class="regular-text code active">
|
876 |
+
</fieldset>
|
877 |
</td>
|
878 |
</tr>
|
879 |
|
1089 |
echo '<img src="'.esc_url($niteoCS_favicon_url).'" alt="">';
|
1090 |
} ?>
|
1091 |
</div>
|
1092 |
+
<span class="cmp-hint">* <?php _e('By default your standard Favicon will be used but you can override it for CMP page by selecting different Favicon.', 'cmp-coming-soon-maintenance');?></span>
|
1093 |
+
<br><br>
|
1094 |
<input id="delete-favicon" type="button" class="button" value="Remove Favicon" />
|
|
|
1095 |
</fieldset>
|
1096 |
</td>
|
1097 |
</tr>
|
1098 |
|
1099 |
<tr class="seo-title">
|
1100 |
+
<th><?php _e('SEO Title', 'cmp-coming-soon-maintenance');?></th>
|
1101 |
<td>
|
1102 |
<fieldset>
|
1103 |
<input type="text" name="niteoCS_title" id="niteoCS_title" value="<?php echo esc_attr( $niteoCS_title); ?>" class="regular-text code">
|
1104 |
+
<span class="cmp-hint">* <?php _e('It is recommended to keep title under 60 characters.', 'cmp-coming-soon-maintenance');?></span>
|
1105 |
</fieldset>
|
1106 |
</td>
|
1107 |
</tr>
|
1108 |
|
1109 |
<tr>
|
1110 |
+
<th><?php _e('SEO Description', 'cmp-coming-soon-maintenance');?></th>
|
1111 |
<td>
|
1112 |
<fieldset>
|
1113 |
<textarea name="niteoCS_descr" id="niteoCS_descr" class="code"><?php echo esc_attr( $niteoCS_descr); ?></textarea>
|
1114 |
+
<span class="cmp-hint">* <?php _e('It is recommended to keep description between 50–300 characters.', 'cmp-coming-soon-maintenance');?></span>
|
1115 |
+
</fieldset>
|
1116 |
+
</td>
|
1117 |
+
</tr>
|
1118 |
+
|
1119 |
+
<tr>
|
1120 |
+
<th><?php _e('SEO Image', 'cmp-coming-soon-maintenance');?></th>
|
1121 |
+
<td>
|
1122 |
+
<fieldset>
|
1123 |
+
<input type="hidden" class="widefat" id="niteoCS-seo_img-id" name="niteoCS_seo_img_id" value="<?php echo esc_attr( $niteoCS_seo_img_id ); ?>" />
|
1124 |
+
<input id="add-seo_img" type="button" class="button" value="Select Image" />
|
1125 |
+
|
1126 |
+
<div class="seo_img-wrapper">
|
1127 |
+
<?php
|
1128 |
+
if ( isset( $niteoCS_seo_img_url ) && $niteoCS_seo_img_url !== '' ) {
|
1129 |
+
echo '<img src="'.esc_url( $niteoCS_seo_img_url ).'" alt="">';
|
1130 |
+
} ?>
|
1131 |
+
</div>
|
1132 |
+
<span class="cmp-hint">* <?php _e('By default seleceted Background image is displayed on Social Networks if your Website is shared. You can overwrite the image by selecting your custom image here.', 'cmp-coming-soon-maintenance');?></span>
|
1133 |
+
<br><br>
|
1134 |
+
<input id="delete-seo_img" type="button" class="button" value="Remove Image" />
|
1135 |
+
</fieldset>
|
1136 |
+
</td>
|
1137 |
+
</tr>
|
1138 |
+
|
1139 |
+
<tr>
|
1140 |
+
<th><?php _e('Search Engine Visibility', 'cmp-coming-soon-maintenance');?></th>
|
1141 |
+
<td>
|
1142 |
+
<fieldset>
|
1143 |
+
<label><input id="seo-visibility" name="niteoCS_seo_visibility" type="checkbox" class="regular-text code" <?php checked( '0', $seo_visibility );?> /><?php _e('Discourage search engines from indexing this site - applies only for CMP page.', 'cmp-coming-soon-maintenance');?></label><br>
|
1144 |
+
<span class="cmp-hint">* <?php _e('It is up to search engines to honor this request.', 'cmp-coming-soon-maintenance');?></span>
|
1145 |
+
|
1146 |
+
</fieldset>
|
1147 |
+
</td>
|
1148 |
+
</tr>
|
1149 |
+
|
1150 |
+
<tr>
|
1151 |
+
<th><?php _e('No-cache Headers', 'cmp-coming-soon-maintenance');?></th>
|
1152 |
+
<td>
|
1153 |
+
<fieldset>
|
1154 |
+
<label><input id="seo-nocache" name="niteoCS_seo_nocache" type="checkbox" class="regular-text code" <?php checked( '1', $seo_nocache );?> /><?php _e('Send no-cache headers. If you don\'t want the CMP page\'s preview to be cached by Facebook or other social media then enable this option.', 'cmp-coming-soon-maintenance');?></label>
|
1155 |
</fieldset>
|
1156 |
</td>
|
1157 |
</tr>
|
1176 |
|
1177 |
<p>
|
1178 |
<label title="<?php _e('Disabled', 'cmp-coming-soon-maintenance');?>">
|
1179 |
+
<input type="radio" class="analytics" name="niteoCS_analytics_status" value="disabled"<?php checked( 'disabled', $niteoCS_analytics_status );?>> <?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
|
1180 |
</label>
|
1181 |
</p>
|
1182 |
|
1183 |
<p>
|
1184 |
<label title="<?php _e('Google Analytics', 'cmp-coming-soon-maintenance');?>">
|
1185 |
+
<input type="radio" class="analytics" name="niteoCS_analytics_status" value="google"<?php checked( 'google', $niteoCS_analytics_status );?>> <?php _e('Google Analytics', 'cmp-coming-soon-maintenance');?>
|
1186 |
</label>
|
1187 |
</p>
|
1188 |
|
1189 |
<p>
|
1190 |
<label title="<?php _e('Other', 'cmp-coming-soon-maintenance');?>">
|
1191 |
+
<input type="radio" class="analytics" name="niteoCS_analytics_status" value="other"<?php checked( 'other', $niteoCS_analytics_status );?>> <?php _e('Other', 'cmp-coming-soon-maintenance');?>
|
1192 |
</label>
|
1193 |
</p>
|
1194 |
|
1197 |
|
1198 |
<td>
|
1199 |
<fieldset>
|
1200 |
+
<p class="analytics-switch disabled"><?php _e('Analytics is disabled', 'cmp-coming-soon-maintenance');?></p>
|
1201 |
|
1202 |
+
<p class="analytics-switch google">
|
1203 |
+
<label for="niteoCS_analytics"><?php _e('Insert Google Analytics Tracking ID', 'cmp-coming-soon-maintenance');?></label><br>
|
1204 |
+
<input type="text" name="niteoCS_analytics" value="<?php echo esc_attr( $niteoCS_analytics ); ?>" class="regular-text code" placeholder="UA-xxxxxx-xx"/>
|
1205 |
+
</p>
|
|
|
|
|
1206 |
|
1207 |
+
<p class="analytics-switch other">
|
1208 |
+
<label for="niteoCS_analytics_other"><?php _e('Insert your Analytics Javascript code without script tags.', 'cmp-coming-soon-maintenance');?></label><br>
|
1209 |
+
<textare a name="niteoCS_analytics_other" rows="5" class="code"><?php echo stripslashes( esc_js( $niteoCS_analytics_other ) ); ?></textarea>
|
1210 |
+
</p>
|
1211 |
</fieldset>
|
|
|
1212 |
</td>
|
|
|
1213 |
</tr>
|
1214 |
|
1215 |
<?php echo $this->render_settings->submit(); ?>
|
1218 |
</table>
|
1219 |
</div>
|
1220 |
|
|
|
|
|
1221 |
<div class="table-wrapper-css custom_css">
|
1222 |
<h3><?php _e('Enter Custom CSS', 'cmp-coming-soon-maintenance');?></h3>
|
1223 |
|
1229 |
</p>
|
1230 |
</div>
|
1231 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1232 |
</div> <!-- <div class="cmp-settings-wrapper"> -->
|
1233 |
|
|
|
|
|
1234 |
</div> <!-- <div class="cmp-inputs-wrapper"> -->
|
1235 |
|
1236 |
</form>
|
css/cmp-admin-head.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
#wpadminbar ul li#wp-admin-bar-cmp-admin-notice{background:#2c3e50;}
|
2 |
|
3 |
#toplevel_page_cmp-settings img {
|
4 |
max-width: 20px!important;
|
1 |
+
/* #wpadminbar ul li#wp-admin-bar-cmp-admin-notice{background:#2c3e50;} */
|
2 |
|
3 |
#toplevel_page_cmp-settings img {
|
4 |
max-width: 20px!important;
|
css/cmp-settings-style.css
CHANGED
@@ -37,7 +37,8 @@
|
|
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,6 +76,7 @@
|
|
75 |
border-radius: 50%;
|
76 |
border: 1px solid #d4d4d4;
|
77 |
cursor: pointer;
|
|
|
78 |
transition: .3s ease-in-out
|
79 |
}
|
80 |
|
@@ -251,6 +253,7 @@
|
|
251 |
|
252 |
.cmp-coming-soon-maintenance #delete-banner,
|
253 |
.cmp-coming-soon-maintenance #delete-favicon,
|
|
|
254 |
.cmp-coming-soon-maintenance #delete-logo,
|
255 |
.cmp-coming-soon-maintenance #delete-video-thumb {
|
256 |
display: none
|
@@ -279,7 +282,8 @@
|
|
279 |
|
280 |
.cmp-coming-soon-maintenance #niteoCS-text-logo {
|
281 |
border: none;
|
282 |
-
box-shadow: none;
|
|
|
283 |
font-size: 3em
|
284 |
}
|
285 |
|
@@ -414,7 +418,8 @@
|
|
414 |
|
415 |
.cmp-coming-soon-maintenance .banner-wrapper,
|
416 |
.cmp-coming-soon-maintenance .favicon-wrapper,
|
417 |
-
.cmp-coming-soon-maintenance .logo-wrapper
|
|
|
418 |
margin: 1em 0
|
419 |
}
|
420 |
|
@@ -429,7 +434,8 @@
|
|
429 |
}
|
430 |
|
431 |
.cmp-coming-soon-maintenance .background-media img,
|
432 |
-
.cmp-coming-soon-maintenance .logo-wrapper img
|
|
|
433 |
max-width: 100%;
|
434 |
width: 100%;
|
435 |
vertical-align: top;
|
@@ -459,14 +465,14 @@
|
|
459 |
grid-template-columns: 1fr 1fr 1fr;
|
460 |
-ms-grid-rows: 1fr auto;
|
461 |
grid-template-rows: 1fr auto;
|
462 |
-
|
463 |
grid-gap: 10px;
|
464 |
}
|
465 |
|
466 |
.cmp-coming-soon-maintenance .custom-gallery.gallery-3 {
|
467 |
-ms-grid-columns: 1fr 1fr!important;
|
468 |
grid-template-columns: 1fr 1fr!important;
|
469 |
-
|
470 |
|
471 |
}
|
472 |
|
@@ -535,6 +541,7 @@
|
|
535 |
content: '';
|
536 |
display: block;
|
537 |
padding-top: 56.25%;
|
|
|
538 |
transition: background-color .1s;
|
539 |
border-top-left-radius: 5px;
|
540 |
border-top-right-radius: 5px;
|
@@ -561,11 +568,13 @@
|
|
561 |
|
562 |
.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected) {
|
563 |
opacity: 0;
|
|
|
564 |
transition: opacity .1s, background-color .1s;
|
565 |
}
|
566 |
|
567 |
.cmp-coming-soon-maintenance .theme-wrapper:hover .hide {
|
568 |
opacity: 1;
|
|
|
569 |
transition: opacity .1s, background-color .1s;
|
570 |
}
|
571 |
|
@@ -612,6 +621,7 @@
|
|
612 |
color: #fff!important;
|
613 |
-moz-appearance: none;
|
614 |
-webkit-appearance: none;
|
|
|
615 |
transition: background-color .5s;
|
616 |
border: none!important;
|
617 |
box-shadow: none;
|
@@ -625,13 +635,15 @@
|
|
625 |
background-color: #c0392b;
|
626 |
color: #fff;
|
627 |
border: none;
|
|
|
628 |
transition: background-color .5s
|
629 |
}
|
630 |
|
631 |
.cmp-coming-soon-maintenance .theme-wrapper a.button:visited,
|
632 |
.cmp-coming-soon-maintenance .theme-wrapper a.button:focus {
|
633 |
background: transparent;
|
634 |
-
box-shadow: none;
|
|
|
635 |
}
|
636 |
|
637 |
.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase {
|
@@ -651,7 +663,7 @@
|
|
651 |
.cmp-coming-soon-maintenance .theme-wrapper .button {
|
652 |
border: 2px solid #ffffff!important;
|
653 |
background: transparent;
|
654 |
-
width:
|
655 |
line-height: 2.5em;
|
656 |
height: 3em;
|
657 |
}
|
@@ -661,7 +673,8 @@
|
|
661 |
background: transparent;
|
662 |
border: none;
|
663 |
outline: none;
|
664 |
-
box-shadow: none;
|
|
|
665 |
}
|
666 |
|
667 |
.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before {
|
@@ -758,6 +771,7 @@
|
|
758 |
}
|
759 |
|
760 |
.cmp-coming-soon-maintenance .theme-overlay .screenshot {
|
|
|
761 |
transition: background-image .2s ease-in-out
|
762 |
}
|
763 |
|
@@ -775,6 +789,7 @@
|
|
775 |
background-color: #000;
|
776 |
line-height: 40px;
|
777 |
opacity: .7;
|
|
|
778 |
transition: opacity .5s
|
779 |
}
|
780 |
|
@@ -830,6 +845,7 @@
|
|
830 |
font-weight: 600;
|
831 |
background: 0 0;
|
832 |
border: 2px solid #f1f1f1;
|
|
|
833 |
transition: all .2s ease-in-out;
|
834 |
border-radius: 15px
|
835 |
}
|
@@ -840,6 +856,7 @@
|
|
840 |
line-height: 30px;
|
841 |
font-size: 14px;
|
842 |
z-index: 2;
|
|
|
843 |
transition: all .2s ease-in-out
|
844 |
}
|
845 |
|
@@ -856,6 +873,7 @@
|
|
856 |
height: 24px;
|
857 |
top: 3px;
|
858 |
left: 5px;
|
|
|
859 |
transition: all .2s ease-in-out;
|
860 |
-webkit-transform: translateX(0);
|
861 |
transform: translateX(0);
|
37 |
border-radius: 4px;
|
38 |
line-height: 2.5em;
|
39 |
height: 2.5em;
|
40 |
+
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03);
|
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 |
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 |
|
253 |
|
254 |
.cmp-coming-soon-maintenance #delete-banner,
|
255 |
.cmp-coming-soon-maintenance #delete-favicon,
|
256 |
+
.cmp-coming-soon-maintenance #delete-seo_img,
|
257 |
.cmp-coming-soon-maintenance #delete-logo,
|
258 |
.cmp-coming-soon-maintenance #delete-video-thumb {
|
259 |
display: none
|
282 |
|
283 |
.cmp-coming-soon-maintenance #niteoCS-text-logo {
|
284 |
border: none;
|
285 |
+
-webkit-box-shadow: none;
|
286 |
+
box-shadow: none;
|
287 |
font-size: 3em
|
288 |
}
|
289 |
|
418 |
|
419 |
.cmp-coming-soon-maintenance .banner-wrapper,
|
420 |
.cmp-coming-soon-maintenance .favicon-wrapper,
|
421 |
+
.cmp-coming-soon-maintenance .logo-wrapper,
|
422 |
+
.cmp-coming-soon-maintenance .seo_img-wrapper {
|
423 |
margin: 1em 0
|
424 |
}
|
425 |
|
434 |
}
|
435 |
|
436 |
.cmp-coming-soon-maintenance .background-media img,
|
437 |
+
.cmp-coming-soon-maintenance .logo-wrapper img,
|
438 |
+
.cmp-coming-soon-maintenance .seo_img-wrapper img {
|
439 |
max-width: 100%;
|
440 |
width: 100%;
|
441 |
vertical-align: top;
|
465 |
grid-template-columns: 1fr 1fr 1fr;
|
466 |
-ms-grid-rows: 1fr auto;
|
467 |
grid-template-rows: 1fr auto;
|
468 |
+
grid-template-areas: "Big Big Big" "small-3 small-2 small-1";
|
469 |
grid-gap: 10px;
|
470 |
}
|
471 |
|
472 |
.cmp-coming-soon-maintenance .custom-gallery.gallery-3 {
|
473 |
-ms-grid-columns: 1fr 1fr!important;
|
474 |
grid-template-columns: 1fr 1fr!important;
|
475 |
+
grid-template-areas: "Big Big" "small-2 small-1"!important;
|
476 |
|
477 |
}
|
478 |
|
541 |
content: '';
|
542 |
display: block;
|
543 |
padding-top: 56.25%;
|
544 |
+
-webkit-transition: background-color .1s;
|
545 |
transition: background-color .1s;
|
546 |
border-top-left-radius: 5px;
|
547 |
border-top-right-radius: 5px;
|
568 |
|
569 |
.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected) {
|
570 |
opacity: 0;
|
571 |
+
-webkit-transition: opacity .1s, background-color .1s;
|
572 |
transition: opacity .1s, background-color .1s;
|
573 |
}
|
574 |
|
575 |
.cmp-coming-soon-maintenance .theme-wrapper:hover .hide {
|
576 |
opacity: 1;
|
577 |
+
-webkit-transition: opacity .1s, background-color .1s;
|
578 |
transition: opacity .1s, background-color .1s;
|
579 |
}
|
580 |
|
621 |
color: #fff!important;
|
622 |
-moz-appearance: none;
|
623 |
-webkit-appearance: none;
|
624 |
+
-webkit-transition: background-color .5s;
|
625 |
transition: background-color .5s;
|
626 |
border: none!important;
|
627 |
box-shadow: none;
|
635 |
background-color: #c0392b;
|
636 |
color: #fff;
|
637 |
border: none;
|
638 |
+
-webkit-transition: background-color .5s;
|
639 |
transition: background-color .5s
|
640 |
}
|
641 |
|
642 |
.cmp-coming-soon-maintenance .theme-wrapper a.button:visited,
|
643 |
.cmp-coming-soon-maintenance .theme-wrapper a.button:focus {
|
644 |
background: transparent;
|
645 |
+
-webkit-box-shadow: none;
|
646 |
+
box-shadow: none;
|
647 |
}
|
648 |
|
649 |
.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase {
|
663 |
.cmp-coming-soon-maintenance .theme-wrapper .button {
|
664 |
border: 2px solid #ffffff!important;
|
665 |
background: transparent;
|
666 |
+
min-width: 190px;
|
667 |
line-height: 2.5em;
|
668 |
height: 3em;
|
669 |
}
|
673 |
background: transparent;
|
674 |
border: none;
|
675 |
outline: none;
|
676 |
+
-webkit-box-shadow: none;
|
677 |
+
box-shadow: none;
|
678 |
}
|
679 |
|
680 |
.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before {
|
771 |
}
|
772 |
|
773 |
.cmp-coming-soon-maintenance .theme-overlay .screenshot {
|
774 |
+
-webkit-transition: background-image .2s ease-in-out;
|
775 |
transition: background-image .2s ease-in-out
|
776 |
}
|
777 |
|
789 |
background-color: #000;
|
790 |
line-height: 40px;
|
791 |
opacity: .7;
|
792 |
+
-webkit-transition: opacity .5s;
|
793 |
transition: opacity .5s
|
794 |
}
|
795 |
|
845 |
font-weight: 600;
|
846 |
background: 0 0;
|
847 |
border: 2px solid #f1f1f1;
|
848 |
+
-webkit-transition: all .2s ease-in-out;
|
849 |
transition: all .2s ease-in-out;
|
850 |
border-radius: 15px
|
851 |
}
|
856 |
line-height: 30px;
|
857 |
font-size: 14px;
|
858 |
z-index: 2;
|
859 |
+
-webkit-transition: all .2s ease-in-out;
|
860 |
transition: all .2s ease-in-out
|
861 |
}
|
862 |
|
873 |
height: 24px;
|
874 |
top: 3px;
|
875 |
left: 5px;
|
876 |
+
-webkit-transition: all .2s ease-in-out;
|
877 |
transition: all .2s ease-in-out;
|
878 |
-webkit-transform: translateX(0);
|
879 |
transform: translateX(0);
|
css/cmp-settings-style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:1em}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:12px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;transition:.3s ease-in-out}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance .table-wrapper.content,.cmp-coming-soon-maintenance .table-wrapper.install,.cmp-coming-soon-maintenance .table-wrapper.seo,.cmp-coming-soon-maintenance .table-wrapper.theme-setup{display:none}.cmp-coming-soon-maintenance .wp-upload-form.cmp{padding:4em;display:block}.cmp-coming-soon-maintenance .cmp-status{width:95%;padding:10px;cursor:pointer}.cmp-coming-soon-maintenance .cmp-status.active{background-color:#ddd}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{margin-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left;font-weight:600}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-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 #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%;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 .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;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 #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)}}
|
1 |
+
.cmp-coming-soon-maintenance{overflow-x:hidden}.no-margin{margin:0}.cmp-coming-soon-maintenance .cmp-settings-wrapper{position:relative;margin-top:1em}.cmp-coming-soon-maintenance .wrapper-disabled{opacity:.4}.cmp-coming-soon-maintenance .comingsoon-error,.cmp-coming-soon-maintenance .comingsoon-success{padding:1em;width:calc(100% - 4em);border-left:4px solid red;background-color:#fff}.cmp-coming-soon-maintenance .comingsoon-success{border-left:4px solid #00d221}.cmp-coming-soon-maintenance .padding-bottom{padding-bottom:10px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single,.cmp-coming-soon-maintenance input[type=text]{border:1px solid #d4d4d4;border-radius:4px;line-height:2.5em;height:2.5em;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.cmp-coming-soon-maintenance .select2-container .select2-selection--single{height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:35px}.cmp-coming-soon-maintenance .select2-container--default .select2-selection--single .select2-selection__arrow{top:4px}.cmp-coming-soon-maintenance .select2-container:not(.select2-container--open){width:100%!important}.cmp-coming-soon-maintenance input[type=range]{display:block;-webkit-appearance:none;background-color:#dedede;width:100%;height:12px;border-radius:5px;margin:10px auto 0;outline:0}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background-color:#0085ba;width:17px;height:17px;border-radius:50%;border:1px solid #d4d4d4;cursor:pointer;-o-transition:.3s ease-in-out;transition:.3s ease-in-out}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:hover{background-color:#006799;border:2px solid #0085ba}.cmp-coming-soon-maintenance input[type=range]::-webkit-slider-thumb:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.cmp-coming-soon-maintenance input[type=text],.cmp-coming-soon-maintenance textarea{width:100%}.cmp-coming-soon-maintenance .table-wrapper.content,.cmp-coming-soon-maintenance .table-wrapper.install,.cmp-coming-soon-maintenance .table-wrapper.seo,.cmp-coming-soon-maintenance .table-wrapper.theme-setup{display:none}.cmp-coming-soon-maintenance .wp-upload-form.cmp{padding:4em;display:block}.cmp-coming-soon-maintenance .cmp-status{width:95%;padding:10px;cursor:pointer}.cmp-coming-soon-maintenance .cmp-status.active{background-color:#ddd}.cmp-coming-soon-maintenance .redirect{margin-bottom:0}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .table-wrapper,.cmp-coming-soon-maintenance .translate-settings{background-color:#fff;border:1px solid #dedede;margin:0 0 1em;max-width:920px}.cmp-coming-soon-maintenance div.custom_css{padding-bottom:2em;padding-right:3em;background:#fff;border:1px solid #dedede}.cmp-coming-soon-maintenance .CodeMirror-wrap{border-right:1px solid #dedede}.cmp-coming-soon-maintenance .custom_css .cmp-submit{padding-left:1em;border-top:1px solid #dedede;padding-top:2em}.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation input,.cmp-coming-soon-maintenance .cmp-inputs-wrapper .translation textarea{width:100%}.cmp-coming-soon-maintenance #csoptions,.cmp-coming-soon-maintenance .cmp-inputs-wrapper{display:inline-block;max-width:920px;min-width:920px}.cmp-coming-soon-maintenance .table-wrapper.closed table,.cmp-coming-soon-maintenance .translate-settings tfoot{display:none}.cmp-coming-soon-maintenance .help-settings,.cmp-coming-soon-maintenance .subscribers-settings,.cmp-coming-soon-maintenance .translate-settings{max-width:calc(920px - 2em);min-width:calc(920px - 2em);padding:1em}.cmp-coming-soon-maintenance .custom_css h3,.cmp-coming-soon-maintenance .table-wrapper h3{position:relative;padding:.5em 0 .5em 1em;margin:0;border-bottom:1px solid #dedede;text-align:left}.cmp-coming-soon-maintenance .background-media td fieldset,.cmp-coming-soon-maintenance .cmp-logo-switch.graphic{margin-top:1em}.cmp-coming-soon-maintenance .table-wrapper h3:not(.no-icon):not(.notice-title):not(#heading-example)::after{font-family:fontAwesome;content:"\f147";position:absolute;right:10px;font-weight:400;opacity:.6;cursor:pointer;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.cmp-coming-soon-maintenance #niteoCS-text-logo,.cmp-coming-soon-maintenance .theme-title,.cmp-coming-soon-maintenance th label{font-weight:600}.cmp-coming-soon-maintenance .table-wrapper.closed h3:not(.no-icon):not(.notice-title)::after{content:"\f196"}.cmp-coming-soon-maintenance .table-wrapper h4{margin:0}.cmp-coming-soon-maintenance .table-wrapper table{padding:1em;height:auto;width:90%}.cmp-coming-soon-maintenance .table-wrapper .theme-selector{width:100%}.cmp-coming-soon-maintenance .table-wrapper select{margin-bottom:10px;width:100%}.cmp-coming-soon-maintenance .table-wrapper td{width:100%;max-width:600px;margin-bottom:1em;display:block}.cmp-coming-soon-maintenance #unsplash_img,.cmp-coming-soon-maintenance .table-wrapper td.theme-selector{max-width:100%}.cmp-coming-soon-maintenance .table-wrapper th{vertical-align:top;width:180px;text-align:left;font-weight:600}.cmp-coming-soon-maintenance #delete-banner,.cmp-coming-soon-maintenance #delete-favicon,.cmp-coming-soon-maintenance #delete-logo,.cmp-coming-soon-maintenance #delete-seo_img,.cmp-coming-soon-maintenance #delete-video-thumb{display:none}.cmp-coming-soon-maintenance .social-inputs li.social-labels{display:block}.cmp-coming-soon-maintenance .social-media{margin-top:0;margin-bottom:3em}.cmp-coming-soon-maintenance .social-inputs{position:relative}.cmp-coming-soon-maintenance .social-inputs .label{display:none;font-weight:600;position:absolute;top:-20px;left:-8px}.cmp-coming-soon-maintenance #niteoCS-text-logo{border:none;box-shadow:none;font-size:3em}.cmp-coming-soon-maintenance .social-description{margin-top:0}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(2){left:62px}.cmp-coming-soon-maintenance .social-inputs .label:nth-of-type(3){left:148px}.cmp-coming-soon-maintenance .social-media li{display:inline-block;padding-right:1.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,.cmp-coming-soon-maintenance .seo_img-wrapper{margin:1em 0}.cmp-coming-soon-maintenance .favicon-wrapper img,.cmp-coming-soon-maintenance .logo-wrapper img{background-color:#efefef;padding:1em}.cmp-coming-soon-maintenance .favicon-wrapper img{max-width:32px}.cmp-coming-soon-maintenance .background-media img,.cmp-coming-soon-maintenance .logo-wrapper img,.cmp-coming-soon-maintenance .seo_img-wrapper img{max-width:100%;width:100%;vertical-align:top}.cmp-coming-soon-maintenance .background-thumb-wrapper,.cmp-coming-soon-maintenance .video-thumb-wrapper{position:relative;margin:1em 0;overflow:hidden}.cmp-coming-soon-maintenance .thumbnail-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cmp-coming-soon-maintenance .custom-gallery:not(.gallery-1):not(.gallery-2){display:-ms-grid;display:grid;height:auto;-ms-grid-columns:1fr 1fr 1fr;grid-template-columns:1fr 1fr 1fr;-ms-grid-rows:1fr auto;grid-template-rows:1fr auto;grid-template-areas:"Big Big Big" "small-3 small-2 small-1";grid-gap:10px}.cmp-coming-soon-maintenance .custom-gallery.gallery-3{-ms-grid-columns:1fr 1fr!important;grid-template-columns:1fr 1fr!important;grid-template-areas:"Big Big" "small-2 small-1"!important}.cmp-coming-soon-maintenance .gallery-2 .big-thumb{margin-bottom:1em}.cmp-coming-soon-maintenance .big-thumb{grid-area:Big/Big;overflow:hidden;position:relative}.cmp-coming-soon-maintenance .logo-wrapper img{max-height:150px;width:auto}.cmp-coming-soon-maintenance #font-example-wrapper{padding:1em;border:1px solid #dedede;overflow:hidden}.cmp-coming-soon-maintenance #heading-example{border-bottom:none;line-height:1.5;padding:0}.cmp-coming-soon-maintenance .font-selector td:first-of-type{padding-bottom:2em}.cmp-coming-soon-maintenance .font-selector fieldset{padding:.5em 0}.cmp-coming-soon-maintenance .theme-wrapper{display:inline-block;margin:2em 1em 2em 0;width:calc(33.33% - 1.5em + 6px);text-align:center;border:1px solid #efefef;border-radius:6px;position:relative}.cmp-coming-soon-maintenance .theme-wrapper:nth-of-type(3n){margin-right:0}.cmp-coming-soon-maintenance .theme-wrapper.active{background-color:#ddd}.cmp-coming-soon-maintenance .thumbnail-holder{width:100%;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .thumbnail-holder::before{content:'';display:block;padding-top:56.25%;-o-transition:background-color .1s;transition:background-color .1s;border-top-left-radius:5px;border-top-right-radius:5px}.cmp-coming-soon-maintenance .theme-wrapper:hover .thumbnail-holder::before{background-color:rgba(0,0,0,.95)}.cmp-coming-soon-maintenance .toggle,.cmp-coming-soon-maintenance .toggle-wrapper{display:inline-block}.cmp-coming-soon-maintenance .theme-title{float:left;text-transform:uppercase}.cmp-coming-soon-maintenance .theme-version{float:right}.cmp-coming-soon-maintenance .theme-wrapper .hide:not(.selected){opacity:0;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-wrapper:hover .hide{opacity:1;-o-transition:opacity .1s,background-color .1s;transition:opacity .1s,background-color .1s}.cmp-coming-soon-maintenance .theme-inputs{position:absolute;bottom:-36px;right:0;left:0;padding:5px 10px 5px 5px;height:2em;background:#656565;line-height:2em;color:#fff}.cmp-coming-soon-maintenance .active .theme-inputs{background:#27ae60}.cmp-coming-soon-maintenance .theme-inputs .italic{font-style:italic}.cmp-coming-soon-maintenance .theme-wrapper .buttons-wrapper{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.cmp-coming-soon-maintenance .cmp-button,.cmp-coming-soon-maintenance .cmp-preview,.cmp-coming-soon-maintenance .theme-wrapper .button{height:28px;line-height:28px;padding:0 10px;min-width:80px;border-radius:3px;color:#fff!important;-moz-appearance:none;-webkit-appearance:none;-o-transition:background-color .5s;transition:background-color .5s;border:none!important;box-shadow:none;-webkit-box-shadow:none;text-shadow:none;text-transform:uppercase}.cmp-coming-soon-maintenance .cmp-button.submit,.cmp-coming-soon-maintenance .theme-actions .activate{background-color:#c0392b;color:#fff;border:none;-o-transition:background-color .5s;transition:background-color .5s}.cmp-coming-soon-maintenance .theme-wrapper a.button:focus,.cmp-coming-soon-maintenance .theme-wrapper a.button:visited{background:0 0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper a.button.theme-purchase{background-color:#ff3284}.cmp-coming-soon-maintenance .cmp-button.submit:focus,.cmp-coming-soon-maintenance .cmp-button.submit:hover,.cmp-coming-soon-maintenance .theme-actions .activate:focus,.cmp-coming-soon-maintenance .theme-actions .activate:hover{background-color:#e74c3c;color:#fff;border:none}.cmp-coming-soon-maintenance .theme-wrapper .button{border:2px solid #fff!important;background:0 0;min-width:190px;line-height:2.5em;height:3em}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]{position:relative;background:0 0;border:none;outline:0;box-shadow:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::before{content:none}.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select input[type=radio]::after{font-family:fontAwesome;content:"\f096";position:absolute;top:3px;left:0;opacity:1;color:#fff}.cmp-coming-soon-maintenance .theme-wrapper .selected.button.theme-select input[type=radio]::after{content:"\f046";color:#23282d}.cmp-coming-soon-maintenance .theme-wrapper.active .button.theme-select input[type=radio]::after{content:"\f046"}.cmp-coming-soon-maintenance .theme-wrapper .button:hover,.cmp-coming-soon-maintenance .theme-wrapper a.button:hover{background:#fff;color:#23282d!important}.cmp-coming-soon-maintenance .selected.button,.cmp-coming-soon-maintenance .theme-wrapper .button.theme-select:hover input[type=radio]::after{color:#23282d!important}.cmp-coming-soon-maintenance .theme-wrapper .theme-preview,.cmp-coming-soon-maintenance .theme-wrapper .theme-purchase,.cmp-coming-soon-maintenance .theme-wrapper .theme-select{margin-bottom:5px}.cmp-coming-soon-maintenance .theme-wrapper .theme-select.selected{background-color:#32b2ff}.cmp-coming-soon-maintenance .theme-wrapper .theme-details.button{line-height:0}.cmp-coming-soon-maintenance .cmp-preview{background-color:#2485bf!important}.cmp-coming-soon-maintenance .cmp-preview:active,.cmp-coming-soon-maintenance .cmp-preview:hover{background-color:#32b2ff!important}.cmp-coming-soon-maintenance .theme-info .theme-purchase{width:auto;min-width:40%;height:55px;font-size:2em;background-color:#2c3e50;border:none}.cmp-coming-soon-maintenance .theme-info .theme-purchase:focus,.cmp-coming-soon-maintenance .theme-info .theme-purchase:hover{background-color:#34495e}.cmp-coming-soon-maintenance .button i{margin-right:5px}.cmp-coming-soon-maintenance .theme-purchase a,.cmp-coming-soon-maintenance .theme-purchase a:hover,.cmp-coming-soon-maintenance .theme-purchase a:visited{color:#fff;text-decoration:none}.cmp-coming-soon-maintenance p.cmp-submit{margin:0;padding-top:0;font-weight:400;text-align:left}.cmp-coming-soon-maintenance .theme-overlay .screenshot{-o-transition:background-image .2s ease-in-out;transition:background-image .2s ease-in-out}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav{position:absolute;right:0;top:0;color:#fff;cursor:pointer}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div{width:40px;height:40px;background-color:#000;line-height:40px;opacity:.7;-o-transition:opacity .5s;transition:opacity .5s}.cmp-coming-soon-maintenance .fifty-layout input:checked+img,.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav div:hover{opacity:1}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .left{float:left}.cmp-coming-soon-maintenance .theme-overlay .screenshots-nav .right{float:right}.cmp-coming-soon-maintenance .theme-description ul{list-style:none;padding-left:2em}.cmp-coming-soon-maintenance .theme-description h4,.cmp-coming-soon-maintenance .theme-description li{font-size:13px}.cmp-coming-soon-maintenance .theme-description .supported i{color:green}.cmp-coming-soon-maintenance .theme-description .not-supported i{color:red}.cmp-coming-soon-maintenance .wp-list-table .column-id{width:5%}.cmp-coming-soon-maintenance .cmp-status{margin-bottom:1em}.cmp-coming-soon-maintenance .toggle{position:relative;width:200px;height:30px;font-weight:600;background:0 0;border:2px solid #f1f1f1;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;border-radius:15px}.cmp-coming-soon-maintenance .toggle:after,.cmp-coming-soon-maintenance .toggle:before{position:absolute;line-height:30px;font-size:14px;z-index:2;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.cmp-coming-soon-maintenance input[type=checkbox].toggle-checkbox{display:none}.cmp-coming-soon-maintenance .toggle_handler{display:inline-block;position:relative;z-index:1;background:#c0392b;width:90px;height:24px;top:3px;left:5px;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);border-radius:10px 0 0 10px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle .toggle_handler{width:90px;-webkit-transform:translateX(100px);-ms-transform:translateX(100px);transform:translateX(100px);background:#27ae60;border-radius:0 10px 10px 0}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle_handler{background:#e74c3c}.cmp-coming-soon-maintenance .toggle-wrapper:hover .toggle-checkbox:checked+.toggle .toggle_handler{background:#2ecc71}.cmp-coming-soon-maintenance .toggle:before{content:"Disabled";left:22px;color:#fff}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:before,.cmp-coming-soon-maintenance .toggle:after{color:#23282d}.cmp-coming-soon-maintenance .toggle:after{content:"Enabled";right:26px}.cmp-coming-soon-maintenance .toggle-checkbox:checked+.toggle:after{color:#fff}.cmp-coming-soon-maintenance .fifty-layout label{display:block;position:relative;padding-bottom:1em;margin-top:1em}.cmp-coming-soon-maintenance .fifty-layout input{visibility:hidden;position:absolute;margin:0}.cmp-coming-soon-maintenance .fifty-layout img{display:block;opacity:.3;outline:solid 1px;padding:2px;margin-left:5px;margin-top:5px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper{display:inline-block;width:calc(100% - 6em - 920px);max-width:350px;min-width:300px;margin-left:1em;padding-top:0;vertical-align:top;text-align:center}.content-settings .cmp-sidebar-wrapper{margin-top:58px}.cmp-coming-soon-maintenance .cmp-sidebar-wrapper .widget{padding:2em;border:1px solid #dedede;background:#fff}.cmp-coming-soon-maintenance .widget.donate img{max-width:50px}.cmp-coming-soon-maintenance .widget.donate img.niteo-logo{max-width:120px}.cmp-coming-soon-maintenance .cmp-rate-us .button,.cmp-coming-soon-maintenance .cmp-rate-us a{display:block;text-align:center}.cmp-coming-soon-maintenance .cmp-rate-us a{padding:1em 0}.cmp-coming-soon-maintenance .cmp-rate-us .button{max-width:150px;margin:0 auto 1em}.cmp-coming-soon-maintenance .cmp-rate-us form{text-align:center}.cmp-coming-soon-maintenance .subscribers .column-id{width:5%}.cmp-coming-soon-maintenance #niteoCS_subscribe_label{height:150px}.cmp-coming-soon-maintenance #subscribe-3rdparty fieldset,.cmp-coming-soon-maintenance .constellation{margin-top:1em}.cmp-coming-soon-maintenance .cmp-hint{font-size:.9em}@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)}}
|
inc/class-cmp-render_html.php
CHANGED
@@ -575,31 +575,29 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
575 |
// get GDPR message
|
576 |
$niteoCS_subscribe_label = stripslashes( get_option('niteoCS_subscribe_label') );
|
577 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
578 |
// override label if in Theme preview
|
579 |
if ( isset( $_GET['theme'] ) ) {
|
580 |
switch ( $_GET['theme'] ) {
|
581 |
-
case 'eclipse':
|
582 |
case 'element':
|
583 |
-
$
|
584 |
break;
|
585 |
default:
|
586 |
break;
|
587 |
}
|
588 |
|
589 |
}
|
590 |
-
|
591 |
-
// get translation if exists
|
592 |
-
$translation = json_decode( get_option('niteoCS_translation'), true );
|
593 |
-
$placeholder = isset($translation[4]['translation']) ? stripslashes( $translation[4]['translation'] ) : 'Insert your email address.';
|
594 |
-
$placeholder_firstname = isset($translation[10]['translation']) ? stripslashes( $translation[10]['translation'] ) : 'First Name';
|
595 |
-
$placeholder_lastname = isset($translation[11]['translation']) ? stripslashes( $translation[11]['translation'] ) : 'Last Name';
|
596 |
-
$submit = isset($translation[8]['translation']) ? stripslashes( $translation[8]['translation'] ) : 'Submit';
|
597 |
-
|
598 |
// overwrite it with theme specific requirements
|
599 |
if ( ( $this->cmp_selectedTheme() == 'stylo' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'stylo' ) ) {
|
600 |
$placeholder = ' ' . $placeholder;
|
601 |
-
$placeholder_firstname = ' ' . $
|
602 |
-
$placeholder_lastname = ' ' . $
|
603 |
}
|
604 |
|
605 |
$submit = ( ( $this->cmp_selectedTheme() == 'postery' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'postery' ) ) ? '' : $submit;
|
@@ -843,14 +841,15 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
843 |
|
844 |
} else {
|
845 |
$body = stripslashes( get_option('niteoCS_body', '') );
|
|
|
846 |
if ( isset($GLOBALS['wp_embed']) ) {
|
847 |
-
$body = $GLOBALS['wp_embed']->autoembed($body);
|
848 |
}
|
|
|
849 |
|
850 |
-
|
851 |
|
852 |
-
|
853 |
-
}
|
854 |
}
|
855 |
|
856 |
/**
|
@@ -991,7 +990,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
991 |
wp_site_icon();
|
992 |
}
|
993 |
|
994 |
-
if ( get_option( 'blog_public' ) == 0 ) { ?>
|
995 |
<meta name='robots' content='noindex,nofollow' />
|
996 |
<?php
|
997 |
}
|
@@ -1108,13 +1107,14 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1108 |
}
|
1109 |
|
1110 |
|
1111 |
-
// Render Javascripts
|
1112 |
public function cmp_javascripts( $background, $themeslug ) {
|
|
|
1113 |
if ( isset($_GET['background']) && is_numeric($_GET['background']) ) {
|
1114 |
$background = esc_attr($_GET['background']);
|
1115 |
} ?>
|
1116 |
|
1117 |
-
<!--
|
1118 |
<script>
|
1119 |
window.addEventListener("load",function(event) {
|
1120 |
init();
|
@@ -1159,7 +1159,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1159 |
<?php
|
1160 |
// include background scripts
|
1161 |
switch ( $background ) {
|
1162 |
-
// video
|
1163 |
case '5': ?>
|
1164 |
<script src='<?php echo plugins_url('cmp-coming-soon-maintenance/js/vidim.min.js');?>'></script>
|
1165 |
<script>
|
@@ -1230,10 +1230,10 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1230 |
</script>
|
1231 |
<?php
|
1232 |
break;
|
1233 |
-
|
|
|
1234 |
case '0':
|
1235 |
case '1':
|
1236 |
-
// include slider scripts
|
1237 |
if ( get_option('niteoCS_slider['.$themeslug.']', '0') == 1 ) {
|
1238 |
$slider_effect = get_option('niteoCS_slider_effect['.$themeslug.']', 'true');
|
1239 |
$slider_autoplay = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
|
@@ -1314,11 +1314,13 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1314 |
if ( $this->cmp_status() == 3 ) {
|
1315 |
$url = get_option('niteoCS_URL_redirect');
|
1316 |
$time = get_option('niteoCS_redirect_time'); ?>
|
|
|
1317 |
<script>
|
1318 |
setTimeout(function() {
|
1319 |
window.location.href = "<?php echo esc_url( $url );?>";
|
1320 |
}, <?php echo esc_attr( $time * 1000 );?>);
|
1321 |
</script>
|
|
|
1322 |
<?php
|
1323 |
}
|
1324 |
|
@@ -1349,7 +1351,7 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1349 |
<?php
|
1350 |
}
|
1351 |
|
1352 |
-
// special effects
|
1353 |
if ( in_array( $this->cmp_selectedTheme(), $this->cmp_premium_themes_installed() ) ) {
|
1354 |
|
1355 |
$effect = get_option('niteoCS_special_effect['.$themeslug.']', 'disabled');
|
@@ -1461,7 +1463,40 @@ class CMP_Coming_Soon_and_Maintenance_Render_HTML extends CMP_Coming_Soon_and_Ma
|
|
1461 |
default:
|
1462 |
break;
|
1463 |
}
|
1464 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1465 |
|
1466 |
return false;
|
1467 |
}
|
575 |
// get GDPR message
|
576 |
$niteoCS_subscribe_label = stripslashes( get_option('niteoCS_subscribe_label') );
|
577 |
|
578 |
+
// get translation if exists
|
579 |
+
$translation = json_decode( get_option('niteoCS_translation'), true );
|
580 |
+
$placeholder = isset($translation[4]['translation']) ? stripslashes( $translation[4]['translation'] ) : 'Insert your email address.';
|
581 |
+
$placeholder_firstname = isset($translation[10]['translation']) ? stripslashes( $translation[10]['translation'] ) : 'First Name';
|
582 |
+
$placeholder_lastname = isset($translation[11]['translation']) ? stripslashes( $translation[11]['translation'] ) : 'Last Name';
|
583 |
+
$submit = isset($translation[8]['translation']) ? stripslashes( $translation[8]['translation'] ) : 'Submit';
|
584 |
+
|
585 |
// override label if in Theme preview
|
586 |
if ( isset( $_GET['theme'] ) ) {
|
587 |
switch ( $_GET['theme'] ) {
|
|
|
588 |
case 'element':
|
589 |
+
$placeholder = 'SUBSCRIBE US';
|
590 |
break;
|
591 |
default:
|
592 |
break;
|
593 |
}
|
594 |
|
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_firstname;
|
600 |
+
$placeholder_lastname = ' ' . $placeholder_lastname;
|
601 |
}
|
602 |
|
603 |
$submit = ( ( $this->cmp_selectedTheme() == 'postery' && !isset( $_GET['theme'] ) ) || ( isset( $_GET['theme'] ) && $_GET['theme'] == 'postery' ) ) ? '' : $submit;
|
841 |
|
842 |
} else {
|
843 |
$body = stripslashes( get_option('niteoCS_body', '') );
|
844 |
+
|
845 |
if ( isset($GLOBALS['wp_embed']) ) {
|
846 |
+
$body = $GLOBALS['wp_embed']->autoembed( $body );
|
847 |
}
|
848 |
+
}
|
849 |
|
850 |
+
$body = wpautop( do_shortcode( $body ) );
|
851 |
|
852 |
+
return $body;
|
|
|
853 |
}
|
854 |
|
855 |
/**
|
990 |
wp_site_icon();
|
991 |
}
|
992 |
|
993 |
+
if ( get_option( 'blog_public', '1' ) == '0' ) { ?>
|
994 |
<meta name='robots' content='noindex,nofollow' />
|
995 |
<?php
|
996 |
}
|
1107 |
}
|
1108 |
|
1109 |
|
1110 |
+
// Render Footer Javascripts
|
1111 |
public function cmp_javascripts( $background, $themeslug ) {
|
1112 |
+
|
1113 |
if ( isset($_GET['background']) && is_numeric($_GET['background']) ) {
|
1114 |
$background = esc_attr($_GET['background']);
|
1115 |
} ?>
|
1116 |
|
1117 |
+
<!-- Fade in background image after load -->
|
1118 |
<script>
|
1119 |
window.addEventListener("load",function(event) {
|
1120 |
init();
|
1159 |
<?php
|
1160 |
// include background scripts
|
1161 |
switch ( $background ) {
|
1162 |
+
// VIDIM script for background video
|
1163 |
case '5': ?>
|
1164 |
<script src='<?php echo plugins_url('cmp-coming-soon-maintenance/js/vidim.min.js');?>'></script>
|
1165 |
<script>
|
1230 |
</script>
|
1231 |
<?php
|
1232 |
break;
|
1233 |
+
|
1234 |
+
// SLIDER SCRIPTS FOR UNSPLASH or Custom IMAGES
|
1235 |
case '0':
|
1236 |
case '1':
|
|
|
1237 |
if ( get_option('niteoCS_slider['.$themeslug.']', '0') == 1 ) {
|
1238 |
$slider_effect = get_option('niteoCS_slider_effect['.$themeslug.']', 'true');
|
1239 |
$slider_autoplay = get_option('niteoCS_slider_auto['.$themeslug.']', '1');
|
1314 |
if ( $this->cmp_status() == 3 ) {
|
1315 |
$url = get_option('niteoCS_URL_redirect');
|
1316 |
$time = get_option('niteoCS_redirect_time'); ?>
|
1317 |
+
|
1318 |
<script>
|
1319 |
setTimeout(function() {
|
1320 |
window.location.href = "<?php echo esc_url( $url );?>";
|
1321 |
}, <?php echo esc_attr( $time * 1000 );?>);
|
1322 |
</script>
|
1323 |
+
|
1324 |
<?php
|
1325 |
}
|
1326 |
|
1351 |
<?php
|
1352 |
}
|
1353 |
|
1354 |
+
// special effects scripts for premium themes
|
1355 |
if ( in_array( $this->cmp_selectedTheme(), $this->cmp_premium_themes_installed() ) ) {
|
1356 |
|
1357 |
$effect = get_option('niteoCS_special_effect['.$themeslug.']', 'disabled');
|
1463 |
default:
|
1464 |
break;
|
1465 |
}
|
1466 |
+
}
|
1467 |
+
|
1468 |
+
// check if content includes iframe, and if yes, include full-width video resize script
|
1469 |
+
$content = $this->cmp_get_body();
|
1470 |
+
if ( strpos( $content, 'iframe' ) !== false ) { ?>
|
1471 |
+
<!-- Script for full-width size of embedded UT and VIMEO Iframes -->
|
1472 |
+
<script>
|
1473 |
+
(function ( window, document, undefined ) {
|
1474 |
+
var iframes = document.getElementsByTagName( 'iframe' );
|
1475 |
+
for ( var i = 0; i < iframes.length; i++ ) {
|
1476 |
+
var iframe = iframes[i],
|
1477 |
+
players = /www.youtube.com|player.vimeo.com/;
|
1478 |
+
if ( iframe.src.search( players ) > 0 ) {
|
1479 |
+
var videoRatio = ( iframe.height / iframe.width ) * 100;
|
1480 |
+
iframe.style.position = 'absolute';
|
1481 |
+
iframe.style.top = '0';
|
1482 |
+
iframe.style.left = '0';
|
1483 |
+
iframe.width = '100%';
|
1484 |
+
iframe.height = '100%';
|
1485 |
+
var wrap = document.createElement( 'div' );
|
1486 |
+
wrap.className = 'fluid-vids';
|
1487 |
+
wrap.style.width = '100%';
|
1488 |
+
wrap.style.position = 'relative';
|
1489 |
+
wrap.style.paddingTop = videoRatio + '%';
|
1490 |
+
var iframeParent = iframe.parentNode;
|
1491 |
+
iframeParent.className = 'video-paragraph';
|
1492 |
+
iframeParent.insertBefore( wrap, iframe );
|
1493 |
+
wrap.appendChild( iframe );
|
1494 |
+
}
|
1495 |
+
}
|
1496 |
+
})( window, document );
|
1497 |
+
</script>
|
1498 |
+
<?php
|
1499 |
+
}
|
1500 |
|
1501 |
return false;
|
1502 |
}
|
inc/settings/settings-counter.php
CHANGED
@@ -1,24 +1,24 @@
|
|
1 |
<?php
|
2 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
3 |
|
4 |
-
if (isset($_POST['niteoCS_counter']) && is_numeric($_POST['niteoCS_counter'])) {
|
5 |
-
update_option('niteoCS_counter', sanitize_text_field($_POST['niteoCS_counter']));
|
6 |
}
|
7 |
|
8 |
if (isset($_POST['niteoCS_counter_date'])) {
|
9 |
-
update_option('niteoCS_counter_date', sanitize_text_field($_POST['niteoCS_counter_date']));
|
10 |
}
|
11 |
|
12 |
if (isset($_POST['niteoCS_countdown_action'])) {
|
13 |
-
update_option('niteoCS_countdown_action', sanitize_text_field($_POST['niteoCS_countdown_action']));
|
14 |
}
|
15 |
|
16 |
if (isset($_POST['niteoCS_countdown_redirect'])) {
|
17 |
-
update_option('niteoCS_countdown_redirect', esc_url_raw($_POST['niteoCS_countdown_redirect']));
|
18 |
}
|
19 |
|
20 |
if (isset($_POST['niteoCS_counter_heading'])) {
|
21 |
-
update_option('niteoCS_counter_heading', sanitize_text_field($_POST['niteoCS_counter_heading']));
|
22 |
}
|
23 |
|
24 |
// register and enqueue admin needed scripts
|
@@ -27,7 +27,7 @@ wp_enqueue_style( 'countdown_flatpicker_css');
|
|
27 |
|
28 |
// get counter settings
|
29 |
$niteoCS_counter = get_option('niteoCS_counter', '1');
|
30 |
-
$niteoCS_counter_date = get_option('niteoCS_counter_date', time()+86400);
|
31 |
$niteoCS_countdown_action = get_option('niteoCS_countdown_action', 'no-action');
|
32 |
$niteoCS_countdown_redirect = get_option('niteoCS_countdown_redirect');
|
33 |
$niteoCS_counter_heading = get_option('niteoCS_counter_heading', 'STAY TUNED, WE ARE LAUNCHING SOON...');
|
@@ -47,13 +47,13 @@ $niteoCS_counter_heading = get_option('niteoCS_counter_heading', 'STAY TUNED, W
|
|
47 |
|
48 |
<p>
|
49 |
<label title="Enabled">
|
50 |
-
<input type="radio" name="niteoCS_counter" class="counter" value="1"<?php if ( $niteoCS_counter == 1) { echo ' checked="checked"'; } ?>> <?php _e('Enabled', 'cmp-coming-soon-maintenance');?>
|
51 |
</label>
|
52 |
</p>
|
53 |
|
54 |
<p>
|
55 |
<label title="Disabled">
|
56 |
-
<input type="radio" name="niteoCS_counter" class="counter" value="0"<?php if ( $niteoCS_counter == 0) { echo ' checked="checked"'; } ?>> <?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
|
57 |
</label>
|
58 |
</p>
|
59 |
|
@@ -95,7 +95,7 @@ $niteoCS_counter_heading = get_option('niteoCS_counter_heading', 'STAY TUNED, W
|
|
95 |
</select>
|
96 |
|
97 |
<label for="niteoCS_countdown_redirect" class="counter-action redirect" style="padding-top:1em"><?php _e('Enter redirect URL', 'cmp-coming-soon-maintenance');?>
|
98 |
-
<input type="text" id="niteoCS_countdown_redirect" name="niteoCS_countdown_redirect" value="<?php echo esc_url( $niteoCS_countdown_redirect); ?>" class="regular-text code"><br>
|
99 |
</label>
|
100 |
|
101 |
</fieldset>
|
@@ -112,7 +112,7 @@ $niteoCS_counter_heading = get_option('niteoCS_counter_heading', 'STAY TUNED, W
|
|
112 |
jQuery(document).ready(function($){
|
113 |
<?php
|
114 |
if ( $niteoCS_counter_date != '') { ?>
|
115 |
-
var date = new Date(<?php echo esc_attr($niteoCS_counter_date);?>*1000);
|
116 |
<?php
|
117 |
} else { ?>
|
118 |
var date = false;
|
1 |
<?php
|
2 |
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
3 |
|
4 |
+
if (isset($_POST['niteoCS_counter']) && is_numeric( $_POST['niteoCS_counter'] )) {
|
5 |
+
update_option('niteoCS_counter', sanitize_text_field( $_POST['niteoCS_counter'] ));
|
6 |
}
|
7 |
|
8 |
if (isset($_POST['niteoCS_counter_date'])) {
|
9 |
+
update_option('niteoCS_counter_date', sanitize_text_field( $_POST['niteoCS_counter_date'] ));
|
10 |
}
|
11 |
|
12 |
if (isset($_POST['niteoCS_countdown_action'])) {
|
13 |
+
update_option('niteoCS_countdown_action', sanitize_text_field( $_POST['niteoCS_countdown_action'] ));
|
14 |
}
|
15 |
|
16 |
if (isset($_POST['niteoCS_countdown_redirect'])) {
|
17 |
+
update_option('niteoCS_countdown_redirect', esc_url_raw( $_POST['niteoCS_countdown_redirect'] ));
|
18 |
}
|
19 |
|
20 |
if (isset($_POST['niteoCS_counter_heading'])) {
|
21 |
+
update_option('niteoCS_counter_heading', sanitize_text_field( $_POST['niteoCS_counter_heading'] ));
|
22 |
}
|
23 |
|
24 |
// register and enqueue admin needed scripts
|
27 |
|
28 |
// get counter settings
|
29 |
$niteoCS_counter = get_option('niteoCS_counter', '1');
|
30 |
+
$niteoCS_counter_date = get_option('niteoCS_counter_date', time() + 86400);
|
31 |
$niteoCS_countdown_action = get_option('niteoCS_countdown_action', 'no-action');
|
32 |
$niteoCS_countdown_redirect = get_option('niteoCS_countdown_redirect');
|
33 |
$niteoCS_counter_heading = get_option('niteoCS_counter_heading', 'STAY TUNED, WE ARE LAUNCHING SOON...');
|
47 |
|
48 |
<p>
|
49 |
<label title="Enabled">
|
50 |
+
<input type="radio" name="niteoCS_counter" class="counter" value="1"<?php if ( $niteoCS_counter == 1 ) { echo ' checked="checked"'; } ?>> <?php _e('Enabled', 'cmp-coming-soon-maintenance');?>
|
51 |
</label>
|
52 |
</p>
|
53 |
|
54 |
<p>
|
55 |
<label title="Disabled">
|
56 |
+
<input type="radio" name="niteoCS_counter" class="counter" value="0"<?php if ( $niteoCS_counter == 0 ) { echo ' checked="checked"'; } ?>> <?php _e('Disabled', 'cmp-coming-soon-maintenance');?>
|
57 |
</label>
|
58 |
</p>
|
59 |
|
95 |
</select>
|
96 |
|
97 |
<label for="niteoCS_countdown_redirect" class="counter-action redirect" style="padding-top:1em"><?php _e('Enter redirect URL', 'cmp-coming-soon-maintenance');?>
|
98 |
+
<input type="text" id="niteoCS_countdown_redirect" name="niteoCS_countdown_redirect" value="<?php echo esc_url( $niteoCS_countdown_redirect ); ?>" class="regular-text code"><br>
|
99 |
</label>
|
100 |
|
101 |
</fieldset>
|
112 |
jQuery(document).ready(function($){
|
113 |
<?php
|
114 |
if ( $niteoCS_counter_date != '') { ?>
|
115 |
+
var date = new Date(<?php echo esc_attr( $niteoCS_counter_date );?>*1000);
|
116 |
<?php
|
117 |
} else { ?>
|
118 |
var date = false;
|
js/select2.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
/*! Select2 4.0.4 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return v.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o=b&&b.split("/"),p=t.map,q=p&&p["*"]||{};if(a){for(a=a.split("/"),g=a.length-1,t.nodeIdCompat&&x.test(a[g])&&(a[g]=a[g].replace(x,"")),"."===a[0].charAt(0)&&o&&(n=o.slice(0,o.length-1),a=n.concat(a)),k=0;k<a.length;k++)if("."===(m=a[k]))a.splice(k,1),k-=1;else if(".."===m){if(0===k||1===k&&".."===a[2]||".."===a[k-1])continue;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}if((o||q)&&p){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),o)for(l=o.length;l>0;l-=1)if((e=p[o.slice(0,l).join("/")])&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&q&&q[d]&&(i=q[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=w.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),o.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){r[a]=b}}function j(a){if(e(s,a)){var c=s[a];delete s[a],u[a]=!0,n.apply(b,c)}if(!e(r,a)&&!e(u,a))throw new Error("No "+a);return r[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return a?k(a):[]}function m(a){return function(){return t&&t.config&&t.config[a]||{}}}var n,o,p,q,r={},s={},t={},u={},v=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;p=function(a,b){var c,d=k(a),e=d[0],g=b[1];return a=d[1],e&&(e=f(e,g),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(g)):f(a,g):(a=f(a,g),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},q={require:function(a){return g(a)},exports:function(a){var b=r[a];return void 0!==b?b:r[a]={}},module:function(a){return{id:a,uri:"",exports:r[a],config:m(a)}}},n=function(a,c,d,f){var h,k,m,n,o,t,v,w=[],x=typeof d;if(f=f||a,t=l(f),"undefined"===x||"function"===x){for(c=!c.length&&d.length?["require","exports","module"]:c,o=0;o<c.length;o+=1)if(n=p(c[o],t),"require"===(k=n.f))w[o]=q.require(a);else if("exports"===k)w[o]=q.exports(a),v=!0;else if("module"===k)h=w[o]=q.module(a);else if(e(r,k)||e(s,k)||e(u,k))w[o]=j(k);else{if(!n.p)throw new Error(a+" missing "+k);n.p.load(n.n,g(f,!0),i(k),{}),w[o]=r[k]}m=d?d.apply(r[a],w):void 0,a&&(h&&h.exports!==b&&h.exports!==r[a]?r[a]=h.exports:m===b&&v||(r[a]=m))}else a&&(r[a]=d)},a=c=o=function(a,c,d,e,f){if("string"==typeof a)return q[a]?q[a](c):j(p(a,l(c)).f);if(!a.splice){if(t=a,t.deps&&o(t.deps,t.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?n(b,a,c,d):setTimeout(function(){n(b,a,c,d)},4),o},o.config=function(a){return o(a)},a._defined=r,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(r,a)||e(s,a)||(s[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){"function"==typeof b[d]&&("constructor"!==d&&c.push(d))}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){return Array.prototype.unshift.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice,c=b.call(arguments,1);this.listeners=this.listeners||{},null==c&&(c=[]),0===c.length&&c.push({}),c[0]._type=a,a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;c<d;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;c<a;c++){b+=Math.floor(36*Math.random()).toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return(e!==f||"hidden"!==f&&"visible"!==f)&&("scroll"===e||"scroll"===f||(d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth))},c.escapeMarkup=function(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){b.find(".select2-results").append(a)},c.prototype.sort=function(a){return this.options.get("sorter")(a)},c.prototype.highlightFirstItem=function(){var a=this.$results.find(".select2-results__option[aria-selected]"),b=a.filter("[aria-selected=true]");b.length>0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()});b.$results.find(".select2-results__option[aria-selected]").each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";a(h);this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):h-g<0&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var c=a(this),e=c.data("data");if("true"===c.attr("aria-selected"))return void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{}));d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),c<=2?this.$results.scrollTop(0):(g>this.$results.outerHeight()||g<0)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id,a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2");a(".select2.select2-container--open").each(function(){var b=a(this);this!=d[0]&&b.data("element").select2("close")})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){b.find(".selection").append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},e.prototype.selectionContainer=function(){return a("<span></span>")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},d.prototype.selectionContainer=function(){return a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.selectionContainer(),g=this.display(e,f);f.append(g),f.prop("title",e.title||e.text),f.data("data",e),b.push(f)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(a){function b(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return b.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},b.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},b.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id;if(b.length>1||c)return a.call(this,b);this.clear();var d=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(d)},b}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||c.which!=b.DELETE&&c.which!=b.BACKSPACE||this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">×</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){if(a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented(),a.which===c.BACKSPACE&&""===e.$search.val()){var b=e.$searchContainer.prev(".select2-selection__choice");if(b.length>0){var d=b.data("data");e.searchRemoveChoice(d),a.preventDefault()}}});var f=document.documentMode,g=f&&f<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){if(g)return void e.$selection.off("input.search input.searchcheck");e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(g&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{a=.75*(this.$search.val().length+1)+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),null!=c.id?d+="-"+c.id.toString():d+="-"+a.generateChars(4),d},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple")){if(a.selected=!1,c(a.element).is("option"))return a.element.selected=!1,void this.$element.trigger("change");this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})}},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this;this.$element.children().each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),void 0!==a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(null!=(b=c.data(a[0],"data")))return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){return this.options.get("matcher")(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0);if((i.text||"").toUpperCase()===(b.term||"").toUpperCase()||j)return!f&&(a.data=g,void c(a))}if(f)return!0;var k=e.createTag(b);if(null!=k){var l=e.option(k);l.attr("data-select2-tag",!0),e.addOptions([l]),e.insertTag(g,k)}a.results=g,c(a)}var e=this;if(this._removeOldTags(),null==b.term||null!=b.page)return void a.call(this,b,c);a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(b){this._lastTag;this.$element.find("option[data-select2-tag]").each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(b,c,d){function e(b){var c=g._normalizeItem(b);if(!g.$element.find("option").filter(function(){return a(this).val()===c.id}).length){var d=g.option(c);d.attr("data-select2-tag",!0),g._removeOldTags(),g.addOptions([d])}f(c)}function f(a){g.trigger("select",{data:a})}var g=this;c.term=c.term||"";var h=this.tokenizer(c,this.options,e);h.term!==c.term&&(this.$search.length&&(this.$search.val(h.term),this.$search.focus()),c.term=h.term),b.call(this,c,d)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);null!=m?(e(m),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){if(b.term=b.term||"",b.term.length<this.minimumInputLength)return void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){if(b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength)return void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;if(d.maximumSelectionLength>0&&f>=d.maximumSelectionLength)return void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}});a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("focus",function(){c.isOpen()||e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){e.showSearch(a)?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){e.$results.offset().top+e.$results.outerHeight(!1)+50>=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1)&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id;this.$container.parents().filter(b.hasScroll).off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return!(a(c.data.results)<this.minimumResultsForSearch)&&b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},a.prototype._handleSelectOnClose=function(a,b){if(b&&null!=b.originalSelect2Event){var c=b.originalSelect2Event;if("select"===c._type||"unselect"===c._type)return}var d=this.getHighlightedResults();if(!(d.length<1)){var e=d.data("data");null!=e.element&&e.element.selected||null==e.element&&e.selected||this.trigger("select",{data:e})}},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close",{originalEvent:c,originalSelect2Event:b})},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){return"Please enter "+(a.minimum-a.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}return D.prototype.apply=function(l){if(l=a.extend(!0,{},this.defaults,l),null==l.dataAdapter){if(null!=l.ajax?l.dataAdapter=o:null!=l.data?l.dataAdapter=n:l.dataAdapter=m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),null==l.tokenSeparators&&null==l.tokenizer||(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(a){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(a){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var O=k.loadPath(this.defaults.amdLanguageBase+"en"),P=new k(l.language);P.extend(O),l.translations=P}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){null==c(d,e.children[g])&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var h=b(e.text).toUpperCase(),i=b(d.term).toUpperCase();return h.indexOf(i)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)},new D}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return e<=0?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;h<i;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e<b.addedNodes.length;e++){var f=b.addedNodes[e];f.selected&&(c=!0)}else b.removedNodes&&b.removedNodes.length>0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=a&&0!==a.length||(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("jquery-mousewheel",["jquery"],function(a){return a}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(a,b,c,d){if(null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if("object"==typeof(b=b||{}))return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=a(this).data("select2");null==c&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=c[b].apply(c,f)}),a.inArray(b,e)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c});
|
1 |
+
jQuery(document).ready(function(e){var n=document.location.hash.substring(1),a=jQuery("#csoptions").attr("action"),t=e("#csoptions fieldset:not(.skip-preview-validation *)").serialize();navtab=function(e){jQuery(".cmp-coming-soon-maintenance .nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+e).addClass("nav-tab-active"),jQuery(".cmp-coming-soon-maintenance .table-wrapper."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .comingsoon."+e).css("display","block"),jQuery(".cmp-coming-soon-maintenance .table-wrapper:not(."+e+")").css("display","none"),jQuery(".cmp-coming-soon-maintenance .table-wrapper-css:not(."+e).css("display","none"),jQuery(".cmp-coming-soon-maintenance .comingsoon:not(."+e+")").css("display","none"),"install"==e?(jQuery(".cmp-coming-soon-maintenance .submit").css("display","none"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a)):(jQuery(".cmp-coming-soon-maintenance .submit").css("display","block"),jQuery(".cmp-coming-soon-maintenance #csoptions").attr("action",a+"#"+e))},""!=n?navtab(n):jQuery(".cmp-coming-soon-maintenance .table-wrapper-css").css("display","none"),window.onhashchange=function(){n=document.location.hash.substring(1),navtab(n)},e(".cmp-coming-soon-maintenance .nav-tab:not(.theme-preview)").click(function(a){a.preventDefault(),n=e(this).data("tab"),document.location.hash=n}),d(".cmp-coming-soon-maintenance .blur-range"),d(".cmp-coming-soon-maintenance .background-overlay-opacity"),u("logo",!1,"image","img"),u("favicon",!1,"image","img"),u("seo_img",!1,"image","img"),u("images",!0,"image","img"),u("pattern",!1,"image","background"),u("video-thumb",!1,"image","img"),u("video-local",!1,"video","video"),m("analytics"),m("contact-form"),m("subscribe"),m("background-effect"),m("special-effect"),m("cmp-logo"),m("background-type"),m("counter"),p("counter-action"),p("subscribe-method"),p("background-overlay"),p("banner-video-source"),jQuery(".cmp-coming-soon-maintenance select:not(.headings-google-font):not(.content-google-font )").select2({width:"100%",minimumResultsForSearch:-1}),jQuery(".cmp-coming-soon-maintenance #cmp-status").click(function(){jQuery(".cmp-coming-soon-maintenance .cmp-status input[type=radio]").prop("disabled",function(e,n){return!n}),jQuery("#cmp-toggle-adminbar").toggleClass("status-1")}),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch:not(.disabled)").click(function(){if(0!=jQuery(".cmp-coming-soon-maintenance #cmp-status").prop("checked")){var e=jQuery(this).children("input");e.prop("checked",!0),jQuery(".cmp-coming-soon-maintenance .cmp-status.switch").removeClass("active"),jQuery(this).addClass("active"),e.trigger("change"),"3"==e.val()?jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeIn("fast"):jQuery(".cmp-coming-soon-maintenance .redirect-inputs").fadeOut("fast")}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper h3").click(function(){jQuery(this).parent().toggleClass("closed")}),jQuery(".cmp-coming-soon-maintenance #test-unsplash").click(function(n){n.preventDefault();var a=jQuery(".cmp-coming-soon-maintenance #unsplash-media"),t=jQuery('.cmp-coming-soon-maintenance .unsplash_banner select[name^="unsplash_feed"] option:selected').val(),i="",o=jQuery(this).data("security");if(0==t){switch(t){case"0":i=jQuery(".cmp-coming-soon-maintenance #niteoCS-unsplash-0").val()}if(3==t||""!=i){var r={feed:t,url:i,feat:"",custom_str:""};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> loading..</span>');var c={action:"niteo_unsplash",security:o,params:r};e.post(ajaxurl,c,function(e){var n=JSON.parse(e);jQuery("#unsplash_img").remove();var t=setTimeout(function(){jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery("#unsplash-media").html('<p>It seems <a href="https://status.unsplash.com/" target="_blank">Unsplash API</a> is not responding. Please try again later.</p>')},5e3);if("200"==n.response){if((n=jQuery.parseJSON(n.body))[0])var i=n[0].urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n[0].user.name,r=n[0].user.links.html,c=n[0].links.html,s=n[0].id;else i=n.urls.raw+"?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&w=588",o=n.user.name,r=n.user.links.html,c=n.links.html,s=n.id;jQuery("<img />",{src:i,id:"unsplash_img"}).one("load",function(){jQuery(this).appendTo(a),jQuery(this).fadeIn(),jQuery("#test-unsplash").prop("disabled",!1),jQuery("#test-unsplash").text("Display Unsplash Photo"),jQuery(".unsplash-id").html('<a href="'+c+'" target="_blank">Photo</a> (ID: '+s+') by <a href="'+r+'" target="_blank">'+o+'</a> / <a href="https://unsplash.com/" target="_blank">Unsplash</a>'),jQuery(".blur-range").trigger("input"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #test-unsplash").prop("disabled",!1),jQuery(".cmp-coming-soon-maintenance #test-unsplash").text("Display Unsplash Photo"),jQuery(".cmp-coming-soon-maintenance #unsplash-media").html("<p>Error "+n.response+': <span style="text-transform:lowercase;">'+n.body+"</span></p>"),clearTimeout(t)})}else jQuery(".cmp-coming-soon-maintenance #unsplash_img").remove()}}),videoPreview=function(){if("5"==jQuery(".cmp-coming-soon-maintenance .background-type:checked").val()){var n=e(".cmp-coming-soon-maintenance .banner-video-source").val();if("youtube"==n){var a=e(".cmp-coming-soon-maintenance #niteoCS-youtube-url").val();if(""!=a){var t=a.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);if(t&&11==t[7].length){jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("");var i="https://img.youtube.com/vi/"+t[7]+"/maxresdefault.jpg";jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").append('<img src="'+i+'" alt=""/>'),jQuery(".cmp-coming-soon-maintenance .blur-range").trigger("input")}else jQuery(".cmp-coming-soon-maintenance .video-yt-wrapper .video-yt-thumb-wrapper").html("")}}if("local"==n){var o=jQuery("#niteoCS-video-local-id").data("url");""!=o&&e(".cmp-coming-soon-maintenance .video-local-wrapper").html('<video width="600" height="400" controls><source src="'+o+'" type="video/mp4">Your browser does not support the video tag.</video>')}}},videoPreview(),jQuery(".cmp-coming-soon-maintenance .background-type").on("change",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance #niteoCS-youtube-url").on("keyup",function(){videoPreview()}),jQuery(".cmp-coming-soon-maintenance .banner-video-source").on("change",function(){videoPreview()});var i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val();function o(e){switch(e){case"solid-color":jQuery(".thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val());break;case"gradient":jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").trigger("change");break;case"disabled":jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background","none")}}jQuery(".unsplash-feed-"+i).css("display","block"),jQuery('.unsplash_banner select[name^="unsplash_feed"]').on("change",function(){i=jQuery('.unsplash_banner select[name^="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery(".unsplash-feed-"+i).css("display","block"),jQuery("#test-unsplash").trigger("click")}),1==jQuery("#csoptions .niteoCS_banner:checked").val()&&jQuery("#test-unsplash").trigger("click"),jQuery(".cmp-coming-soon-maintenance select.background-gradient").on("change",function(){var e=jQuery(".cmp-coming-soon-maintenance select.background-gradient option:selected").val();"custom"==e?(jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","block"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})):(colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"}))}).trigger("change"),jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_color").wpColorPicker({change:function(e,n){jQuery(".color-preview").css("background-color",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_one").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_gradient_two").val()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_gradient_two").wpColorPicker({change:function(e,n){jQuery(".gradient-preview").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".cmp-coming-soon-maintenance #niteoCS_overlay_color").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css("background",n.color.toString())}}),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css("background",jQuery("#niteoCS_overlay_color").val()),jQuery(".cmp-coming-soon-maintenance select.overlay-gradient").on("change",function(){var e=jQuery("select.overlay-gradient option:selected").val();if("custom"==e){jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","block");var n=jQuery("#niteoCS_overlay_gradient_one").val(),a=jQuery("#niteoCS_overlay_gradient_two").val();jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n+" 0%, "+a+" 100%)",background:"linear-gradient(135deg, "+n+" 0%, "+a+" 100%)"})}else colors=e.split(":"),jQuery(".cmp-coming-soon-maintenance .custom-overlay-gradient").css("display","none"),jQuery(".cmp-coming-soon-maintenance .thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"-webkit-linear-gradient(-45deg, "+colors[0]+" 0%, "+colors[1]+" 100%)",background:"linear-gradient(135deg, "+colors[0]+" 0%, "+colors[1]+" 100%)"})}),jQuery("#niteoCS_overlay_gradient_one").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)",background:"linear-gradient(135deg, "+n.color.toString()+" 0%, "+jQuery("#niteoCS_overlay_gradient_two").val()+" 100%)"})}}),jQuery("#niteoCS_overlay_gradient_two").wpColorPicker({change:function(e,n){jQuery(".thumbnail-overlay").css({background:"-moz-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"-webkit-linear-gradient(-45deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)",background:"linear-gradient(135deg, "+jQuery("#niteoCS_overlay_gradient_one").val()+" 0%, "+n.color.toString()+" 100%)"})}}),jQuery(".background-overlay-opacity").on("input",function(){var e=jQuery(this).val();jQuery(".thumbnail-overlay").css("opacity",e)}).trigger("input"),o(jQuery(".cmp-coming-soon-maintenance .background-overlay").val()),jQuery(".cmp-coming-soon-maintenance .background-overlay").on("change",function(){o(jQuery(this).val())}),jQuery(".cmp-coming-soon-maintenance .blur-range").on("input",function(){var e=jQuery(this).val();jQuery(".cmp-coming-soon-maintenance .background-thumb-wrapper img:not(.no-blur)").css("filter","blur("+e+"px)")}).trigger("input"),jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"]').on("change",function(){var e=jQuery('.cmp-coming-soon-maintenance select[name^="niteoCS_banner_pattern"] option:selected').val();if("custom"!=e){var n=jQuery(this).data("url");jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","none"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+e+".png')")}else{n=jQuery(".cmp-coming-soon-maintenance #niteoCS_banner_pattern_custom").val();jQuery(".cmp-coming-soon-maintenance #add-pattern").css("display","block"),jQuery(".cmp-coming-soon-maintenance .pattern-wrapper").css("background-image","url('"+n+"')")}}),jQuery(".cmp-coming-soon-maintenance .heading-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .heading-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #heading-example").removeClass().addClass("animated "+heading_anim)}),jQuery(".cmp-coming-soon-maintenance .content-animation").on("change",function(){heading_anim=jQuery(".cmp-coming-soon-maintenance .content-animation option:selected").val(),jQuery(".cmp-coming-soon-maintenance #content-example").removeClass().addClass("animated "+heading_anim)});var r,c=function(n,a,t){var i=e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value");i=e.parseJSON(i),e.each(i,function(e,i){i.name==n&&(i[a]=t)}),e(".cmp-coming-soon-maintenance #niteoCS_socialmedia").attr("value",JSON.stringify(i))};if(!/Mobi/.test(navigator.userAgent)){var s=e(".cmp-coming-soon-maintenance .social-inputs"),l=function(n,a){var t=s.find('input[type="text"]');a.item.index();t.each(function(n,a){var t=e(a).data("name");c(t,"order",n)})};s.sortable({stop:l}),s.on("sortchange",l)}function u(e,n,a,t){var i,o=jQuery("."+e+"-wrapper"),r=jQuery("#add-"+e),c=jQuery("#delete-"+e),s="",l=e.replace("-"," ");l=l[0].toUpperCase()+l.slice(1),""!=jQuery("#niteoCS-"+e+"-id").val()&&c.css("display","block"),r.click(function(r){if(r.preventDefault(),u)u.open();else var u=wp.media({title:"Select "+l,button:{text:"Insert "+l},multiple:n,library:{type:[a]}}).on("select",function(){var n=u.state().get("selection").toJSON();n.length>0&&(o.find("img").remove(),o.attr("class",e+"-wrapper custom-gallery"),o.addClass("gallery-"+n.length),jQuery(n).each(function(e){switch(i=n[e].sizes&&n[e].sizes.large?n[e].sizes.large.url:n[e].url,s+=(0===e?"":",")+n[e].id,t){case"video":o.append('<video width="600" height="400" controls><source src="'+i+'" type="video/mp4">Your browser does not support the video tag.</video>');break;case"background":o.css("background-image","url('"+i+"')");break;case"img":default:n.length>1&&0==e?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):n.length>1&&0!==e?o.append('<img src="'+i+'" alt="" class="no-blur"/>'):o.find(".big-thumb").length?jQuery(".big-thumb").append('<img src="'+i+'" alt=""/>'):o.append('<img src="'+i+'" alt=""/>'),jQuery(".blur-range").trigger("input")}}),c.css("display","block")),jQuery("#niteoCS-"+e+"-id").val(s).trigger("change")}).open()}),c.click(function(n){jQuery(this).css("display","none"),o.find("img").remove(),jQuery("#niteoCS-"+e+"-id").val(""),jQuery("#niteoCS-"+e+"-id").trigger("change")})}function m(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery(".cmp-coming-soon-maintenance ."+e+":checked").val();n=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 p(e){jQuery(".cmp-coming-soon-maintenance ."+e).change(function(){var n=jQuery("."+e).val();n=jQuery.isNumeric(n)?"x"+n:n,jQuery(".cmp-coming-soon-maintenance ."+e+"."+n).css("display","block"),jQuery(".cmp-coming-soon-maintenance ."+e+":not(."+n+")").css("display","none")}),jQuery("."+e).first().trigger("change")}function d(e){jQuery(e).on("input",function(){var e=jQuery(this).val();jQuery(this).parent().find("span").html(e)})}(r=jQuery).fn.toggleDisabled=function(){return this.each(function(){var e,n=r(this),a=n.data("name");n.attr("disabled")?(n.prop("disabled",!1),e="1"):(n.prop("disabled",!0),e="0"),c(a,"active",e)})},jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="text"]').focusout(function(){var e=jQuery(this).data("name"),n=jQuery(this).attr("value");c(e,"url",n)}),jQuery('.cmp-coming-soon-maintenance .social-inputs input[type="checkbox"]').click(function(n){e(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".cmp-coming-soon-maintenance .social-media i").click(function(){var e=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e).toggleClass("active"),jQuery(".cmp-coming-soon-maintenance .social-inputs li."+e+" input").trigger("change"),jQuery(this).hasClass("active")?c(e,"hidden","0"):c(e,"hidden","1"),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length?jQuery(".social-inputs .label").css("display","block"):jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","none")}),jQuery(".cmp-coming-soon-maintenance .social-media i.active").length&&jQuery(".cmp-coming-soon-maintenance .social-inputs .label").css("display","block"),jQuery(".cmp.update-theme").click(function(n){n.preventDefault();var a=e(this),t=a.parents(".notice"),i=a.data("security"),o=a.data("slug"),r=a.data("name"),c={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:jQuery(this).data("remote_url")+"?action=download&slug="+o}};t.find(".message").html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span class="sr-only">Updating heme...</span><span> working hard on updating Theme...</span>'),e.post(ajaxurl,c,function(n){if("success"==(n=n.trim()))setTimeout(function(){t.removeClass("notice-warning").addClass("notice-success"),t.find(".message").html("<span> "+r+' CMP theme was updated sucessfully! You can enjoy latest features now :) </span><i class="fa fa-smile-o" aria-hidden="true"></i>')},1500);else{n=n.slice(0,-1);var a=e("p",e(n)).text();t.removeClass("notice-warning").addClass("notice-error"),t.find(".message").html('<i class="fa fa-frown-o" aria-hidden="true"></i><span> '+a+"</span>")}})}),jQuery(".cmp-coming-soon-maintenance .theme-select").click(function(){jQuery(this).parent().find('input[name="niteoCS_select_theme"]').prop("checked",!0).trigger("change"),jQuery(".cmp-coming-soon-maintenance .theme-select").removeClass("selected"),jQuery(this).parent().find(".theme-select").addClass("selected")}),jQuery(".cmp-coming-soon-maintenance .theme-update.button").one("click",function(n){n.preventDefault();var a=e(this),t=a.closest(".theme-wrapper"),i=t.data("security"),o=t.data("slug"),r={action:"cmp_theme_update_install",security:i,file:{name:o,tmp_name:"",url:t.data("remote_url")+"?action=download&slug="+o}};a.html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span>Updating..</span>'),e.post(ajaxurl,r,function(e){"success"==e?setTimeout(function(){a.html('<i class="fa fa-smile-o" aria-hidden="true"></i><span>Updated!</span>'),setTimeout(function(){a.fadeOut()},1500)},1500):(e=e.slice(0,-1),a.html('<i class="fa fa-frown-o" aria-hidden="true"></i><span>Update Failed!</span>'))})}),jQuery(".cmp-coming-soon-maintenance .theme-details").click(function(){var n=e(this),a=n.closest(".theme-wrapper"),t=a.data("slug"),i=a.data("version"),o=a.data("remote_url"),r=a.data("type"),c=a.data("purchased"),s=(a.data("freebie"),jQuery(".update-theme").data("security")),l=(a.data("price"),0),u={action:"niteo_themeinfo",security:jQuery(".theme-wrapper").data("security"),theme_slug:jQuery(this).parents(".theme-wrapper").data("slug")};e.post(ajaxurl,u,function(u){var m="",p="",d="",g="";if("true"==(u=jQuery.parseJSON(u)).result){if(jQuery("body").addClass("modal-open"),"1"==c&&(d='<span class="theme-version">Version: '+i+"</span>",g='<div class="notice notice-success notice-alt notice-large"><p>Theme is up to date.</p></div>',jQuery(".update-theme").length)){var y=jQuery(".update-theme").data("slug");if(t==y){var h=jQuery(".update-theme").data("new_ver");g='<div class="notice notice-warning notice-alt notice-large"><h3 class="notice-title">Update Available</h3><p class="message"><strong>There is a new version of '+u.name+' theme available. <a href="'+o+"readme/"+t+'-readme.php" class="view-release">View update '+h+' notes</a> or <a href="'+window.location.href+"&action=update-cmp-theme&theme="+t+'" class="update-theme" data-security="'+s+'" data-slug="'+t+'" data-remote_url="'+o+'">Update now.</a></strong></p><div class="release-note"></div></div>'}}if("1"!=c&&"premium"==r)m="disabled ",p='<button type="button" class="theme-purchase button hide"><a href="'+a.find("a").attr("href")+'" target="_blank"><i class="fa fa-cart-arrow-down" aria-hidden="true"></i>Get Theme</a></button>';var v=u.screenshots,j="";Object.keys(v).length>1&&(j='<div class="screenshots-nav"><div class="left"><i class="fa fa-chevron-left" aria-hidden="true"></i></div><div class="right"><i class="fa fa-chevron-right" aria-hidden="true"></i></div></div>');var f=e(['<div class="theme-backdrop">','\t<div class="theme-wrap">','\t\t<div class="theme-header">','\t\t\t<button class="close dashicons dashicons-no"><span class="screen-reader-text">Close details dialog</span></button>',"\t\t</div>",'\t\t<div class="theme-about">','\t\t\t<div class="theme-screenshots">','\t\t\t\t<div class="screenshot" style="background-image:url(\''+v[0]+"')\">"+j+"</div>","\t\t\t</div>",'\t\t\t<div class="theme-info">','\t\t\t\t<h2 class="theme-name">'+u.name+d+"</h2>",'\t\t\t\t<p class="theme-author">By <a href="'+u.author_homepage+'" target="_blank">'+u.author+"</a></p>",g,p,'\t\t\t\t<div class="theme-description">'+u.description+"</div>","\t\t\t</div>","\t\t</div>",'\t\t<div class="theme-actions">','\t\t\t<button type="submit" '+m+'class="button activate" name="Submit" aria-label="Select '+u.name+'">Activate</button>','\t\t\t<a href="http://cmp.niteothemes.com/?cmp_preview=true&selector=true&theme='+t+"&utm_source=cmp&utm_medium=referral&utm_campaign="+t+'" class="button cmp-preview" target="_blank" aria-label="Preview '+u.name+'">Live Preview</a>',"\t\t</div>","\t</div>","</div>"].join("\n"));jQuery(".theme-overlay.cmp").append(f),jQuery(".theme-overlay.cmp .view-release").click(function(e){e.preventDefault();var a=(n=jQuery(this)).attr("href");jQuery.get(a,function(e){n.closest(".notice").find(".release-note .notes").remove(),n.closest(".notice").find(".release-note").append('<div class="notes">'+e+"</div>")}).fail(function(){n.closest(".notice").find(".release-note p").remove(),n.closest(".notice").find(".release-note").append("<p>There was an error loading release notes. Please try again later.</p>")})}),jQuery(".theme-overlay.cmp .close").click(function(e){e.preventDefault(),jQuery("body").removeClass("modal-open"),jQuery(".theme-overlay.cmp .theme-backdrop").fadeOut("fast")}),jQuery(".theme-overlay.cmp .activate").click(function(e){e.preventDefault(),jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_select_theme"]').each(function(){jQuery(this).val()==t&&(jQuery(this).prop("checked",!0),jQuery(".theme-select").removeClass("selected"),jQuery(this).parent().addClass("selected"))}),jQuery(this).submit()}),jQuery(".screenshots-nav .right").click(function(){++l==Object.keys(v).length&&(l=0),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")}),jQuery(".screenshots-nav .left").click(function(){--l<0&&(l=Object.keys(v).length-1),l in v&&jQuery(".screenshot").css("background-image","url('"+v[l]+"')")})}})}),jQuery(".cmp-coming-soon-maintenance #connect-mailchimp").click(function(n){n.preventDefault();var a=jQuery('.cmp-coming-soon-maintenance input[name="niteoCS_mailchimp_apikey"]').val(),t=jQuery(this).data("security"),i=jQuery(this);if(""!=a){var o={apikey:a,security:t};jQuery(this).prop("disabled",!0),jQuery(this).html('<i class="fa fa-cog fa-spin fa-1x fa-fw"></i><span> retrieving lists..</span>');var r={action:"cmp_mailchimp_list_ajax",security:t,params:o};e.post(ajaxurl,r,function(n){var a=JSON.parse(n);200==a.response?(e("#niteoCS_mailchimp_list").empty().prop("disabled",!1),e.each(a.lists,function(n,a){e("#niteoCS_mailchimp_list").append('<option value="'+a.id+'">'+a.name+"</option>")})):e("#niteoCS_mailchimp_list").empty().prop("disabled",!0).html('<option value="error">'+a.message+"</option>").trigger("change"),i.html("Retrieve Lists"),i.prop("disabled",!1)}).fail(function(){i.html("Retrieve Lists"),i.prop("disabled",!1)})}}),jQuery(".cmp-coming-soon-maintenance .table-wrapper.theme-setup h4").each(function(){if("Overlay Color"==jQuery(this).html())return jQuery(this).parents("tr").remove(),!1}),wp.codeEditor&&wp.codeEditor.initialize("niteoCS_custom_css"),e(".nav-tab-wrapper").on("click",".theme-preview",function(n){return!(e("#csoptions fieldset:not(.skip-preview-validation *)").serialize()!=t&&!confirm("You have made changes that will not be visible in the preview until you save them. Please save changes first.\nContinue anyway?"))||(n.preventDefault(),!1)})});
|
js/settings.js
CHANGED
@@ -2,6 +2,7 @@ jQuery(document).ready(function($){
|
|
2 |
|
3 |
var tab = document.location.hash.substring(1);
|
4 |
var action = jQuery('#csoptions').attr('action');
|
|
|
5 |
|
6 |
// function to tab navigation
|
7 |
navtab = function(tab) {
|
@@ -51,6 +52,7 @@ jQuery(document).ready(function($){
|
|
51 |
// selector, multipe, type, element to render
|
52 |
media_upload_button('logo', false, 'image', 'img');
|
53 |
media_upload_button('favicon', false, 'image', 'img');
|
|
|
54 |
media_upload_button('images', true, 'image', 'img');
|
55 |
media_upload_button('pattern', false, 'image', 'background');
|
56 |
media_upload_button('video-thumb', false, 'image', 'img');
|
@@ -1031,6 +1033,20 @@ jQuery(document).ready(function($){
|
|
1031 |
wp.codeEditor.initialize('niteoCS_custom_css');
|
1032 |
}
|
1033 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1034 |
});
|
1035 |
|
1036 |
|
2 |
|
3 |
var tab = document.location.hash.substring(1);
|
4 |
var action = jQuery('#csoptions').attr('action');
|
5 |
+
var settings = $('#csoptions fieldset:not(.skip-preview-validation *)').serialize();
|
6 |
|
7 |
// function to tab navigation
|
8 |
navtab = function(tab) {
|
52 |
// selector, multipe, type, element to render
|
53 |
media_upload_button('logo', false, 'image', 'img');
|
54 |
media_upload_button('favicon', false, 'image', 'img');
|
55 |
+
media_upload_button('seo_img', false, 'image', 'img');
|
56 |
media_upload_button('images', true, 'image', 'img');
|
57 |
media_upload_button('pattern', false, 'image', 'background');
|
58 |
media_upload_button('video-thumb', false, 'image', 'img');
|
1033 |
wp.codeEditor.initialize('niteoCS_custom_css');
|
1034 |
}
|
1035 |
|
1036 |
+
// warn users about unsaved changes for preview
|
1037 |
+
$('.nav-tab-wrapper').on('click', '.theme-preview', function(e) {
|
1038 |
+
if ( $('#csoptions fieldset:not(.skip-preview-validation *)').serialize() != settings) {
|
1039 |
+
|
1040 |
+
if (!confirm('You have made changes that will not be visible in the preview until you save them. Please save changes first.\nContinue anyway?')) {
|
1041 |
+
e.preventDefault();
|
1042 |
+
return false;
|
1043 |
+
}
|
1044 |
+
}
|
1045 |
+
|
1046 |
+
return true;
|
1047 |
+
|
1048 |
+
});
|
1049 |
+
|
1050 |
});
|
1051 |
|
1052 |
|
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.
|
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.
|
70 |
$this->define( 'CMP_DEBUG', FALSE );
|
71 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
72 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
@@ -107,6 +107,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
107 |
register_deactivation_hook( __FILE__, array( $this, 'cmp_deactivate' ) );
|
108 |
|
109 |
require_once( dirname( __FILE__) . '/inc/class-cmp-render_html.php' );
|
|
|
110 |
}
|
111 |
|
112 |
/**
|
@@ -451,11 +452,13 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
451 |
nocache_headers();
|
452 |
header('Cache-Control: max-age=0; private');
|
453 |
setcookie('cmp_bypass', get_option('niteoCS_bypass_id', md5( get_home_url() ) ), time() + get_option('niteoCS_bypass_expire', '172800'));
|
|
|
454 |
return;
|
455 |
}
|
456 |
|
457 |
// if bypass Cookie is set, return
|
458 |
if ( isset($_COOKIE['cmp_bypass']) && $_COOKIE['cmp_bypass'] == get_option('niteoCS_bypass_id', md5( get_home_url() ) ) && get_option('niteoCS_bypass', '0') == '1' ) {
|
|
|
459 |
return;
|
460 |
}
|
461 |
|
@@ -496,6 +499,12 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
496 |
header('Retry-After: 86400'); // retry in a day
|
497 |
}
|
498 |
|
|
|
|
|
|
|
|
|
|
|
|
|
499 |
// render selected CMP theme
|
500 |
if ( file_exists( $this->cmp_themePath( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php') ) {
|
501 |
require_once ( $this->cmp_themePath( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php' );
|
@@ -719,6 +728,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
719 |
|
720 |
}
|
721 |
|
|
|
|
|
722 |
}
|
723 |
|
724 |
// returns list of premium themes => manually defined
|
@@ -1806,6 +1817,7 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1806 |
$background_type = get_option('niteoCS_banner['.$themeslug.']', '2');
|
1807 |
|
1808 |
switch ( $background_type ) {
|
|
|
1809 |
case '0':
|
1810 |
$banner_id = get_option('niteoCS_banner_id['.$themeslug.']');
|
1811 |
|
@@ -1823,9 +1835,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1823 |
}
|
1824 |
|
1825 |
break;
|
1826 |
-
|
1827 |
case '1':
|
1828 |
-
// unsplash
|
1829 |
$unplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '3');
|
1830 |
|
1831 |
switch ( $unplash_feed ) {
|
@@ -1872,9 +1883,8 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1872 |
}
|
1873 |
|
1874 |
break;
|
1875 |
-
|
1876 |
-
|
1877 |
-
// default image
|
1878 |
$image_url = $this->cmp_themeURL( $themeslug ).$themeslug.'/img/'.$themeslug.'_banner_large.jpg';
|
1879 |
break;
|
1880 |
|
@@ -1895,12 +1905,6 @@ if ( ! class_exists( 'CMP_Coming_Soon_and_Maintenance' ) ) :
|
|
1895 |
|
1896 |
break;
|
1897 |
|
1898 |
-
|
1899 |
-
// Color
|
1900 |
-
$color = get_option('niteoCS_banner_color['.$themeslug.']', '#e5e5e5');
|
1901 |
-
$html ='<div id="background-image" class="color loaded" style="background-color:'.esc_url( $color ).'"></div>';
|
1902 |
-
break;
|
1903 |
-
|
1904 |
case '5':
|
1905 |
$image_url = wp_get_attachment_image_src( get_option('niteoCS_video_thumb['.$themeslug.']'), 'large' );
|
1906 |
|
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.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.9' );
|
70 |
$this->define( 'CMP_DEBUG', FALSE );
|
71 |
$this->define( 'CMP_AUTHOR', 'NiteoThemes' );
|
72 |
$this->define( 'CMP_AUTHOR_HOMEPAGE', 'https://niteothemes.com' );
|
107 |
register_deactivation_hook( __FILE__, array( $this, 'cmp_deactivate' ) );
|
108 |
|
109 |
require_once( dirname( __FILE__) . '/inc/class-cmp-render_html.php' );
|
110 |
+
|
111 |
}
|
112 |
|
113 |
/**
|
452 |
nocache_headers();
|
453 |
header('Cache-Control: max-age=0; private');
|
454 |
setcookie('cmp_bypass', get_option('niteoCS_bypass_id', md5( get_home_url() ) ), time() + get_option('niteoCS_bypass_expire', '172800'));
|
455 |
+
// exit CMP
|
456 |
return;
|
457 |
}
|
458 |
|
459 |
// if bypass Cookie is set, return
|
460 |
if ( isset($_COOKIE['cmp_bypass']) && $_COOKIE['cmp_bypass'] == get_option('niteoCS_bypass_id', md5( get_home_url() ) ) && get_option('niteoCS_bypass', '0') == '1' ) {
|
461 |
+
// exit CMP
|
462 |
return;
|
463 |
}
|
464 |
|
499 |
header('Retry-After: 86400'); // retry in a day
|
500 |
}
|
501 |
|
502 |
+
// send no-cache headers if set in Settings
|
503 |
+
if ( get_option('niteoCS_seo_nocache', '0') == '1' ){
|
504 |
+
nocache_headers();
|
505 |
+
header('Cache-Control: no-cache; private');
|
506 |
+
}
|
507 |
+
|
508 |
// render selected CMP theme
|
509 |
if ( file_exists( $this->cmp_themePath( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php') ) {
|
510 |
require_once ( $this->cmp_themePath( $this->cmp_selectedTheme() ).$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php' );
|
728 |
|
729 |
}
|
730 |
|
731 |
+
$this->cmp_purge_cache();
|
732 |
+
|
733 |
}
|
734 |
|
735 |
// returns list of premium themes => manually defined
|
1817 |
$background_type = get_option('niteoCS_banner['.$themeslug.']', '2');
|
1818 |
|
1819 |
switch ( $background_type ) {
|
1820 |
+
// custom img
|
1821 |
case '0':
|
1822 |
$banner_id = get_option('niteoCS_banner_id['.$themeslug.']');
|
1823 |
|
1835 |
}
|
1836 |
|
1837 |
break;
|
1838 |
+
// unsplash
|
1839 |
case '1':
|
|
|
1840 |
$unplash_feed = get_option('niteoCS_unsplash_feed['.$themeslug.']', '3');
|
1841 |
|
1842 |
switch ( $unplash_feed ) {
|
1883 |
}
|
1884 |
|
1885 |
break;
|
1886 |
+
// default image
|
1887 |
+
case '2':
|
|
|
1888 |
$image_url = $this->cmp_themeURL( $themeslug ).$themeslug.'/img/'.$themeslug.'_banner_large.jpg';
|
1889 |
break;
|
1890 |
|
1905 |
|
1906 |
break;
|
1907 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1908 |
case '5':
|
1909 |
$image_url = wp_get_attachment_image_src( get_option('niteoCS_video_thumb['.$themeslug.']'), 'large' );
|
1910 |
|
readme.txt
CHANGED
@@ -3,16 +3,16 @@ Contributors: niteo
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JFJ8NCBYLW&lc=US&item_name=NiteoThemes&item_number=comingsoon¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
|
4 |
Tags: coming soon, landing page, launch page, maintenance mode, under construction
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
Display beautiful Coming soon, Maintenance or Landing page on your website, packed with premium features for free.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
CMP – Coming Soon & Maintenance plugin has all premium features you ever wished for, and it is free! It is also super fast and user friendly. You can activate your Maintenance, Coming soon or Landing page with a single click. But it is also customizable in many ways - you can select a layout from predefined Themes, set custom logo, background graphics (including YouTube videos or Unsplash images), custom content, subscribe forms, popular social networks icons, typography, colors, SEO, and many more.
|
16 |
|
17 |
Packed with functions like Whitelist/Blacklist to enable CMP only on specific pages, User Roles Management, custom URL Bypass, Translation strings, custom Subscribers option and many more you would not believe it is free. No ADS too, guaranteed!
|
18 |
|
@@ -98,7 +98,7 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
98 |
<p>As long as you're logged in as admin, you cannot see it. That`s the purpose of our plugin - it displays Maintenance or Landing page only to non-logged or non-admin logged visitors of your page. By this way you can work on your real website and display different page to your visitors. You can preview the page by clicking on "preview" tab, loggout from Wordpress or access your website from different browser.</p>
|
99 |
|
100 |
<h4>I can't activate or deactivate my landing page I've just activated!</h4>
|
101 |
-
<p>We did our best to cooperate with all most used caching plugins, but sometimes it just does not work as expected. Please make sure you delete cache from your favourite plugin and check your website again.</p>
|
102 |
|
103 |
<h4>What are 503 or 200 HTTP codes, huh?</h4>
|
104 |
<p>OK, it`s easy - if you want to display Coming Soon page you usually wants to search engines (like Google) to be able to index your website. In that case you want the response code set to 200 HTTP "OK" - set Coming Soon mode or Landing Page.</p>
|
@@ -115,7 +115,26 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
@@ -125,7 +144,7 @@ Packed with functions like Whitelist/Blacklist to enable CMP only on specific pa
|
|
125 |
</ul>
|
126 |
|
127 |
|
128 |
-
<h4>CMP 2.8.8 -
|
129 |
<ul>
|
130 |
<li>Fixed not clickable Social URL inputs on mobile devices.</li>
|
131 |
</ul>
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JFJ8NCBYLW&lc=US&item_name=NiteoThemes&item_number=comingsoon¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
|
4 |
Tags: coming soon, landing page, launch page, maintenance mode, under construction
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 5.0
|
7 |
+
Stable tag: 2.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Display beautiful Coming soon(under construction), Maintenance or Landing page on your website, packed with premium features for free.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
CMP – Coming Soon & Maintenance plugin has all premium features you ever wished for, and it is free! It is also super fast and user friendly. You can activate your Maintenance, Coming soon(under construction) or Landing page with a single click. But it is also customizable in many ways - you can select a layout from predefined Themes, set custom logo, background graphics (including YouTube videos or Unsplash images), custom content, subscribe forms, popular social networks icons, typography, colors, SEO, and many more.
|
16 |
|
17 |
Packed with functions like Whitelist/Blacklist to enable CMP only on specific pages, User Roles Management, custom URL Bypass, Translation strings, custom Subscribers option and many more you would not believe it is free. No ADS too, guaranteed!
|
18 |
|
98 |
<p>As long as you're logged in as admin, you cannot see it. That`s the purpose of our plugin - it displays Maintenance or Landing page only to non-logged or non-admin logged visitors of your page. By this way you can work on your real website and display different page to your visitors. You can preview the page by clicking on "preview" tab, loggout from Wordpress or access your website from different browser.</p>
|
99 |
|
100 |
<h4>I can't activate or deactivate my landing page I've just activated!</h4>
|
101 |
+
<p>We did our best to cooperate with all most used caching plugins, but sometimes it just does not work as expected. Please make sure you delete cache from your favourite caching plugin and check your website again.</p>
|
102 |
|
103 |
<h4>What are 503 or 200 HTTP codes, huh?</h4>
|
104 |
<p>OK, it`s easy - if you want to display Coming Soon page you usually wants to search engines (like Google) to be able to index your website. In that case you want the response code set to 200 HTTP "OK" - set Coming Soon mode or Landing Page.</p>
|
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.9 - 02-Nov-18 - New features</h4>
|
119 |
+
<ul>
|
120 |
+
<li>Added SEO Image Settings to SEO Settings.</li>
|
121 |
+
<li>Added SEO Search Engine Visibility Checkbox.</li>
|
122 |
+
<li>Added SEO no-cache Headers Control Checkbox.</li>
|
123 |
+
<li>Added description to many input settings for better customer orientation.</li>
|
124 |
+
<li>Added warning message for CMP Preview if there are unsaved settings.</li>
|
125 |
+
<li>Updated embedded YouTube and Vimeo players CSS styles to be displayed correctly.</li>
|
126 |
+
|
127 |
+
</ul>
|
128 |
+
|
129 |
+
<h4>CMP 2.8.9.1 - Bug Fix Update</h4>
|
130 |
+
<ul>
|
131 |
+
<li>Changed default theme to CountDown after first installation.</li>
|
132 |
+
<li>Updated CountDown theme CSS styles.</li>
|
133 |
+
<li>Removed outdated HTML from Admin Settings.</li>
|
134 |
+
<li>Fixed MS Edge saving issues - caused by Input range validation for font-height ( it still does not accept 1.4 and 1.5 values and cannot be saved if these values are selected! - good job M$ _--_ )</li>
|
135 |
+
</ul>
|
136 |
+
|
137 |
+
<h4>CMP 2.8.9 - New Features Update</h4>
|
138 |
<ul>
|
139 |
<li>New CMP Theme Vega - go check it out!</li>
|
140 |
<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>
|
144 |
</ul>
|
145 |
|
146 |
|
147 |
+
<h4>CMP 2.8.8 - Bug Fix Update</h4>
|
148 |
<ul>
|
149 |
<li>Fixed not clickable Social URL inputs on mobile devices.</li>
|
150 |
</ul>
|
themes/countdown/countdown-theme.php
CHANGED
@@ -213,11 +213,6 @@
|
|
213 |
</div>
|
214 |
|
215 |
<?php
|
216 |
-
// render footer javascripts
|
217 |
-
if ( method_exists ( $html, 'cmp_javascripts' ) ) {
|
218 |
-
$html->cmp_javascripts( $banner_type, $themeslug );
|
219 |
-
}
|
220 |
-
|
221 |
if ( $niteoCS_counter == '1') { ?>
|
222 |
<script>
|
223 |
// Set the date we're counting down to
|
@@ -274,6 +269,11 @@
|
|
274 |
}, 1000);
|
275 |
</script>
|
276 |
<?php
|
|
|
|
|
|
|
|
|
|
|
277 |
} ?>
|
278 |
</body>
|
279 |
</html>
|
213 |
</div>
|
214 |
|
215 |
<?php
|
|
|
|
|
|
|
|
|
|
|
216 |
if ( $niteoCS_counter == '1') { ?>
|
217 |
<script>
|
218 |
// Set the date we're counting down to
|
269 |
}, 1000);
|
270 |
</script>
|
271 |
<?php
|
272 |
+
}
|
273 |
+
|
274 |
+
// render footer javascripts
|
275 |
+
if ( method_exists ( $html, 'cmp_javascripts' ) ) {
|
276 |
+
$html->cmp_javascripts( $banner_type, $themeslug );
|
277 |
} ?>
|
278 |
</body>
|
279 |
</html>
|
themes/hardwork/style.css
CHANGED
@@ -9,13 +9,8 @@ Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normaalize.css/
|
|
9 |
*/
|
10 |
|
11 |
body{
|
12 |
-
display: -webkit-box;
|
13 |
-
display: -ms-flexbox;
|
14 |
display: flex;
|
15 |
-
-
|
16 |
-
-webkit-box-direction: normal;
|
17 |
-
-ms-flex-direction: column;
|
18 |
-
flex-direction: column;
|
19 |
margin:0;
|
20 |
min-height: 100vh;
|
21 |
position: relative;
|
@@ -36,28 +31,17 @@ img {
|
|
36 |
}
|
37 |
|
38 |
.section {
|
39 |
-
-
|
40 |
-
-ms-flex-positive: 1;
|
41 |
-
flex-grow: 1;
|
42 |
padding: 2em;
|
43 |
text-align: center;
|
44 |
position: relative;
|
45 |
}
|
46 |
|
47 |
.section-body {
|
48 |
-
display: -webkit-box;
|
49 |
-
display: -ms-flexbox;
|
50 |
display: flex;
|
51 |
-
-
|
52 |
-
|
53 |
-
|
54 |
-
-webkit-box-orient: vertical;
|
55 |
-
-webkit-box-direction: normal;
|
56 |
-
-ms-flex-direction: column;
|
57 |
-
flex-direction: column;
|
58 |
-
-webkit-box-flex: 10;
|
59 |
-
-ms-flex-positive: 10;
|
60 |
-
flex-grow: 10;
|
61 |
width: 70%;
|
62 |
max-width: 1170px;
|
63 |
min-height: calc(100vh - 7em);
|
@@ -79,7 +63,6 @@ img {
|
|
79 |
}
|
80 |
|
81 |
.section-body p {
|
82 |
-
margin: 0.5em auto 0.5em auto;
|
83 |
font-size: 1em;
|
84 |
line-height: 1.5em;
|
85 |
}
|
@@ -125,7 +108,6 @@ img {
|
|
125 |
|
126 |
#background-image {
|
127 |
opacity: 0;
|
128 |
-
-webkit-transition: opacity .5s;
|
129 |
transition: opacity .5s;
|
130 |
}
|
131 |
|
@@ -136,7 +118,6 @@ img {
|
|
136 |
|
137 |
.video-banner iframe,
|
138 |
.video-banner video {
|
139 |
-
-webkit-transition: opacity 1500ms;
|
140 |
transition: opacity 1500ms;
|
141 |
}
|
142 |
|
@@ -162,13 +143,11 @@ img {
|
|
162 |
width: 2.5em;
|
163 |
line-height: 3em;
|
164 |
background: transparent;
|
165 |
-
-webkit-transition: background 300ms linear;
|
166 |
transition: background 300ms linear;
|
167 |
border-radius: 5px;
|
168 |
}
|
169 |
.social-list i{
|
170 |
font-size: 1em;
|
171 |
-
-webkit-transition: all 300ms linear;
|
172 |
transition: all 300ms linear;
|
173 |
}
|
174 |
.social-list a:hover i {
|
9 |
*/
|
10 |
|
11 |
body{
|
|
|
|
|
12 |
display: flex;
|
13 |
+
flex-direction: column;
|
|
|
|
|
|
|
14 |
margin:0;
|
15 |
min-height: 100vh;
|
16 |
position: relative;
|
31 |
}
|
32 |
|
33 |
.section {
|
34 |
+
flex-grow: 1;
|
|
|
|
|
35 |
padding: 2em;
|
36 |
text-align: center;
|
37 |
position: relative;
|
38 |
}
|
39 |
|
40 |
.section-body {
|
|
|
|
|
41 |
display: flex;
|
42 |
+
justify-content: center;
|
43 |
+
flex-direction: column;
|
44 |
+
flex-grow: 10;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
width: 70%;
|
46 |
max-width: 1170px;
|
47 |
min-height: calc(100vh - 7em);
|
63 |
}
|
64 |
|
65 |
.section-body p {
|
|
|
66 |
font-size: 1em;
|
67 |
line-height: 1.5em;
|
68 |
}
|
108 |
|
109 |
#background-image {
|
110 |
opacity: 0;
|
|
|
111 |
transition: opacity .5s;
|
112 |
}
|
113 |
|
118 |
|
119 |
.video-banner iframe,
|
120 |
.video-banner video {
|
|
|
121 |
transition: opacity 1500ms;
|
122 |
}
|
123 |
|
143 |
width: 2.5em;
|
144 |
line-height: 3em;
|
145 |
background: transparent;
|
|
|
146 |
transition: background 300ms linear;
|
147 |
border-radius: 5px;
|
148 |
}
|
149 |
.social-list i{
|
150 |
font-size: 1em;
|
|
|
151 |
transition: all 300ms linear;
|
152 |
}
|
153 |
.social-list a:hover i {
|