Version Description
Dec 06, 2021 = * New: Shortcode Live Preview added. * Fix: Some minor issues. * Improved: Hook added for WPML filter (suppress_filters).
Download this release
Release Info
Developer | shapedplugin |
Plugin | Carousel, Slider, Gallery by WP Carousel – Image Carousel & Photo Gallery, Post Carousel & Post Grid, Product Carousel & Product Grid for WooCommerce |
Version | 2.4.1 |
Comparing to | |
See all releases |
Code changes from version 2.4.0 to 2.4.1
- admin/class-wp-carousel-free-admin.php +2 -2
- admin/css/wp-carousel-free-admin.css +31 -0
- admin/css/wp-carousel-free-admin.min.css +1 -1
- admin/preview/class-wp-carousel-free-preview.php +72 -0
- admin/views/help.php +1 -1
- admin/views/metabox-config.php +27 -0
- admin/views/premium.php +1 -1
- admin/views/sp-framework/assets/css/style.css +43 -1
- admin/views/sp-framework/assets/css/style.min.css +1 -1
- admin/views/sp-framework/assets/js/main.js +61 -0
- admin/views/sp-framework/assets/js/main.min.js +1 -1
- admin/views/sp-framework/assets/js/preview.js +16 -0
- admin/views/sp-framework/assets/js/preview.min.js +1 -0
- admin/views/sp-framework/classes/metabox-options.class.php +3 -0
- admin/views/sp-framework/classes/setup.class.php +2 -0
- admin/views/sp-framework/fields/preview/preview.php +48 -0
- admin/views/tmce-button.php +2 -2
- admin/views/tools-config.php +2 -2
- includes/class-wp-carousel-free-post-types.php +2 -2
- includes/class-wp-carousel-free-shortcode.php +28 -17
- public/Helper.php +5 -5
- public/class-wp-carousel-free-public.php +24 -0
- public/css/wp-carousel-free-public.css +1 -0
- public/css/wp-carousel-free-public.min.css +1 -1
- public/dynamic-style.php +10 -7
- public/templates/carousel.php +1 -1
- public/templates/gallery.php +1 -1
- public/templates/section-title.php +1 -1
- readme.txt +8 -3
- wp-carousel-free.php +4 -2
admin/class-wp-carousel-free-admin.php
CHANGED
@@ -5,8 +5,8 @@
|
|
5 |
* @link https://shapedplugin.com
|
6 |
* @since 2.0.0
|
7 |
*
|
8 |
-
* @package
|
9 |
-
* @subpackage
|
10 |
*/
|
11 |
|
12 |
/**
|
5 |
* @link https://shapedplugin.com
|
6 |
* @since 2.0.0
|
7 |
*
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/admin
|
10 |
*/
|
11 |
|
12 |
/**
|
admin/css/wp-carousel-free-admin.css
CHANGED
@@ -338,6 +338,7 @@
|
|
338 |
top: 50%;
|
339 |
margin-top: -8px;
|
340 |
}
|
|
|
341 |
.spwpc-after-copy-text {
|
342 |
bottom: 0;
|
343 |
opacity: 0;
|
@@ -353,8 +354,38 @@
|
|
353 |
background: #32373c;
|
354 |
border: 1px solid #32373c;
|
355 |
}
|
|
|
|
|
|
|
|
|
356 |
.spwpc-after-copy-text .fa-check-circle {
|
357 |
font-size: 14px;
|
358 |
margin-right: 2px;
|
359 |
color: #5db62e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
360 |
}
|
338 |
top: 50%;
|
339 |
margin-top: -8px;
|
340 |
}
|
341 |
+
.spwpc-pagination-not-work,
|
342 |
.spwpc-after-copy-text {
|
343 |
bottom: 0;
|
344 |
opacity: 0;
|
354 |
background: #32373c;
|
355 |
border: 1px solid #32373c;
|
356 |
}
|
357 |
+
.spwpc-pagination-not-work {
|
358 |
+
width: 280px;
|
359 |
+
}
|
360 |
+
.spwpc-pagination-not-work .fa-check-circle,
|
361 |
.spwpc-after-copy-text .fa-check-circle {
|
362 |
font-size: 14px;
|
363 |
margin-right: 2px;
|
364 |
color: #5db62e
|
365 |
+
}
|
366 |
+
|
367 |
+
/* Live preview css */
|
368 |
+
#sp_wpcf_live_preview .wpcp-carousel-wrapper .sp-wpcpro-section-title,
|
369 |
+
#sp_wpcf_live_preview #poststuff .wpcp-carousel-wrapper .sp-wpcpro-section-title {
|
370 |
+
font-size: 24px;
|
371 |
+
line-height: 28px;
|
372 |
+
padding: 0;
|
373 |
+
font-weight: 700;
|
374 |
+
}
|
375 |
+
|
376 |
+
#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions .wpcp-post-title {
|
377 |
+
font-size: 20px;
|
378 |
+
line-height: 30px;
|
379 |
+
}
|
380 |
+
#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions p,
|
381 |
+
#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions .wpcp-product-title a {
|
382 |
+
font-size: 16px;
|
383 |
+
line-height: 26px;
|
384 |
+
}
|
385 |
+
#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions ul li {
|
386 |
+
font-size: 14px;
|
387 |
+
line-height: 24px;
|
388 |
+
}
|
389 |
+
#sp_wpcf_live_preview img {
|
390 |
+
width: 100%;
|
391 |
}
|
admin/css/wp-carousel-free-admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.text-center{text-align:center}#adminmenu .menu-icon-sp_wp_carousel .wp-menu-image img{width:22px;padding:7px 0;height:20px}.spwpcp-gallery-list li{display:inline;margin:5px}.js .tmce-active .wp-editor-area{color:#000}.disable-color-picker .wpcf-field-color{pointer-events:none;opacity:.6}.sp_wpcp_shortcode_generator .wpcf-wrapper{min-height:200px;z-index:999;background-image:url(../img/preloader.gif);background-repeat:no-repeat;background-color:#fff;background-position:center}.sp_wpcp_shortcode_generator .wpcf-wrapper li{opacity:0}.sp-wpcp-help .wp-badge{border:none;background:url(../img/wpcp-icon-256.png) right no-repeat;background-size:100px 100px;box-shadow:none;height:auto;top:-75px}.about-wrap.sp-wpcf-upgrade [class$="-col"],.about-wrap.sp-wpcp-help [class$="-col"]{display:flex;justify-content:space-between;flex-wrap:wrap}.about-wrap.sp-wpcf-upgrade [class$="-col"] .col,.about-wrap.sp-wpcp-help [class$="-col"] .col{flex:1;align-self:flex-start}.about-wrap.sp-wpcp-help .feature-section .col{margin-top:40px}.about-wrap.sp-wpcf-upgrade [class$="-col"] .col+.col{margin-left:0}.about-wrap.sp-wpcp-help [class$="-col"] .col+.col{margin-left:20px}.sp-wpcf-upgrade .headline-feature.feature-video,.sp-wpcp-help .headline-feature.feature-video{position:relative;margin:40px 0;padding-bottom:56.25%;width:100%;max-width:100%;height:0;text-align:center}.sp-wpcf-upgrade .headline-feature.feature-video iframe,.sp-wpcp-help .headline-feature.feature-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}.sp-wpcp-help .feature-section .sp-wpcp-feature{background-color:#fff;padding:20px 20px;border:1px solid #ddd}.sp-wpcp-help .feature-section .sp-wpcp-feature h3{font-size:16px;margin-top:18px}.sp-wpcp-help .feature-section i.sp-wpcp-font-icon{font-size:30px;display:block;color:#18afb9;font-family:fontawesome;font-style:normal}@media (max-width:500px){.sp-wpcp-help .wp-badge{background-position-x:center;top:0}}.sp-wpc-text-center{text-align:center}.sp-wpcf-upgrade>h1{font-size:2.5em;color:#444;font-weight:300}.sp-wpcf-upgrade>h1 span{font-weight:400}.sp-wpcf-upgrade .about-text{margin-bottom:0}.sp-wpcf-upgrade ul{margin-top:0}.sp-wpcf-upgrade .wp-badge{border:none;background:url(../img/premium-logo.png) no-repeat;background-size:150px 150px;box-shadow:none;top:0;padding-right:8px}.about-wrap.sp-wpcf-upgrade .about-text{min-height:60px}.about-wrap.sp-wpcf-upgrade hr{order:0;height:0;margin:0;border-top:1px solid rgba(0,0,0,.1)}.sp-wpcf-upgrade .feature-section .sp-wpc-feature{background-color:#fff;padding:20px 20px;border:1px solid #ddd}.sp-wpcf-upgrade .feature-section .sp-wpc-feature h3{font-size:16px;margin-top:18px}.sp-wpcf-upgrade .feature-section i.fa{font-size:30px;display:block;color:#22afba}.sp-wpcf-upgrade .sp-wpc-pro-features .feature-section span.dashicons{font-size:22px;color:#fff;background-color:#22afba;width:28px;height:28px;line-height:28px;border-radius:50%;margin-right:10px}.sp-wpcf-upgrade .sp-wpc-pro-features .feature-section{margin-bottom:40px;display:flex;flex-wrap:wrap}.sp-wpcf-upgrade .sp-wpc-pro-features .feature-section .sp-wpc-feature h3{margin-top:0}.sp-wpcf-upgrade .sp-wpc-pro-features .feature-section .sp-wpc-feature p{margin-bottom:0}.sp-wpcf-upgrade .sp-wpc-pro-features .feature-section .sp-wpc-feature{box-shadow:0 0 10px 0 #ddd;margin:4px;border:0 solid}.sp-wpcf-upgrade .sp-wpc-pro-features .feature-section.three-col .col{min-width:32%;max-width:32%;margin-top:20px;display:flex;align-self:auto}.sp-wpcf-upgrade .sp-wpc-pro-features .sp-wpc-pro-subtitle{font-size:1.2em;margin-bottom:26px}.sp-wpcf-upgrade .sp-wpc-upgrade-sticky-footer{position:fixed;bottom:0;background:#fff;width:calc(100% - 195px);z-index:9;margin-left:-25px;text-align:center;border:1px solid #dfdfdf;padding:15px 0;border-bottom:none}.sp-wpcf-upgrade .sp-wpc-pro-features h2,.sp-wpcf-upgrade .sp-wpcp-promo-video-title{font-size:2.2em;font-weight:400}.sp-wpcp-join-community h2{font-size:2em}.sp-wpcf-upgrade .sp-wpc-upgrade-sticky-footer h3{margin-top:17px;margin-bottom:20px}.sp-wpcf-upgrade .sp-wpc-upgrade-sticky-footer a.button{margin:0 8px}.sp-wpcf-upgrade .wpcf-upgrade-btn{display:inline-block;padding:0 20px 0 0}.sp-wpcf-upgrade .wpcf-upgrade-btn a,.sp-wpcf-upgrade a.wpcf-upgrade-btn{text-decoration:none;text-align:center;font-size:16px}.sp-wpcf-upgrade .wpcf-upgrade-btn a:focus{outline:0}.sp-wpcf-upgrade a.wpcf-upgrade-btn,.sp-wpcf-upgrade ul li.wpcf-upgrade-btn:first-child a{background:#7cc048;padding:0 15px;line-height:46px;display:block;color:#fff;border-radius:3px}.sp-wpcf-upgrade ul li.wpcf-upgrade-btn:last-child a{text-decoration:underline}.sp-wpcf-upgrade ul li.wpcf-upgrade-btn a i{margin-left:4px}.sp-wpcf-upgrade ul li.wpcf-upgrade-btn:last-child a i{font-size:14px}.sp-wpcf-upgrade a.wpcf-upgrade-btn{display:inline-block}#sp-wpcfree-review-notice{padding:15px 15px 15px 0;background-color:#fff;border-radius:3px;margin:20px 20px 0 0}#sp-wpcfree-review-notice .sp-wpcfree-plugin-icon{width:125px;float:left;line-height:90px;text-align:center}#sp-wpcfree-review-notice .sp-wpcfree-plugin-icon img{max-width:83px;vertical-align:middle}#sp-wpcfree-review-notice .sp-wpcfree-notice-text{overflow:hidden}#sp-wpcfree-review-notice .sp-wpcfree-notice-text h3{font-size:24px;margin:0 0 5px;font-weight:400;line-height:1}#sp-wpcfree-review-notice .sp-wpcfree-notice-text p{margin:10px 0 10px 0;font-size:13px}#sp-wpcfree-review-notice .sp-wpcfree-notice-text p.sp-wpcfree-review-actions{margin:10px 0 2px 0}#sp-wpcfree-review-notice .sp-wpcfree-notice-text .sp-wpcfree-review-actions a{text-decoration:none;margin-right:8px;color:#63a37b;display:inline-block;position:relative}#sp-wpcfree-review-notice .sp-wpcfree-notice-text .sp-wpcfree-review-actions a span{padding-right:2px}#sp-wpcfree-review-notice .sp-wpcfree-notice-text .sp-wpcfree-review-actions a.button{color:#fff}@media screen and (max-width:782px){.about-wrap .three-col .col{min-width:48%!important;max-width:48%!important;margin-left:0!important}.about-wrap.sp-wpcp-help .feature-section .col{margin-top:20px}}@media (max-width:960px){.sp-wpc-help .sp-wpc-upgrade-sticky-footer{width:calc(100%)}}@media only screen and (max-width:500px){.about-wrap .three-col .col{min-width:100%!important}.sp-wpcf-upgrade .wp-badge{background-position-x:center}}.spwpc-copy-btn{width:16px;margin-left:13px;position:absolute;top:50%;margin-top:-8px}.spwpc-after-copy-text{bottom:0;opacity:0;z-index:9999999;position:fixed;width:230px;left:180px;text-align:center;padding:15px 15px;line-height:15px;color:#fff;border-radius:3px;background:#32373c;border:1px solid #32373c}.spwpc-after-copy-text .fa-check-circle{font-size:14px;margin-right:2px;color:#5db62e}
|
1 |
+
.text-center{text-align:center}#adminmenu .menu-icon-sp_wp_carousel .wp-menu-image img{width:22px;padding:7px 0;height:20px}.spwpcp-gallery-list li{display:inline;margin:5px}.js .tmce-active .wp-editor-area{color:#000}.disable-color-picker .wpcf-field-color{pointer-events:none;opacity:.6}.sp_wpcp_shortcode_generator .wpcf-wrapper{min-height:200px;z-index:999;background-image:url(../img/preloader.gif);background-repeat:no-repeat;background-color:#fff;background-position:center}.sp_wpcp_shortcode_generator .wpcf-wrapper li{opacity:0}.sp-wpcp-help .wp-badge{border:none;background:url(../img/wpcp-icon-256.png) right no-repeat;background-size:100px 100px;box-shadow:none;height:auto;top:-75px}.about-wrap.sp-wpcf-upgrade [class$="-col"],.about-wrap.sp-wpcp-help [class$="-col"]{display:flex;justify-content:space-between;flex-wrap:wrap}.about-wrap.sp-wpcf-upgrade [class$="-col"] .col,.about-wrap.sp-wpcp-help [class$="-col"] .col{flex:1;align-self:flex-start}.about-wrap.sp-wpcp-help .feature-section .col{margin-top:40px}.about-wrap.sp-wpcf-upgrade [class$="-col"] .col+.col{margin-left:0}.about-wrap.sp-wpcp-help [class$="-col"] .col+.col{margin-left:20px}.sp-wpcf-upgrade .headline-feature.feature-video,.sp-wpcp-help .headline-feature.feature-video{position:relative;margin:40px 0;padding-bottom:56.25%;width:100%;max-width:100%;height:0;text-align:center}.sp-wpcf-upgrade .headline-feature.feature-video iframe,.sp-wpcp-help .headline-feature.feature-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}.sp-wpcp-help .feature-section .sp-wpcp-feature{background-color:#fff;padding:20px 20px;border:1px solid #ddd}.sp-wpcp-help .feature-section .sp-wpcp-feature h3{font-size:16px;margin-top:18px}.sp-wpcp-help .feature-section i.sp-wpcp-font-icon{font-size:30px;display:block;color:#18afb9;font-family:fontawesome;font-style:normal}@media (max-width:500px){.sp-wpcp-help .wp-badge{background-position-x:center;top:0}}.sp-wpc-text-center{text-align:center}.sp-wpcf-upgrade>h1{font-size:2.5em;color:#444;font-weight:300}.sp-wpcf-upgrade>h1 span{font-weight:400}.sp-wpcf-upgrade .about-text{margin-bottom:0}.sp-wpcf-upgrade ul{margin-top:0}.sp-wpcf-upgrade .wp-badge{border:none;background:url(../img/premium-logo.png) no-repeat;background-size:150px 150px;box-shadow:none;top:0;padding-right:8px}.about-wrap.sp-wpcf-upgrade .about-text{min-height:60px}.about-wrap.sp-wpcf-upgrade hr{order:0;height:0;margin:0;border-top:1px solid rgba(0,0,0,.1)}.sp-wpcf-upgrade .feature-section .sp-wpc-feature{background-color:#fff;padding:20px 20px;border:1px solid #ddd}.sp-wpcf-upgrade .feature-section .sp-wpc-feature h3{font-size:16px;margin-top:18px}.sp-wpcf-upgrade .feature-section i.fa{font-size:30px;display:block;color:#22afba}.sp-wpcf-upgrade .sp-wpc-pro-features .feature-section span.dashicons{font-size:22px;color:#fff;background-color:#22afba;width:28px;height:28px;line-height:28px;border-radius:50%;margin-right:10px}.sp-wpcf-upgrade .sp-wpc-pro-features .feature-section{margin-bottom:40px;display:flex;flex-wrap:wrap}.sp-wpcf-upgrade .sp-wpc-pro-features .feature-section .sp-wpc-feature h3{margin-top:0}.sp-wpcf-upgrade .sp-wpc-pro-features .feature-section .sp-wpc-feature p{margin-bottom:0}.sp-wpcf-upgrade .sp-wpc-pro-features .feature-section .sp-wpc-feature{box-shadow:0 0 10px 0 #ddd;margin:4px;border:0 solid}.sp-wpcf-upgrade .sp-wpc-pro-features .feature-section.three-col .col{min-width:32%;max-width:32%;margin-top:20px;display:flex;align-self:auto}.sp-wpcf-upgrade .sp-wpc-pro-features .sp-wpc-pro-subtitle{font-size:1.2em;margin-bottom:26px}.sp-wpcf-upgrade .sp-wpc-upgrade-sticky-footer{position:fixed;bottom:0;background:#fff;width:calc(100% - 195px);z-index:9;margin-left:-25px;text-align:center;border:1px solid #dfdfdf;padding:15px 0;border-bottom:none}.sp-wpcf-upgrade .sp-wpc-pro-features h2,.sp-wpcf-upgrade .sp-wpcp-promo-video-title{font-size:2.2em;font-weight:400}.sp-wpcp-join-community h2{font-size:2em}.sp-wpcf-upgrade .sp-wpc-upgrade-sticky-footer h3{margin-top:17px;margin-bottom:20px}.sp-wpcf-upgrade .sp-wpc-upgrade-sticky-footer a.button{margin:0 8px}.sp-wpcf-upgrade .wpcf-upgrade-btn{display:inline-block;padding:0 20px 0 0}.sp-wpcf-upgrade .wpcf-upgrade-btn a,.sp-wpcf-upgrade a.wpcf-upgrade-btn{text-decoration:none;text-align:center;font-size:16px}.sp-wpcf-upgrade .wpcf-upgrade-btn a:focus{outline:0}.sp-wpcf-upgrade a.wpcf-upgrade-btn,.sp-wpcf-upgrade ul li.wpcf-upgrade-btn:first-child a{background:#7cc048;padding:0 15px;line-height:46px;display:block;color:#fff;border-radius:3px}.sp-wpcf-upgrade ul li.wpcf-upgrade-btn:last-child a{text-decoration:underline}.sp-wpcf-upgrade ul li.wpcf-upgrade-btn a i{margin-left:4px}.sp-wpcf-upgrade ul li.wpcf-upgrade-btn:last-child a i{font-size:14px}.sp-wpcf-upgrade a.wpcf-upgrade-btn{display:inline-block}#sp-wpcfree-review-notice{padding:15px 15px 15px 0;background-color:#fff;border-radius:3px;margin:20px 20px 0 0}#sp-wpcfree-review-notice .sp-wpcfree-plugin-icon{width:125px;float:left;line-height:90px;text-align:center}#sp-wpcfree-review-notice .sp-wpcfree-plugin-icon img{max-width:83px;vertical-align:middle}#sp-wpcfree-review-notice .sp-wpcfree-notice-text{overflow:hidden}#sp-wpcfree-review-notice .sp-wpcfree-notice-text h3{font-size:24px;margin:0 0 5px;font-weight:400;line-height:1}#sp-wpcfree-review-notice .sp-wpcfree-notice-text p{margin:10px 0 10px 0;font-size:13px}#sp-wpcfree-review-notice .sp-wpcfree-notice-text p.sp-wpcfree-review-actions{margin:10px 0 2px 0}#sp-wpcfree-review-notice .sp-wpcfree-notice-text .sp-wpcfree-review-actions a{text-decoration:none;margin-right:8px;color:#63a37b;display:inline-block;position:relative}#sp-wpcfree-review-notice .sp-wpcfree-notice-text .sp-wpcfree-review-actions a span{padding-right:2px}#sp-wpcfree-review-notice .sp-wpcfree-notice-text .sp-wpcfree-review-actions a.button{color:#fff}@media screen and (max-width:782px){.about-wrap .three-col .col{min-width:48%!important;max-width:48%!important;margin-left:0!important}.about-wrap.sp-wpcp-help .feature-section .col{margin-top:20px}}@media (max-width:960px){.sp-wpc-help .sp-wpc-upgrade-sticky-footer{width:calc(100%)}}@media only screen and (max-width:500px){.about-wrap .three-col .col{min-width:100%!important}.sp-wpcf-upgrade .wp-badge{background-position-x:center}}.spwpc-copy-btn{width:16px;margin-left:13px;position:absolute;top:50%;margin-top:-8px}.spwpc-after-copy-text,.spwpc-pagination-not-work{bottom:0;opacity:0;z-index:9999999;position:fixed;width:230px;left:180px;text-align:center;padding:15px 15px;line-height:15px;color:#fff;border-radius:3px;background:#32373c;border:1px solid #32373c}.spwpc-pagination-not-work{width:280px}.spwpc-after-copy-text .fa-check-circle,.spwpc-pagination-not-work .fa-check-circle{font-size:14px;margin-right:2px;color:#5db62e}#sp_wpcf_live_preview #poststuff .wpcp-carousel-wrapper .sp-wpcpro-section-title,#sp_wpcf_live_preview .wpcp-carousel-wrapper .sp-wpcpro-section-title{font-size:24px;line-height:28px;padding:0;font-weight:700}#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions .wpcp-post-title{font-size:20px;line-height:30px}#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions .wpcp-product-title a,#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions p{font-size:16px;line-height:26px}#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions ul li{font-size:14px;line-height:24px}#sp_wpcf_live_preview img{width:100%}
|
admin/preview/class-wp-carousel-free-preview.php
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The admin live preview.
|
4 |
+
*
|
5 |
+
* @link https://shapedplugin.com/
|
6 |
+
* @since 2.0.0
|
7 |
+
*
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/admin
|
10 |
+
*/
|
11 |
+
|
12 |
+
/**
|
13 |
+
* The admin preview.
|
14 |
+
*
|
15 |
+
* @package WP_Carousel_Free
|
16 |
+
* @subpackage WP_Carousel_Free/admin
|
17 |
+
* @author ShapedPlugin <support@shapedplugin.com>
|
18 |
+
*/
|
19 |
+
class WP_Carousel_Free_Preview {
|
20 |
+
/**
|
21 |
+
* Initialize the class and set its properties.
|
22 |
+
*
|
23 |
+
* @since 2.0.0
|
24 |
+
*/
|
25 |
+
public function __construct() {
|
26 |
+
$this->wpcf_preview_action();
|
27 |
+
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Public Action
|
31 |
+
*
|
32 |
+
* @return void
|
33 |
+
*/
|
34 |
+
private function wpcf_preview_action() {
|
35 |
+
// admin Preview.
|
36 |
+
add_action( 'wp_ajax_sp_wpcf_preview_meta_box', array( $this, 'wpcf_backend_preview' ) );
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Function Backed preview.
|
41 |
+
*
|
42 |
+
* @since 2.0.0
|
43 |
+
*/
|
44 |
+
public function wpcf_backend_preview() {
|
45 |
+
$nonce = isset( $_POST['ajax_nonce'] ) ? sanitize_text_field( wp_unslash( $_POST['ajax_nonce'] ) ) : '';// phpcs:ignore
|
46 |
+
if ( ! wp_verify_nonce( $nonce, 'wpcf_metabox_nonce' ) ) {
|
47 |
+
return;
|
48 |
+
}
|
49 |
+
|
50 |
+
$setting_data = array();
|
51 |
+
// XSS ok.
|
52 |
+
// No worries, This "POST" requests is sanitizing in the below array map.
|
53 |
+
$data = ! empty( $_POST['data'] ) ? wp_unslash( $_POST['data'] ) : ''; // phpcs:ignore
|
54 |
+
parse_str( $data, $setting_data );
|
55 |
+
|
56 |
+
$post_id = intval( $setting_data['post_ID'] );
|
57 |
+
$upload_data = $setting_data['sp_wpcp_upload_options'];
|
58 |
+
$shortcode_data = $setting_data['sp_wpcp_shortcode_options'];
|
59 |
+
$main_section_title = $setting_data['post_title'];
|
60 |
+
|
61 |
+
echo '<style>';
|
62 |
+
$the_wpcf_dynamic_css = '';
|
63 |
+
include WPCAROUSELF_PATH . '/public/dynamic-style.php';
|
64 |
+
$the_wpcf_dynamic_css .= trim( html_entity_decode( wpcf_get_option( 'wpcp_custom_css' ) ) );
|
65 |
+
include WPCAROUSELF_PATH . '/public/responsive.php';
|
66 |
+
echo $the_wpcf_dynamic_css;
|
67 |
+
echo '</style>';
|
68 |
+
WP_Carousel_Free_Shortcode::wpcf_html_show( $upload_data, $shortcode_data, $post_id, $main_section_title );
|
69 |
+
die();
|
70 |
+
}
|
71 |
+
}
|
72 |
+
new WP_Carousel_Free_Preview();
|
admin/views/help.php
CHANGED
@@ -82,7 +82,7 @@ class WP_Carousel_Free_Help {
|
|
82 |
</div>
|
83 |
</div>
|
84 |
<div class="video-area">
|
85 |
-
<iframe width="560" height="315" src="https://www.youtube.com/embed/
|
86 |
</div>
|
87 |
<div class="content-area">
|
88 |
<div class="container">
|
82 |
</div>
|
83 |
</div>
|
84 |
<div class="video-area">
|
85 |
+
<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list=PLoUb-7uG-5jO_zo3exhqUNlZ7h0FQVJTt" frameborder="0" allowfullscreen=""></iframe>
|
86 |
</div>
|
87 |
<div class="content-area">
|
88 |
<div class="container">
|
admin/views/metabox-config.php
CHANGED
@@ -15,6 +15,33 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
15 |
//
|
16 |
$wpcp_carousel_content_source_settings = 'sp_wpcp_upload_options';
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
//
|
19 |
// Create a metabox.
|
20 |
//
|
15 |
//
|
16 |
$wpcp_carousel_content_source_settings = 'sp_wpcp_upload_options';
|
17 |
|
18 |
+
/**
|
19 |
+
* Preview metabox.
|
20 |
+
*
|
21 |
+
* @param string $prefix The metabox main Key.
|
22 |
+
* @return void
|
23 |
+
*/
|
24 |
+
SP_WPCF::createMetabox(
|
25 |
+
'sp_wpcf_live_preview',
|
26 |
+
array(
|
27 |
+
'title' => __( 'Live Preview', 'wp-carousel-free' ),
|
28 |
+
'post_type' => 'sp_wp_carousel',
|
29 |
+
'show_restore' => false,
|
30 |
+
'context' => 'normal',
|
31 |
+
)
|
32 |
+
);
|
33 |
+
|
34 |
+
SP_WPCF::createSection(
|
35 |
+
'sp_wpcf_live_preview',
|
36 |
+
array(
|
37 |
+
'fields' => array(
|
38 |
+
array(
|
39 |
+
'type' => 'preview',
|
40 |
+
),
|
41 |
+
),
|
42 |
+
)
|
43 |
+
);
|
44 |
+
|
45 |
//
|
46 |
// Create a metabox.
|
47 |
//
|
admin/views/premium.php
CHANGED
@@ -154,7 +154,7 @@ class WP_Carousel_Free_Upgrade {
|
|
154 |
<div class="video-area text-center">
|
155 |
<img src="<?php echo esc_url( WPCAROUSELF_URL ) . 'admin/img/images/premium/wpcp-vector-1.svg'; ?>" alt="">
|
156 |
<div class="video-button">
|
157 |
-
<a class="js-video-button" href="#" data-channel="youtube" data-video-url="//www.youtube.com/embed/
|
158 |
<span><i class="fa fa-play"></i></span>
|
159 |
</a>
|
160 |
</div>
|
154 |
<div class="video-area text-center">
|
155 |
<img src="<?php echo esc_url( WPCAROUSELF_URL ) . 'admin/img/images/premium/wpcp-vector-1.svg'; ?>" alt="">
|
156 |
<div class="video-button">
|
157 |
+
<a class="js-video-button" href="#" data-channel="youtube" data-video-url="//www.youtube.com/embed/j8EJnYpZmAA">
|
158 |
<span><i class="fa fa-play"></i></span>
|
159 |
</a>
|
160 |
</div>
|
admin/views/sp-framework/assets/css/style.css
CHANGED
@@ -3661,4 +3661,46 @@ Advanced Typography Field*/
|
|
3661 |
#sp_wpcp_shortcode_options .wpcf-content {
|
3662 |
border-top: 1px solid #e5e5e5;
|
3663 |
box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.04);
|
3664 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3661 |
#sp_wpcp_shortcode_options .wpcf-content {
|
3662 |
border-top: 1px solid #e5e5e5;
|
3663 |
box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.04);
|
3664 |
+
}
|
3665 |
+
|
3666 |
+
/*
|
3667 |
+
Live Preview.
|
3668 |
+
*/
|
3669 |
+
.post-type-sp_wp_carousel #sp__wpcf-show-preview {
|
3670 |
+
position: fixed;
|
3671 |
+
right: 144px;
|
3672 |
+
bottom: 30px;
|
3673 |
+
z-index: 1001;
|
3674 |
+
width: 155px;
|
3675 |
+
text-align: center;
|
3676 |
+
padding: 10px 0px;
|
3677 |
+
background: #54b154;
|
3678 |
+
color: #fff;
|
3679 |
+
border-radius: 3px;
|
3680 |
+
text-decoration: none;
|
3681 |
+
display: block;
|
3682 |
+
font-weight: 500;
|
3683 |
+
text-transform: uppercase;
|
3684 |
+
letter-spacing: 0.2px;
|
3685 |
+
margin: 0;
|
3686 |
+
box-sizing: border-box;
|
3687 |
+
border-color: #44a944;
|
3688 |
+
overflow: hidden;
|
3689 |
+
}
|
3690 |
+
|
3691 |
+
#sp_wpcf_live_preview.postbox .handle-order-higher, #sp_wpcf_live_preview.postbox .handle-order-lower{
|
3692 |
+
display: none;
|
3693 |
+
}
|
3694 |
+
#sp-wpcf-preview-box{
|
3695 |
+
overflow-x: auto;
|
3696 |
+
padding: 0 20px;
|
3697 |
+
resize: vertical;
|
3698 |
+
width: auto;
|
3699 |
+
height: auto;
|
3700 |
+
min-height: 200px;
|
3701 |
+
|
3702 |
+
}
|
3703 |
+
#wpcf-section-sp_wpcf_live_preview_0{
|
3704 |
+
display: block;
|
3705 |
+
}
|
3706 |
+
|
admin/views/sp-framework/assets/css/style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wpcf{position:relative}.wpcf label{padding:0;margin:0;display:inline-block}.wpcf-ab-icon{top:2px}#screen-meta-links+.wpcf-options{margin-top:40px}.wpcf-options{margin-top:20px;margin-right:20px}.wpcf-header{position:relative}.wpcf-header-inner{padding:25px;transition:box-shadow .3s ease}.wpcf-header-inner h1 svg{float:left;height:26px;width:28px;margin-right:8px;padding-top:6px}.wpcf-header-inner h1{float:left;margin:0;font-size:22px;color:#444;font-weight:600;line-height:35px}.wpcf-header-inner h1 small{font-size:11px;font-weight:500}.wpcf-sticky .wpcf-header-inner{position:fixed;z-index:99;top:32px;box-shadow:0 5px 10px rgba(0,0,0,.1)}.wpcf-buttons{float:right}.wpcf-buttons .button{margin:0 2px;line-height:26px}.wpcf-buttons .button:focus{outline:0!important;box-shadow:none!important}.wpcf-buttons .wpcf-save{min-width:72px}.wpcf-header-left{float:left}.wpcf-header-right{float:right}.wpcf-nav:not(.wpcf-nav-inline){display:block;position:relative;z-index:10;float:left}.wpcf-nav ul{clear:left;margin:0;list-style-type:none}.wpcf-nav ul li{margin-bottom:0}.wpcf-nav ul li a{font-size:13px;position:relative;display:block;padding:14px 12px;text-decoration:none;transition-property:color,background;transition-duration:.2s;transition-timing-function:ease}.wpcf-nav .fa{width:20px;margin-right:5px;font-size:14px;text-align:center}.wpcf-nav ul li a:focus{outline:0;box-shadow:none}.wpcf-nav ul li .wpcf-arrow:after{content:"\f054";display:inline-block;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:9px;line-height:1;position:absolute;right:10px;top:50%;margin-top:-4px}.wpcf-nav ul li.wpcf-tab-expanded .wpcf-arrow:after{transform:rotate(90deg)}#wpcf_shortcode_options .wpcf-theme-light .wpcf-nav ul li .wpcf-active i,.sp-wpcf-options.wpcf-theme-light .wpcf-nav ul li .wpcf-active i{color:#178087}.wpcf-nav ul li.wpcf-tab-expanded ul{display:block}.wpcf-nav ul ul{display:none;position:relative}.wpcf-nav ul ul li a{font-size:12px;padding:12px 14px 12px 24px}.wpcf-nav .wpcf-tab-icon{width:20px;margin-right:5px;font-size:13px;text-align:center}.wpcf-nav .wpcf-label-error{margin-left:4px;vertical-align:top}.wpcf-nav-normal{width:235px}.wpcf-nav-normal+.wpcf-content{margin-left:235px}.wpcf-nav-inline ul li{display:inline-block;vertical-align:top}.wpcf-nav-background{position:absolute;top:0;left:0;bottom:0;z-index:9;width:235px}.wpcf-wrapper{position:relative}.wpcf-content{background-color:#fff;background-color:#fff;-moz-transition:opacity .2s;-o-transition:opacity .2s;-webkit-transition:opacity .2s;transition:opacity .2s}.wpcf-sections{float:left;width:100%}.wpcf-section-title{display:none;padding:20px 30px;background-color:#f5f5f5;border-top:1px solid #eee;border-bottom:1px solid #eee}.wpcf-section-title h3{margin:0;padding:0;font-size:13px;font-weight:700;text-transform:uppercase}.wpcf-section-title .wpcf-section-icon{margin-right:5px}.wpcf-footer{padding:20px;font-size:11px}.wpcf-copyright{float:left;margin-top:5px}.wpcf-search-all .wpcf-nav,.wpcf-search-all .wpcf-nav-background,.wpcf-show-all .wpcf-nav,.wpcf-show-all .wpcf-nav-background{display:none}.wpcf-search-all .wpcf-content,.wpcf-show-all .wpcf-content{margin-left:0}.wpcf-search-all .wpcf-section,.wpcf-search-all .wpcf-section-title,.wpcf-show-all .wpcf-section-title{display:block!important}.wpcf-search-all .wpcf-section-title{display:none!important}.wpcf-expand-all{float:left;padding:0 8px;margin-right:4px;z-index:1;font-size:13px;line-height:30px;cursor:pointer;user-select:none;border-radius:2px;transition:all .2s}.wpcf-expand-all span{font-size:11px;vertical-align:middle}.wpcf-search{float:left}.wpcf-search input{margin:0 2px 0 0;border:none;font-size:12px;line-height:30px;min-height:30px;text-align:inherit;padding:0 10px;border-radius:2px;box-shadow:none}.wpcf-search input:focus{box-shadow:none}.wpcf-saving .wpcf-content{cursor:default;pointer-events:none;opacity:.5}.wpcf-metabox{margin:-6px -12px -12px -12px}.wpcf-metabox .wpcf-field{padding:20px}.wpcf-metabox .wpcf-section-title{padding:20px}.block-editor-page .wpcf-metabox{margin:-6px -14px -14px -14px}.block-editor-editor-skeleton__content .wpcf-metabox{border-left:1px solid #e2e4e7;border-right:1px solid #e2e4e7}.wpcf-sections-reset{float:left;width:100%;text-align:right;border-top:1px solid #eee}.wpcf-sections-reset .wpcf-button-cancel,.wpcf-sections-reset input{display:none}.wpcf-sections-reset label{padding:10px}.wpcf-sections-reset span{-webkit-user-select:none;user-select:none}.wpcf-sections-reset input:checked~.wpcf-button-reset{display:none}.wpcf-sections-reset input:checked~.wpcf-button-cancel{display:inline-block}#side-sortables .wpcf-section-title{padding:12px}#side-sortables .wpcf-field{padding:10px 15px}#side-sortables .wpcf-field .wpcf-title{float:none;width:100%;margin-bottom:6px}#side-sortables .wpcf-field .wpcf-fieldset{float:none;width:100%}#side-sortables .wpcf-field-text input{width:100%}#side-sortables .wpcf-notice{padding:10px 15px}.wpcf-comment-metabox{margin:-6px -12px -12px -12px}.wpcf-comment-metabox .wpcf-field{padding:20px}.wpcf-comment-metabox .wpcf-section-title{padding:20px}.wpcf-tooltip{position:absolute;z-index:5000001;font-size:12px;line-height:1.4;text-align:center;text-decoration:none;padding:6px 12px;max-width:200px;color:#fff;background-color:#000;background-color:rgba(0,0,0,.85);border-radius:4px}.wpcf-theme-dark .wpcf-header-inner{background-color:#050505}.wpcf-theme-dark .wpcf-header-inner h1{color:#fff}.wpcf-theme-dark .wpcf-header-inner h1 small{color:#555}.wpcf-theme-dark .wpcf-expand-all{color:#999;background-color:#222}.wpcf-theme-dark .wpcf-expand-all:hover{color:#fff;background-color:#333}.wpcf-theme-dark .wpcf-search input{color:#fff;background-color:#222}.wpcf-theme-dark .wpcf-search:focus{background-color:#444}.wpcf-theme-dark .wpcf-search::-webkit-input-placeholder{color:#666}.wpcf-theme-dark .wpcf-nav ul li a{color:#999;border-color:#2f2f2f;background-color:#222}.wpcf-theme-dark .wpcf-nav ul li a:hover{color:#fff}.wpcf-theme-dark .wpcf-nav ul li .wpcf-active i{color:#178087}.wpcf-theme-dark .wpcf-nav ul li .wpcf-active{color:#fff;background-color:#111}.wpcf-theme-dark .wpcf-nav ul ul li a{border-color:#2f2f2f;background-color:#191919}.wpcf-theme-dark .wpcf-nav ul ul li .wpcf-active{background-color:#101010}.wpcf-theme-dark .wpcf-nav ul ul:before{background-color:rgba(34,34,34,.75)}.wpcf-theme-dark .wpcf-nav>ul>li:last-child>a{border:none}.wpcf-theme-dark .wpcf-nav-normal ul li a{border-bottom-width:1px;border-bottom-style:solid}.wpcf-theme-dark .wpcf-nav-normal ul li .wpcf-active:after{content:" ";position:absolute;right:0;top:50%;height:0;width:0;pointer-events:none;border:solid transparent;border-right-color:#fff;border-width:4px;margin-top:-4px}.wpcf-theme-dark .wpcf-nav-inline{background-color:#222}.wpcf-theme-dark .wpcf-nav-inline ul li a{text-align:center;border-right-width:1px;border-right-style:solid}.wpcf-theme-dark .wpcf-nav-inline ul li .wpcf-active:after{content:" ";position:absolute;left:50%;bottom:0;height:0;width:0;pointer-events:none;border:solid transparent;border-bottom-color:#fff;border-width:4px;margin-left:-4px}.wpcf-theme-dark .wpcf-nav-background{background-color:#222}.wpcf-theme-dark .wpcf-footer{color:#555;background-color:#050505}.wpcf-theme-light .wpcf-container{border:1px solid #ccd0d4;box-shadow:0 0 15 rgba(0,0,0,.04)}.wpcf-theme-light .wpcf-header-inner{background-color:#f2f2f2;border-bottom:1px solid #cecece;padding:22px 28px}.wpcf-theme-light .wpcf-header-inner h1 small{color:#999}.wpcf-theme-light .wpcf-expand-all{color:#999;background-color:#eee}.wpcf-theme-light .wpcf-expand-all:hover{color:#555}.wpcf-theme-light .wpcf-search input{color:#555;background-color:#eee}.wpcf-theme-light .wpcf-search input::-webkit-input-placeholder{color:#999}.wpcf-theme-light .wpcf-nav ul li a{background-color:#178087;border-top:1px solid #178087;border-right:1px solid #e2e2e1;border-bottom:1px solid #ddd;color:#fff;font-size:13px;font-weight:600;line-height:1.4;padding:14px 15px;text-transform:uppercase}.wpcf-theme-light .wpcf-nav ul li .wpcf-active{color:#000;background-color:#fff}.wpcf-theme-light .wpcf-nav ul ul li a{background-color:#eee}.wpcf-theme-light .wpcf-nav-normal>ul{margin-right:-1px;margin-bottom:-1px}.wpcf-theme-light .wpcf-nav-normal>ul li a{border-bottom:1px solid #ccd0d4;border-right:1px solid #ccd0d4}.wpcf-theme-light .wpcf-nav-normal>ul li .wpcf-active{border-right-color:#fff}.wpcf-theme-light .wpcf-nav-inline{background-color:#f5f5f5;border-bottom:1px solid #ccd0d4}.wpcf-theme-light .wpcf-nav-inline>ul{margin-bottom:-1px;margin-right:-1px}.wpcf-theme-light .wpcf-nav-inline>ul li a{text-align:center;border-bottom:1px solid #ccd0d4}.wpcf-theme-light .wpcf-nav-inline>ul li .wpcf-active i{color:#178087}.wpcf-theme-light .wpcf-nav-inline>ul li .wpcf-active{border-bottom:1px solid #fff;border-top:1px solid #178087;box-shadow:0 3px 0 0 #178087 inset;border-bottom-color:#fff}.wpcf-theme-light .wpcf-nav-inline>ul ul{display:none!important}.wpcf-theme-light .wpcf-nav-inline .wpcf-arrow:after{display:none}.wpcf-theme-light .wpcf-nav-background{background-color:#f5f5f5;border-right:1px solid #ccd0d4}.wpcf-theme-light .wpcf-footer{color:#555;border-top:1px solid #ccd0d4;background-color:#f5f5f5;background:linear-gradient(#fafafa,#f5f5f5)}.wpcf-field{position:relative;padding:30px}.wpcf-field p:first-child{margin-top:0}.wpcf-field p:last-child{margin-bottom:0}.wpcf-field:after,.wpcf-field:before{content:" ";display:table}.wpcf-field:after{clear:both}.wpcf-field h4{margin-top:0}.wpcf-field .wpcf-title{position:relative;width:20%;float:left}.wpcf-field .wpcf-title h4{margin:0;color:#23282d}.wpcf-field .wpcf-fieldset{float:right;width:calc(80% - 20px)}.wpcf-pseudo-field{padding:0 5px 0 0!important;display:inline-block}.wpcf-pseudo-field+.wpcf-pseudo-field{border:0}.wpcf-pseudo-field pre{display:none}.wpcf-field.wpcf-field-background .wpcf--preview{font-size:16px;line-height:20px;padding:20px;color:#222;border:1px solid #eee;background-color:#fff;height:150px;border-radius:2.5px;user-select:none;-webkit-user-select:none;transition:background-color .2s,border-color .2s}.wpcf-field.wpcf-field-background .wpcf--block-preview{cursor:pointer;position:relative;overflow:hidden;margin-top:10px;width:100%}.wpcf-field.wpcf-field-background .wpcf--black-background{border-color:#000;background-color:#000}.wpcf-field.wpcf-field-background .wpcf--toggle{position:absolute;top:5px;right:10px;color:#999}.wpcf-field-border .wpcf--inputs,.wpcf-field-column .wpcf--inputs,.wpcf-field-dimensions .wpcf--inputs,.wpcf-field-dimensions_advanced .wpcf--inputs,.wpcf-field-spacing .wpcf--inputs{float:left;display:flex;flex-wrap:wrap}.wpcf-field-border .wpcf--input,.wpcf-field-column .wpcf--input,.wpcf-field-dimensions .wpcf--input,.wpcf-field-dimensions_advanced .wpcf--input,.wpcf-field-spacing .wpcf--input{display:flex;padding-right:6px;padding-bottom:4px;box-sizing:border-box}.wpcf-field-border .wpcf--input select,.wpcf-field-column .wpcf--input select,.wpcf-field-dimensions .wpcf--input select,.wpcf-field-dimensions_advanced .wpcf--input select,.wpcf-field-spacing .wpcf--input select{margin:0}.wpcf-field-border .wpcf--input input,.wpcf-field-column .wpcf--input input,.wpcf-field-dimensions .wpcf--input input,.wpcf-field-dimensions_advanced .wpcf--input input,.wpcf-field-spacing .wpcf--input input{position:relative;z-index:1;margin:0;width:65px;max-width:100%;text-align:center;padding:0}.wpcf-field-border .wpcf--color,.wpcf-field-column .wpcf--color,.wpcf-field-dimensions .wpcf--color,.wpcf-field-dimensions_advanced .wpcf--color,.wpcf-field-spacing .wpcf--color{float:left}.wpcf-field-border .wpcf--label,.wpcf-field-column .wpcf--label,.wpcf-field-dimensions .wpcf--label,.wpcf-field-dimensions_advanced .wpcf--label,.wpcf-field-spacing .wpcf--label{display:flex;flex-direction:column;justify-content:center;user-select:none;min-width:20px;max-width:100%;padding:0 4px;font-size:12px;text-align:center;color:#555;border:1px solid #7b776c;background-color:#f5f5f5}.wpcf-field-border .wpcf--icon,.wpcf-field-column .wpcf--icon,.wpcf-field-dimensions .wpcf--icon,.wpcf-field-dimensions_advanced .wpcf--icon,.wpcf-field-spacing .wpcf--icon{border-right:0;border-radius:4px 0 0 4px}.wpcf-field-border .wpcf--icon+input,.wpcf-field-column .wpcf--icon+input,.wpcf-field-dimensions .wpcf--icon+input,.wpcf-field-dimensions_advanced .wpcf--icon+input,.wpcf-field-spacing .wpcf--icon+input{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.wpcf-field-border .wpcf--unit,.wpcf-field-column .wpcf--unit,.wpcf-field-dimensions .wpcf--unit,.wpcf-field-dimensions_advanced .wpcf--unit,.wpcf-field-spacing .wpcf--unit{border-left:0;border-radius:0 4px 4px 0}.wpcf-field-border .wpcf--is-unit,.wpcf-field-column .wpcf--is-unit,.wpcf-field-dimensions .wpcf--is-unit,.wpcf-field-dimensions_advanced .wpcf--is-unit,.wpcf-field-spacing .wpcf--is-unit{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.wpcf-field-button_set .wpcf--buttons{display:inline-block}.wpcf-field-button_set .wpcf--button{position:relative;z-index:1;float:left;cursor:pointer;padding:7px 14px;min-width:16px;text-align:center;color:#555;border:1px solid #ccc;background-color:#f7f7f7;user-select:none;box-shadow:0 1px 0 rgba(0,0,0,.1)}.wpcf-field-button_set .wpcf--button:first-child{border-radius:4px 0 0 4px}.wpcf-field-button_set .wpcf--button:last-child{border-radius:0 4px 4px 0}.wpcf-field-button_set .wpcf--button:not(:first-child){margin-left:-1px}.wpcf-field-button_set .wpcf--button:hover{background-color:#eee}.wpcf-field-button_set .wpcf--active,.wpcf-field-button_set .wpcf--active:hover{z-index:2;color:#fff;border-color:#006799;background-color:#0085ba}.wpcf-field-button_set input{display:none}.wpcf-field-checkbox ul,.wpcf-field-radio ul{margin:0;padding:0;list-style-type:none;overflow-y:auto;max-height:305px}.wpcf-field-checkbox ul li,.wpcf-field-radio ul li{margin-bottom:6px}.wpcf-field-checkbox ul ul,.wpcf-field-radio ul ul{max-height:none}.wpcf-field-checkbox ul ul li,.wpcf-field-radio ul ul li{margin-left:8px}.wpcf-field-checkbox ul ul li:first-child,.wpcf-field-radio ul ul li:first-child{margin-left:0}.wpcf-field-checkbox input,.wpcf-field-radio input{margin:0 1px}.wpcf-field-checkbox .wpcf--inline-list li,.wpcf-field-radio .wpcf--inline-list li{display:inline-block;margin-right:15px}.wpcf-field-checkbox .wpcf--text,.wpcf-field-radio .wpcf--text{margin-left:5px;vertical-align:middle}.wpcf-field-checkbox .wpcf-checker,.wpcf-field-radio .wpcf-checker{cursor:pointer}.wpcf-field-code_editor .CodeMirror{width:100%;height:400px}.wpcf-field-code_editor .cm-s-default{border:1px solid #ccd0d4}.wpcf-field-code_editor textarea{width:100%;height:400px}.wpcf-field-color>input{opacity:.75;width:115px;max-width:100%}.wpcf-field-color .button.wp-picker-clear{padding:0 8px;margin-left:6px;line-height:2.54545455;min-height:30px}.wpcf-field-color_group .wpcf--left{float:left;margin-right:10px;margin-bottom:5px}.wpcf-field-color_group .wpcf--title{color:#999;margin-bottom:5px}.wpcf-field-gallery input{display:none}.wpcf-field-gallery ul{margin:0;padding:0;list-style-type:none}.wpcf-field-gallery ul.sp-gallery-images li{display:inline-block;position:relative;padding:4px;margin:0 5px 10px 0;border:1px solid #ccc;background-color:#f9f9f9;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:0 1px 0 rgba(0,0,0,.08);-webkit-box-shadow:0 1px 0 rgba(0,0,0,.08);box-shadow:0 1px 0 rgba(0,0,0,.08)}.wpcf-field-gallery ul.sp-gallery-images li img{max-height:100px;display:inline-block;vertical-align:middle}.wpcf-field-gallery .button,.wpcf-field-gallery .button:focus,.wpcf-field-gallery .button:hover{margin-right:5px;margin-bottom:5px;width:110px;height:110px;text-align:center;line-height:15px;color:#fff;border:none;border-radius:2px;display:flex;justify-content:center;flex-direction:column;font-weight:600}.wpcf-field-gallery .button-primary.wpcf-button{background:#4eb631;box-shadow:none;text-shadow:none}.wpcf-field-gallery .button.wpcf-edit-gallery{background:#6a7885}.wpcf-field-gallery .button i{font-size:24px;margin-bottom:10px}.wpcf-field-gallery a,.wpcf-field-gallery ul.sp-gallery-images li{display:inline-block;padding:4px;border:1px solid #ccc;margin:0 5px 10px 0;background-color:#f9f9f9;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:0 1px 0 rgba(0,0,0,.08);-webkit-box-shadow:0 1px 0 rgb(0 0 0 / 8%);box-shadow:0 1px 0 rgb(0 0 0 / 8%)}.wpcf-field-gallery ul li img{max-height:100px;display:inline-block;vertical-align:middle}.wpcf-field-gallery a,.wpcf-field-gallery li{float:left}.wpcf-field-icon_select .wpcf--icon,.wpcf-field-image_select .wpcf--image{display:inline-block;margin:0 5px 5px 0}.wpcf-field-icon_select .wpcf--inline-list .wpcf--icon,.wpcf-field-image_select .wpcf--inline-list .wpcf--image{display:inline-block}.wpcf-field-icon_select figure,.wpcf-field-image_select figure{cursor:pointer;position:relative;display:inline-block;max-width:100%;margin:0;vertical-align:bottom;border:2px solid transparent;background-color:#fff;user-select:none;transition:all .2s}.wpcf-field-icon_select figure:before,.wpcf-field-image_select figure:before{position:absolute;top:0;left:0;text-align:center;font-size:10px;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;content:"\f00c";width:16px;height:16px;line-height:14px;opacity:0;color:#fff;background-color:#222;transition:opacity .2s}.wpcf-field-icon_select label,.wpcf-field-image_select label{display:inline-block;margin:5px}.wpcf-field-icon_select figure{padding:8px 10px;font-size:20px;line-height:20px}.wpcf-field-icon_select .wpcf--active figure{border-color:#52b3d9;opacity:1}.wpcf-field-icon_select .wpcf--active figure:before,.wpcf-field-image_select .wpcf--active figure:before{opacity:1}.wpcf-field-icon_select figure,.wpcf-field-image_select img{max-width:100%;height:auto;vertical-align:top}.wpcf-field-icon_select input,.wpcf-field-image_select input{display:none}.wpcf-field-media .wpcf--placeholder{display:flex;align-items:flex-start}.wpcf-field-media .wpcf--placeholder input{width:100%;margin:0}.wpcf-field-media .button{margin-left:5px}.wpcf-field-media .hidden+.button{margin-left:0}.wpcf-field-media .wpcf--preview{position:relative}.wpcf-field-select .wpcf-fieldset{min-height:30px}.wpcf-field-select .wpcf-chosen{display:none}.wpcf-field-select select{max-width:100%;margin:0;float:left}.wpcf-field-select .wpcf-hide-select{display:none!important}.wpcf-field-slider .wpcf--wrap{display:flex;align-items:center}.wpcf-field-slider .wpcf--input{display:flex}.wpcf-field-slider .wpcf--unit{display:flex;justify-content:center;flex-direction:column;user-select:none;padding:0 6px;font-size:11px;line-height:1;border-radius:0 4px 4px 0;color:#555;border:1px solid #7e8993;border-left:0;background-color:#f5f5f5}.wpcf-field-slider .wpcf-slider-ui{margin-right:15px}.wpcf-field-slider input[type=number]{position:relative;z-index:1;margin:0;width:50px;text-align:center}.wpcf-field-slider .wpcf--is-unit{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.wpcf-field-slider .ui-slider{position:relative;width:100%;height:3px;border:none;background:#ddd;border-radius:2px}.wpcf-field-slider .ui-slider-range{height:3px;border:none;background:#333;border-radius:2px}.wpcf-field-slider .ui-slider-handle{position:absolute;width:16px;height:16px;top:-7px;margin-left:-8px;border:none;background:#333;border-radius:2px}.wpcf-field-slider .ui-slider-handle:hover,.wpcf-field-slider .ui-state-active{cursor:pointer;background:#111}.wpcf-field-spinner .wpcf--spin{display:flex;float:left}.wpcf-field-spinner .ui-spinner{display:flex}.wpcf-field-spinner .ui-button{display:flex;flex-direction:column;justify-content:center;text-align:center;min-width:20px;padding:0 4px;color:#555;border:1px solid #7e8993;background-color:#f5f5f5}.wpcf-field-spinner .ui-spinner-button{cursor:pointer}.wpcf-field-spinner .ui-spinner-button:hover{background-color:#e7e7e7}.wpcf-field-spinner .ui-spinner-button:active{background-color:#ddd}.wpcf-field-spinner .ui-spinner-button:before{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:14px;line-height:14px}.wpcf-field-spinner .ui-spinner-down{order:1;border-right:0;border-radius:4px 0 0 4px}.wpcf-field-spinner .ui-spinner-down:before{content:"\f0d9"}.wpcf-field-spinner .ui-spinner-input{order:2}.wpcf-field-spinner .wpcf--unit{order:3;border-left:0;user-select:none}.wpcf-field-spinner .ui-spinner-up{order:4;border-left:0;border-radius:0 4px 4px 0}.wpcf-field-spinner .ui-spinner-up:before{content:"\f0da"}.wpcf-field-spinner input{position:relative;z-index:1;width:50px;text-align:center;margin:0;padding:0 8px;border-radius:0}.wpcf-field-spinner .ui-button-icon,.wpcf-field-spinner .ui-button-icon-space,.wpcf-field-spinner .ui-button-text{display:none}.wpcf-field-switcher .wpcf--switcher{float:left;cursor:pointer;position:relative;width:60px;height:26px;padding:0;margin:0;overflow:hidden;border-radius:4px;background-color:#ed6f6f;user-select:none;-webkit-user-select:none}.wpcf-field-switcher .wpcf--ball{position:absolute;top:4px;left:4px;width:24px;height:18px;background-color:#fff;border-radius:4px;transition:all .1s;box-shadow:1px 1px 1px rgba(0,0,0,.15)}.wpcf-field-switcher .wpcf--off,.wpcf-field-switcher .wpcf--on{position:absolute;top:0;left:0;right:0;font-size:11px;line-height:26px;font-weight:500;font-style:normal;text-align:center;text-transform:uppercase;color:#fff;padding-right:28px;opacity:0;transition:all .1s}.wpcf-field-switcher .wpcf--off{padding-right:0;padding-left:28px;opacity:1}.wpcf-field-switcher .wpcf--active{background:#4fb845}.wpcf-field-switcher .wpcf--active .wpcf--on{opacity:1}.wpcf-field-switcher .wpcf--active .wpcf--off{opacity:0}.wpcf-field-switcher .wpcf--active .wpcf--ball{left:100%;margin-left:-28px}.wpcf-field-switcher .wpcf--label{float:left;margin-top:4px;margin-left:8px;font-weight:400;color:#999}.wpcf-field-text input{width:340px;margin:0;min-height:36px;float:left}.wpcf-field-textarea textarea{width:100%;max-width:100%;min-height:125px}.wpcf-field-textarea .wpcf-shortcode-button{margin-bottom:10px;margin-right:5px}.wpcf-field-typography select,.wpcf-field-typography textarea{margin:0;min-width:100%;max-width:100%}.wpcf-field-typography .wpcf--title{color:#777;margin:0 0 2px 0;font-size:12px}.wpcf-field-typography .wpcf--title small{vertical-align:top}.wpcf-field-typography .wpcf--blocks{display:flex;flex-wrap:wrap}.wpcf-field-typography .wpcf--block.wpcf--block-font-color{overflow:hidden;float:left}.wpcf-field-typography .wpcf--block{flex:1;max-width:100%;padding-right:6px;padding-bottom:6px}.wpcf-field-typography .wpcf--input{margin:0;min-width:100%}.wpcf-field-typography .wpcf--input-wrap{position:relative}.wpcf-field-typography .wpcf--unit{position:absolute;z-index:1;right:4px;top:4px;bottom:4px;padding:2px 6px;color:#666;font-size:11px;line-height:1;border-radius:2px;background:#eee;user-select:none;display:flex;justify-content:center;flex-direction:column}.wpcf-field-background .wpcf--preview,.wpcf-field-typography .wpcf--preview{font-size:16px;line-height:20px;padding:20px;color:#222;border:1px solid #eee;background-color:#fff;border-radius:2.5px;user-select:none;-webkit-user-select:none;transition:background-color .2s,border-color .2s}.wpcf-field-background .wpcf--block-preview,.wpcf-field-typography .wpcf--block-preview{cursor:pointer;position:relative;overflow:hidden;margin-top:10px;width:100%}.wpcf-field-typography .wpcf--black-background{border-color:#000;background-color:#000}.wpcf-field-typography .wpcf--toggle{position:absolute;top:5px;right:10px;color:#999}.wpcf-field-typography .wpcf--block-extra-styles{margin-top:5px}.wpcf-field-heading{font-size:1.5em;font-weight:700;color:#23282d;background-color:#f5f5f5}.wpcf-field-subheading{font-size:14px;font-weight:700;padding-top:17px;padding-bottom:17px;color:#23282d;background-color:#f7f7f7}.wpcf-field-submessage{padding:0!important;border:0!important}.wpcf-field-submessage+.wpcf-field{border-top:0!important}.wpcf-submessage{font-size:12px;padding:17px 30px;border-top:1px solid transparent;border-bottom:1px solid transparent}.wpcf-submessage-success{color:#3c763d;border-color:#d6e9c6;background-color:#dff0d8}.wpcf-submessage-info{color:#31708f;border-color:#bce8f1;background-color:#d9edf7}.wpcf-submessage-warning{color:#8a6d3b;border-color:#faebcc;background-color:#fcf8e3}.wpcf-submessage-danger{color:#a94442;border-color:#ebccd1;background-color:#f2dede}.wpcf-submessage-normal{color:#23282d;border-color:#eee;background-color:#f7f7f7}.wpcf-field-notice{background-color:transparent}.wpcf-notice{color:#999;font-style:italic;font-size:13px;padding:12px 12px 12px 0!important;border:none!important}.wpcf-notice-success{border-color:#46b450}.wpcf-notice-info{border-color:#339fd4}.wpcf-notice-warning{border-color:#ffbc00}.wpcf-notice-danger{border-color:#dc3232}.wpcf-notice-normal{border-color:#222}.wpcf-field.wpcf-field-notice.pro_notice{padding-top:0}.wpcf-field-number input{width:70px;margin:0;height:36px;line-height:34px;padding-left:12px;min-height:36px}.wpcf-field-number .wpcf--wrap{position:relative;float:left;width:100px}.wpcf-field-number .wpcf--unit{position:absolute;z-index:1;left:75px;top:4px;bottom:4px;padding:2px 6px;color:#666;font-size:11px;line-height:1;border-radius:2px;background:#eee;user-select:none;display:flex;justify-content:center;flex-direction:column}.wpcf-help{position:static;cursor:help;font-size:14px;color:#aaa;width:15px;line-height:28px;padding-left:5px;float:left}.wpcf-help .wpcf-help-text{display:none}.wpcf--preview{max-width:100%}.wpcf-image-preview{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;position:relative;padding:6px;max-width:120px;max-height:120px;min-width:40px;min-height:40px;margin-bottom:10px;text-align:center;border-radius:2px;border:1px solid #ccc;background-color:#f9f9f9;box-shadow:0 1px 0 rgba(0,0,0,.08)}.wpcf-image-preview i{cursor:pointer;position:absolute;z-index:1;right:4px;top:4px;font-size:14px;width:22px;height:22px;line-height:22px;text-align:center;text-decoration:none;color:#fff;background-color:#d33;opacity:.75;border-radius:2px;transition:all .2s}.wpcf-image-preview i:hover{opacity:1}.wpcf-image-preview i:focus{box-shadow:none}.wpcf-image-preview span{position:relative;overflow:hidden;display:flex;height:100%;width:100%}.wpcf-image-preview img{max-width:100%;height:auto;object-fit:contain}.wpcf-field-custom .wpcf-field{padding:0}.wpcf-field .chosen-container-single .chosen-single{height:28px;line-height:26px}.wpcf-field .chosen-container-single .chosen-single abbr{top:0;right:20px;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:12px;height:100%;width:18px;color:#aaa;text-align:center;background:0 0}.wpcf-field .chosen-container-single .chosen-single abbr:before{content:"\f00d"}.wpcf-field .chosen-container-single .chosen-single abbr:hover{color:#555}.wpcf-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:12px;height:100%;width:18px;color:#aaa;text-align:center;background:0 0}.wpcf-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before{content:"\f00d";display:inline-block;padding-top:3px}.wpcf-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{color:#555}.wpcf-field .chosen-container-single .chosen-single div b{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:14px;color:#aaa;background:0 0}.wpcf-field .chosen-container-single .chosen-single div b:before{content:"\f107"}.wpcf-field .chosen-container-single .chosen-single div b:hover{color:#555}.wpcf-field .chosen-container-multi .chosen-choices li.search-choice-placeholder{border:1px dashed #aaa;margin:3px 5px 3px 0}.wpcf-field .chosen-container-multi .ui-sortable li.search-choice span{cursor:move}.wpcf-field .chosen-container-active.chosen-with-drop .chosen-single div b:before{content:"\f106"}.wpcf-field .chosen-container-single .chosen-single-with-deselect span{margin-right:40px}.wpcf-field .chosen-container-single .chosen-search input[type=text]{background:0 0}.wpcf-field .chosen-container-single .chosen-search:before{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:11px;content:"\f002";position:absolute;right:12px;top:10px;color:#aaa}.wpcf-field .wp-picker-container{display:inline-block}.wpcf-field .wp-picker-container .wp-color-result.button{margin-bottom:0}.wpcf-field .wpcf--transparent-wrap{display:none;position:relative;top:-1px;width:235px;padding:9px 10px;border:1px solid #dfdfdf;border-top:none;background-color:#fff}.wpcf-field .wp-picker-active .wpcf--transparent-wrap{display:block}.wpcf-field .wpcf--transparent-slider{position:absolute;width:190px;margin-left:2px;height:18px}.wpcf-field .wpcf--transparent-slider .ui-slider-handle{position:absolute;top:-3px;bottom:-3px;z-index:5;border-color:#aaa;border-style:solid;border-width:4px 3px;width:10px;height:16px;margin:0 -5px;background:0 0;cursor:ew-resize;opacity:.9;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.2)}.wpcf-field .wpcf--transparent-slider .ui-slider-handle:before{content:" ";position:absolute;left:-2px;right:-2px;top:-3px;bottom:-3px;border:2px solid #fff;border-radius:3px}.wpcf-field .wpcf--transparent-offset{height:18px;width:200px;background:url(../images/checkerboard.png) repeat-y center left scroll #fff;border-radius:2px;box-shadow:inset 0 0 5px rgba(0,0,0,.4)}.wpcf-field .wpcf--transparent-text{position:absolute;top:12px;right:10px;width:30px;font-size:12px;line-height:12px;text-align:center;color:#999}.wpcf-field .wpcf--transparent-button{cursor:pointer;user-select:none;margin-top:10px;font-size:11px;text-align:center;border-radius:2px;padding:3px 7px;box-shadow:0 1px 0 rgba(0,0,0,.1);letter-spacing:.2px;color:#777;border:1px solid #ccc;background-color:#f7f7f7;transition:background-color .2s,border-color .2s,color .2s}.wpcf-field .wpcf--transparent-active .wp-color-result{background-image:url(../images/checkerboard.png);background-size:135px;background-position:center left;background-color:transparent!important}.wpcf-field .wpcf--transparent-active .wpcf--transparent-button{color:#fff;border-color:#3ea032;background-color:#4fb845}.wpcf-field .wpcf--transparent-active .fa:before{content:"\f205"}.wpcf-nav-menu-options{clear:both;float:left;width:100%}.wpcf-nav-menu-options>.wpcf-fields{margin-left:-10px;margin-top:10px;margin-bottom:10px;border-top:1px solid #eee;border-bottom:1px solid #eee}.wpcf-nav-menu-options>.wpcf-fields>.wpcf-field{padding:12px 14px 12px 12px}.wpcf-nav-menu-options>.wpcf-fields>.wpcf-field .wpcf-title{float:none;width:100%;margin-bottom:5px}.wpcf-nav-menu-options>.wpcf-fields>.wpcf-field .wpcf-fieldset{float:none;width:100%}.wpcf-nav-menu-options .wpcf-field-text input{width:100%}.wpcf-nav-menu-options .wpcf-field-notice .wpcf-notice{padding:15px}.wpcf-nav-menu-title{padding:12px 14px 12px 12px;background-color:#f5f5f5;border-top:1px solid #eee;border-bottom:1px solid #eee}.wpcf-nav-menu-title:first-child{border-top:0}.wpcf-nav-menu-title h4{margin:0;padding:0;color:#23282d}.wpcf-nav-menu-icon{margin-right:5px}.wpcf-subtitle-text{margin-top:6px;font-weight:400;color:#999;font-style:italic}.wpcf-desc-text{clear:both;float:left;width:100%;margin-top:6px;font-weight:400;color:#999;font-style:italic}.wpcf-error-text{margin-top:6px;color:#d02c21}.wpcf-before-text{margin-bottom:6px}.wpcf-after-text{margin-top:6px}.wpcf-metabox-hide{display:none!important}.wpcf-metabox-show{display:block!important}.wpcf-depend-hidden.wpcf-depend-on{display:none}.wpcf-depend-visible.wpcf-depend-on{display:block;opacity:.75;filter:grayscale(1);user-select:none;border-top:1px solid #eee}.wpcf-depend-visible.wpcf-depend-on .clear:before{content:"";left:0;top:0;right:0;bottom:0;position:absolute;background-color:#eee;opacity:.25;z-index:10}.wpcf-warning-primary{color:#fff!important;border-color:#dc3545!important;background:#dc3545!important}.wpcf-warning-primary:focus,.wpcf-warning-primary:hover{border-color:#bd2130!important;background:#bd2130!important}.wpcf-warning-primary:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #bd2130!important}.wpcf-warning-primary:active{border-color:#bd2130!important;background:#bd2130!important}.wpcf-form-result{display:none;padding:12px;margin:0 0 15px 0;background-color:#fff;border-left:4px solid #555;-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);-webkit-box-shadow:0 1px 1px rgb(0 0 0 / 10%);box-shadow:0 1px 1px rgb(0 0 0 / 10%)}.wpcf-form-show{display:block}.wpcf-form-success{border-left-color:#46b450}.wpcf-form-warning{border-left-color:#faebcc}.wpcf-label-error{position:relative;top:-2px;display:inline-block;font-size:10px;line-height:10px;height:10px;width:10px;padding:1px;font-style:normal;text-align:center;color:#fff;vertical-align:middle;background-color:#e10000;border-radius:2px}.wpcf-no-option{padding:30px}.wpcf-field-spinner .wpcf-input-number{-moz-appearance:textfield}.wpcf-field-spinner .wpcf-input-number::-webkit-inner-spin-button,.wpcf-field-spinner .wpcf-input-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.wpcf-fa5-shims .wpcf .fab,.wpcf-fa5-shims .wpcf .far,.wpcf-fa5-shims .wpcf .fas{font-family:FontAwesome;font-style:normal}@media only screen and (max-width:1200px){.wpcf-metabox .wpcf-field .wpcf-title{float:none;width:100%;margin-bottom:10px}.wpcf-metabox .wpcf-field .wpcf-fieldset{float:none;width:100%}}@media only screen and (max-width:782px){.wpcf-header-inner{text-align:center}.wpcf-header-inner h1{width:100%;margin-bottom:10px}.wpcf-form-result{float:none;margin-right:0;margin-bottom:10px}.wpcf-header-left,.wpcf-header-right,.wpcf-search{width:100%}.wpcf-search{text-align:center;margin-bottom:15px}.wpcf-footer{text-align:center}.wpcf-buttons{float:none}.wpcf-copyright{float:none;margin-top:10px}.wpcf-expand-all,.wpcf-nav,.wpcf-nav-background,.wpcf-reset-section{display:none!important}.wpcf-nav-normal+.wpcf-content{margin-left:0}.wpcf-section,.wpcf-section-title{display:block!important}.wpcf-field .wpcf-title{float:none;width:100%;margin-bottom:10px}.wpcf-field .wpcf-fieldset{float:none;width:100%}.wpcf-field-color .button.wp-picker-clear{padding:0 8px;line-height:2.14285714;min-height:32px}.wpcf-modal-inner{width:350px;height:400px}.wpcf-modal-content{height:237px}.wpcf-icon-dialog .wpcf-modal-inner{width:305px;height:380px}.wpcf-icon-dialog .wpcf-modal-content{height:267px}.wpcf-modal-icon .wpcf-modal-inner{width:330px;height:385px}.wpcf-modal-icon .wpcf-modal-content{height:252px}.wpcf-profile-options>.wpcf-field>.wpcf-title,.wpcf-taxonomy-edit-fields>.wpcf-field>.wpcf-title{float:none;width:100%;margin-bottom:10px}.wpcf-profile-options>.wpcf-field>.wpcf-fieldset,.wpcf-taxonomy-edit-fields>.wpcf-field>.wpcf-fieldset{float:none;width:100%}.wpcf-nav-menu-options>.wpcf-fields{margin-left:-10px;margin-right:-10px}.wpcf-nav-menu-options>.wpcf-fields>.wpcf-field{padding:10px}}.chosen-container{position:relative;vertical-align:middle;font-size:13px;user-select:none;max-width:390px;float:left}.chosen-container *{box-sizing:border-box}.chosen-container .chosen-drop{position:absolute;top:100%;z-index:1010;max-width:390px;width:100%;border:1px solid #aaa;border-top:0;background-color:#fff;box-shadow:0 4px 5px rgba(0,0,0,.15);clip:rect(0,0,0,0);clip-path:inset(100% 100%)}.chosen-container.chosen-with-drop .chosen-drop{clip:auto;clip-path:none}.chosen-container a{cursor:pointer}.chosen-container .chosen-single .group-name,.chosen-container .search-choice .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400;color:#999}.chosen-container .chosen-single .group-name:after,.chosen-container .search-choice .group-name:after{content:":";padding-left:2px;vertical-align:top}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:25px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:linear-gradient(#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,.1);color:#444;text-decoration:none;white-space:nowrap;line-height:24px}.chosen-container-single .chosen-default{color:#999}.chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.chosen-container-single .chosen-single div{position:absolute;top:0;right:0;display:block;width:18px;height:100%}.chosen-container-single .chosen-single div b{display:block;width:100%;height:100%}.chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 4px 4px;background-clip:padding-box}.chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;clip:rect(0,0,0,0);clip-path:inset(100% 100%)}.chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.chosen-container .chosen-results li.highlighted{background-color:#3875d7;background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.chosen-container .chosen-results li.group-result{display:list-item;font-weight:700;cursor:default}.chosen-container .chosen-results li.group-option{padding-left:15px}.chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;max-width:390px;width:100%;height:auto;border:1px solid #aaa;background-color:#fff;background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chosen-container-multi .chosen-choices li{float:left;list-style:none}.chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;outline:0;border:0!important;background:0 0!important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0;width:25px;height:25px;min-height:25px}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 6px;border:1px solid #aaa;max-width:100%;border-radius:3px;background-color:#eee;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:0;right:0;display:block;width:12px;height:12px;font-size:1px}.chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ccc;background-color:#e4e4e4;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);color:#666}.chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.chosen-container-multi .chosen-results{margin:0;padding:0}.chosen-container-multi .chosen-drop .result-selected{color:#ccc;cursor:default}.chosen-container-active .chosen-single{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;border-bottom-right-radius:0;border-bottom-left-radius:0;background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:none;background:0 0}.chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-single{cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.chosen-rtl{text-align:right}.chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.chosen-rtl .chosen-single div{right:auto;left:3px}.chosen-rtl .chosen-single abbr{right:auto;left:26px}.chosen-rtl .chosen-choices li{float:right}.chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;direction:rtl}.text-center{text-align:center}.sp-after-text{padding-left:5px}.sp-wqvpro-framework .wpcf-nav-inline.wpcf-nav{position:inherit;float:none;width:100%;background:#f1f1f1;-webkit-box-shadow:inset 3px -1px 1px -1px rgba(0,0,0,.04);-moz-box-shadow:inset 3px -1px 1px -1px rgba(0,0,0,.04);box-shadow:inset 3px -1px 1px -1px rgba(0,0,0,.04)}.wpcf-theme-light .wpcf-nav-inline{border-bottom:0}.wpcf.wpcf-options .wpcf-nav ul li{margin-bottom:-1px}.wpcf.wpcf-options .wpcf-nav-background{width:235px;background-color:#e3e3e3}.wpcf.wpcf-options .wpcf-nav ul li a{font-size:13px;padding:16px 15px;line-height:1.4;border-bottom:2px solid #cecece;color:#fff;text-transform:uppercase;font-weight:600;margin-bottom:-1px}.wpcf.wpcf-options .wpcf-nav ul li.wpcf-tab-expanded a{color:#000}.wpcf.wpcf-options .wpcf-nav ul li.wpcf-tab-expanded a i{color:#4498be}.wpcf.wpcf-options .wpcf-nav ul li :after{display:none}.sp-field-button-set label input{display:none}.sp-field-button-set label span{background:linear-gradient(to bottom,#fff,#eee);padding:9px 17px;margin:0;vertical-align:middle;border:solid 1px #ccc;border-radius:0;cursor:pointer;border-right:none}.sp-field-button-set label input~span:hover{background:#fff}.sp-field-button-set label:first-child span{border-radius:4px 0 0 4px}.sp-field-button-set label:last-child span{border-radius:0 4px 4px 0;border-right:solid 1px #ccc}.sp-field-button-set label input:checked~span{background:linear-gradient(to bottom,#51ccfb,#058cbf);color:#fff;cursor:default;box-shadow:none}.wpcf-field-slider input{display:inline-block;width:42px;background:#fff}.wpcf-field-slider input[type=slider]:before{width:35px;height:35px;display:block;background:red;content:"%";position:absolute;right:0;top:0;float:right;margin-right:-20px;color:#fff}.wpcf--wrap{display:inline-block;margin:0 20px 0 0;width:50%;vertical-align:super}.wpcf-field-slider .ui-slider{position:relative;width:100%;height:8px;background:#f8f8f8;border:1px solid #e2e2e2;border-radius:2px}.wpcf-field-slider .ui-slider-range{background:#ddd;height:8px}.wpcf-field-slider .ui-slider-handle{height:16px;width:16px;background:#22aade;position:absolute;top:-4px;border-radius:2px;cursor:pointer}@media (min-width:1400px){.sp-metabox-framework .wpcf--wrap,.wpcf.wpcf-options .wpcf--wrap{width:35%}}div.sp-wqvpro-help .feature-section .sp-wqvpro-feature{background-color:#fff;padding:20px 20px;border:1px solid #ddd}div.sp-wqvpro-help .feature-section .sp-wqvpro-feature h3{font-size:16px;margin-top:18px}div.sp-wqvpro-help .feature-section i.sp-font{font-size:30px;display:block;color:#994294}div.sp-wqvpro-help.about-wrap h1{font-size:2.6em}div.sp-wqvpro-help .headline-feature.feature-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}.about-wrap .plugin-section .three-col .col{background:#fff}.about-wrap .plugin-section .three-col .col .sp-wqvpro-plugin{border:1px solid #ddd}.about-wrap .plugin-section .three-col .col .sp-wqvpro-plugin .sp-wqvpro-plugin-content{padding-left:20px;padding-right:20px;padding-bottom:20px}.about-wrap .plugin-section .three-col .col .sp-wqvpro-plugin .sp-wqvpro-plugin-content h3{margin-top:20px;margin-bottom:8px;font-weight:500}.about-wrap .plugin-section .three-col .col .sp-wqvpro-plugin .sp-wqvpro-plugin-content p{margin-top:0}.about-wrap .plugin-section .sp-plugin-section-title h2{font-size:2.2em;color:#32373c;font-weight:400}.about-wrap .plugin-section .sp-plugin-section-title h4{font-weight:400;text-align:center;font-size:18px;color:#555d66;margin-top:15px;margin-bottom:40px}.sp-divider{width:100%;display:block;height:10px}.wpcf.wpcf-options .sp-font-preview{width:45%;padding:10px;border:1px solid #e6e6e6;color:#7b7b7b;margin-top:20px;background-color:#fff;font-size:16px}.wpcf_margin_field .sp-font-bottom,.wpcf_margin_field .sp-font-left,.wpcf_margin_field .sp-font-right,.wpcf_margin_field .sp-font-top{margin-right:30px}.wpcf_margin_field .sp-font-bottom:before,.wpcf_margin_field .sp-font-left:before,.wpcf_margin_field .sp-font-right:before,.wpcf_margin_field .sp-font-top:before{content:"px";position:absolute;top:19px;right:-20px;height:34px;width:29px;line-height:34px;text-align:center;background-color:#f5f5f5;display:block;border:1px solid #ddd;border-left:none}.wpcf.wpcf-options .sp-content .sp-section-title{background-color:#994294}.wpcf-field-carousel_type .wpcf--image{cursor:pointer;position:relative;display:inline-block;max-width:100%;margin:0 5px 5px 0;vertical-align:bottom;border:2px solid transparent;background-color:#fff;user-select:none;-webkit-user-select:none;-moz-transition:all .2s;-o-transition:all .2s;-webkit-transition:all .2s;transition:all .2s}.wpcf-field-image_select .wpcf--image:before{position:absolute;top:0;left:0;text-align:center;font-size:11px;font-family:FontAwesome;content:"\f00c";width:15px;height:15px;line-height:15px;opacity:0;color:#fff;background-color:#1ea4b0;transition:opacity .2s}.wpcf-field-image_select img{vertical-align:top}.wpcf-field-carousel_type input,.wpcf-field-image_select input{display:none}.wpcf-field-carousel_type .wpcf--image{background:#e8ecef;color:#7b8898;border:solid 3px #e8ecef;border-radius:2px;cursor:pointer;text-align:center;width:120px;height:80px;box-shadow:inset 0 0 0 3px #fff}.wpcf-field-carousel_type i{font-size:30px;width:32px;height:30px;margin-top:15px}.wpcf-field-carousel_type p{margin-top:5px;font-weight:500}.wpcf-field-carousel_type .wpcf--image.wpcf--active{border-color:#1ea4b0}.wpcf.wpcf-options .sp-field-sorter .sp-modules{width:100%}.wpcf.wpcf-options .wpcf-header-inner input{text-shadow:0 0 0;border:0;border-radius:0;height:38px;border-radius:4px;padding:0 16px;font-size:13px;margin-left:8px;font-weight:500;text-transform:uppercase;-webkit-transition:all .4s;-moz-transition:all .4s;-ms-transition:all .4s;-o-transition:all .4s;transition:all .4s}.wpcf.wpcf-options .wpcf-header-inner input.button-primary{background-color:#c5c5c6;border-color:transparent;color:#fff;width:140px;pointer-events:none}.wpcf.wpcf-options .wpcf-header-inner input.button-primary:hover{background-color:#00b647!important}.wpcf.wpcf-options .wpcf-header-inner input.wpcf-reset-section{background-color:#cd3c3c!important;color:#fff;margin-left:8px}.wpcf.wpcf-options .wpcf-header-inner input.wpcf-reset-section:hover{background-color:#c03635!important;color:#fff}.wpcf.wpcf-options .wpcf-header-inner .button.wpcf-save-ajax[disabled]{background-color:#02cc7b!important;color:#fff!important;border:none}.wpcf.wpcf-options .wpcf-nav ul li a{background:#efefef;color:#000;border-bottom:2px solid #cecece;padding:15px 15px;border-right:0;border-top:1px solid transparent;border-right:1px solid #cecece}.wpcf.wpcf-options .wpcf-nav ul li:last-child a{border-bottom:1px solid #cecece}.wpcf.wpcf-options .wpcf-nav ul li.wpcf-tab-expanded a{background-color:#fff;background-color:#fff;border-right:1px solid #fff;border-top:1px solid #fff;box-shadow:3px 0 0 0 #178087 inset}.wpcf.wpcf-options .wpcf-nav ul ul:before{background-color:transparent}.wpcf.wpcf-options .wpcf-nav ul ul{border-bottom:1px solid #cecece}.wpcf.wpcf-options .wpcf-nav ul ul li a{background-color:#f8fdff;padding:13px 15px 13px 24px}@media only screen and (max-width:782px){.wpcf.wpcf-options .wpcf-header-inner h1{float:none}}#wpcf_shortcode_options{border-top-color:#f1f1f1}#wpcf_shortcode_options .wpcf-nav ul li{margin-bottom:-1px}#wpcf_shortcode_options .wpcf-nav.wpcf-nav-metabox{border-right-color:#f1f1f1;border-right-color:#f1f1f1;background:#f1f1f1;margin-right:-2px}#wpcf_shortcode_options .wpcf-content{border-top:1px solid #e5e5e5;box-shadow:0 -1px 1px rgba(0,0,0,.04)}.wpcf-field.wpcf-field-carousel_type{padding-bottom:0}#sp_wpcp_upload_options .wpcf-field-carousel_type .wpcf-title,#sp_wpcp_upload_options .wpcf-field-gallery .wpcf-title,.wpcf-video-description .wpcf-title,.wpcf-video-field-wrapper>.wpcf-title,.wpcf_carousel_content_bg .wpcf-title,.wpcf_carousel_content_wrapper .wpcf-title{width:100%}#sp_wpcp_upload_options .wpcf-field-carousel_type .wpcf-fieldset,#sp_wpcp_upload_options .wpcf-field-gallery .wpcf-fieldset,.wpcf-video-description .wpcf-fieldset,.wpcf-video-field-wrapper>.wpcf-fieldset,.wpcf_carousel_content_bg .wpcf-fieldset,.wpcf_carousel_content_wrapper .wpcf-fieldset{margin-top:30px;margin-left:0;float:none;width:auto}.wpcf-field.wpcf-field-select.wpcf_taxonomy_operator .wpcf-fieldset,.wpcf-field.wpcf-field-select.wpcf_taxonomy_terms .wpcf-fieldset,.wpcf-field.wpcf-field-spinner .wpcf-fieldset,.wpcf-field.wpcf-field-switcher .wpcf-fieldset{position:relative}#sp_wpcp_display_shortcode .handlediv,#sp_wpcp_display_shortcode .hndle,#sp_wpcp_display_shortcode .postbox-header,#sp_wpcp_shortcode_options .handlediv,#sp_wpcp_shortcode_options .hndle,#sp_wpcp_shortcode_options .postbox-header,#sp_wpcp_upload_options .handlediv,#sp_wpcp_upload_options .hndle,#sp_wpcp_upload_options .postbox-header{display:none}#wpcf-section-sp_wpcp_display_shortcode_0,#wpcf-section-sp_wpcp_upload_options_0{display:block}.wpcf-field-icon_select figure:before,.wpcf-field-image_select figure:before{color:#fff;background-color:#1ea4b0}.wpcf-field-image_select .wpcf--active img{outline-color:#1ea4b0}.wpcf-field-image_select figure .sp-carousel-type{text-align:center;margin-bottom:0;font-weight:500;margin-top:5px}.wpcf-field-image_select .wpcf--image img{color:#7b8898;margin-right:0;outline:solid 3px transparent;border-radius:2px;cursor:pointer;text-align:center;width:80px;outline-offset:-3px}.wpcf-field-image_select .wpcf--image.wpcf--active img{outline-color:#1ea4b0}#sp_wpcp_upload_options .wpcp-admin-header{background-color:#157592;background:linear-gradient(-45deg,#22afba,#157592);padding:20px 26px;overflow:hidden;height:33px}#sp_wpcp_upload_options .wpcp-admin-header .support{margin-left:16px;float:right}#sp_wpcp_upload_options .wpcp-admin-header .support a{color:#fff;text-decoration:none;line-height:35px;font-size:15px;font-weight:500}#sp_wpcp_upload_options .wpcp-admin-header img{max-width:200px}.wpcf-field.wpcf-field-spinner .wpcf-help{left:110px}.wpcf-field-text.wpcf-field .wpcf-fieldset{position:relative}.wpcf-field-text.wpcf-field .wpcf-help{left:345px}.wpcf-field.wpcf-field-column .wpcf-help{position:static;top:auto;transform:translateY(0);padding:0;float:left}#sp_wpcp_display_shortcode .wpcf-field.wpcf-field-shortcode.wpcp-admin-footer{display:flex;padding:0;flex-wrap:wrap}.wpcf-field-shortcode.wpcp-admin-footer .wpcf-shortcode-selectable{background-color:rgba(82,179,217,.11);padding:10px 15px 10px 33px;display:inline-block;-webkit-touch-callout:all;-webkit-user-select:all;-khtml-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all;border:1px solid rgba(82,179,217,.2);border-radius:2px;cursor:pointer;background-image:url(../images/copy.svg);background-size:16px;background-position:8px center;background-repeat:no-repeat}.wpcf-field-shortcode.wpcp-admin-footer .sptp-copy-btn{width:16px;margin-left:13px;position:absolute;top:50%;margin-top:-8px}#wpcf-section-sp_wpcp_display_shortcode_1 .wpcf-field{display:flex;padding:0;flex-wrap:wrap}.wpcf-field-shortcode.wpcp-admin-footer .wpcf-scode-wrap:first-of-type{border-right:1px solid #ddd}.wpcf-field-shortcode.wpcp-admin-footer .wpcf-scode-wrap{padding-top:22px;padding-bottom:22px;text-align:center;width:49%}.wpcf-field-shortcode.wpcp-admin-footer .wpcf-sc-title{font-weight:500;font-size:14px!important;padding-top:0!important;color:#4c5158;margin-right:5px}@media only screen and (max-width:990px){.wpcf-field-shortcode.wpcp-admin-footer .wpcf-scode-wrap:first-of-type{border-right:none;border-bottom:1px solid #ddd}.wpcf-field-shortcode.wpcp-admin-footer .wpcf-scode-wrap{width:100%}}.wpcf-field.wpcf-field-checkbox .wpcf-help{display:inline-block;float:none;vertical-align:middle}.wpcf-field.wpcf-field-button_set.wpcp_export{margin-top:0;padding-top:0}.wpcf-field-button_set.wpcp_export .wpcf--button:hover,.wpcf-field.wpcf-field-custom_import.wpcp_import button:hover{background:#135e96;border-color:#135e96;color:#fff}.wpcf-field-button_set.wpcp_export .wpcf--button,.wpcf-field.wpcf-field-custom_import.wpcp_import button{background:#2271b1;border-color:#2271b1;color:#fff;text-decoration:none;text-shadow:none;display:inline-block;text-decoration:none;font-size:13px;line-height:2.15384615;min-height:30px;margin:0;padding:0 10px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.sp-lcp-options .wpcf-field-select .wpcf-fieldset{position:relative}.wpcf-field.wpcf-field-custom_import.wpcp_import .wpcf-fieldset{position:relative}.wpcf-field.wpcf-field-custom_import.wpcp_import p{padding-bottom:0;margin-bottom:1px}.wpcf-field.wpcf-field-custom_import.wpcp_import button{margin-top:10px;padding-bottom:0}.wpcf-field.wpcf-field-custom_import.wpcp_import .wpcf-help{cursor:help;position:absolute;top:80%;transform:translateY(-50%);padding:5px;font-size:14px;color:#aaa;width:15px;left:64px}.wpcf-field.wpcf-field-select.wpcp_post_ids .chosen-container .chosen-drop{max-width:400px}.wpcf-field.wpcf-field-select.wpcp_post_ids{padding-top:0}.wpcf-options .wpcf-header-inner h1.export-import img{height:24px;height:24px;float:left;width:28px;margin-right:8px;padding-top:6px}.wpcf-options.wpcp_tools .wpcf-nav-options li:nth-child(1) a{background-image:url(../images/export-icon.svg)}.wpcf-options.wpcp_tools .wpcf-nav-options li:nth-child(2) a{background-image:url(../images/import.svg)}.wpcf-options.wpcp_tools .wpcf-nav-options li:nth-child(1) a.wpcf-active{background-image:url(../images/file-export-icon1.svg)}.wpcf-options.wpcp_tools .wpcf-nav-options li:nth-child(2) a.wpcf-active{background-image:url(../images/file-import-icon1.svg)}.wpcf-options.wpcp_tools .wpcf-nav-options ul li a{padding:15px 30px;background-size:14px;background-position:10px center;background-repeat:no-repeat}.wpcf-field-upload input{width:50%}.carousel_video_source_id .wpcf-help{position:static}.wpcf-field-carousel_type .wpcf--image:nth-child(4),.wpcf-field-carousel_type .wpcf--image:nth-child(5),.wpcf-field-carousel_type .wpcf--image:nth-child(6){pointer-events:none}.wpcf-field-carousel_type .wpcf--image{position:relative}.wpcf-field-carousel_type .wpcf--image label strong{position:absolute;top:3px;right:3px;background:#cbd6df;padding:0 5px;font-size:10px}.wpcf-field-button_set .wpcf--button.wpcf-pro-only,.wpcf-field-image_select .wpcf--image.wpcf-pro-only{color:rgba(85,85,85,.6)!important;pointer-events:none;position:relative}.wpcf-field-button_set .wpcf--button.wpcf-pro-only{background-color:rgba(247,247,247,.4)!important}.wpcf-field.wpcf-field-switcher.only_pro_switcher .wpcf--ball::after{content:"PRO";position:relative;text-align:center;width:24px;float:right;font-weight:600;font-size:8px;color:#a5a5a5;opacity:1;line-height:18px}.wpcf-field.wpcf-field-switcher.only_pro_switcher .wpcf--switcher{background:#cbcfd0;pointer-events:none}.wpcf-field-button_set .wpcf--button.wpcf-pro-only:after,.wpcf-field-image_select .wpcf--image.wpcf-pro-only:after{position:absolute;top:0;right:0;color:#a5a5a5;background-color:#e0e0e0;font-weight:500;padding:0 4px;content:"PRO";text-align:center;font-size:8px;line-height:11px;opacity:1}.wpcf-field-image_select .wpcf--image.wpcf-pro-only:after{top:2px;right:2px;border-radius:0 1px 0 0}.wpcf-field.wpcf-field-switcher.only_pro_switcher .sp_wpcp--switcher{background:#cbcfd0;pointer-events:none}.wpcf-field-image_select.wpcp_grid_mode .wpcf--image img{width:60px;outline:solid 2px transparent;outline-offset:-2px}.wpcf-field-image_select.wpcp_grid_mode .wpcf--active img{outline-color:#1ea4b0}.wpcf-field-image_select.wpcp_grid_mode figure:before,.wpcf-field-image_select.wpcp_layout figure:before{content:'';width:0}.only_pro_switcher,.pro_only_field,.wpcf-field-column.wpcp_carousel_row_pro_only{opacity:.7;pointer-events:none}.wpcf-field-column.wpcp_carousel_row_pro_only .wpcf--inputs .wpcf--input:nth-child(5){position:relative}.wpcf-field-column.wpcp_carousel_row_pro_only .wpcf--inputs .wpcf--input:nth-child(5)::after{position:absolute;content:"PRO";background-color:#d4d4d4;padding:2px 4px;font-size:8px;border-radius:2px;height:11px;margin-left:5px;margin-top:7px;right:-20px}#sp_wpcp_shortcode_options{border-top-color:#f1f1f1}#sp_wpcp_shortcode_options .wpcf-nav ul li{margin-bottom:-1px}#sp_wpcp_shortcode_options .wpcf-nav.wpcf-nav-metabox{border-right-color:#f1f1f1;border-right-color:#f1f1f1;background:#f1f1f1;margin-right:-2px}#sp_wpcp_shortcode_options .wpcf-content{border-top:1px solid #e5e5e5;box-shadow:0 -1px 1px rgba(0,0,0,.04)}
|
1 |
+
.wpcf{position:relative}.wpcf label{padding:0;margin:0;display:inline-block}.wpcf-ab-icon{top:2px}#screen-meta-links+.wpcf-options{margin-top:40px}.wpcf-options{margin-top:20px;margin-right:20px}.wpcf-header{position:relative}.wpcf-header-inner{padding:25px;transition:box-shadow .3s ease}.wpcf-header-inner h1 svg{float:left;height:26px;width:28px;margin-right:8px;padding-top:6px}.wpcf-header-inner h1{float:left;margin:0;font-size:22px;color:#444;font-weight:600;line-height:35px}.wpcf-header-inner h1 small{font-size:11px;font-weight:500}.wpcf-sticky .wpcf-header-inner{position:fixed;z-index:99;top:32px;box-shadow:0 5px 10px rgba(0,0,0,.1)}.wpcf-buttons{float:right}.wpcf-buttons .button{margin:0 2px;line-height:26px}.wpcf-buttons .button:focus{outline:0!important;box-shadow:none!important}.wpcf-buttons .wpcf-save{min-width:72px}.wpcf-header-left{float:left}.wpcf-header-right{float:right}.wpcf-nav:not(.wpcf-nav-inline){display:block;position:relative;z-index:10;float:left}.wpcf-nav ul{clear:left;margin:0;list-style-type:none}.wpcf-nav ul li{margin-bottom:0}.wpcf-nav ul li a{font-size:13px;position:relative;display:block;padding:14px 12px;text-decoration:none;transition-property:color,background;transition-duration:.2s;transition-timing-function:ease}.wpcf-nav .fa{width:20px;margin-right:5px;font-size:14px;text-align:center}.wpcf-nav ul li a:focus{outline:0;box-shadow:none}.wpcf-nav ul li .wpcf-arrow:after{content:"\f054";display:inline-block;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:9px;line-height:1;position:absolute;right:10px;top:50%;margin-top:-4px}.wpcf-nav ul li.wpcf-tab-expanded .wpcf-arrow:after{transform:rotate(90deg)}#wpcf_shortcode_options .wpcf-theme-light .wpcf-nav ul li .wpcf-active i,.sp-wpcf-options.wpcf-theme-light .wpcf-nav ul li .wpcf-active i{color:#178087}.wpcf-nav ul li.wpcf-tab-expanded ul{display:block}.wpcf-nav ul ul{display:none;position:relative}.wpcf-nav ul ul li a{font-size:12px;padding:12px 14px 12px 24px}.wpcf-nav .wpcf-tab-icon{width:20px;margin-right:5px;font-size:13px;text-align:center}.wpcf-nav .wpcf-label-error{margin-left:4px;vertical-align:top}.wpcf-nav-normal{width:235px}.wpcf-nav-normal+.wpcf-content{margin-left:235px}.wpcf-nav-inline ul li{display:inline-block;vertical-align:top}.wpcf-nav-background{position:absolute;top:0;left:0;bottom:0;z-index:9;width:235px}.wpcf-wrapper{position:relative}.wpcf-content{background-color:#fff;background-color:#fff;-moz-transition:opacity .2s;-o-transition:opacity .2s;-webkit-transition:opacity .2s;transition:opacity .2s}.wpcf-sections{float:left;width:100%}.wpcf-section-title{display:none;padding:20px 30px;background-color:#f5f5f5;border-top:1px solid #eee;border-bottom:1px solid #eee}.wpcf-section-title h3{margin:0;padding:0;font-size:13px;font-weight:700;text-transform:uppercase}.wpcf-section-title .wpcf-section-icon{margin-right:5px}.wpcf-footer{padding:20px;font-size:11px}.wpcf-copyright{float:left;margin-top:5px}.wpcf-search-all .wpcf-nav,.wpcf-search-all .wpcf-nav-background,.wpcf-show-all .wpcf-nav,.wpcf-show-all .wpcf-nav-background{display:none}.wpcf-search-all .wpcf-content,.wpcf-show-all .wpcf-content{margin-left:0}.wpcf-search-all .wpcf-section,.wpcf-search-all .wpcf-section-title,.wpcf-show-all .wpcf-section-title{display:block!important}.wpcf-search-all .wpcf-section-title{display:none!important}.wpcf-expand-all{float:left;padding:0 8px;margin-right:4px;z-index:1;font-size:13px;line-height:30px;cursor:pointer;user-select:none;border-radius:2px;transition:all .2s}.wpcf-expand-all span{font-size:11px;vertical-align:middle}.wpcf-search{float:left}.wpcf-search input{margin:0 2px 0 0;border:none;font-size:12px;line-height:30px;min-height:30px;text-align:inherit;padding:0 10px;border-radius:2px;box-shadow:none}.wpcf-search input:focus{box-shadow:none}.wpcf-saving .wpcf-content{cursor:default;pointer-events:none;opacity:.5}.wpcf-metabox{margin:-6px -12px -12px -12px}.wpcf-metabox .wpcf-field{padding:20px}.wpcf-metabox .wpcf-section-title{padding:20px}.block-editor-page .wpcf-metabox{margin:-6px -14px -14px -14px}.block-editor-editor-skeleton__content .wpcf-metabox{border-left:1px solid #e2e4e7;border-right:1px solid #e2e4e7}.wpcf-sections-reset{float:left;width:100%;text-align:right;border-top:1px solid #eee}.wpcf-sections-reset .wpcf-button-cancel,.wpcf-sections-reset input{display:none}.wpcf-sections-reset label{padding:10px}.wpcf-sections-reset span{-webkit-user-select:none;user-select:none}.wpcf-sections-reset input:checked~.wpcf-button-reset{display:none}.wpcf-sections-reset input:checked~.wpcf-button-cancel{display:inline-block}#side-sortables .wpcf-section-title{padding:12px}#side-sortables .wpcf-field{padding:10px 15px}#side-sortables .wpcf-field .wpcf-title{float:none;width:100%;margin-bottom:6px}#side-sortables .wpcf-field .wpcf-fieldset{float:none;width:100%}#side-sortables .wpcf-field-text input{width:100%}#side-sortables .wpcf-notice{padding:10px 15px}.wpcf-comment-metabox{margin:-6px -12px -12px -12px}.wpcf-comment-metabox .wpcf-field{padding:20px}.wpcf-comment-metabox .wpcf-section-title{padding:20px}.wpcf-tooltip{position:absolute;z-index:5000001;font-size:12px;line-height:1.4;text-align:center;text-decoration:none;padding:6px 12px;max-width:200px;color:#fff;background-color:#000;background-color:rgba(0,0,0,.85);border-radius:4px}.wpcf-theme-dark .wpcf-header-inner{background-color:#050505}.wpcf-theme-dark .wpcf-header-inner h1{color:#fff}.wpcf-theme-dark .wpcf-header-inner h1 small{color:#555}.wpcf-theme-dark .wpcf-expand-all{color:#999;background-color:#222}.wpcf-theme-dark .wpcf-expand-all:hover{color:#fff;background-color:#333}.wpcf-theme-dark .wpcf-search input{color:#fff;background-color:#222}.wpcf-theme-dark .wpcf-search:focus{background-color:#444}.wpcf-theme-dark .wpcf-search::-webkit-input-placeholder{color:#666}.wpcf-theme-dark .wpcf-nav ul li a{color:#999;border-color:#2f2f2f;background-color:#222}.wpcf-theme-dark .wpcf-nav ul li a:hover{color:#fff}.wpcf-theme-dark .wpcf-nav ul li .wpcf-active i{color:#178087}.wpcf-theme-dark .wpcf-nav ul li .wpcf-active{color:#fff;background-color:#111}.wpcf-theme-dark .wpcf-nav ul ul li a{border-color:#2f2f2f;background-color:#191919}.wpcf-theme-dark .wpcf-nav ul ul li .wpcf-active{background-color:#101010}.wpcf-theme-dark .wpcf-nav ul ul:before{background-color:rgba(34,34,34,.75)}.wpcf-theme-dark .wpcf-nav>ul>li:last-child>a{border:none}.wpcf-theme-dark .wpcf-nav-normal ul li a{border-bottom-width:1px;border-bottom-style:solid}.wpcf-theme-dark .wpcf-nav-normal ul li .wpcf-active:after{content:" ";position:absolute;right:0;top:50%;height:0;width:0;pointer-events:none;border:solid transparent;border-right-color:#fff;border-width:4px;margin-top:-4px}.wpcf-theme-dark .wpcf-nav-inline{background-color:#222}.wpcf-theme-dark .wpcf-nav-inline ul li a{text-align:center;border-right-width:1px;border-right-style:solid}.wpcf-theme-dark .wpcf-nav-inline ul li .wpcf-active:after{content:" ";position:absolute;left:50%;bottom:0;height:0;width:0;pointer-events:none;border:solid transparent;border-bottom-color:#fff;border-width:4px;margin-left:-4px}.wpcf-theme-dark .wpcf-nav-background{background-color:#222}.wpcf-theme-dark .wpcf-footer{color:#555;background-color:#050505}.wpcf-theme-light .wpcf-container{border:1px solid #ccd0d4;box-shadow:0 0 15 rgba(0,0,0,.04)}.wpcf-theme-light .wpcf-header-inner{background-color:#f2f2f2;border-bottom:1px solid #cecece;padding:22px 28px}.wpcf-theme-light .wpcf-header-inner h1 small{color:#999}.wpcf-theme-light .wpcf-expand-all{color:#999;background-color:#eee}.wpcf-theme-light .wpcf-expand-all:hover{color:#555}.wpcf-theme-light .wpcf-search input{color:#555;background-color:#eee}.wpcf-theme-light .wpcf-search input::-webkit-input-placeholder{color:#999}.wpcf-theme-light .wpcf-nav ul li a{background-color:#178087;border-top:1px solid #178087;border-right:1px solid #e2e2e1;border-bottom:1px solid #ddd;color:#fff;font-size:13px;font-weight:600;line-height:1.4;padding:14px 15px;text-transform:uppercase}.wpcf-theme-light .wpcf-nav ul li .wpcf-active{color:#000;background-color:#fff}.wpcf-theme-light .wpcf-nav ul ul li a{background-color:#eee}.wpcf-theme-light .wpcf-nav-normal>ul{margin-right:-1px;margin-bottom:-1px}.wpcf-theme-light .wpcf-nav-normal>ul li a{border-bottom:1px solid #ccd0d4;border-right:1px solid #ccd0d4}.wpcf-theme-light .wpcf-nav-normal>ul li .wpcf-active{border-right-color:#fff}.wpcf-theme-light .wpcf-nav-inline{background-color:#f5f5f5;border-bottom:1px solid #ccd0d4}.wpcf-theme-light .wpcf-nav-inline>ul{margin-bottom:-1px;margin-right:-1px}.wpcf-theme-light .wpcf-nav-inline>ul li a{text-align:center;border-bottom:1px solid #ccd0d4}.wpcf-theme-light .wpcf-nav-inline>ul li .wpcf-active i{color:#178087}.wpcf-theme-light .wpcf-nav-inline>ul li .wpcf-active{border-bottom:1px solid #fff;border-top:1px solid #178087;box-shadow:0 3px 0 0 #178087 inset;border-bottom-color:#fff}.wpcf-theme-light .wpcf-nav-inline>ul ul{display:none!important}.wpcf-theme-light .wpcf-nav-inline .wpcf-arrow:after{display:none}.wpcf-theme-light .wpcf-nav-background{background-color:#f5f5f5;border-right:1px solid #ccd0d4}.wpcf-theme-light .wpcf-footer{color:#555;border-top:1px solid #ccd0d4;background-color:#f5f5f5;background:linear-gradient(#fafafa,#f5f5f5)}.wpcf-field{position:relative;padding:30px}.wpcf-field p:first-child{margin-top:0}.wpcf-field p:last-child{margin-bottom:0}.wpcf-field:after,.wpcf-field:before{content:" ";display:table}.wpcf-field:after{clear:both}.wpcf-field h4{margin-top:0}.wpcf-field .wpcf-title{position:relative;width:20%;float:left}.wpcf-field .wpcf-title h4{margin:0;color:#23282d}.wpcf-field .wpcf-fieldset{float:right;width:calc(80% - 20px)}.wpcf-pseudo-field{padding:0 5px 0 0!important;display:inline-block}.wpcf-pseudo-field+.wpcf-pseudo-field{border:0}.wpcf-pseudo-field pre{display:none}.wpcf-field.wpcf-field-background .wpcf--preview{font-size:16px;line-height:20px;padding:20px;color:#222;border:1px solid #eee;background-color:#fff;height:150px;border-radius:2.5px;user-select:none;-webkit-user-select:none;transition:background-color .2s,border-color .2s}.wpcf-field.wpcf-field-background .wpcf--block-preview{cursor:pointer;position:relative;overflow:hidden;margin-top:10px;width:100%}.wpcf-field.wpcf-field-background .wpcf--black-background{border-color:#000;background-color:#000}.wpcf-field.wpcf-field-background .wpcf--toggle{position:absolute;top:5px;right:10px;color:#999}.wpcf-field-border .wpcf--inputs,.wpcf-field-column .wpcf--inputs,.wpcf-field-dimensions .wpcf--inputs,.wpcf-field-dimensions_advanced .wpcf--inputs,.wpcf-field-spacing .wpcf--inputs{float:left;display:flex;flex-wrap:wrap}.wpcf-field-border .wpcf--input,.wpcf-field-column .wpcf--input,.wpcf-field-dimensions .wpcf--input,.wpcf-field-dimensions_advanced .wpcf--input,.wpcf-field-spacing .wpcf--input{display:flex;padding-right:6px;padding-bottom:4px;box-sizing:border-box}.wpcf-field-border .wpcf--input select,.wpcf-field-column .wpcf--input select,.wpcf-field-dimensions .wpcf--input select,.wpcf-field-dimensions_advanced .wpcf--input select,.wpcf-field-spacing .wpcf--input select{margin:0}.wpcf-field-border .wpcf--input input,.wpcf-field-column .wpcf--input input,.wpcf-field-dimensions .wpcf--input input,.wpcf-field-dimensions_advanced .wpcf--input input,.wpcf-field-spacing .wpcf--input input{position:relative;z-index:1;margin:0;width:65px;max-width:100%;text-align:center;padding:0}.wpcf-field-border .wpcf--color,.wpcf-field-column .wpcf--color,.wpcf-field-dimensions .wpcf--color,.wpcf-field-dimensions_advanced .wpcf--color,.wpcf-field-spacing .wpcf--color{float:left}.wpcf-field-border .wpcf--label,.wpcf-field-column .wpcf--label,.wpcf-field-dimensions .wpcf--label,.wpcf-field-dimensions_advanced .wpcf--label,.wpcf-field-spacing .wpcf--label{display:flex;flex-direction:column;justify-content:center;user-select:none;min-width:20px;max-width:100%;padding:0 4px;font-size:12px;text-align:center;color:#555;border:1px solid #7b776c;background-color:#f5f5f5}.wpcf-field-border .wpcf--icon,.wpcf-field-column .wpcf--icon,.wpcf-field-dimensions .wpcf--icon,.wpcf-field-dimensions_advanced .wpcf--icon,.wpcf-field-spacing .wpcf--icon{border-right:0;border-radius:4px 0 0 4px}.wpcf-field-border .wpcf--icon+input,.wpcf-field-column .wpcf--icon+input,.wpcf-field-dimensions .wpcf--icon+input,.wpcf-field-dimensions_advanced .wpcf--icon+input,.wpcf-field-spacing .wpcf--icon+input{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.wpcf-field-border .wpcf--unit,.wpcf-field-column .wpcf--unit,.wpcf-field-dimensions .wpcf--unit,.wpcf-field-dimensions_advanced .wpcf--unit,.wpcf-field-spacing .wpcf--unit{border-left:0;border-radius:0 4px 4px 0}.wpcf-field-border .wpcf--is-unit,.wpcf-field-column .wpcf--is-unit,.wpcf-field-dimensions .wpcf--is-unit,.wpcf-field-dimensions_advanced .wpcf--is-unit,.wpcf-field-spacing .wpcf--is-unit{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.wpcf-field-button_set .wpcf--buttons{display:inline-block}.wpcf-field-button_set .wpcf--button{position:relative;z-index:1;float:left;cursor:pointer;padding:7px 14px;min-width:16px;text-align:center;color:#555;border:1px solid #ccc;background-color:#f7f7f7;user-select:none;box-shadow:0 1px 0 rgba(0,0,0,.1)}.wpcf-field-button_set .wpcf--button:first-child{border-radius:4px 0 0 4px}.wpcf-field-button_set .wpcf--button:last-child{border-radius:0 4px 4px 0}.wpcf-field-button_set .wpcf--button:not(:first-child){margin-left:-1px}.wpcf-field-button_set .wpcf--button:hover{background-color:#eee}.wpcf-field-button_set .wpcf--active,.wpcf-field-button_set .wpcf--active:hover{z-index:2;color:#fff;border-color:#006799;background-color:#0085ba}.wpcf-field-button_set input{display:none}.wpcf-field-checkbox ul,.wpcf-field-radio ul{margin:0;padding:0;list-style-type:none;overflow-y:auto;max-height:305px}.wpcf-field-checkbox ul li,.wpcf-field-radio ul li{margin-bottom:6px}.wpcf-field-checkbox ul ul,.wpcf-field-radio ul ul{max-height:none}.wpcf-field-checkbox ul ul li,.wpcf-field-radio ul ul li{margin-left:8px}.wpcf-field-checkbox ul ul li:first-child,.wpcf-field-radio ul ul li:first-child{margin-left:0}.wpcf-field-checkbox input,.wpcf-field-radio input{margin:0 1px}.wpcf-field-checkbox .wpcf--inline-list li,.wpcf-field-radio .wpcf--inline-list li{display:inline-block;margin-right:15px}.wpcf-field-checkbox .wpcf--text,.wpcf-field-radio .wpcf--text{margin-left:5px;vertical-align:middle}.wpcf-field-checkbox .wpcf-checker,.wpcf-field-radio .wpcf-checker{cursor:pointer}.wpcf-field-code_editor .CodeMirror{width:100%;height:400px}.wpcf-field-code_editor .cm-s-default{border:1px solid #ccd0d4}.wpcf-field-code_editor textarea{width:100%;height:400px}.wpcf-field-color>input{opacity:.75;width:115px;max-width:100%}.wpcf-field-color .button.wp-picker-clear{padding:0 8px;margin-left:6px;line-height:2.54545455;min-height:30px}.wpcf-field-color_group .wpcf--left{float:left;margin-right:10px;margin-bottom:5px}.wpcf-field-color_group .wpcf--title{color:#999;margin-bottom:5px}.wpcf-field-gallery input{display:none}.wpcf-field-gallery ul{margin:0;padding:0;list-style-type:none}.wpcf-field-gallery ul.sp-gallery-images li{display:inline-block;position:relative;padding:4px;margin:0 5px 10px 0;border:1px solid #ccc;background-color:#f9f9f9;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:0 1px 0 rgba(0,0,0,.08);-webkit-box-shadow:0 1px 0 rgba(0,0,0,.08);box-shadow:0 1px 0 rgba(0,0,0,.08)}.wpcf-field-gallery ul.sp-gallery-images li img{max-height:100px;display:inline-block;vertical-align:middle}.wpcf-field-gallery .button,.wpcf-field-gallery .button:focus,.wpcf-field-gallery .button:hover{margin-right:5px;margin-bottom:5px;width:110px;height:110px;text-align:center;line-height:15px;color:#fff;border:none;border-radius:2px;display:flex;justify-content:center;flex-direction:column;font-weight:600}.wpcf-field-gallery .button-primary.wpcf-button{background:#4eb631;box-shadow:none;text-shadow:none}.wpcf-field-gallery .button.wpcf-edit-gallery{background:#6a7885}.wpcf-field-gallery .button i{font-size:24px;margin-bottom:10px}.wpcf-field-gallery a,.wpcf-field-gallery ul.sp-gallery-images li{display:inline-block;padding:4px;border:1px solid #ccc;margin:0 5px 10px 0;background-color:#f9f9f9;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;-moz-box-shadow:0 1px 0 rgba(0,0,0,.08);-webkit-box-shadow:0 1px 0 rgb(0 0 0 / 8%);box-shadow:0 1px 0 rgb(0 0 0 / 8%)}.wpcf-field-gallery ul li img{max-height:100px;display:inline-block;vertical-align:middle}.wpcf-field-gallery a,.wpcf-field-gallery li{float:left}.wpcf-field-icon_select .wpcf--icon,.wpcf-field-image_select .wpcf--image{display:inline-block;margin:0 5px 5px 0}.wpcf-field-icon_select .wpcf--inline-list .wpcf--icon,.wpcf-field-image_select .wpcf--inline-list .wpcf--image{display:inline-block}.wpcf-field-icon_select figure,.wpcf-field-image_select figure{cursor:pointer;position:relative;display:inline-block;max-width:100%;margin:0;vertical-align:bottom;border:2px solid transparent;background-color:#fff;user-select:none;transition:all .2s}.wpcf-field-icon_select figure:before,.wpcf-field-image_select figure:before{position:absolute;top:0;left:0;text-align:center;font-size:10px;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;content:"\f00c";width:16px;height:16px;line-height:14px;opacity:0;color:#fff;background-color:#222;transition:opacity .2s}.wpcf-field-icon_select label,.wpcf-field-image_select label{display:inline-block;margin:5px}.wpcf-field-icon_select figure{padding:8px 10px;font-size:20px;line-height:20px}.wpcf-field-icon_select .wpcf--active figure{border-color:#52b3d9;opacity:1}.wpcf-field-icon_select .wpcf--active figure:before,.wpcf-field-image_select .wpcf--active figure:before{opacity:1}.wpcf-field-icon_select figure,.wpcf-field-image_select img{max-width:100%;height:auto;vertical-align:top}.wpcf-field-icon_select input,.wpcf-field-image_select input{display:none}.wpcf-field-media .wpcf--placeholder{display:flex;align-items:flex-start}.wpcf-field-media .wpcf--placeholder input{width:100%;margin:0}.wpcf-field-media .button{margin-left:5px}.wpcf-field-media .hidden+.button{margin-left:0}.wpcf-field-media .wpcf--preview{position:relative}.wpcf-field-select .wpcf-fieldset{min-height:30px}.wpcf-field-select .wpcf-chosen{display:none}.wpcf-field-select select{max-width:100%;margin:0;float:left}.wpcf-field-select .wpcf-hide-select{display:none!important}.wpcf-field-slider .wpcf--wrap{display:flex;align-items:center}.wpcf-field-slider .wpcf--input{display:flex}.wpcf-field-slider .wpcf--unit{display:flex;justify-content:center;flex-direction:column;user-select:none;padding:0 6px;font-size:11px;line-height:1;border-radius:0 4px 4px 0;color:#555;border:1px solid #7e8993;border-left:0;background-color:#f5f5f5}.wpcf-field-slider .wpcf-slider-ui{margin-right:15px}.wpcf-field-slider input[type=number]{position:relative;z-index:1;margin:0;width:50px;text-align:center}.wpcf-field-slider .wpcf--is-unit{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.wpcf-field-slider .ui-slider{position:relative;width:100%;height:3px;border:none;background:#ddd;border-radius:2px}.wpcf-field-slider .ui-slider-range{height:3px;border:none;background:#333;border-radius:2px}.wpcf-field-slider .ui-slider-handle{position:absolute;width:16px;height:16px;top:-7px;margin-left:-8px;border:none;background:#333;border-radius:2px}.wpcf-field-slider .ui-slider-handle:hover,.wpcf-field-slider .ui-state-active{cursor:pointer;background:#111}.wpcf-field-spinner .wpcf--spin{display:flex;float:left}.wpcf-field-spinner .ui-spinner{display:flex}.wpcf-field-spinner .ui-button{display:flex;flex-direction:column;justify-content:center;text-align:center;min-width:20px;padding:0 4px;color:#555;border:1px solid #7e8993;background-color:#f5f5f5}.wpcf-field-spinner .ui-spinner-button{cursor:pointer}.wpcf-field-spinner .ui-spinner-button:hover{background-color:#e7e7e7}.wpcf-field-spinner .ui-spinner-button:active{background-color:#ddd}.wpcf-field-spinner .ui-spinner-button:before{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:14px;line-height:14px}.wpcf-field-spinner .ui-spinner-down{order:1;border-right:0;border-radius:4px 0 0 4px}.wpcf-field-spinner .ui-spinner-down:before{content:"\f0d9"}.wpcf-field-spinner .ui-spinner-input{order:2}.wpcf-field-spinner .wpcf--unit{order:3;border-left:0;user-select:none}.wpcf-field-spinner .ui-spinner-up{order:4;border-left:0;border-radius:0 4px 4px 0}.wpcf-field-spinner .ui-spinner-up:before{content:"\f0da"}.wpcf-field-spinner input{position:relative;z-index:1;width:50px;text-align:center;margin:0;padding:0 8px;border-radius:0}.wpcf-field-spinner .ui-button-icon,.wpcf-field-spinner .ui-button-icon-space,.wpcf-field-spinner .ui-button-text{display:none}.wpcf-field-switcher .wpcf--switcher{float:left;cursor:pointer;position:relative;width:60px;height:26px;padding:0;margin:0;overflow:hidden;border-radius:4px;background-color:#ed6f6f;user-select:none;-webkit-user-select:none}.wpcf-field-switcher .wpcf--ball{position:absolute;top:4px;left:4px;width:24px;height:18px;background-color:#fff;border-radius:4px;transition:all .1s;box-shadow:1px 1px 1px rgba(0,0,0,.15)}.wpcf-field-switcher .wpcf--off,.wpcf-field-switcher .wpcf--on{position:absolute;top:0;left:0;right:0;font-size:11px;line-height:26px;font-weight:500;font-style:normal;text-align:center;text-transform:uppercase;color:#fff;padding-right:28px;opacity:0;transition:all .1s}.wpcf-field-switcher .wpcf--off{padding-right:0;padding-left:28px;opacity:1}.wpcf-field-switcher .wpcf--active{background:#4fb845}.wpcf-field-switcher .wpcf--active .wpcf--on{opacity:1}.wpcf-field-switcher .wpcf--active .wpcf--off{opacity:0}.wpcf-field-switcher .wpcf--active .wpcf--ball{left:100%;margin-left:-28px}.wpcf-field-switcher .wpcf--label{float:left;margin-top:4px;margin-left:8px;font-weight:400;color:#999}.wpcf-field-text input{width:340px;margin:0;min-height:36px;float:left}.wpcf-field-textarea textarea{width:100%;max-width:100%;min-height:125px}.wpcf-field-textarea .wpcf-shortcode-button{margin-bottom:10px;margin-right:5px}.wpcf-field-typography select,.wpcf-field-typography textarea{margin:0;min-width:100%;max-width:100%}.wpcf-field-typography .wpcf--title{color:#777;margin:0 0 2px 0;font-size:12px}.wpcf-field-typography .wpcf--title small{vertical-align:top}.wpcf-field-typography .wpcf--blocks{display:flex;flex-wrap:wrap}.wpcf-field-typography .wpcf--block.wpcf--block-font-color{overflow:hidden;float:left}.wpcf-field-typography .wpcf--block{flex:1;max-width:100%;padding-right:6px;padding-bottom:6px}.wpcf-field-typography .wpcf--input{margin:0;min-width:100%}.wpcf-field-typography .wpcf--input-wrap{position:relative}.wpcf-field-typography .wpcf--unit{position:absolute;z-index:1;right:4px;top:4px;bottom:4px;padding:2px 6px;color:#666;font-size:11px;line-height:1;border-radius:2px;background:#eee;user-select:none;display:flex;justify-content:center;flex-direction:column}.wpcf-field-background .wpcf--preview,.wpcf-field-typography .wpcf--preview{font-size:16px;line-height:20px;padding:20px;color:#222;border:1px solid #eee;background-color:#fff;border-radius:2.5px;user-select:none;-webkit-user-select:none;transition:background-color .2s,border-color .2s}.wpcf-field-background .wpcf--block-preview,.wpcf-field-typography .wpcf--block-preview{cursor:pointer;position:relative;overflow:hidden;margin-top:10px;width:100%}.wpcf-field-typography .wpcf--black-background{border-color:#000;background-color:#000}.wpcf-field-typography .wpcf--toggle{position:absolute;top:5px;right:10px;color:#999}.wpcf-field-typography .wpcf--block-extra-styles{margin-top:5px}.wpcf-field-heading{font-size:1.5em;font-weight:700;color:#23282d;background-color:#f5f5f5}.wpcf-field-subheading{font-size:14px;font-weight:700;padding-top:17px;padding-bottom:17px;color:#23282d;background-color:#f7f7f7}.wpcf-field-submessage{padding:0!important;border:0!important}.wpcf-field-submessage+.wpcf-field{border-top:0!important}.wpcf-submessage{font-size:12px;padding:17px 30px;border-top:1px solid transparent;border-bottom:1px solid transparent}.wpcf-submessage-success{color:#3c763d;border-color:#d6e9c6;background-color:#dff0d8}.wpcf-submessage-info{color:#31708f;border-color:#bce8f1;background-color:#d9edf7}.wpcf-submessage-warning{color:#8a6d3b;border-color:#faebcc;background-color:#fcf8e3}.wpcf-submessage-danger{color:#a94442;border-color:#ebccd1;background-color:#f2dede}.wpcf-submessage-normal{color:#23282d;border-color:#eee;background-color:#f7f7f7}.wpcf-field-notice{background-color:transparent}.wpcf-notice{color:#999;font-style:italic;font-size:13px;padding:12px 12px 12px 0!important;border:none!important}.wpcf-notice-success{border-color:#46b450}.wpcf-notice-info{border-color:#339fd4}.wpcf-notice-warning{border-color:#ffbc00}.wpcf-notice-danger{border-color:#dc3232}.wpcf-notice-normal{border-color:#222}.wpcf-field.wpcf-field-notice.pro_notice{padding-top:0}.wpcf-field-number input{width:70px;margin:0;height:36px;line-height:34px;padding-left:12px;min-height:36px}.wpcf-field-number .wpcf--wrap{position:relative;float:left;width:100px}.wpcf-field-number .wpcf--unit{position:absolute;z-index:1;left:75px;top:4px;bottom:4px;padding:2px 6px;color:#666;font-size:11px;line-height:1;border-radius:2px;background:#eee;user-select:none;display:flex;justify-content:center;flex-direction:column}.wpcf-help{position:static;cursor:help;font-size:14px;color:#aaa;width:15px;line-height:28px;padding-left:5px;float:left}.wpcf-help .wpcf-help-text{display:none}.wpcf--preview{max-width:100%}.wpcf-image-preview{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;position:relative;padding:6px;max-width:120px;max-height:120px;min-width:40px;min-height:40px;margin-bottom:10px;text-align:center;border-radius:2px;border:1px solid #ccc;background-color:#f9f9f9;box-shadow:0 1px 0 rgba(0,0,0,.08)}.wpcf-image-preview i{cursor:pointer;position:absolute;z-index:1;right:4px;top:4px;font-size:14px;width:22px;height:22px;line-height:22px;text-align:center;text-decoration:none;color:#fff;background-color:#d33;opacity:.75;border-radius:2px;transition:all .2s}.wpcf-image-preview i:hover{opacity:1}.wpcf-image-preview i:focus{box-shadow:none}.wpcf-image-preview span{position:relative;overflow:hidden;display:flex;height:100%;width:100%}.wpcf-image-preview img{max-width:100%;height:auto;object-fit:contain}.wpcf-field-custom .wpcf-field{padding:0}.wpcf-field .chosen-container-single .chosen-single{height:28px;line-height:26px}.wpcf-field .chosen-container-single .chosen-single abbr{top:0;right:20px;font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:12px;height:100%;width:18px;color:#aaa;text-align:center;background:0 0}.wpcf-field .chosen-container-single .chosen-single abbr:before{content:"\f00d"}.wpcf-field .chosen-container-single .chosen-single abbr:hover{color:#555}.wpcf-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:12px;height:100%;width:18px;color:#aaa;text-align:center;background:0 0}.wpcf-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before{content:"\f00d";display:inline-block;padding-top:3px}.wpcf-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{color:#555}.wpcf-field .chosen-container-single .chosen-single div b{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:14px;color:#aaa;background:0 0}.wpcf-field .chosen-container-single .chosen-single div b:before{content:"\f107"}.wpcf-field .chosen-container-single .chosen-single div b:hover{color:#555}.wpcf-field .chosen-container-multi .chosen-choices li.search-choice-placeholder{border:1px dashed #aaa;margin:3px 5px 3px 0}.wpcf-field .chosen-container-multi .ui-sortable li.search-choice span{cursor:move}.wpcf-field .chosen-container-active.chosen-with-drop .chosen-single div b:before{content:"\f106"}.wpcf-field .chosen-container-single .chosen-single-with-deselect span{margin-right:40px}.wpcf-field .chosen-container-single .chosen-search input[type=text]{background:0 0}.wpcf-field .chosen-container-single .chosen-search:before{font-family:"Font Awesome 5 Pro","Font Awesome 5 Free",FontAwesome;font-weight:900;font-size:11px;content:"\f002";position:absolute;right:12px;top:10px;color:#aaa}.wpcf-field .wp-picker-container{display:inline-block}.wpcf-field .wp-picker-container .wp-color-result.button{margin-bottom:0}.wpcf-field .wpcf--transparent-wrap{display:none;position:relative;top:-1px;width:235px;padding:9px 10px;border:1px solid #dfdfdf;border-top:none;background-color:#fff}.wpcf-field .wp-picker-active .wpcf--transparent-wrap{display:block}.wpcf-field .wpcf--transparent-slider{position:absolute;width:190px;margin-left:2px;height:18px}.wpcf-field .wpcf--transparent-slider .ui-slider-handle{position:absolute;top:-3px;bottom:-3px;z-index:5;border-color:#aaa;border-style:solid;border-width:4px 3px;width:10px;height:16px;margin:0 -5px;background:0 0;cursor:ew-resize;opacity:.9;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.2)}.wpcf-field .wpcf--transparent-slider .ui-slider-handle:before{content:" ";position:absolute;left:-2px;right:-2px;top:-3px;bottom:-3px;border:2px solid #fff;border-radius:3px}.wpcf-field .wpcf--transparent-offset{height:18px;width:200px;background:url(../images/checkerboard.png) repeat-y center left scroll #fff;border-radius:2px;box-shadow:inset 0 0 5px rgba(0,0,0,.4)}.wpcf-field .wpcf--transparent-text{position:absolute;top:12px;right:10px;width:30px;font-size:12px;line-height:12px;text-align:center;color:#999}.wpcf-field .wpcf--transparent-button{cursor:pointer;user-select:none;margin-top:10px;font-size:11px;text-align:center;border-radius:2px;padding:3px 7px;box-shadow:0 1px 0 rgba(0,0,0,.1);letter-spacing:.2px;color:#777;border:1px solid #ccc;background-color:#f7f7f7;transition:background-color .2s,border-color .2s,color .2s}.wpcf-field .wpcf--transparent-active .wp-color-result{background-image:url(../images/checkerboard.png);background-size:135px;background-position:center left;background-color:transparent!important}.wpcf-field .wpcf--transparent-active .wpcf--transparent-button{color:#fff;border-color:#3ea032;background-color:#4fb845}.wpcf-field .wpcf--transparent-active .fa:before{content:"\f205"}.wpcf-nav-menu-options{clear:both;float:left;width:100%}.wpcf-nav-menu-options>.wpcf-fields{margin-left:-10px;margin-top:10px;margin-bottom:10px;border-top:1px solid #eee;border-bottom:1px solid #eee}.wpcf-nav-menu-options>.wpcf-fields>.wpcf-field{padding:12px 14px 12px 12px}.wpcf-nav-menu-options>.wpcf-fields>.wpcf-field .wpcf-title{float:none;width:100%;margin-bottom:5px}.wpcf-nav-menu-options>.wpcf-fields>.wpcf-field .wpcf-fieldset{float:none;width:100%}.wpcf-nav-menu-options .wpcf-field-text input{width:100%}.wpcf-nav-menu-options .wpcf-field-notice .wpcf-notice{padding:15px}.wpcf-nav-menu-title{padding:12px 14px 12px 12px;background-color:#f5f5f5;border-top:1px solid #eee;border-bottom:1px solid #eee}.wpcf-nav-menu-title:first-child{border-top:0}.wpcf-nav-menu-title h4{margin:0;padding:0;color:#23282d}.wpcf-nav-menu-icon{margin-right:5px}.wpcf-subtitle-text{margin-top:6px;font-weight:400;color:#999;font-style:italic}.wpcf-desc-text{clear:both;float:left;width:100%;margin-top:6px;font-weight:400;color:#999;font-style:italic}.wpcf-error-text{margin-top:6px;color:#d02c21}.wpcf-before-text{margin-bottom:6px}.wpcf-after-text{margin-top:6px}.wpcf-metabox-hide{display:none!important}.wpcf-metabox-show{display:block!important}.wpcf-depend-hidden.wpcf-depend-on{display:none}.wpcf-depend-visible.wpcf-depend-on{display:block;opacity:.75;filter:grayscale(1);user-select:none;border-top:1px solid #eee}.wpcf-depend-visible.wpcf-depend-on .clear:before{content:"";left:0;top:0;right:0;bottom:0;position:absolute;background-color:#eee;opacity:.25;z-index:10}.wpcf-warning-primary{color:#fff!important;border-color:#dc3545!important;background:#dc3545!important}.wpcf-warning-primary:focus,.wpcf-warning-primary:hover{border-color:#bd2130!important;background:#bd2130!important}.wpcf-warning-primary:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #bd2130!important}.wpcf-warning-primary:active{border-color:#bd2130!important;background:#bd2130!important}.wpcf-form-result{display:none;padding:12px;margin:0 0 15px 0;background-color:#fff;border-left:4px solid #555;-moz-box-shadow:0 1px 1px rgba(0,0,0,.1);-webkit-box-shadow:0 1px 1px rgb(0 0 0 / 10%);box-shadow:0 1px 1px rgb(0 0 0 / 10%)}.wpcf-form-show{display:block}.wpcf-form-success{border-left-color:#46b450}.wpcf-form-warning{border-left-color:#faebcc}.wpcf-label-error{position:relative;top:-2px;display:inline-block;font-size:10px;line-height:10px;height:10px;width:10px;padding:1px;font-style:normal;text-align:center;color:#fff;vertical-align:middle;background-color:#e10000;border-radius:2px}.wpcf-no-option{padding:30px}.wpcf-field-spinner .wpcf-input-number{-moz-appearance:textfield}.wpcf-field-spinner .wpcf-input-number::-webkit-inner-spin-button,.wpcf-field-spinner .wpcf-input-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.wpcf-fa5-shims .wpcf .fab,.wpcf-fa5-shims .wpcf .far,.wpcf-fa5-shims .wpcf .fas{font-family:FontAwesome;font-style:normal}@media only screen and (max-width:1200px){.wpcf-metabox .wpcf-field .wpcf-title{float:none;width:100%;margin-bottom:10px}.wpcf-metabox .wpcf-field .wpcf-fieldset{float:none;width:100%}}@media only screen and (max-width:782px){.wpcf-header-inner{text-align:center}.wpcf-header-inner h1{width:100%;margin-bottom:10px}.wpcf-form-result{float:none;margin-right:0;margin-bottom:10px}.wpcf-header-left,.wpcf-header-right,.wpcf-search{width:100%}.wpcf-search{text-align:center;margin-bottom:15px}.wpcf-footer{text-align:center}.wpcf-buttons{float:none}.wpcf-copyright{float:none;margin-top:10px}.wpcf-expand-all,.wpcf-nav,.wpcf-nav-background,.wpcf-reset-section{display:none!important}.wpcf-nav-normal+.wpcf-content{margin-left:0}.wpcf-section,.wpcf-section-title{display:block!important}.wpcf-field .wpcf-title{float:none;width:100%;margin-bottom:10px}.wpcf-field .wpcf-fieldset{float:none;width:100%}.wpcf-field-color .button.wp-picker-clear{padding:0 8px;line-height:2.14285714;min-height:32px}.wpcf-modal-inner{width:350px;height:400px}.wpcf-modal-content{height:237px}.wpcf-icon-dialog .wpcf-modal-inner{width:305px;height:380px}.wpcf-icon-dialog .wpcf-modal-content{height:267px}.wpcf-modal-icon .wpcf-modal-inner{width:330px;height:385px}.wpcf-modal-icon .wpcf-modal-content{height:252px}.wpcf-profile-options>.wpcf-field>.wpcf-title,.wpcf-taxonomy-edit-fields>.wpcf-field>.wpcf-title{float:none;width:100%;margin-bottom:10px}.wpcf-profile-options>.wpcf-field>.wpcf-fieldset,.wpcf-taxonomy-edit-fields>.wpcf-field>.wpcf-fieldset{float:none;width:100%}.wpcf-nav-menu-options>.wpcf-fields{margin-left:-10px;margin-right:-10px}.wpcf-nav-menu-options>.wpcf-fields>.wpcf-field{padding:10px}}.chosen-container{position:relative;vertical-align:middle;font-size:13px;user-select:none;max-width:390px;float:left}.chosen-container *{box-sizing:border-box}.chosen-container .chosen-drop{position:absolute;top:100%;z-index:1010;max-width:390px;width:100%;border:1px solid #aaa;border-top:0;background-color:#fff;box-shadow:0 4px 5px rgba(0,0,0,.15);clip:rect(0,0,0,0);clip-path:inset(100% 100%)}.chosen-container.chosen-with-drop .chosen-drop{clip:auto;clip-path:none}.chosen-container a{cursor:pointer}.chosen-container .chosen-single .group-name,.chosen-container .search-choice .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400;color:#999}.chosen-container .chosen-single .group-name:after,.chosen-container .search-choice .group-name:after{content:":";padding-left:2px;vertical-align:top}.chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:25px;border:1px solid #aaa;border-radius:5px;background-color:#fff;background:linear-gradient(#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,.1);color:#444;text-decoration:none;white-space:nowrap;line-height:24px}.chosen-container-single .chosen-default{color:#999}.chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.chosen-container-single .chosen-single div{position:absolute;top:0;right:0;display:block;width:18px;height:100%}.chosen-container-single .chosen-single div b{display:block;width:100%;height:100%}.chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #aaa;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 4px 4px;background-clip:padding-box}.chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;clip:rect(0,0,0,0);clip-path:inset(100% 100%)}.chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.chosen-container .chosen-results li.highlighted{background-color:#3875d7;background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);color:#fff}.chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.chosen-container .chosen-results li.group-result{display:list-item;font-weight:700;cursor:default}.chosen-container .chosen-results li.group-option{padding-left:15px}.chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;max-width:390px;width:100%;height:auto;border:1px solid #aaa;background-color:#fff;background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chosen-container-multi .chosen-choices li{float:left;list-style:none}.chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;outline:0;border:0!important;background:0 0!important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0;width:25px;height:25px;min-height:25px}.chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 6px;border:1px solid #aaa;max-width:100%;border-radius:3px;background-color:#eee;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word;white-space:nowrap}.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:0;right:0;display:block;width:12px;height:12px;font-size:1px}.chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ccc;background-color:#e4e4e4;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);color:#666}.chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.chosen-container-multi .chosen-results{margin:0;padding:0}.chosen-container-multi .chosen-drop .result-selected{color:#ccc;cursor:default}.chosen-container-active .chosen-single{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #aaa;border-bottom-right-radius:0;border-bottom-left-radius:0;background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset}.chosen-container-active.chosen-with-drop .chosen-single div{border-left:none;background:0 0}.chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222!important}.chosen-disabled{opacity:.5!important;cursor:default}.chosen-disabled .chosen-single{cursor:default}.chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.chosen-rtl{text-align:right}.chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.chosen-rtl .chosen-single div{right:auto;left:3px}.chosen-rtl .chosen-single abbr{right:auto;left:26px}.chosen-rtl .chosen-choices li{float:right}.chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;direction:rtl}.text-center{text-align:center}.sp-after-text{padding-left:5px}.sp-wqvpro-framework .wpcf-nav-inline.wpcf-nav{position:inherit;float:none;width:100%;background:#f1f1f1;-webkit-box-shadow:inset 3px -1px 1px -1px rgba(0,0,0,.04);-moz-box-shadow:inset 3px -1px 1px -1px rgba(0,0,0,.04);box-shadow:inset 3px -1px 1px -1px rgba(0,0,0,.04)}.wpcf-theme-light .wpcf-nav-inline{border-bottom:0}.wpcf.wpcf-options .wpcf-nav ul li{margin-bottom:-1px}.wpcf.wpcf-options .wpcf-nav-background{width:235px;background-color:#e3e3e3}.wpcf.wpcf-options .wpcf-nav ul li a{font-size:13px;padding:16px 15px;line-height:1.4;border-bottom:2px solid #cecece;color:#fff;text-transform:uppercase;font-weight:600;margin-bottom:-1px}.wpcf.wpcf-options .wpcf-nav ul li.wpcf-tab-expanded a{color:#000}.wpcf.wpcf-options .wpcf-nav ul li.wpcf-tab-expanded a i{color:#4498be}.wpcf.wpcf-options .wpcf-nav ul li :after{display:none}.sp-field-button-set label input{display:none}.sp-field-button-set label span{background:linear-gradient(to bottom,#fff,#eee);padding:9px 17px;margin:0;vertical-align:middle;border:solid 1px #ccc;border-radius:0;cursor:pointer;border-right:none}.sp-field-button-set label input~span:hover{background:#fff}.sp-field-button-set label:first-child span{border-radius:4px 0 0 4px}.sp-field-button-set label:last-child span{border-radius:0 4px 4px 0;border-right:solid 1px #ccc}.sp-field-button-set label input:checked~span{background:linear-gradient(to bottom,#51ccfb,#058cbf);color:#fff;cursor:default;box-shadow:none}.wpcf-field-slider input{display:inline-block;width:42px;background:#fff}.wpcf-field-slider input[type=slider]:before{width:35px;height:35px;display:block;background:red;content:"%";position:absolute;right:0;top:0;float:right;margin-right:-20px;color:#fff}.wpcf--wrap{display:inline-block;margin:0 20px 0 0;width:50%;vertical-align:super}.wpcf-field-slider .ui-slider{position:relative;width:100%;height:8px;background:#f8f8f8;border:1px solid #e2e2e2;border-radius:2px}.wpcf-field-slider .ui-slider-range{background:#ddd;height:8px}.wpcf-field-slider .ui-slider-handle{height:16px;width:16px;background:#22aade;position:absolute;top:-4px;border-radius:2px;cursor:pointer}@media (min-width:1400px){.sp-metabox-framework .wpcf--wrap,.wpcf.wpcf-options .wpcf--wrap{width:35%}}div.sp-wqvpro-help .feature-section .sp-wqvpro-feature{background-color:#fff;padding:20px 20px;border:1px solid #ddd}div.sp-wqvpro-help .feature-section .sp-wqvpro-feature h3{font-size:16px;margin-top:18px}div.sp-wqvpro-help .feature-section i.sp-font{font-size:30px;display:block;color:#994294}div.sp-wqvpro-help.about-wrap h1{font-size:2.6em}div.sp-wqvpro-help .headline-feature.feature-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}.about-wrap .plugin-section .three-col .col{background:#fff}.about-wrap .plugin-section .three-col .col .sp-wqvpro-plugin{border:1px solid #ddd}.about-wrap .plugin-section .three-col .col .sp-wqvpro-plugin .sp-wqvpro-plugin-content{padding-left:20px;padding-right:20px;padding-bottom:20px}.about-wrap .plugin-section .three-col .col .sp-wqvpro-plugin .sp-wqvpro-plugin-content h3{margin-top:20px;margin-bottom:8px;font-weight:500}.about-wrap .plugin-section .three-col .col .sp-wqvpro-plugin .sp-wqvpro-plugin-content p{margin-top:0}.about-wrap .plugin-section .sp-plugin-section-title h2{font-size:2.2em;color:#32373c;font-weight:400}.about-wrap .plugin-section .sp-plugin-section-title h4{font-weight:400;text-align:center;font-size:18px;color:#555d66;margin-top:15px;margin-bottom:40px}.sp-divider{width:100%;display:block;height:10px}.wpcf.wpcf-options .sp-font-preview{width:45%;padding:10px;border:1px solid #e6e6e6;color:#7b7b7b;margin-top:20px;background-color:#fff;font-size:16px}.wpcf_margin_field .sp-font-bottom,.wpcf_margin_field .sp-font-left,.wpcf_margin_field .sp-font-right,.wpcf_margin_field .sp-font-top{margin-right:30px}.wpcf_margin_field .sp-font-bottom:before,.wpcf_margin_field .sp-font-left:before,.wpcf_margin_field .sp-font-right:before,.wpcf_margin_field .sp-font-top:before{content:"px";position:absolute;top:19px;right:-20px;height:34px;width:29px;line-height:34px;text-align:center;background-color:#f5f5f5;display:block;border:1px solid #ddd;border-left:none}.wpcf.wpcf-options .sp-content .sp-section-title{background-color:#994294}.wpcf-field-carousel_type .wpcf--image{cursor:pointer;position:relative;display:inline-block;max-width:100%;margin:0 5px 5px 0;vertical-align:bottom;border:2px solid transparent;background-color:#fff;user-select:none;-webkit-user-select:none;-moz-transition:all .2s;-o-transition:all .2s;-webkit-transition:all .2s;transition:all .2s}.wpcf-field-image_select .wpcf--image:before{position:absolute;top:0;left:0;text-align:center;font-size:11px;font-family:FontAwesome;content:"\f00c";width:15px;height:15px;line-height:15px;opacity:0;color:#fff;background-color:#1ea4b0;transition:opacity .2s}.wpcf-field-image_select img{vertical-align:top}.wpcf-field-carousel_type input,.wpcf-field-image_select input{display:none}.wpcf-field-carousel_type .wpcf--image{background:#e8ecef;color:#7b8898;border:solid 3px #e8ecef;border-radius:2px;cursor:pointer;text-align:center;width:120px;height:80px;box-shadow:inset 0 0 0 3px #fff}.wpcf-field-carousel_type i{font-size:30px;width:32px;height:30px;margin-top:15px}.wpcf-field-carousel_type p{margin-top:5px;font-weight:500}.wpcf-field-carousel_type .wpcf--image.wpcf--active{border-color:#1ea4b0}.wpcf.wpcf-options .sp-field-sorter .sp-modules{width:100%}.wpcf.wpcf-options .wpcf-header-inner input{text-shadow:0 0 0;border:0;border-radius:0;height:38px;border-radius:4px;padding:0 16px;font-size:13px;font-weight:500;margin-left:8px;font-weight:500;text-transform:uppercase;-webkit-transition:all .4s;-moz-transition:all .4s;-ms-transition:all .4s;-o-transition:all .4s;transition:all .4s}.wpcf.wpcf-options .wpcf-header-inner input.button-primary{background-color:#c5c5c6;border-color:transparent;color:#fff;width:140px;pointer-events:none}.wpcf.wpcf-options .wpcf-header-inner input.button-primary:hover{background-color:#00b647!important}.wpcf.wpcf-options .wpcf-header-inner input.wpcf-reset-section{background-color:#cd3c3c!important;color:#fff;margin-left:8px}.wpcf.wpcf-options .wpcf-header-inner input.wpcf-reset-section:hover{background-color:#c03635!important;color:#fff}.wpcf.wpcf-options .wpcf-header-inner .button.wpcf-save-ajax[disabled]{background-color:#02cc7b!important;color:#fff!important;border:none}.wpcf.wpcf-options .wpcf-nav ul li a{background:#efefef;color:#000;border-bottom:2px solid #cecece;padding:15px 15px;border-right:0;border-top:1px solid transparent;border-right:1px solid #cecece}.wpcf.wpcf-options .wpcf-nav ul li:last-child a{border-bottom:1px solid #cecece}.wpcf.wpcf-options .wpcf-nav ul li.wpcf-tab-expanded a{background-color:#fff;background-color:#fff;border-right:1px solid #fff;border-top:1px solid #fff;box-shadow:3px 0 0 0 #178087 inset}.wpcf.wpcf-options .wpcf-nav ul ul:before{background-color:transparent}.wpcf.wpcf-options .wpcf-nav ul ul{border-bottom:1px solid #cecece}.wpcf.wpcf-options .wpcf-nav ul ul li a{background-color:#f8fdff;padding:13px 15px 13px 24px}@media only screen and (max-width:782px){.wpcf.wpcf-options .wpcf-header-inner h1{float:none}}#wpcf_shortcode_options{border-top-color:#f1f1f1}#wpcf_shortcode_options .wpcf-nav ul li{margin-bottom:-1px}#wpcf_shortcode_options .wpcf-nav.wpcf-nav-metabox{border-right-color:#f1f1f1;border-right-color:#f1f1f1;background:#f1f1f1;margin-right:-2px}#wpcf_shortcode_options .wpcf-content{border-top:1px solid #e5e5e5;box-shadow:0 -1px 1px rgba(0,0,0,.04)}.wpcf-field.wpcf-field-carousel_type{padding-bottom:0}#sp_wpcp_upload_options .wpcf-field-carousel_type .wpcf-title,#sp_wpcp_upload_options .wpcf-field-gallery .wpcf-title,.wpcf-video-description .wpcf-title,.wpcf-video-field-wrapper>.wpcf-title,.wpcf_carousel_content_bg .wpcf-title,.wpcf_carousel_content_wrapper .wpcf-title{width:100%}#sp_wpcp_upload_options .wpcf-field-carousel_type .wpcf-fieldset,#sp_wpcp_upload_options .wpcf-field-gallery .wpcf-fieldset,.wpcf-video-description .wpcf-fieldset,.wpcf-video-field-wrapper>.wpcf-fieldset,.wpcf_carousel_content_bg .wpcf-fieldset,.wpcf_carousel_content_wrapper .wpcf-fieldset{margin-top:30px;margin-left:0;float:none;width:auto}.wpcf-field.wpcf-field-select.wpcf_taxonomy_operator .wpcf-fieldset,.wpcf-field.wpcf-field-select.wpcf_taxonomy_terms .wpcf-fieldset,.wpcf-field.wpcf-field-spinner .wpcf-fieldset,.wpcf-field.wpcf-field-switcher .wpcf-fieldset{position:relative}#sp_wpcp_display_shortcode .handlediv,#sp_wpcp_display_shortcode .hndle,#sp_wpcp_display_shortcode .postbox-header,#sp_wpcp_shortcode_options .handlediv,#sp_wpcp_shortcode_options .hndle,#sp_wpcp_shortcode_options .postbox-header,#sp_wpcp_upload_options .handlediv,#sp_wpcp_upload_options .hndle,#sp_wpcp_upload_options .postbox-header{display:none}#wpcf-section-sp_wpcp_display_shortcode_0,#wpcf-section-sp_wpcp_upload_options_0{display:block}.wpcf-field-icon_select figure:before,.wpcf-field-image_select figure:before{color:#fff;background-color:#1ea4b0}.wpcf-field-image_select .wpcf--active img{outline-color:#1ea4b0}.wpcf-field-image_select figure .sp-carousel-type{text-align:center;margin-bottom:0;font-weight:500;margin-top:5px}.wpcf-field-image_select .wpcf--image img{color:#7b8898;margin-right:0;outline:solid 3px transparent;border-radius:2px;cursor:pointer;text-align:center;width:80px;outline-offset:-3px}.wpcf-field-image_select .wpcf--image.wpcf--active img{outline-color:#1ea4b0}#sp_wpcp_upload_options .wpcp-admin-header{background-color:#157592;background:linear-gradient(-45deg,#22afba,#157592);padding:20px 26px;overflow:hidden;height:33px}#sp_wpcp_upload_options .wpcp-admin-header .support{margin-left:16px;float:right}#sp_wpcp_upload_options .wpcp-admin-header .support a{color:#fff;text-decoration:none;line-height:35px;font-size:15px;font-weight:500}#sp_wpcp_upload_options .wpcp-admin-header img{max-width:200px}.wpcf-field.wpcf-field-spinner .wpcf-help{left:110px}.wpcf-field-text.wpcf-field .wpcf-fieldset{position:relative}.wpcf-field-text.wpcf-field .wpcf-help{left:345px}.wpcf-field.wpcf-field-column .wpcf-help{position:static;top:auto;transform:translateY(0);padding:0;float:left}#sp_wpcp_display_shortcode .wpcf-field.wpcf-field-shortcode.wpcp-admin-footer{display:flex;padding:0;flex-wrap:wrap}.wpcf-field-shortcode.wpcp-admin-footer .wpcf-shortcode-selectable{background-color:rgba(82,179,217,.11);padding:10px 15px 10px 33px;display:inline-block;-webkit-touch-callout:all;-webkit-user-select:all;-khtml-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all;border:1px solid rgba(82,179,217,.2);border-radius:2px;cursor:pointer;background-image:url(../images/copy.svg);background-size:16px;background-position:8px center;background-repeat:no-repeat}.wpcf-field-shortcode.wpcp-admin-footer .sptp-copy-btn{width:16px;margin-left:13px;position:absolute;top:50%;margin-top:-8px}#wpcf-section-sp_wpcp_display_shortcode_1 .wpcf-field{display:flex;padding:0;flex-wrap:wrap}.wpcf-field-shortcode.wpcp-admin-footer .wpcf-scode-wrap:first-of-type{border-right:1px solid #ddd}.wpcf-field-shortcode.wpcp-admin-footer .wpcf-scode-wrap{padding-top:22px;padding-bottom:22px;text-align:center;width:49%}.wpcf-field-shortcode.wpcp-admin-footer .wpcf-sc-title{font-weight:500;font-size:14px!important;padding-top:0!important;color:#4c5158;margin-right:5px}@media only screen and (max-width:990px){.wpcf-field-shortcode.wpcp-admin-footer .wpcf-scode-wrap:first-of-type{border-right:none;border-bottom:1px solid #ddd}.wpcf-field-shortcode.wpcp-admin-footer .wpcf-scode-wrap{width:100%}}.wpcf-field.wpcf-field-checkbox .wpcf-help{display:inline-block;float:none;vertical-align:middle}.wpcf-field.wpcf-field-button_set.wpcp_export{margin-top:0;padding-top:0}.wpcf-field-button_set.wpcp_export .wpcf--button:hover,.wpcf-field.wpcf-field-custom_import.wpcp_import button:hover{background:#135e96;border-color:#135e96;color:#fff}.wpcf-field-button_set.wpcp_export .wpcf--button,.wpcf-field.wpcf-field-custom_import.wpcp_import button{background:#2271b1;border-color:#2271b1;color:#fff;text-decoration:none;text-shadow:none;display:inline-block;text-decoration:none;font-size:13px;line-height:2.15384615;min-height:30px;margin:0;padding:0 10px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;border-radius:3px;white-space:nowrap;box-sizing:border-box}.sp-lcp-options .wpcf-field-select .wpcf-fieldset{position:relative}.wpcf-field.wpcf-field-custom_import.wpcp_import .wpcf-fieldset{position:relative}.wpcf-field.wpcf-field-custom_import.wpcp_import p{padding-bottom:0;margin-bottom:1px}.wpcf-field.wpcf-field-custom_import.wpcp_import button{margin-top:10px;padding-bottom:0}.wpcf-field.wpcf-field-custom_import.wpcp_import .wpcf-help{cursor:help;position:absolute;top:80%;transform:translateY(-50%);padding:5px;font-size:14px;color:#aaa;width:15px;left:64px}.wpcf-field.wpcf-field-select.wpcp_post_ids .chosen-container .chosen-drop{max-width:400px}.wpcf-field.wpcf-field-select.wpcp_post_ids{padding-top:0}.wpcf-options .wpcf-header-inner h1.export-import img{height:24px;height:24px;float:left;width:28px;margin-right:8px;padding-top:6px}.wpcf-options.wpcp_tools .wpcf-nav-options li:nth-child(1) a{background-image:url(../images/export-icon.svg)}.wpcf-options.wpcp_tools .wpcf-nav-options li:nth-child(2) a{background-image:url(../images/import.svg)}.wpcf-options.wpcp_tools .wpcf-nav-options li:nth-child(1) a.wpcf-active{background-image:url(../images/file-export-icon1.svg)}.wpcf-options.wpcp_tools .wpcf-nav-options li:nth-child(2) a.wpcf-active{background-image:url(../images/file-import-icon1.svg)}.wpcf-options.wpcp_tools .wpcf-nav-options ul li a{padding:15px 30px;background-size:14px;background-position:10px center;background-repeat:no-repeat}.wpcf-field-upload input{width:50%}.carousel_video_source_id .wpcf-help{position:static}.wpcf-field-carousel_type .wpcf--image:nth-child(4),.wpcf-field-carousel_type .wpcf--image:nth-child(5),.wpcf-field-carousel_type .wpcf--image:nth-child(6){pointer-events:none}.wpcf-field-carousel_type .wpcf--image{position:relative}.wpcf-field-carousel_type .wpcf--image label strong{position:absolute;top:3px;right:3px;background:#cbd6df;padding:0 5px;font-size:10px}.wpcf-field-button_set .wpcf--button.wpcf-pro-only,.wpcf-field-image_select .wpcf--image.wpcf-pro-only{color:rgba(85,85,85,.6)!important;pointer-events:none;position:relative}.wpcf-field-button_set .wpcf--button.wpcf-pro-only{background-color:rgba(247,247,247,.4)!important}.wpcf-field.wpcf-field-switcher.only_pro_switcher .wpcf--ball::after{content:"PRO";position:relative;text-align:center;width:24px;float:right;font-weight:600;font-size:8px;color:#a5a5a5;opacity:1;line-height:18px}.wpcf-field.wpcf-field-switcher.only_pro_switcher .wpcf--switcher{background:#cbcfd0;pointer-events:none}.wpcf-field-button_set .wpcf--button.wpcf-pro-only:after,.wpcf-field-image_select .wpcf--image.wpcf-pro-only:after{position:absolute;top:0;right:0;color:#a5a5a5;background-color:#e0e0e0;font-weight:500;padding:0 4px;content:"PRO";text-align:center;font-size:8px;line-height:11px;opacity:1}.wpcf-field-image_select .wpcf--image.wpcf-pro-only:after{top:2px;right:2px;border-radius:0 1px 0 0}.wpcf-field.wpcf-field-switcher.only_pro_switcher .sp_wpcp--switcher{background:#cbcfd0;pointer-events:none}.wpcf-field-image_select.wpcp_grid_mode .wpcf--image img{width:60px;outline:solid 2px transparent;outline-offset:-2px}.wpcf-field-image_select.wpcp_grid_mode .wpcf--active img{outline-color:#1ea4b0}.wpcf-field-image_select.wpcp_grid_mode figure:before,.wpcf-field-image_select.wpcp_layout figure:before{content:'';width:0}.only_pro_switcher,.pro_only_field,.wpcf-field-column.wpcp_carousel_row_pro_only{opacity:.7;pointer-events:none}.wpcf-field-column.wpcp_carousel_row_pro_only .wpcf--inputs .wpcf--input:nth-child(5){position:relative}.wpcf-field-column.wpcp_carousel_row_pro_only .wpcf--inputs .wpcf--input:nth-child(5)::after{position:absolute;content:"PRO";background-color:#d4d4d4;padding:2px 4px;font-size:8px;border-radius:2px;height:11px;margin-left:5px;margin-top:7px;right:-20px}#sp_wpcp_shortcode_options{border-top-color:#f1f1f1}#sp_wpcp_shortcode_options .wpcf-nav ul li{margin-bottom:-1px}#sp_wpcp_shortcode_options .wpcf-nav.wpcf-nav-metabox{border-right-color:#f1f1f1;border-right-color:#f1f1f1;background:#f1f1f1;margin-right:-2px}#sp_wpcp_shortcode_options .wpcf-content{border-top:1px solid #e5e5e5;box-shadow:0 -1px 1px rgba(0,0,0,.04)}.post-type-sp_wp_carousel #sp__wpcf-show-preview{position:fixed;right:144px;bottom:30px;z-index:1001;width:155px;text-align:center;padding:10px 0;background:#54b154;color:#fff;border-radius:3px;text-decoration:none;display:block;font-weight:500;text-transform:uppercase;letter-spacing:.2px;margin:0;box-sizing:border-box;border-color:#44a944;overflow:hidden}#sp_wpcf_live_preview.postbox .handle-order-higher,#sp_wpcf_live_preview.postbox .handle-order-lower{display:none}#sp-wpcf-preview-box{overflow-x:auto;padding:0 20px;resize:vertical;width:auto;height:auto;min-height:200px}#wpcf-section-sp_wpcf_live_preview_0{display:block}
|
admin/views/sp-framework/assets/js/main.js
CHANGED
@@ -2663,4 +2663,65 @@
|
|
2663 |
$(this).css({"background-color": "#C5C5C6","pointer-events": "none"}).val('Changes Saved');
|
2664 |
})
|
2665 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2666 |
})(jQuery, window, document);
|
2663 |
$(this).css({"background-color": "#C5C5C6","pointer-events": "none"}).val('Changes Saved');
|
2664 |
})
|
2665 |
|
2666 |
+
// Live Preview script for Wp-Carousel-free.
|
2667 |
+
var preview_box = $('#sp-wpcf-preview-box');
|
2668 |
+
var preview_display = $('#sp_wpcf_live_preview').hide();
|
2669 |
+
$(document).on('click', '#sp__wpcf-show-preview:contains(Hide)', function (e) {
|
2670 |
+
e.preventDefault();
|
2671 |
+
var _this = $(this);
|
2672 |
+
_this.html('<i class="fa fa-eye" aria-hidden="true"></i> Show Preview');
|
2673 |
+
preview_box.html('');
|
2674 |
+
preview_display.hide();
|
2675 |
+
});
|
2676 |
+
$(document).on('click', '#sp__wpcf-show-preview:not(:contains(Hide))', function (e) {
|
2677 |
+
e.preventDefault();
|
2678 |
+
var previewJS = wpcf_vars.previewJS;
|
2679 |
+
var _data = $('form#post').serialize();
|
2680 |
+
var _this = $(this);
|
2681 |
+
var data = {
|
2682 |
+
action: 'sp_wpcf_preview_meta_box',
|
2683 |
+
data: _data,
|
2684 |
+
ajax_nonce: $('#wpcf_metabox_noncesp_wpcf_live_preview').val()
|
2685 |
+
};
|
2686 |
+
$.ajax({
|
2687 |
+
type: "POST",
|
2688 |
+
url: ajaxurl,
|
2689 |
+
data: data,
|
2690 |
+
error: function (response) {
|
2691 |
+
console.log(response)
|
2692 |
+
},
|
2693 |
+
success: function (response) {
|
2694 |
+
preview_display.show();
|
2695 |
+
preview_box.html(response);
|
2696 |
+
$.getScript(previewJS, function () {
|
2697 |
+
_this.html('<i class="fa fa-eye-slash" aria-hidden="true"></i> Hide Preview');
|
2698 |
+
$(document).on('keyup change', '.post-type-sp_wp_carousel', function (e) {
|
2699 |
+
e.preventDefault();
|
2700 |
+
_this.html('<i class="fa fa-refresh" aria-hidden="true"></i> Update Preview');
|
2701 |
+
});
|
2702 |
+
$("html, body").animate({ scrollTop: preview_display.offset().top - 50 }, "slow");
|
2703 |
+
});
|
2704 |
+
$('.wpcp-carousel-preloader').animate({ opacity: 1 }, 600).hide();
|
2705 |
+
var carousel_id = $('.wpcp-carousel-section.wpcp-preloader').attr('id');
|
2706 |
+
$('#' + carousel_id).animate({ opacity: 1 }, 600);
|
2707 |
+
$('.wpcpro-post-pagination-number').click(function (e) {
|
2708 |
+
e.preventDefault();
|
2709 |
+
e.stopPropagation();
|
2710 |
+
$('.spwpc-pagination-not-work').animate({
|
2711 |
+
opacity: 1,
|
2712 |
+
bottom: 25
|
2713 |
+
}, 300);
|
2714 |
+
setTimeout(function () {
|
2715 |
+
jQuery(".spwpc-pagination-not-work").animate({
|
2716 |
+
opacity: 0,
|
2717 |
+
}, 200);
|
2718 |
+
jQuery(".spwpc-pagination-not-work").animate({
|
2719 |
+
bottom: 0
|
2720 |
+
}, 0);
|
2721 |
+
}, 3000);
|
2722 |
+
});
|
2723 |
+
}
|
2724 |
+
})
|
2725 |
+
});
|
2726 |
+
|
2727 |
})(jQuery, window, document);
|
admin/views/sp-framework/assets/js/main.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function($,window,document,undefined){"use strict";var SP_WPCF=SP_WPCF||{};SP_WPCF.funcs={},SP_WPCF.vars={onloaded:!1,$body:$("body"),$window:$(window),$document:$(document),$form_warning:null,is_confirm:!1,form_modified:!1,code_themes:[],is_rtl:$("body").hasClass("rtl")},SP_WPCF.helper={uid:function(prefix){return(prefix||"")+Math.random().toString(36).substr(2,9)},preg_quote:function(str){return(str+"").replace(/(\[|\])/g,"\\$1")},name_nested_replace:function($selector,field_id){var checks=[],regex=new RegExp(SP_WPCF.helper.preg_quote(field_id+"[\\d+]"),"g");$selector.find(":radio").each((function(){(this.checked||this.orginal_checked)&&(this.orginal_checked=!0)})),$selector.each((function(index){$(this).find(":input").each((function(){this.name=this.name.replace(regex,field_id+"["+index+"]"),this.orginal_checked&&(this.checked=!0)}))}))},debounce:function(callback,threshold,immediate){var timeout;return function(){var context=this,args=arguments,later=function(){timeout=null,immediate||callback.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,threshold),callNow&&callback.apply(context,args)}},get_cookie:function(name){var e,b,cookie=document.cookie,p=name+"=";if(cookie){if(-1===(b=cookie.indexOf("; "+p))){if(0!==(b=cookie.indexOf(p)))return null}else b+=2;return-1===(e=cookie.indexOf(";",b))&&(e=cookie.length),decodeURIComponent(cookie.substring(b+p.length,e))}},set_cookie:function(name,value,expires,path,domain,secure){var d=new Date;"object"==typeof expires&&expires.toGMTString?expires=expires.toGMTString():parseInt(expires,10)?(d.setTime(d.getTime()+1e3*parseInt(expires,10)),expires=d.toGMTString()):expires="",document.cookie=name+"="+encodeURIComponent(value)+(expires?"; expires="+expires:"")+(path?"; path="+path:"")+(domain?"; domain="+domain:"")+(secure?"; secure":"")}},$.fn.wpcf_clone=function(){for(var base=$.fn.clone.apply(this,arguments),clone=this.find("select").add(this.filter("select")),cloned=base.find("select").add(base.filter("select")),i=0;i<clone.length;++i)for(var j=0;j<clone[i].options.length;++j)!0===clone[i].options[j].selected&&(cloned[i].options[j].selected=!0);return this.find(":radio").each((function(){this.orginal_checked=this.checked})),base},$.fn.wpcf_expand_all=function(){return this.each((function(){$(this).on("click",(function(e){e.preventDefault(),$(".wpcf-wrapper").toggleClass("wpcf-show-all"),$(".wpcf-section").wpcf_reload_script(),$(this).find(".fa").toggleClass("fa-indent").toggleClass("fa-outdent")}))}))},$.fn.wpcf_nav_options=function(){return this.each((function(){var $nav=$(this),$window=$(window),$wpwrap=$("#wpwrap"),$links=$nav.find("a"),$last;$window.on("hashchange wpcf.hashchange",(function(){var hash=window.location.hash.replace("#tab=",""),slug=hash||$links.first().attr("href").replace("#tab=",""),$link=$('[data-tab-id="'+slug+'"]');if($link.length){$link.closest(".wpcf-tab-item").addClass("wpcf-tab-expanded").siblings().removeClass("wpcf-tab-expanded"),$link.next().is("ul")&&(slug=($link=$link.next().find("li").first().find("a")).data("tab-id")),$links.removeClass("wpcf-active"),$link.addClass("wpcf-active"),$last&&$last.addClass("hidden");var $section=$('[data-section-id="'+slug+'"]');$section.removeClass("hidden"),$section.wpcf_reload_script(),$(".wpcf-section-id").val($section.index()+1),$last=$section,$wpwrap.hasClass("wp-responsive-open")&&($("html, body").animate({scrollTop:$section.offset().top-50},200),$wpwrap.removeClass("wp-responsive-open"))}})).trigger("wpcf.hashchange")}))},$.fn.wpcf_nav_metabox=function(){return this.each((function(){var $nav=$(this),$links=$nav.find("a"),unique_id=$nav.data("unique"),post_id=$("#post_ID").val()||"global",$last_section,$last_link;$links.on("click",(function(e){e.preventDefault();var $link=$(this),section_id=$link.data("section");void 0!==$last_link&&$last_link.removeClass("wpcf-active"),void 0!==$last_section&&$last_section.addClass("hidden"),$link.addClass("wpcf-active");var $section=$("#wpcf-section-"+section_id);$section.removeClass("hidden"),$section.wpcf_reload_script(),SP_WPCF.helper.set_cookie("wpcf-last-metabox-tab-"+post_id+"-"+unique_id,section_id),$last_section=$section,$last_link=$link}));var get_cookie=SP_WPCF.helper.get_cookie("wpcf-last-metabox-tab-"+post_id+"-"+unique_id);get_cookie?$nav.find('a[data-section="'+get_cookie+'"]').trigger("click"):$links.first("a").trigger("click")}))},$.fn.wpcf_page_templates=function(){this.length&&$(document).on("change",".editor-page-attributes__template select, #page_template",(function(){var maybe_value=$(this).val()||"default";$(".wpcf-page-templates").removeClass("wpcf-metabox-show").addClass("wpcf-metabox-hide"),$(".wpcf-page-"+maybe_value.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-")).removeClass("wpcf-metabox-hide").addClass("wpcf-metabox-show")}))},$.fn.wpcf_post_formats=function(){this.length&&$(document).on("change",'.editor-post-format select, #formatdiv input[name="post_format"]',(function(){var maybe_value=$(this).val()||"default";maybe_value="0"===maybe_value?"default":maybe_value,$(".wpcf-post-formats").removeClass("wpcf-metabox-show").addClass("wpcf-metabox-hide"),$(".wpcf-post-format-"+maybe_value).removeClass("wpcf-metabox-hide").addClass("wpcf-metabox-show")}))},$.fn.wpcf_search=function(){return this.each((function(){var $this,$input;$(this).find("input").on("change keyup",(function(){var value=$(this).val(),$wrapper=$(".wpcf-wrapper"),$section,$fields=$wrapper.find(".wpcf-section").find("> .wpcf-field:not(.wpcf-depend-on)"),$titles=$fields.find("> .wpcf-title, .wpcf-search-tags");value.length>3?($fields.addClass("wpcf-metabox-hide"),$wrapper.addClass("wpcf-search-all"),$titles.each((function(){var $title=$(this);if($title.text().match(new RegExp(".*?"+value+".*?","i"))){var $field=$title.closest(".wpcf-field");$field.removeClass("wpcf-metabox-hide"),$field.parent().wpcf_reload_script()}}))):($fields.removeClass("wpcf-metabox-hide"),$wrapper.removeClass("wpcf-search-all"))}))}))},$.fn.wpcf_sticky=function(){return this.each((function(){var $this=$(this),$window=$(window),$inner=$this.find(".wpcf-header-inner"),padding=parseInt($inner.css("padding-left"))+parseInt($inner.css("padding-right")),offset=32,scrollTop=0,lastTop=0,ticking=!1,stickyUpdate=function(){var offsetTop=$this.offset().top,stickyTop=Math.max(32,offsetTop-scrollTop),winWidth=$window.innerWidth();stickyTop<=32&&winWidth>782?($inner.css({width:$this.outerWidth()-padding}),$this.css({height:$this.outerHeight()}).addClass("wpcf-sticky")):($inner.removeAttr("style"),$this.removeAttr("style").removeClass("wpcf-sticky"))},requestTick=function(){ticking||requestAnimationFrame((function(){stickyUpdate(),ticking=!1})),ticking=!0},onSticky=function(){scrollTop=$window.scrollTop(),requestTick()};$window.on("scroll resize",onSticky),onSticky()}))},$.fn.wpcf_dependency=function(){return this.each((function(){var $this=$(this),$fields=$this.children("[data-controller]");if($fields.length){var normal_ruleset=$.wpcf_deps.createRuleset(),global_ruleset=$.wpcf_deps.createRuleset(),normal_depends=[],global_depends=[];$fields.each((function(){var $field=$(this),controllers=$field.data("controller").split("|"),conditions=$field.data("condition").split("|"),values=$field.data("value").toString().split("|"),is_global=!!$field.data("depend-global"),ruleset=is_global?global_ruleset:normal_ruleset;$.each(controllers,(function(index,depend_id){var value=values[index]||"",condition=conditions[index]||conditions[0];(ruleset=ruleset.createRule('[data-depend-id="'+depend_id+'"]',condition,value)).include($field),is_global?global_depends.push(depend_id):normal_depends.push(depend_id)}))})),normal_depends.length&&$.wpcf_deps.enable($this,normal_ruleset,normal_depends),global_depends.length&&$.wpcf_deps.enable(SP_WPCF.vars.$body,global_ruleset,global_depends)}}))},$.fn.wpcf_field_code_editor=function(){return this.each((function(){if("function"==typeof CodeMirror){var $this=$(this),$textarea=$this.find("textarea"),$inited=$this.find(".CodeMirror"),data_editor=$textarea.data("editor");$inited.length&&$inited.remove();var interval=setInterval((function(){if($this.is(":visible")){var code_editor=CodeMirror.fromTextArea($textarea[0],data_editor);if("default"!==data_editor.theme&&-1===SP_WPCF.vars.code_themes.indexOf(data_editor.theme)){var $cssLink=$("<link>");$("#wpcf-codemirror-css").after($cssLink),$cssLink.attr({rel:"stylesheet",id:"wpcf-codemirror-"+data_editor.theme+"-css",href:data_editor.cdnURL+"/theme/"+data_editor.theme+".min.css",type:"text/css",media:"all"}),SP_WPCF.vars.code_themes.push(data_editor.theme)}CodeMirror.modeURL=data_editor.cdnURL+"/mode/%N/%N.min.js",CodeMirror.autoLoadMode(code_editor,data_editor.mode),code_editor.on("change",(function(editor,event){$textarea.val(code_editor.getValue()).trigger("change")})),clearInterval(interval)}}))}}))},$.fn.wpcf_field_gallery=function(){return this.each((function(){var $this=$(this),$edit=$this.find(".wpcf-edit-gallery"),$clear=$this.find(".wpcf-clear-gallery"),$list=$this.find("ul.sp-gallery-images"),$input=$this.find("input"),$img=$this.find("img"),wp_media_frame;$this.on("click",".wpcf-button, .wpcf-edit-gallery",(function(e){var $el=$(this),ids=$input.val(),what=$el.hasClass("wpcf-edit-gallery")?"edit":"add",state="add"!==what||ids.length?"gallery-edit":"gallery";e.preventDefault(),void 0!==window.wp&&window.wp.media&&window.wp.media.gallery&&("gallery"===state?(wp_media_frame=window.wp.media({library:{type:"image"},frame:"post",state:"gallery",multiple:!0})).open():(wp_media_frame=window.wp.media.gallery.edit('[gallery ids="'+ids+'"]'),"add"===what&&wp_media_frame.setState("gallery-library")),wp_media_frame.on("update",(function(selection){$list.empty();var selectedIds=selection.models.map((function(attachment){var item=attachment.toJSON(),thumb=item.sizes&&item.sizes.thumbnail&&item.sizes.thumbnail.url?item.sizes.thumbnail.url:item.url;return $list.append('<li><img src="'+thumb+'"></li>'),item.id}));$input.val(selectedIds.join(",")).trigger("change"),$clear.removeClass("hidden"),$edit.removeClass("hidden")})))})),$clear.on("click",(function(e){e.preventDefault(),$list.empty(),$input.val("").trigger("change"),$clear.addClass("hidden"),$edit.addClass("hidden")}))}))},$.fn.wpcf_field_media=function(){return this.each((function(){var $this=$(this),$upload_button=$this.find(".wpcf--button"),$remove_button=$this.find(".wpcf--remove"),$library=$upload_button.data("library")&&$upload_button.data("library").split(",")||"",$auto_attributes=!!$this.hasClass("wpcf-assign-field-background")&&$this.closest(".wpcf-field-background").find(".wpcf--auto-attributes"),wp_media_frame;$upload_button.on("click",(function(e){e.preventDefault(),void 0!==window.wp&&window.wp.media&&window.wp.media.gallery&&(wp_media_frame?wp_media_frame.open():((wp_media_frame=window.wp.media({library:{type:$library}})).on("select",(function(){var thumbnail,attributes=wp_media_frame.state().get("selection").first().attributes,preview_size=$upload_button.data("preview-size")||"thumbnail";$library.length&&-1===$library.indexOf(attributes.subtype)&&-1===$library.indexOf(attributes.type)||($this.find(".wpcf--id").val(attributes.id),$this.find(".wpcf--width").val(attributes.width),$this.find(".wpcf--height").val(attributes.height),$this.find(".wpcf--alt").val(attributes.alt),$this.find(".wpcf--title").val(attributes.title),$this.find(".wpcf--description").val(attributes.description),thumbnail=void 0!==attributes.sizes&&void 0!==attributes.sizes.thumbnail&&"thumbnail"===preview_size?attributes.sizes.thumbnail.url:void 0!==attributes.sizes&&void 0!==attributes.sizes.full?attributes.sizes.full.url:"image"===attributes.type?attributes.url:attributes.icon,console.log(attributes),$auto_attributes&&$auto_attributes.removeClass("wpcf--attributes-hidden"),$remove_button.removeClass("hidden"),$this.find(".wpcf--preview").removeClass("hidden"),$this.find(".wpcf--src").attr("src",thumbnail),$this.find(".wpcf--thumbnail").val(thumbnail),$this.find(".wpcf--url").val(attributes.url).trigger("change"))})),wp_media_frame.open()))})),$remove_button.on("click",(function(e){e.preventDefault(),$auto_attributes&&$auto_attributes.addClass("wpcf--attributes-hidden"),$remove_button.addClass("hidden"),$this.find("input").val(""),$this.find(".wpcf--preview").addClass("hidden"),$this.find(".wpcf--url").trigger("change")}))}))},$.fn.wpcf_field_slider=function(){return this.each((function(){var $this=$(this),$input=$this.find("input"),$slider=$this.find(".wpcf-slider-ui"),data=$input.data(),value=$input.val()||0;$slider.hasClass("ui-slider")&&$slider.empty(),$slider.slider({range:"min",value:value,min:data.min||0,max:data.max||100,step:data.step||1,slide:function(e,o){$input.val(o.value).trigger("change")}}),$input.on("keyup",(function(){$slider.slider("value",$input.val())}))}))},$.fn.wpcf_field_spinner=function(){return this.each((function(){var $this=$(this),$input=$this.find("input"),$inited=$this.find(".ui-button"),data=$input.data();$inited.length&&$inited.remove(),$input.spinner({min:data.min||0,max:data.max||100,step:data.step||1,create:function(event,ui){data.unit&&$input.after('<span class="ui-button wpcf--unit">'+data.unit+"</span>")},spin:function(event,ui){$input.val(ui.value).trigger("change")}})}))},$.fn.wpcf_field_switcher=function(){return this.each((function(){var $switcher=$(this).find(".wpcf--switcher");$switcher.on("click",(function(){var value=0,$input=$switcher.find("input");$switcher.hasClass("wpcf--active")?$switcher.removeClass("wpcf--active"):(value=1,$switcher.addClass("wpcf--active")),$input.val(value).trigger("change")}))}))},$.fn.wpcf_field_typography=function(){return this.each((function(){var base=this,$this=$(this),loaded_fonts=[],webfonts=wpcf_typography_json.webfonts,googlestyles=wpcf_typography_json.googlestyles,defaultstyles=wpcf_typography_json.defaultstyles;base.sanitize_subset=function(subset){return subset=(subset=subset.replace("-ext"," Extended")).charAt(0).toUpperCase()+subset.slice(1)},base.sanitize_style=function(style){return googlestyles[style]?googlestyles[style]:style},base.load_google_font=function(font_family,weight,style){font_family&&"object"==typeof WebFont&&(weight=weight?weight.replace("normal",""):"",style=style?style.replace("normal",""):"",(weight||style)&&(font_family=font_family+":"+weight+style),-1===loaded_fonts.indexOf(font_family)&&WebFont.load({google:{families:[font_family]}}),loaded_fonts.push(font_family))},base.append_select_options=function($select,options,condition,type,is_multi){$select.find("option").not(":first").remove();var opts="";$.each(options,(function(key,value){var selected,name=value;selected=is_multi?condition&&-1!==condition.indexOf(value)?" selected":"":condition&&condition===value?" selected":"","subset"===type?name=base.sanitize_subset(value):"style"===type&&(name=base.sanitize_style(value)),opts+='<option value="'+value+'"'+selected+">"+name+"</option>"})),$select.append(opts).trigger("wpcf.change").trigger("chosen:updated")},base.init=function(){var selected_styles=[],$typography=$this.find(".wpcf--typography"),$type=$this.find(".wpcf--type"),$styles=$this.find(".wpcf--block-font-style"),unit=$typography.data("unit"),line_height_unit=$typography.data("line-height-unit"),exclude_fonts=$typography.data("exclude")?$typography.data("exclude").split(","):[],$chosen_selects;$this.find(".wpcf--chosen").length&&$this.find("select").each((function(){var $chosen_select=$(this),$chosen_inited=$chosen_select.parent().find(".chosen-container");$chosen_inited.length&&$chosen_inited.remove(),$chosen_select.chosen({allow_single_deselect:!0,disable_search_threshold:15,width:"100%"})}));var $font_family_select=$this.find(".wpcf--font-family"),first_font_family=$font_family_select.val();$font_family_select.find("option").not(":first-child").remove();var opts="";$.each(webfonts,(function(type,group){exclude_fonts&&-1!==exclude_fonts.indexOf(type)||(opts+='<optgroup label="'+group.label+'">',$.each(group.fonts,(function(key,value){var selected;opts+='<option value="'+(value="object"==typeof value?key:value)+'" data-type="'+type+'"'+(value===first_font_family?" selected":"")+">"+value+"</option>"})),opts+="</optgroup>")})),$font_family_select.append(opts).trigger("chosen:updated");var $font_style_block=$this.find(".wpcf--block-font-style");if($font_style_block.length){var $font_style_select=$this.find(".wpcf--font-style-select"),first_style_value=$font_style_select.val()?$font_style_select.val().replace(/normal/g,""):"";$font_style_select.on("change wpcf.change",(function(event){var style_value=$font_style_select.val();!style_value&&selected_styles&&-1===selected_styles.indexOf("normal")&&(style_value=selected_styles[0]);var font_normal=style_value&&"italic"!==style_value&&"normal"===style_value?"normal":"",font_weight=style_value&&"italic"!==style_value&&"normal"!==style_value?style_value.replace("italic",""):font_normal,font_style=style_value&&"italic"===style_value.substr(-6)?"italic":"";$this.find(".wpcf--font-weight").val(font_weight),$this.find(".wpcf--font-style").val(font_style)}));var $extra_font_style_block=$this.find(".wpcf--block-extra-styles");if($extra_font_style_block.length)var $extra_font_style_select=$this.find(".wpcf--extra-styles"),first_extra_style_value=$extra_font_style_select.val()}var $subset_block=$this.find(".wpcf--block-subset");if($subset_block.length)var $subset_select=$this.find(".wpcf--subset"),first_subset_select_value=$subset_select.val(),subset_multi_select=$subset_select.data("multiple")||!1;var $backup_font_family_block=$this.find(".wpcf--block-backup-font-family");$font_family_select.on("change wpcf.change",(function(event){$subset_block.length&&$subset_block.addClass("hidden"),$extra_font_style_block.length&&$extra_font_style_block.addClass("hidden"),$backup_font_family_block.length&&$backup_font_family_block.addClass("hidden");var $selected=$font_family_select.find(":selected"),value=$selected.val(),type=$selected.data("type");if(type&&value){if("google"!==type&&"custom"!==type||!$backup_font_family_block.length||$backup_font_family_block.removeClass("hidden"),$font_style_block.length){var styles=defaultstyles;"google"===type&&webfonts[type].fonts[value][0]?styles=webfonts[type].fonts[value][0]:"custom"===type&&webfonts[type].fonts[value]&&(styles=webfonts[type].fonts[value]),selected_styles=styles;var set_auto_style=-1!==styles.indexOf("normal")?"normal":styles[0],set_style_value=first_style_value&&-1!==styles.indexOf(first_style_value)?first_style_value:set_auto_style;base.append_select_options($font_style_select,styles,set_style_value,"style"),first_style_value=!1,$font_style_block.removeClass("hidden"),"google"===type&&$extra_font_style_block.length&&styles.length>1&&(base.append_select_options($extra_font_style_select,styles,first_extra_style_value,"style",!0),first_extra_style_value=!1,$extra_font_style_block.removeClass("hidden"))}if("google"===type&&$subset_block.length&&webfonts[type].fonts[value][1]){var subsets=webfonts[type].fonts[value][1],set_auto_subset=subsets.length<2&&"latin"!==subsets[0]?subsets[0]:"",set_subset_value=first_subset_select_value&&-1!==subsets.indexOf(first_subset_select_value)?first_subset_select_value:set_auto_subset;set_subset_value=subset_multi_select&&first_subset_select_value?first_subset_select_value:set_subset_value,base.append_select_options($subset_select,subsets,set_subset_value,"subset",subset_multi_select),first_subset_select_value=!1,$subset_block.removeClass("hidden")}}else $styles.find(":input").val(""),$subset_block.length&&($subset_select.find("option").not(":first-child").remove(),$subset_select.trigger("chosen:updated")),$font_style_block.length&&($font_style_select.find("option").not(":first-child").remove(),$font_style_select.trigger("chosen:updated"));$type.val(type)})).trigger("wpcf.change");var $preview_block=$this.find(".wpcf--block-preview");if($preview_block.length){var $preview=$this.find(".wpcf--preview");$this.on("change",SP_WPCF.helper.debounce((function(event){$preview_block.removeClass("hidden");var font_family=$font_family_select.val(),font_weight=$this.find(".wpcf--font-weight").val(),font_style=$this.find(".wpcf--font-style").val(),font_size=$this.find(".wpcf--font-size").val(),font_variant=$this.find(".wpcf--font-variant").val(),line_height=$this.find(".wpcf--line-height").val(),text_align=$this.find(".wpcf--text-align").val(),text_transform=$this.find(".wpcf--text-transform").val(),text_decoration=$this.find(".wpcf--text-decoration").val(),text_color=$this.find(".wpcf--color").val(),word_spacing=$this.find(".wpcf--word-spacing").val(),letter_spacing=$this.find(".wpcf--letter-spacing").val(),custom_style=$this.find(".wpcf--custom-style").val(),type;"google"===$this.find(".wpcf--type").val()&&base.load_google_font(font_family,font_weight,font_style);var properties={};font_family&&(properties.fontFamily=font_family),font_weight&&(properties.fontWeight=font_weight),font_style&&(properties.fontStyle=font_style),font_variant&&(properties.fontVariant=font_variant),font_size&&(properties.fontSize=font_size+unit),line_height&&(properties.lineHeight=line_height+line_height_unit),letter_spacing&&(properties.letterSpacing=letter_spacing+unit),word_spacing&&(properties.wordSpacing=word_spacing+unit),text_align&&(properties.textAlign=text_align),text_transform&&(properties.textTransform=text_transform),text_decoration&&(properties.textDecoration=text_decoration),text_color&&(properties.color=text_color),$preview.removeAttr("style"),custom_style&&$preview.attr("style",custom_style),$preview.css(properties)}),100)),$preview_block.on("click",(function(){$preview.toggleClass("wpcf--black-background");var $toggle=$preview_block.find(".wpcf--toggle");$toggle.hasClass("fa-toggle-off")?$toggle.removeClass("fa-toggle-off").addClass("fa-toggle-on"):$toggle.removeClass("fa-toggle-on").addClass("fa-toggle-off")})),$preview_block.hasClass("hidden")||$this.trigger("change")}},base.init()}))},$.fn.wpcf_field_wp_editor=function(){return this.each((function(){if(void 0!==window.wp.editor&&void 0!==window.tinyMCEPreInit&&void 0!==window.tinyMCEPreInit.mceInit.wpcf_wp_editor){var $this=$(this),$editor=$this.find(".wpcf-wp-editor"),$textarea=$this.find("textarea"),$has_wp_editor;($this.find(".wp-editor-wrap").length||$this.find(".mce-container").length)&&($editor.empty(),$editor.append($textarea),$textarea.css("display",""));var uid=SP_WPCF.helper.uid("wpcf-editor-");$textarea.attr("id",uid);var default_editor_settings={tinymce:window.tinyMCEPreInit.mceInit.wpcf_wp_editor,quicktags:window.tinyMCEPreInit.qtInit.wpcf_wp_editor},field_editor_settings=$editor.data("editor-settings"),wpEditor=wp.oldEditor?wp.oldEditor:wp.editor;wpEditor&&wpEditor.hasOwnProperty("autop")&&(wp.editor.autop=wpEditor.autop,wp.editor.removep=wpEditor.removep,wp.editor.initialize=wpEditor.initialize);var editor_on_change=function(editor){editor.on("change keyup",(function(){var value=field_editor_settings.wpautop?editor.getContent():wp.editor.removep(editor.getContent());$textarea.val(value).trigger("change")}))};default_editor_settings.tinymce=$.extend({},default_editor_settings.tinymce,{selector:"#"+uid,setup:editor_on_change}),!1===field_editor_settings.tinymce&&(default_editor_settings.tinymce=!1,$editor.addClass("wpcf-no-tinymce")),!1===field_editor_settings.quicktags&&(default_editor_settings.quicktags=!1,$editor.addClass("wpcf-no-quicktags"));var interval=setInterval((function(){$this.is(":visible")&&(window.wp.editor.initialize(uid,default_editor_settings),clearInterval(interval))}));if(field_editor_settings.media_buttons&&window.wpcf_media_buttons){var $editor_buttons=$editor.find(".wp-media-buttons");if($editor_buttons.length)$editor_buttons.find(".wpcf-shortcode-button").data("editor-id",uid);else{var $media_buttons=$(window.wpcf_media_buttons);$media_buttons.find(".wpcf-shortcode-button").data("editor-id",uid),$editor.prepend($media_buttons)}}}}))},$.fn.wpcf_confirm=function(){return this.each((function(){$(this).on("click",(function(e){var confirm_text=$(this).data("confirm")||window.wpcf_vars.i18n.confirm,confirm_answer;if(!confirm(confirm_text))return e.preventDefault(),!1;SP_WPCF.vars.is_confirm=!0,SP_WPCF.vars.form_modified=!1}))}))},$.fn.serializeObject=function(){var obj={};return $.each(this.serializeArray(),(function(i,o){var n=o.name,v=o.value;obj[n]=void 0===obj[n]?v:$.isArray(obj[n])?obj[n].concat(v):[obj[n],v]})),obj},$.fn.wpcf_save=function(){return this.each((function(){var $this=$(this),$buttons=$(".wpcf-save"),$panel=$(".wpcf-options"),flooding=!1,timeout;$this.on("click",(function(e){if(!flooding){var $text=$this.data("save"),$value=$this.val();$buttons.attr("value",$text),$this.hasClass("wpcf-save-ajax")?(e.preventDefault(),$panel.addClass("wpcf-saving"),$buttons.prop("disabled",!0),window.wp.ajax.post("wpcf_"+$panel.data("unique")+"_ajax_save",{data:$("#wpcf-form").serializeJSONSP_WPCF()}).done((function(response){if($(".wpcf-error").remove(),Object.keys(response.errors).length){var error_icon='<i class="wpcf-label-error wpcf-error">!</i>';$.each(response.errors,(function(key,error_message){var $field=$('[data-depend-id="'+key+'"]'),$link=$('a[href="#tab='+$field.closest(".wpcf-section").data("section-id")+'"]'),$tab=$link.closest(".wpcf-tab-item");$field.closest(".wpcf-fieldset").append('<p class="wpcf-error wpcf-error-text">'+error_message+"</p>"),$link.find(".wpcf-error").length||$link.append(error_icon),$tab.find(".wpcf-arrow .wpcf-error").length||$tab.find(".wpcf-arrow").append(error_icon)}))}$panel.removeClass("wpcf-saving"),$buttons.prop("disabled",!1).attr("value",$value),flooding=!1,SP_WPCF.vars.form_modified=!1,SP_WPCF.vars.$form_warning.hide(),clearTimeout(timeout);var $result_success=$(".wpcf-form-success");$result_success.empty().append(response.notice).fadeIn("fast",(function(){timeout=setTimeout((function(){$result_success.fadeOut("fast")}),1e3)}))})).fail((function(response){alert(response.error)}))):SP_WPCF.vars.form_modified=!1}flooding=!0}))}))},$.fn.wpcf_options=function(){return this.each((function(){var $this=$(this),$content=$this.find(".wpcf-content"),$form_success=$this.find(".wpcf-form-success"),$form_warning=$this.find(".wpcf-form-warning"),$save_button=$this.find(".wpcf-header .wpcf-save");SP_WPCF.vars.$form_warning=$form_warning,$form_warning.length&&(window.onbeforeunload=function(){return!!SP_WPCF.vars.form_modified||void 0},$content.on("change keypress",":input",(function(){SP_WPCF.vars.form_modified||($form_success.hide(),$form_warning.fadeIn("fast"),SP_WPCF.vars.form_modified=!0)}))),$form_success.hasClass("wpcf-form-show")&&setTimeout((function(){$form_success.fadeOut("fast")}),1e3),$(document).keydown((function(event){if((event.ctrlKey||event.metaKey)&&83===event.which)return $save_button.trigger("click"),event.preventDefault(),!1}))}))},$.fn.wpcf_taxonomy=function(){return this.each((function(){var $this=$(this),$form=$this.parents("form");if("addtag"===$form.attr("id")){var $submit=$form.find("#submit"),$cloned=$this.find(".wpcf-field").wpcf_clone();$submit.on("click",(function(){$form.find(".form-required").hasClass("form-invalid")||($this.data("inited",!1),$this.empty(),$this.html($cloned),$cloned=$cloned.wpcf_clone(),$this.wpcf_reload_script())}))}}))},$.fn.wpcf_shortcode=function(){var base=this;return base.shortcode_parse=function(serialize,key){var shortcode="";return $.each(serialize,(function(shortcode_key,shortcode_values){shortcode+="["+(key=key||shortcode_key),$.each(shortcode_values,(function(shortcode_tag,shortcode_value){"content"===shortcode_tag?(shortcode+="]",shortcode+=shortcode_value,shortcode+="[/"+key):shortcode+=base.shortcode_tags(shortcode_tag,shortcode_value)})),shortcode+="]"})),shortcode},base.shortcode_tags=function(shortcode_tag,shortcode_value){var shortcode="";return""!==shortcode_value&&("object"!=typeof shortcode_value||$.isArray(shortcode_value)?shortcode+=" "+shortcode_tag.replace("-","_")+'="'+shortcode_value.toString()+'"':$.each(shortcode_value,(function(sub_shortcode_tag,sub_shortcode_value){switch(sub_shortcode_tag){case"background-image":sub_shortcode_value=sub_shortcode_value.url?sub_shortcode_value.url:""}""!==sub_shortcode_value&&(shortcode+=" "+sub_shortcode_tag.replace("-","_")+'="'+sub_shortcode_value.toString()+'"')}))),shortcode},base.insertAtChars=function(_this,currentValue){var obj=void 0!==_this[0].name?_this[0]:_this;return obj.value.length&&void 0!==obj.selectionStart?(obj.focus(),obj.value.substring(0,obj.selectionStart)+currentValue+obj.value.substring(obj.selectionEnd,obj.value.length)):(obj.focus(),currentValue)},base.send_to_editor=function(html,editor_id){var tinymce_editor;if("undefined"!=typeof tinymce&&(tinymce_editor=tinymce.get(editor_id)),tinymce_editor&&!tinymce_editor.isHidden())tinymce_editor.execCommand("mceInsertContent",!1,html);else{var $editor=$("#"+editor_id);$editor.val(base.insertAtChars($editor,html)).trigger("change")}},this.each((function(){var $modal=$(this),$load=$modal.find(".wpcf-modal-load"),$content=$modal.find(".wpcf-modal-content"),$insert=$modal.find(".wpcf-modal-insert"),$loading=$modal.find(".wpcf-modal-loading"),$select=$modal.find("select"),modal_id=$modal.data("modal-id"),nonce=$modal.data("nonce"),editor_id,target_id,gutenberg_id,sc_key,sc_name,sc_view,sc_group,$cloned,$button;$(document).on("click",'.wpcf-shortcode-button[data-modal-id="'+modal_id+'"]',(function(e){e.preventDefault(),$button=$(this),editor_id=$button.data("editor-id")||!1,target_id=$button.data("target-id")||!1,gutenberg_id=$button.data("gutenberg-id")||!1,$modal.removeClass("hidden"),$modal.hasClass("wpcf-shortcode-single")&&void 0===sc_name&&$select.trigger("change")})),$select.on("change",(function(){var $option=$(this),$selected=$option.find(":selected");sc_key=$option.val(),sc_name=$selected.data("shortcode"),sc_view=$selected.data("view")||"normal",sc_group=$selected.data("group")||sc_name,$load.empty(),sc_key?($loading.show(),window.wp.ajax.post("wpcf-get-shortcode-"+modal_id,{shortcode_key:sc_key,nonce:nonce}).done((function(response){$loading.hide();var $appended=$(response.content).appendTo($load);$insert.parent().removeClass("hidden"),$cloned=$appended.find(".wpcf--repeat-shortcode").wpcf_clone(),$appended.wpcf_reload_script(),$appended.find(".wpcf-fields").wpcf_reload_script()}))):$insert.parent().addClass("hidden")})),$insert.on("click",(function(e){if(e.preventDefault(),!$insert.prop("disabled")&&!$insert.attr("disabled")){var shortcode="",serialize=$modal.find(".wpcf-field:not(.wpcf-depend-on)").find(":input:not(.ignore)").serializeObjectSP_WPCF();switch(sc_view){case"contents":var contentsObj=sc_name?serialize[sc_name]:serialize;$.each(contentsObj,(function(sc_key,sc_value){var sc_tag=sc_name||sc_key;shortcode+="["+sc_tag+"]"+sc_value+"[/"+sc_tag+"]"}));break;case"group":shortcode+="["+sc_name,$.each(serialize[sc_name],(function(sc_key,sc_value){shortcode+=base.shortcode_tags(sc_key,sc_value)})),shortcode+="]",shortcode+=base.shortcode_parse(serialize[sc_group],sc_group),shortcode+="[/"+sc_name+"]";break;case"repeater":shortcode+=base.shortcode_parse(serialize[sc_group],sc_group);break;default:shortcode+=base.shortcode_parse(serialize)}if(shortcode=""===shortcode?"["+sc_name+"]":shortcode,gutenberg_id){var content=window.wpcf_gutenberg_props.attributes.hasOwnProperty("shortcode")?window.wpcf_gutenberg_props.attributes.shortcode:"";window.wpcf_gutenberg_props.setAttributes({shortcode:content+shortcode})}else if(editor_id)base.send_to_editor(shortcode,editor_id);else{var $textarea=target_id?$(target_id):$button.parent().find("textarea");$textarea.val(base.insertAtChars($textarea,shortcode)).trigger("change")}$modal.addClass("hidden")}})),$modal.on("click",".wpcf--repeat-button",(function(e){e.preventDefault();var $repeatable=$modal.find(".wpcf--repeatable"),$new_clone=$cloned.wpcf_clone(),$remove_btn=$new_clone.find(".wpcf-repeat-remove"),$appended=$new_clone.appendTo($repeatable);$new_clone.find(".wpcf-fields").wpcf_reload_script(),SP_WPCF.helper.name_nested_replace($modal.find(".wpcf--repeat-shortcode"),sc_group),$remove_btn.on("click",(function(){$new_clone.remove(),SP_WPCF.helper.name_nested_replace($modal.find(".wpcf--repeat-shortcode"),sc_group)}))})),$modal.on("click",".wpcf-modal-close, .wpcf-modal-overlay",(function(){$modal.addClass("hidden")}))}))},"function"==typeof Color&&(Color.prototype.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var hex=parseInt(this._color,10).toString(16);if(this.error)return"";if(hex.length<6)for(var i=6-hex.length-1;i>=0;i--)hex="0"+hex;return"#"+hex}),SP_WPCF.funcs.parse_color=function(color){var value=color.replace(/\s+/g,""),trans=-1!==value.indexOf("rgba")?parseFloat(100*value.replace(/^.*,(.+)\)/,"$1")):100,rgba;return{value:value,transparent:trans,rgba:trans<100}},$.fn.wpcf_color=function(){return this.each((function(){var $input=$(this),picker_color=SP_WPCF.funcs.parse_color($input.val()),palette_color=!window.wpcf_vars.color_palette.length||window.wpcf_vars.color_palette,$container;$input.hasClass("wp-color-picker")&&$input.closest(".wp-picker-container").after($input).remove(),$input.wpColorPicker({palettes:palette_color,change:function(event,ui){var ui_color_value=ui.color.toString();$container.removeClass("wpcf--transparent-active"),$container.find(".wpcf--transparent-offset").css("background-color",ui_color_value),$input.val(ui_color_value).trigger("change")},create:function(){$container=$input.closest(".wp-picker-container");var a8cIris=$input.data("a8cIris"),$transparent_wrap=$('<div class="wpcf--transparent-wrap"><div class="wpcf--transparent-slider"></div><div class="wpcf--transparent-offset"></div><div class="wpcf--transparent-text"></div><div class="wpcf--transparent-button">transparent <i class="fa fa-toggle-off"></i></div></div>').appendTo($container.find(".wp-picker-holder")),$transparent_slider=$transparent_wrap.find(".wpcf--transparent-slider"),$transparent_text=$transparent_wrap.find(".wpcf--transparent-text"),$transparent_offset=$transparent_wrap.find(".wpcf--transparent-offset"),$transparent_button=$transparent_wrap.find(".wpcf--transparent-button");"transparent"===$input.val()&&$container.addClass("wpcf--transparent-active"),$transparent_button.on("click",(function(){"transparent"!==$input.val()?($input.val("transparent").trigger("change").removeClass("iris-error"),$container.addClass("wpcf--transparent-active")):($input.val(a8cIris._color.toString()).trigger("change"),$container.removeClass("wpcf--transparent-active"))})),$transparent_slider.slider({value:picker_color.transparent,step:1,min:0,max:100,slide:function(event,ui){var slide_value=parseFloat(ui.value/100);a8cIris._color._alpha=slide_value,$input.wpColorPicker("color",a8cIris._color.toString()),$transparent_text.text(1===slide_value||0===slide_value?"":slide_value)},create:function(){var slide_value=parseFloat(picker_color.transparent/100),text_value=slide_value<1?slide_value:"";$transparent_text.text(text_value),$transparent_offset.css("background-color",picker_color.value),$container.on("click",".wp-picker-clear",(function(){a8cIris._color._alpha=1,$transparent_text.text(""),$transparent_slider.slider("option","value",100),$container.removeClass("wpcf--transparent-active"),$input.trigger("change")})),$container.on("click",".wp-picker-default",(function(){var default_color=SP_WPCF.funcs.parse_color($input.data("default-color")),default_value=parseFloat(default_color.transparent/100),default_text=default_value<1?default_value:"";a8cIris._color._alpha=default_value,$transparent_text.text(default_text),$transparent_slider.slider("option","value",default_color.transparent),"transparent"===default_color.value&&($input.removeClass("iris-error"),$container.addClass("wpcf--transparent-active"))}))}})}})}))},$.fn.wpcf_chosen=function(){return this.each((function(){var $this=$(this),$inited=$this.parent().find(".chosen-container"),is_sortable=$this.hasClass("wpcf-chosen-sortable")||!1,is_ajax=$this.hasClass("wpcf-chosen-ajax")||!1,is_multiple=$this.attr("multiple")||!1,set_width=is_multiple?"100%":"auto",set_options=$.extend({allow_single_deselect:!0,disable_search_threshold:10,width:set_width,no_results_text:window.wpcf_vars.i18n.no_results_text},$this.data("chosen-settings"));if($inited.length&&$inited.remove(),is_ajax){var set_ajax_options=$.extend({data:{type:"post",nonce:""},allow_single_deselect:!0,disable_search_threshold:-1,width:"100%",min_length:3,type_delay:500,typing_text:window.wpcf_vars.i18n.typing_text,searching_text:window.wpcf_vars.i18n.searching_text,no_results_text:window.wpcf_vars.i18n.no_results_text},$this.data("chosen-settings"));$this.SP_WPCFAjaxChosen(set_ajax_options)}else $this.chosen(set_options);if(is_multiple){var $hidden_select=$this.parent().find(".wpcf-hide-select"),$hidden_value=$hidden_select.val()||[];$this.on("change",(function(obj,result){result&&result.selected?$hidden_select.append('<option value="'+result.selected+'" selected="selected">'+result.selected+"</option>"):result&&result.deselected&&$hidden_select.find('option[value="'+result.deselected+'"]').remove(),void 0!==window.wp.customize&&0===$hidden_select.children().length&&$hidden_select.data("customize-setting-link")&&window.wp.customize.control($hidden_select.data("customize-setting-link")).setting.set(""),$hidden_select.trigger("change")})),$this.SP_WPCFChosenOrder($hidden_value,!0)}if(is_sortable){var $chosen_container,$chosen_choices=$this.parent().find(".chosen-container").find(".chosen-choices");$chosen_choices.bind("mousedown",(function(event){$(event.target).is("span")&&event.stopPropagation()})),$chosen_choices.sortable({items:"li:not(.search-field)",helper:"orginal",cursor:"move",placeholder:"search-choice-placeholder",start:function(e,ui){ui.placeholder.width(ui.item.innerWidth()),ui.placeholder.height(ui.item.innerHeight())},update:function(e,ui){var select_options="",chosen_object=$this.data("chosen"),$prev_select=$this.parent().find(".wpcf-hide-select");$chosen_choices.find(".search-choice-close").each((function(){var option_array_index=$(this).data("option-array-index");$.each(chosen_object.results_data,(function(index,data){data.array_index===option_array_index&&(select_options+='<option value="'+data.value+'" selected>'+data.value+"</option>")}))})),$prev_select.children().remove(),$prev_select.append(select_options),$prev_select.trigger("change")}})}}))},$.fn.wpcf_checkbox=function(){return this.each((function(){var $this=$(this),$input=$this.find(".wpcf--input"),$checkbox=$this.find(".wpcf--checkbox");$checkbox.on("click",(function(){$input.val(Number($checkbox.prop("checked"))).trigger("change")}))}))},$.fn.wpcf_siblings=function(){return this.each((function(){var $this=$(this),$siblings=$this.find(".wpcf--sibling"),multiple=$this.data("multiple")||!1;$siblings.on("click",(function(){var $sibling=$(this);multiple?$sibling.hasClass("wpcf--active")?($sibling.removeClass("wpcf--active"),$sibling.find("input").prop("checked",!1).trigger("change")):($sibling.addClass("wpcf--active"),$sibling.find("input").prop("checked",!0).trigger("change")):($this.find("input").prop("checked",!1),$sibling.find("input").prop("checked",!0).trigger("change"),$sibling.addClass("wpcf--active").siblings().removeClass("wpcf--active"))}))}))},$.fn.wpcf_help=function(){return this.each((function(){var $this=$(this),$tooltip,offset_left;$this.on({mouseenter:function(){$tooltip=$('<div class="wpcf-tooltip"></div>').html($this.find(".wpcf-help-text").html()).appendTo("body"),SP_WPCF.vars.is_rtl,offset_left=$this.offset().left+24,$tooltip.css({top:$this.offset().top-($tooltip.outerHeight()/2-14),left:offset_left})},mouseleave:function(){void 0!==$tooltip&&$tooltip.remove()}})}))},$.fn.wpcf_customizer_refresh=function(){return this.each((function(){var $this=$(this),$complex=$this.closest(".wpcf-customize-complex");if($complex.length){var unique_id=$complex.data("unique-id");if(void 0===unique_id)return;var $input=$complex.find(":input"),option_id=$complex.data("option-id"),obj=$input.serializeObjectSP_WPCF(),data=!$.isEmptyObject(obj)&&obj[unique_id]&&obj[unique_id][option_id]?obj[unique_id][option_id]:"",control=window.wp.customize.control(unique_id+"["+option_id+"]");control.setting._value=null,control.setting.set(data)}else $this.find(":input").first().trigger("change");$(document).trigger("wpcf-customizer-refresh",$this)}))},SP_WPCF.vars.$window.on("resize wpcf.resize",SP_WPCF.helper.debounce((function(event){var window_width;(navigator.userAgent.indexOf("AppleWebKit/")>-1?SP_WPCF.vars.$window.width():window.innerWidth)<=782&&!SP_WPCF.vars.onloaded&&($(".wpcf-section").wpcf_reload_script(),SP_WPCF.vars.onloaded=!0)}),200)).trigger("wpcf.resize"),$.fn.wpcf_widgets=function(){this.length&&($(document).on("widget-added widget-updated",(function(event,$widget){$widget.find(".wpcf-fields").wpcf_reload_script()})),$(".widgets-sortables, .control-section-sidebar").on("sortstop",(function(event,ui){ui.item.find(".wpcf-fields").wpcf_reload_script_retry()})),$(document).on("click",".widget-top",(function(event){$(this).parent().find(".wpcf-fields").wpcf_reload_script()})))},$.fn.wpcf_nav_menu=function(){return this.each((function(){var $navmenu=$(this);$navmenu.on("click","a.item-edit",(function(){$(this).closest("li.menu-item").find(".wpcf-fields").wpcf_reload_script()})),$navmenu.on("sortstop",(function(event,ui){ui.item.find(".wpcf-fields").wpcf_reload_script_retry()}))}))},$.fn.wpcf_reload_script_retry=function(){return this.each((function(){var $this=$(this);$this.data("inited")&&$this.children(".wpcf-field-wp_editor").wpcf_field_wp_editor()}))},$.fn.wpcf_reload_script=function(options){var settings=$.extend({dependency:!0},options);return this.each((function(){var $this=$(this);$this.data("inited")||($this.children(".wpcf-field-code_editor").wpcf_field_code_editor(),$this.children(".wpcf-field-gallery").wpcf_field_gallery(),$this.children(".wpcf-field-media").wpcf_field_media(),$this.children(".wpcf-field-slider").wpcf_field_slider(),$this.children(".wpcf-field-spinner").wpcf_field_spinner(),$this.children(".wpcf-field-switcher").wpcf_field_switcher(),$this.children(".wpcf-field-typography").wpcf_field_typography(),$this.children(".wpcf-field-border").find(".wpcf-color").wpcf_color(),$this.children(".wpcf-field-color").find(".wpcf-color").wpcf_color(),$this.children(".wpcf-field-color_group").find(".wpcf-color").wpcf_color(),$this.children(".wpcf-field-typography").find(".wpcf-color").wpcf_color(),$this.children(".wpcf-field-select").find(".wpcf-chosen").wpcf_chosen(),$this.children(".wpcf-field-checkbox").find(".wpcf-checkbox").wpcf_checkbox(),$this.children(".wpcf-field-button_set").find(".wpcf-siblings").wpcf_siblings(),$this.children(".wpcf-field-image_select").find(".wpcf-siblings").wpcf_siblings(),$this.children(".wpcf-field-carousel_type").find(".wpcf-siblings").wpcf_siblings(),$this.children(".wpcf-field").find(".wpcf-help").wpcf_help(),settings.dependency&&$this.wpcf_dependency(),$this.data("inited",!0),$(document).trigger("wpcf-reload-script",$this))}))},$(document).ready((function(){function wpcf_copyToClipboard(element){var $temp=$("<input>");$("body").append($temp),$temp.val($(element).text()).select(),document.execCommand("copy"),$temp.remove()}function wpcf_SelectText(element){var r=document.createRange(),w=element.get(0);r.selectNodeContents(w);var sel=window.getSelection();sel.removeAllRanges(),sel.addRange(r)}$(".wpcf-save").wpcf_save(),$(".wpcf-options").wpcf_options(),$(".wpcf-sticky-header").wpcf_sticky(),$(".wpcf-nav-options").wpcf_nav_options(),$(".wpcf-nav-metabox").wpcf_nav_metabox(),$(".wpcf-taxonomy").wpcf_taxonomy(),$(".wpcf-page-templates").wpcf_page_templates(),$(".wpcf-post-formats").wpcf_post_formats(),$(".wpcf-shortcode").wpcf_shortcode(),$(".wpcf-search").wpcf_search(),$(".wpcf-confirm").wpcf_confirm(),$(".wpcf-expand-all").wpcf_expand_all(),$(".wpcf-onload").wpcf_reload_script(),$(".widget").wpcf_widgets(),$("#menu-to-edit").wpcf_nav_menu(),$(".wpcf-shortcode-selectable").click((function(e){e.preventDefault(),wpcf_copyToClipboard($(this)),wpcf_SelectText($(this)),$(this).focus().select(),jQuery(".spwpc-after-copy-text").animate({opacity:1,bottom:25},300),setTimeout((function(){jQuery(".spwpc-after-copy-text").animate({opacity:0},200),jQuery(".spwpc-after-copy-text").animate({bottom:0},0)}),2e3)})),$(".post-type-sp_wp_carousel .shortcode.column-shortcode input").click((function(e){var copyText;e.preventDefault(),$(this).select(),document.execCommand("copy"),jQuery(".spwpc-after-copy-text").animate({opacity:1,bottom:25},300),setTimeout((function(){jQuery(".spwpc-after-copy-text").animate({opacity:0},200),jQuery(".spwpc-after-copy-text").animate({bottom:0},0)}),2e3)})),$('.wpcp_post_pagination_type label:contains("Pro")').css({"pointer-events":"none",color:"rgba(85,85,85,.6)!important"});var $export_type=$(".wpcp_what_export").find("input:checked").val();$(".wpcp_what_export").on("change",(function(){$export_type=$(this).find("input:checked").val()})),$(".wpcp_export .wpcf--button").click((function(event){event.preventDefault();var $shortcode_ids=$(".wpcp_post_ids select").val();console.log($shortcode_ids);var $ex_nonce=$("#wpcf_options_noncesp_wpcf_tools").val(),selected_shortcode;if("all_shortcodes"===$export_type||"selected_shortcodes"===$export_type)var data={action:"wpcp_export_shortcodes",wpcf_ids:"selected_shortcodes"===$export_type?$shortcode_ids:"all_shortcodes",nonce:$ex_nonce};else $(".wpcf-form-result.wpcf-form-success").text("No carousel selected.").show(),setTimeout((function(){$(".wpcf-form-result.wpcf-form-success").hide().text("")}),3e3);$.post(ajaxurl,data,(function(resp){if(resp){var json=JSON.stringify(resp);json=[json];var blob=new Blob(json),link=document.createElement("a"),wpcp_time=$.now();link.href=window.URL.createObjectURL(blob),link.download="wp-carousel-export-"+wpcp_time+".json",link.click(),$(".wpcf-form-result.wpcf-form-success").text("Exported successfully!").show(),setTimeout((function(){$(".wpcf-form-result.wpcf-form-success").hide().text(""),$(".wpcp_post_ids select").val("").trigger("chosen:updated")}),3e3)}}))})),$(".wpcp_import button.import").click((function(event){event.preventDefault();var wpcp_shortcodes=$("#import").prop("files")[0];if(""!=$("#import").val()){var $im_nonce=$("#wpcf_options_noncesp_wpcf_tools").val(),reader=new FileReader;reader.readAsText(wpcp_shortcodes),reader.onload=function(event){var jsonObj=JSON.stringify(event.target.result);$.ajax({url:ajaxurl,type:"POST",data:{shortcode:jsonObj,action:"wpcp_import_shortcodes",nonce:$im_nonce},success:function(resp){$(".wpcf-form-result.wpcf-form-success").text("Imported successfully!").show(),setTimeout((function(){$(".wpcf-form-result.wpcf-form-success").hide().text(""),$("#import").val(""),window.location.replace($("#wpcf_shortcode_link_redirect").attr("href"))}),2e3)}})}}else $(".wpcf-form-result.wpcf-form-success").text("No exported json file chosen.").show(),setTimeout((function(){$(".wpcf-form-result.wpcf-form-success").hide().text("")}),3e3)})),"gallery"==$('.wpcp_layout input[name="sp_wpcp_shortcode_options[wpcp_layout]"]:checked').val()?$(".wpcf-nav-metabox li:nth-child(3)").hide():$(".wpcf-nav-metabox li:nth-child(3)").show(),$(".wpcf-field-image_select.wpcp_layout").on("change",(function(){"gallery"==$('.wpcp_layout input[name="sp_wpcp_shortcode_options[wpcp_layout]"]:checked').val()?$(".wpcf-nav-metabox li:nth-child(3)").hide():$(".wpcf-nav-metabox li:nth-child(3)").show()}))})),$(document).on("keyup change",".sp_wp_carousel_page_wpcp_settings #wpcf-form",(function(e){var $button;e.preventDefault(),$(this).find(".wpcf-save").css({"background-color":"#00C263","pointer-events":"initial"}).val("Save Settings")})),$(".sp_wp_carousel_page_wpcp_settings .wpcf-save").click((function(e){e.preventDefault(),$(this).css({"background-color":"#C5C5C6","pointer-events":"none"}).val("Changes Saved")}))}(jQuery,window,document);
|
1 |
+
!function($,window,document,undefined){"use strict";var SP_WPCF=SP_WPCF||{};SP_WPCF.funcs={},SP_WPCF.vars={onloaded:!1,$body:$("body"),$window:$(window),$document:$(document),$form_warning:null,is_confirm:!1,form_modified:!1,code_themes:[],is_rtl:$("body").hasClass("rtl")},SP_WPCF.helper={uid:function(prefix){return(prefix||"")+Math.random().toString(36).substr(2,9)},preg_quote:function(str){return(str+"").replace(/(\[|\])/g,"\\$1")},name_nested_replace:function($selector,field_id){var checks=[],regex=new RegExp(SP_WPCF.helper.preg_quote(field_id+"[\\d+]"),"g");$selector.find(":radio").each((function(){(this.checked||this.orginal_checked)&&(this.orginal_checked=!0)})),$selector.each((function(index){$(this).find(":input").each((function(){this.name=this.name.replace(regex,field_id+"["+index+"]"),this.orginal_checked&&(this.checked=!0)}))}))},debounce:function(callback,threshold,immediate){var timeout;return function(){var context=this,args=arguments,later=function(){timeout=null,immediate||callback.apply(context,args)},callNow=immediate&&!timeout;clearTimeout(timeout),timeout=setTimeout(later,threshold),callNow&&callback.apply(context,args)}},get_cookie:function(name){var e,b,cookie=document.cookie,p=name+"=";if(cookie){if(-1===(b=cookie.indexOf("; "+p))){if(0!==(b=cookie.indexOf(p)))return null}else b+=2;return-1===(e=cookie.indexOf(";",b))&&(e=cookie.length),decodeURIComponent(cookie.substring(b+p.length,e))}},set_cookie:function(name,value,expires,path,domain,secure){var d=new Date;"object"==typeof expires&&expires.toGMTString?expires=expires.toGMTString():parseInt(expires,10)?(d.setTime(d.getTime()+1e3*parseInt(expires,10)),expires=d.toGMTString()):expires="",document.cookie=name+"="+encodeURIComponent(value)+(expires?"; expires="+expires:"")+(path?"; path="+path:"")+(domain?"; domain="+domain:"")+(secure?"; secure":"")}},$.fn.wpcf_clone=function(){for(var base=$.fn.clone.apply(this,arguments),clone=this.find("select").add(this.filter("select")),cloned=base.find("select").add(base.filter("select")),i=0;i<clone.length;++i)for(var j=0;j<clone[i].options.length;++j)!0===clone[i].options[j].selected&&(cloned[i].options[j].selected=!0);return this.find(":radio").each((function(){this.orginal_checked=this.checked})),base},$.fn.wpcf_expand_all=function(){return this.each((function(){$(this).on("click",(function(e){e.preventDefault(),$(".wpcf-wrapper").toggleClass("wpcf-show-all"),$(".wpcf-section").wpcf_reload_script(),$(this).find(".fa").toggleClass("fa-indent").toggleClass("fa-outdent")}))}))},$.fn.wpcf_nav_options=function(){return this.each((function(){var $nav=$(this),$window=$(window),$wpwrap=$("#wpwrap"),$links=$nav.find("a"),$last;$window.on("hashchange wpcf.hashchange",(function(){var hash=window.location.hash.replace("#tab=",""),slug=hash||$links.first().attr("href").replace("#tab=",""),$link=$('[data-tab-id="'+slug+'"]');if($link.length){$link.closest(".wpcf-tab-item").addClass("wpcf-tab-expanded").siblings().removeClass("wpcf-tab-expanded"),$link.next().is("ul")&&(slug=($link=$link.next().find("li").first().find("a")).data("tab-id")),$links.removeClass("wpcf-active"),$link.addClass("wpcf-active"),$last&&$last.addClass("hidden");var $section=$('[data-section-id="'+slug+'"]');$section.removeClass("hidden"),$section.wpcf_reload_script(),$(".wpcf-section-id").val($section.index()+1),$last=$section,$wpwrap.hasClass("wp-responsive-open")&&($("html, body").animate({scrollTop:$section.offset().top-50},200),$wpwrap.removeClass("wp-responsive-open"))}})).trigger("wpcf.hashchange")}))},$.fn.wpcf_nav_metabox=function(){return this.each((function(){var $nav=$(this),$links=$nav.find("a"),unique_id=$nav.data("unique"),post_id=$("#post_ID").val()||"global",$last_section,$last_link;$links.on("click",(function(e){e.preventDefault();var $link=$(this),section_id=$link.data("section");void 0!==$last_link&&$last_link.removeClass("wpcf-active"),void 0!==$last_section&&$last_section.addClass("hidden"),$link.addClass("wpcf-active");var $section=$("#wpcf-section-"+section_id);$section.removeClass("hidden"),$section.wpcf_reload_script(),SP_WPCF.helper.set_cookie("wpcf-last-metabox-tab-"+post_id+"-"+unique_id,section_id),$last_section=$section,$last_link=$link}));var get_cookie=SP_WPCF.helper.get_cookie("wpcf-last-metabox-tab-"+post_id+"-"+unique_id);get_cookie?$nav.find('a[data-section="'+get_cookie+'"]').trigger("click"):$links.first("a").trigger("click")}))},$.fn.wpcf_page_templates=function(){this.length&&$(document).on("change",".editor-page-attributes__template select, #page_template",(function(){var maybe_value=$(this).val()||"default";$(".wpcf-page-templates").removeClass("wpcf-metabox-show").addClass("wpcf-metabox-hide"),$(".wpcf-page-"+maybe_value.toLowerCase().replace(/[^a-zA-Z0-9]+/g,"-")).removeClass("wpcf-metabox-hide").addClass("wpcf-metabox-show")}))},$.fn.wpcf_post_formats=function(){this.length&&$(document).on("change",'.editor-post-format select, #formatdiv input[name="post_format"]',(function(){var maybe_value=$(this).val()||"default";maybe_value="0"===maybe_value?"default":maybe_value,$(".wpcf-post-formats").removeClass("wpcf-metabox-show").addClass("wpcf-metabox-hide"),$(".wpcf-post-format-"+maybe_value).removeClass("wpcf-metabox-hide").addClass("wpcf-metabox-show")}))},$.fn.wpcf_search=function(){return this.each((function(){var $this,$input;$(this).find("input").on("change keyup",(function(){var value=$(this).val(),$wrapper=$(".wpcf-wrapper"),$section,$fields=$wrapper.find(".wpcf-section").find("> .wpcf-field:not(.wpcf-depend-on)"),$titles=$fields.find("> .wpcf-title, .wpcf-search-tags");value.length>3?($fields.addClass("wpcf-metabox-hide"),$wrapper.addClass("wpcf-search-all"),$titles.each((function(){var $title=$(this);if($title.text().match(new RegExp(".*?"+value+".*?","i"))){var $field=$title.closest(".wpcf-field");$field.removeClass("wpcf-metabox-hide"),$field.parent().wpcf_reload_script()}}))):($fields.removeClass("wpcf-metabox-hide"),$wrapper.removeClass("wpcf-search-all"))}))}))},$.fn.wpcf_sticky=function(){return this.each((function(){var $this=$(this),$window=$(window),$inner=$this.find(".wpcf-header-inner"),padding=parseInt($inner.css("padding-left"))+parseInt($inner.css("padding-right")),offset=32,scrollTop=0,lastTop=0,ticking=!1,stickyUpdate=function(){var offsetTop=$this.offset().top,stickyTop=Math.max(32,offsetTop-scrollTop),winWidth=$window.innerWidth();stickyTop<=32&&winWidth>782?($inner.css({width:$this.outerWidth()-padding}),$this.css({height:$this.outerHeight()}).addClass("wpcf-sticky")):($inner.removeAttr("style"),$this.removeAttr("style").removeClass("wpcf-sticky"))},requestTick=function(){ticking||requestAnimationFrame((function(){stickyUpdate(),ticking=!1})),ticking=!0},onSticky=function(){scrollTop=$window.scrollTop(),requestTick()};$window.on("scroll resize",onSticky),onSticky()}))},$.fn.wpcf_dependency=function(){return this.each((function(){var $this=$(this),$fields=$this.children("[data-controller]");if($fields.length){var normal_ruleset=$.wpcf_deps.createRuleset(),global_ruleset=$.wpcf_deps.createRuleset(),normal_depends=[],global_depends=[];$fields.each((function(){var $field=$(this),controllers=$field.data("controller").split("|"),conditions=$field.data("condition").split("|"),values=$field.data("value").toString().split("|"),is_global=!!$field.data("depend-global"),ruleset=is_global?global_ruleset:normal_ruleset;$.each(controllers,(function(index,depend_id){var value=values[index]||"",condition=conditions[index]||conditions[0];(ruleset=ruleset.createRule('[data-depend-id="'+depend_id+'"]',condition,value)).include($field),is_global?global_depends.push(depend_id):normal_depends.push(depend_id)}))})),normal_depends.length&&$.wpcf_deps.enable($this,normal_ruleset,normal_depends),global_depends.length&&$.wpcf_deps.enable(SP_WPCF.vars.$body,global_ruleset,global_depends)}}))},$.fn.wpcf_field_code_editor=function(){return this.each((function(){if("function"==typeof CodeMirror){var $this=$(this),$textarea=$this.find("textarea"),$inited=$this.find(".CodeMirror"),data_editor=$textarea.data("editor");$inited.length&&$inited.remove();var interval=setInterval((function(){if($this.is(":visible")){var code_editor=CodeMirror.fromTextArea($textarea[0],data_editor);if("default"!==data_editor.theme&&-1===SP_WPCF.vars.code_themes.indexOf(data_editor.theme)){var $cssLink=$("<link>");$("#wpcf-codemirror-css").after($cssLink),$cssLink.attr({rel:"stylesheet",id:"wpcf-codemirror-"+data_editor.theme+"-css",href:data_editor.cdnURL+"/theme/"+data_editor.theme+".min.css",type:"text/css",media:"all"}),SP_WPCF.vars.code_themes.push(data_editor.theme)}CodeMirror.modeURL=data_editor.cdnURL+"/mode/%N/%N.min.js",CodeMirror.autoLoadMode(code_editor,data_editor.mode),code_editor.on("change",(function(editor,event){$textarea.val(code_editor.getValue()).trigger("change")})),clearInterval(interval)}}))}}))},$.fn.wpcf_field_gallery=function(){return this.each((function(){var $this=$(this),$edit=$this.find(".wpcf-edit-gallery"),$clear=$this.find(".wpcf-clear-gallery"),$list=$this.find("ul.sp-gallery-images"),$input=$this.find("input"),$img=$this.find("img"),wp_media_frame;$this.on("click",".wpcf-button, .wpcf-edit-gallery",(function(e){var $el=$(this),ids=$input.val(),what=$el.hasClass("wpcf-edit-gallery")?"edit":"add",state="add"!==what||ids.length?"gallery-edit":"gallery";e.preventDefault(),void 0!==window.wp&&window.wp.media&&window.wp.media.gallery&&("gallery"===state?(wp_media_frame=window.wp.media({library:{type:"image"},frame:"post",state:"gallery",multiple:!0})).open():(wp_media_frame=window.wp.media.gallery.edit('[gallery ids="'+ids+'"]'),"add"===what&&wp_media_frame.setState("gallery-library")),wp_media_frame.on("update",(function(selection){$list.empty();var selectedIds=selection.models.map((function(attachment){var item=attachment.toJSON(),thumb=item.sizes&&item.sizes.thumbnail&&item.sizes.thumbnail.url?item.sizes.thumbnail.url:item.url;return $list.append('<li><img src="'+thumb+'"></li>'),item.id}));$input.val(selectedIds.join(",")).trigger("change"),$clear.removeClass("hidden"),$edit.removeClass("hidden")})))})),$clear.on("click",(function(e){e.preventDefault(),$list.empty(),$input.val("").trigger("change"),$clear.addClass("hidden"),$edit.addClass("hidden")}))}))},$.fn.wpcf_field_media=function(){return this.each((function(){var $this=$(this),$upload_button=$this.find(".wpcf--button"),$remove_button=$this.find(".wpcf--remove"),$library=$upload_button.data("library")&&$upload_button.data("library").split(",")||"",$auto_attributes=!!$this.hasClass("wpcf-assign-field-background")&&$this.closest(".wpcf-field-background").find(".wpcf--auto-attributes"),wp_media_frame;$upload_button.on("click",(function(e){e.preventDefault(),void 0!==window.wp&&window.wp.media&&window.wp.media.gallery&&(wp_media_frame?wp_media_frame.open():((wp_media_frame=window.wp.media({library:{type:$library}})).on("select",(function(){var thumbnail,attributes=wp_media_frame.state().get("selection").first().attributes,preview_size=$upload_button.data("preview-size")||"thumbnail";$library.length&&-1===$library.indexOf(attributes.subtype)&&-1===$library.indexOf(attributes.type)||($this.find(".wpcf--id").val(attributes.id),$this.find(".wpcf--width").val(attributes.width),$this.find(".wpcf--height").val(attributes.height),$this.find(".wpcf--alt").val(attributes.alt),$this.find(".wpcf--title").val(attributes.title),$this.find(".wpcf--description").val(attributes.description),thumbnail=void 0!==attributes.sizes&&void 0!==attributes.sizes.thumbnail&&"thumbnail"===preview_size?attributes.sizes.thumbnail.url:void 0!==attributes.sizes&&void 0!==attributes.sizes.full?attributes.sizes.full.url:"image"===attributes.type?attributes.url:attributes.icon,console.log(attributes),$auto_attributes&&$auto_attributes.removeClass("wpcf--attributes-hidden"),$remove_button.removeClass("hidden"),$this.find(".wpcf--preview").removeClass("hidden"),$this.find(".wpcf--src").attr("src",thumbnail),$this.find(".wpcf--thumbnail").val(thumbnail),$this.find(".wpcf--url").val(attributes.url).trigger("change"))})),wp_media_frame.open()))})),$remove_button.on("click",(function(e){e.preventDefault(),$auto_attributes&&$auto_attributes.addClass("wpcf--attributes-hidden"),$remove_button.addClass("hidden"),$this.find("input").val(""),$this.find(".wpcf--preview").addClass("hidden"),$this.find(".wpcf--url").trigger("change")}))}))},$.fn.wpcf_field_slider=function(){return this.each((function(){var $this=$(this),$input=$this.find("input"),$slider=$this.find(".wpcf-slider-ui"),data=$input.data(),value=$input.val()||0;$slider.hasClass("ui-slider")&&$slider.empty(),$slider.slider({range:"min",value:value,min:data.min||0,max:data.max||100,step:data.step||1,slide:function(e,o){$input.val(o.value).trigger("change")}}),$input.on("keyup",(function(){$slider.slider("value",$input.val())}))}))},$.fn.wpcf_field_spinner=function(){return this.each((function(){var $this=$(this),$input=$this.find("input"),$inited=$this.find(".ui-button"),data=$input.data();$inited.length&&$inited.remove(),$input.spinner({min:data.min||0,max:data.max||100,step:data.step||1,create:function(event,ui){data.unit&&$input.after('<span class="ui-button wpcf--unit">'+data.unit+"</span>")},spin:function(event,ui){$input.val(ui.value).trigger("change")}})}))},$.fn.wpcf_field_switcher=function(){return this.each((function(){var $switcher=$(this).find(".wpcf--switcher");$switcher.on("click",(function(){var value=0,$input=$switcher.find("input");$switcher.hasClass("wpcf--active")?$switcher.removeClass("wpcf--active"):(value=1,$switcher.addClass("wpcf--active")),$input.val(value).trigger("change")}))}))},$.fn.wpcf_field_typography=function(){return this.each((function(){var base=this,$this=$(this),loaded_fonts=[],webfonts=wpcf_typography_json.webfonts,googlestyles=wpcf_typography_json.googlestyles,defaultstyles=wpcf_typography_json.defaultstyles;base.sanitize_subset=function(subset){return subset=(subset=subset.replace("-ext"," Extended")).charAt(0).toUpperCase()+subset.slice(1)},base.sanitize_style=function(style){return googlestyles[style]?googlestyles[style]:style},base.load_google_font=function(font_family,weight,style){font_family&&"object"==typeof WebFont&&(weight=weight?weight.replace("normal",""):"",style=style?style.replace("normal",""):"",(weight||style)&&(font_family=font_family+":"+weight+style),-1===loaded_fonts.indexOf(font_family)&&WebFont.load({google:{families:[font_family]}}),loaded_fonts.push(font_family))},base.append_select_options=function($select,options,condition,type,is_multi){$select.find("option").not(":first").remove();var opts="";$.each(options,(function(key,value){var selected,name=value;selected=is_multi?condition&&-1!==condition.indexOf(value)?" selected":"":condition&&condition===value?" selected":"","subset"===type?name=base.sanitize_subset(value):"style"===type&&(name=base.sanitize_style(value)),opts+='<option value="'+value+'"'+selected+">"+name+"</option>"})),$select.append(opts).trigger("wpcf.change").trigger("chosen:updated")},base.init=function(){var selected_styles=[],$typography=$this.find(".wpcf--typography"),$type=$this.find(".wpcf--type"),$styles=$this.find(".wpcf--block-font-style"),unit=$typography.data("unit"),line_height_unit=$typography.data("line-height-unit"),exclude_fonts=$typography.data("exclude")?$typography.data("exclude").split(","):[],$chosen_selects;$this.find(".wpcf--chosen").length&&$this.find("select").each((function(){var $chosen_select=$(this),$chosen_inited=$chosen_select.parent().find(".chosen-container");$chosen_inited.length&&$chosen_inited.remove(),$chosen_select.chosen({allow_single_deselect:!0,disable_search_threshold:15,width:"100%"})}));var $font_family_select=$this.find(".wpcf--font-family"),first_font_family=$font_family_select.val();$font_family_select.find("option").not(":first-child").remove();var opts="";$.each(webfonts,(function(type,group){exclude_fonts&&-1!==exclude_fonts.indexOf(type)||(opts+='<optgroup label="'+group.label+'">',$.each(group.fonts,(function(key,value){var selected;opts+='<option value="'+(value="object"==typeof value?key:value)+'" data-type="'+type+'"'+(value===first_font_family?" selected":"")+">"+value+"</option>"})),opts+="</optgroup>")})),$font_family_select.append(opts).trigger("chosen:updated");var $font_style_block=$this.find(".wpcf--block-font-style");if($font_style_block.length){var $font_style_select=$this.find(".wpcf--font-style-select"),first_style_value=$font_style_select.val()?$font_style_select.val().replace(/normal/g,""):"";$font_style_select.on("change wpcf.change",(function(event){var style_value=$font_style_select.val();!style_value&&selected_styles&&-1===selected_styles.indexOf("normal")&&(style_value=selected_styles[0]);var font_normal=style_value&&"italic"!==style_value&&"normal"===style_value?"normal":"",font_weight=style_value&&"italic"!==style_value&&"normal"!==style_value?style_value.replace("italic",""):font_normal,font_style=style_value&&"italic"===style_value.substr(-6)?"italic":"";$this.find(".wpcf--font-weight").val(font_weight),$this.find(".wpcf--font-style").val(font_style)}));var $extra_font_style_block=$this.find(".wpcf--block-extra-styles");if($extra_font_style_block.length)var $extra_font_style_select=$this.find(".wpcf--extra-styles"),first_extra_style_value=$extra_font_style_select.val()}var $subset_block=$this.find(".wpcf--block-subset");if($subset_block.length)var $subset_select=$this.find(".wpcf--subset"),first_subset_select_value=$subset_select.val(),subset_multi_select=$subset_select.data("multiple")||!1;var $backup_font_family_block=$this.find(".wpcf--block-backup-font-family");$font_family_select.on("change wpcf.change",(function(event){$subset_block.length&&$subset_block.addClass("hidden"),$extra_font_style_block.length&&$extra_font_style_block.addClass("hidden"),$backup_font_family_block.length&&$backup_font_family_block.addClass("hidden");var $selected=$font_family_select.find(":selected"),value=$selected.val(),type=$selected.data("type");if(type&&value){if("google"!==type&&"custom"!==type||!$backup_font_family_block.length||$backup_font_family_block.removeClass("hidden"),$font_style_block.length){var styles=defaultstyles;"google"===type&&webfonts[type].fonts[value][0]?styles=webfonts[type].fonts[value][0]:"custom"===type&&webfonts[type].fonts[value]&&(styles=webfonts[type].fonts[value]),selected_styles=styles;var set_auto_style=-1!==styles.indexOf("normal")?"normal":styles[0],set_style_value=first_style_value&&-1!==styles.indexOf(first_style_value)?first_style_value:set_auto_style;base.append_select_options($font_style_select,styles,set_style_value,"style"),first_style_value=!1,$font_style_block.removeClass("hidden"),"google"===type&&$extra_font_style_block.length&&styles.length>1&&(base.append_select_options($extra_font_style_select,styles,first_extra_style_value,"style",!0),first_extra_style_value=!1,$extra_font_style_block.removeClass("hidden"))}if("google"===type&&$subset_block.length&&webfonts[type].fonts[value][1]){var subsets=webfonts[type].fonts[value][1],set_auto_subset=subsets.length<2&&"latin"!==subsets[0]?subsets[0]:"",set_subset_value=first_subset_select_value&&-1!==subsets.indexOf(first_subset_select_value)?first_subset_select_value:set_auto_subset;set_subset_value=subset_multi_select&&first_subset_select_value?first_subset_select_value:set_subset_value,base.append_select_options($subset_select,subsets,set_subset_value,"subset",subset_multi_select),first_subset_select_value=!1,$subset_block.removeClass("hidden")}}else $styles.find(":input").val(""),$subset_block.length&&($subset_select.find("option").not(":first-child").remove(),$subset_select.trigger("chosen:updated")),$font_style_block.length&&($font_style_select.find("option").not(":first-child").remove(),$font_style_select.trigger("chosen:updated"));$type.val(type)})).trigger("wpcf.change");var $preview_block=$this.find(".wpcf--block-preview");if($preview_block.length){var $preview=$this.find(".wpcf--preview");$this.on("change",SP_WPCF.helper.debounce((function(event){$preview_block.removeClass("hidden");var font_family=$font_family_select.val(),font_weight=$this.find(".wpcf--font-weight").val(),font_style=$this.find(".wpcf--font-style").val(),font_size=$this.find(".wpcf--font-size").val(),font_variant=$this.find(".wpcf--font-variant").val(),line_height=$this.find(".wpcf--line-height").val(),text_align=$this.find(".wpcf--text-align").val(),text_transform=$this.find(".wpcf--text-transform").val(),text_decoration=$this.find(".wpcf--text-decoration").val(),text_color=$this.find(".wpcf--color").val(),word_spacing=$this.find(".wpcf--word-spacing").val(),letter_spacing=$this.find(".wpcf--letter-spacing").val(),custom_style=$this.find(".wpcf--custom-style").val(),type;"google"===$this.find(".wpcf--type").val()&&base.load_google_font(font_family,font_weight,font_style);var properties={};font_family&&(properties.fontFamily=font_family),font_weight&&(properties.fontWeight=font_weight),font_style&&(properties.fontStyle=font_style),font_variant&&(properties.fontVariant=font_variant),font_size&&(properties.fontSize=font_size+unit),line_height&&(properties.lineHeight=line_height+line_height_unit),letter_spacing&&(properties.letterSpacing=letter_spacing+unit),word_spacing&&(properties.wordSpacing=word_spacing+unit),text_align&&(properties.textAlign=text_align),text_transform&&(properties.textTransform=text_transform),text_decoration&&(properties.textDecoration=text_decoration),text_color&&(properties.color=text_color),$preview.removeAttr("style"),custom_style&&$preview.attr("style",custom_style),$preview.css(properties)}),100)),$preview_block.on("click",(function(){$preview.toggleClass("wpcf--black-background");var $toggle=$preview_block.find(".wpcf--toggle");$toggle.hasClass("fa-toggle-off")?$toggle.removeClass("fa-toggle-off").addClass("fa-toggle-on"):$toggle.removeClass("fa-toggle-on").addClass("fa-toggle-off")})),$preview_block.hasClass("hidden")||$this.trigger("change")}},base.init()}))},$.fn.wpcf_field_wp_editor=function(){return this.each((function(){if(void 0!==window.wp.editor&&void 0!==window.tinyMCEPreInit&&void 0!==window.tinyMCEPreInit.mceInit.wpcf_wp_editor){var $this=$(this),$editor=$this.find(".wpcf-wp-editor"),$textarea=$this.find("textarea"),$has_wp_editor;($this.find(".wp-editor-wrap").length||$this.find(".mce-container").length)&&($editor.empty(),$editor.append($textarea),$textarea.css("display",""));var uid=SP_WPCF.helper.uid("wpcf-editor-");$textarea.attr("id",uid);var default_editor_settings={tinymce:window.tinyMCEPreInit.mceInit.wpcf_wp_editor,quicktags:window.tinyMCEPreInit.qtInit.wpcf_wp_editor},field_editor_settings=$editor.data("editor-settings"),wpEditor=wp.oldEditor?wp.oldEditor:wp.editor;wpEditor&&wpEditor.hasOwnProperty("autop")&&(wp.editor.autop=wpEditor.autop,wp.editor.removep=wpEditor.removep,wp.editor.initialize=wpEditor.initialize);var editor_on_change=function(editor){editor.on("change keyup",(function(){var value=field_editor_settings.wpautop?editor.getContent():wp.editor.removep(editor.getContent());$textarea.val(value).trigger("change")}))};default_editor_settings.tinymce=$.extend({},default_editor_settings.tinymce,{selector:"#"+uid,setup:editor_on_change}),!1===field_editor_settings.tinymce&&(default_editor_settings.tinymce=!1,$editor.addClass("wpcf-no-tinymce")),!1===field_editor_settings.quicktags&&(default_editor_settings.quicktags=!1,$editor.addClass("wpcf-no-quicktags"));var interval=setInterval((function(){$this.is(":visible")&&(window.wp.editor.initialize(uid,default_editor_settings),clearInterval(interval))}));if(field_editor_settings.media_buttons&&window.wpcf_media_buttons){var $editor_buttons=$editor.find(".wp-media-buttons");if($editor_buttons.length)$editor_buttons.find(".wpcf-shortcode-button").data("editor-id",uid);else{var $media_buttons=$(window.wpcf_media_buttons);$media_buttons.find(".wpcf-shortcode-button").data("editor-id",uid),$editor.prepend($media_buttons)}}}}))},$.fn.wpcf_confirm=function(){return this.each((function(){$(this).on("click",(function(e){var confirm_text=$(this).data("confirm")||window.wpcf_vars.i18n.confirm,confirm_answer;if(!confirm(confirm_text))return e.preventDefault(),!1;SP_WPCF.vars.is_confirm=!0,SP_WPCF.vars.form_modified=!1}))}))},$.fn.serializeObject=function(){var obj={};return $.each(this.serializeArray(),(function(i,o){var n=o.name,v=o.value;obj[n]=void 0===obj[n]?v:$.isArray(obj[n])?obj[n].concat(v):[obj[n],v]})),obj},$.fn.wpcf_save=function(){return this.each((function(){var $this=$(this),$buttons=$(".wpcf-save"),$panel=$(".wpcf-options"),flooding=!1,timeout;$this.on("click",(function(e){if(!flooding){var $text=$this.data("save"),$value=$this.val();$buttons.attr("value",$text),$this.hasClass("wpcf-save-ajax")?(e.preventDefault(),$panel.addClass("wpcf-saving"),$buttons.prop("disabled",!0),window.wp.ajax.post("wpcf_"+$panel.data("unique")+"_ajax_save",{data:$("#wpcf-form").serializeJSONSP_WPCF()}).done((function(response){if($(".wpcf-error").remove(),Object.keys(response.errors).length){var error_icon='<i class="wpcf-label-error wpcf-error">!</i>';$.each(response.errors,(function(key,error_message){var $field=$('[data-depend-id="'+key+'"]'),$link=$('a[href="#tab='+$field.closest(".wpcf-section").data("section-id")+'"]'),$tab=$link.closest(".wpcf-tab-item");$field.closest(".wpcf-fieldset").append('<p class="wpcf-error wpcf-error-text">'+error_message+"</p>"),$link.find(".wpcf-error").length||$link.append(error_icon),$tab.find(".wpcf-arrow .wpcf-error").length||$tab.find(".wpcf-arrow").append(error_icon)}))}$panel.removeClass("wpcf-saving"),$buttons.prop("disabled",!1).attr("value",$value),flooding=!1,SP_WPCF.vars.form_modified=!1,SP_WPCF.vars.$form_warning.hide(),clearTimeout(timeout);var $result_success=$(".wpcf-form-success");$result_success.empty().append(response.notice).fadeIn("fast",(function(){timeout=setTimeout((function(){$result_success.fadeOut("fast")}),1e3)}))})).fail((function(response){alert(response.error)}))):SP_WPCF.vars.form_modified=!1}flooding=!0}))}))},$.fn.wpcf_options=function(){return this.each((function(){var $this=$(this),$content=$this.find(".wpcf-content"),$form_success=$this.find(".wpcf-form-success"),$form_warning=$this.find(".wpcf-form-warning"),$save_button=$this.find(".wpcf-header .wpcf-save");SP_WPCF.vars.$form_warning=$form_warning,$form_warning.length&&(window.onbeforeunload=function(){return!!SP_WPCF.vars.form_modified||void 0},$content.on("change keypress",":input",(function(){SP_WPCF.vars.form_modified||($form_success.hide(),$form_warning.fadeIn("fast"),SP_WPCF.vars.form_modified=!0)}))),$form_success.hasClass("wpcf-form-show")&&setTimeout((function(){$form_success.fadeOut("fast")}),1e3),$(document).keydown((function(event){if((event.ctrlKey||event.metaKey)&&83===event.which)return $save_button.trigger("click"),event.preventDefault(),!1}))}))},$.fn.wpcf_taxonomy=function(){return this.each((function(){var $this=$(this),$form=$this.parents("form");if("addtag"===$form.attr("id")){var $submit=$form.find("#submit"),$cloned=$this.find(".wpcf-field").wpcf_clone();$submit.on("click",(function(){$form.find(".form-required").hasClass("form-invalid")||($this.data("inited",!1),$this.empty(),$this.html($cloned),$cloned=$cloned.wpcf_clone(),$this.wpcf_reload_script())}))}}))},$.fn.wpcf_shortcode=function(){var base=this;return base.shortcode_parse=function(serialize,key){var shortcode="";return $.each(serialize,(function(shortcode_key,shortcode_values){shortcode+="["+(key=key||shortcode_key),$.each(shortcode_values,(function(shortcode_tag,shortcode_value){"content"===shortcode_tag?(shortcode+="]",shortcode+=shortcode_value,shortcode+="[/"+key):shortcode+=base.shortcode_tags(shortcode_tag,shortcode_value)})),shortcode+="]"})),shortcode},base.shortcode_tags=function(shortcode_tag,shortcode_value){var shortcode="";return""!==shortcode_value&&("object"!=typeof shortcode_value||$.isArray(shortcode_value)?shortcode+=" "+shortcode_tag.replace("-","_")+'="'+shortcode_value.toString()+'"':$.each(shortcode_value,(function(sub_shortcode_tag,sub_shortcode_value){switch(sub_shortcode_tag){case"background-image":sub_shortcode_value=sub_shortcode_value.url?sub_shortcode_value.url:""}""!==sub_shortcode_value&&(shortcode+=" "+sub_shortcode_tag.replace("-","_")+'="'+sub_shortcode_value.toString()+'"')}))),shortcode},base.insertAtChars=function(_this,currentValue){var obj=void 0!==_this[0].name?_this[0]:_this;return obj.value.length&&void 0!==obj.selectionStart?(obj.focus(),obj.value.substring(0,obj.selectionStart)+currentValue+obj.value.substring(obj.selectionEnd,obj.value.length)):(obj.focus(),currentValue)},base.send_to_editor=function(html,editor_id){var tinymce_editor;if("undefined"!=typeof tinymce&&(tinymce_editor=tinymce.get(editor_id)),tinymce_editor&&!tinymce_editor.isHidden())tinymce_editor.execCommand("mceInsertContent",!1,html);else{var $editor=$("#"+editor_id);$editor.val(base.insertAtChars($editor,html)).trigger("change")}},this.each((function(){var $modal=$(this),$load=$modal.find(".wpcf-modal-load"),$content=$modal.find(".wpcf-modal-content"),$insert=$modal.find(".wpcf-modal-insert"),$loading=$modal.find(".wpcf-modal-loading"),$select=$modal.find("select"),modal_id=$modal.data("modal-id"),nonce=$modal.data("nonce"),editor_id,target_id,gutenberg_id,sc_key,sc_name,sc_view,sc_group,$cloned,$button;$(document).on("click",'.wpcf-shortcode-button[data-modal-id="'+modal_id+'"]',(function(e){e.preventDefault(),$button=$(this),editor_id=$button.data("editor-id")||!1,target_id=$button.data("target-id")||!1,gutenberg_id=$button.data("gutenberg-id")||!1,$modal.removeClass("hidden"),$modal.hasClass("wpcf-shortcode-single")&&void 0===sc_name&&$select.trigger("change")})),$select.on("change",(function(){var $option=$(this),$selected=$option.find(":selected");sc_key=$option.val(),sc_name=$selected.data("shortcode"),sc_view=$selected.data("view")||"normal",sc_group=$selected.data("group")||sc_name,$load.empty(),sc_key?($loading.show(),window.wp.ajax.post("wpcf-get-shortcode-"+modal_id,{shortcode_key:sc_key,nonce:nonce}).done((function(response){$loading.hide();var $appended=$(response.content).appendTo($load);$insert.parent().removeClass("hidden"),$cloned=$appended.find(".wpcf--repeat-shortcode").wpcf_clone(),$appended.wpcf_reload_script(),$appended.find(".wpcf-fields").wpcf_reload_script()}))):$insert.parent().addClass("hidden")})),$insert.on("click",(function(e){if(e.preventDefault(),!$insert.prop("disabled")&&!$insert.attr("disabled")){var shortcode="",serialize=$modal.find(".wpcf-field:not(.wpcf-depend-on)").find(":input:not(.ignore)").serializeObjectSP_WPCF();switch(sc_view){case"contents":var contentsObj=sc_name?serialize[sc_name]:serialize;$.each(contentsObj,(function(sc_key,sc_value){var sc_tag=sc_name||sc_key;shortcode+="["+sc_tag+"]"+sc_value+"[/"+sc_tag+"]"}));break;case"group":shortcode+="["+sc_name,$.each(serialize[sc_name],(function(sc_key,sc_value){shortcode+=base.shortcode_tags(sc_key,sc_value)})),shortcode+="]",shortcode+=base.shortcode_parse(serialize[sc_group],sc_group),shortcode+="[/"+sc_name+"]";break;case"repeater":shortcode+=base.shortcode_parse(serialize[sc_group],sc_group);break;default:shortcode+=base.shortcode_parse(serialize)}if(shortcode=""===shortcode?"["+sc_name+"]":shortcode,gutenberg_id){var content=window.wpcf_gutenberg_props.attributes.hasOwnProperty("shortcode")?window.wpcf_gutenberg_props.attributes.shortcode:"";window.wpcf_gutenberg_props.setAttributes({shortcode:content+shortcode})}else if(editor_id)base.send_to_editor(shortcode,editor_id);else{var $textarea=target_id?$(target_id):$button.parent().find("textarea");$textarea.val(base.insertAtChars($textarea,shortcode)).trigger("change")}$modal.addClass("hidden")}})),$modal.on("click",".wpcf--repeat-button",(function(e){e.preventDefault();var $repeatable=$modal.find(".wpcf--repeatable"),$new_clone=$cloned.wpcf_clone(),$remove_btn=$new_clone.find(".wpcf-repeat-remove"),$appended=$new_clone.appendTo($repeatable);$new_clone.find(".wpcf-fields").wpcf_reload_script(),SP_WPCF.helper.name_nested_replace($modal.find(".wpcf--repeat-shortcode"),sc_group),$remove_btn.on("click",(function(){$new_clone.remove(),SP_WPCF.helper.name_nested_replace($modal.find(".wpcf--repeat-shortcode"),sc_group)}))})),$modal.on("click",".wpcf-modal-close, .wpcf-modal-overlay",(function(){$modal.addClass("hidden")}))}))},"function"==typeof Color&&(Color.prototype.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var hex=parseInt(this._color,10).toString(16);if(this.error)return"";if(hex.length<6)for(var i=6-hex.length-1;i>=0;i--)hex="0"+hex;return"#"+hex}),SP_WPCF.funcs.parse_color=function(color){var value=color.replace(/\s+/g,""),trans=-1!==value.indexOf("rgba")?parseFloat(100*value.replace(/^.*,(.+)\)/,"$1")):100,rgba;return{value:value,transparent:trans,rgba:trans<100}},$.fn.wpcf_color=function(){return this.each((function(){var $input=$(this),picker_color=SP_WPCF.funcs.parse_color($input.val()),palette_color=!window.wpcf_vars.color_palette.length||window.wpcf_vars.color_palette,$container;$input.hasClass("wp-color-picker")&&$input.closest(".wp-picker-container").after($input).remove(),$input.wpColorPicker({palettes:palette_color,change:function(event,ui){var ui_color_value=ui.color.toString();$container.removeClass("wpcf--transparent-active"),$container.find(".wpcf--transparent-offset").css("background-color",ui_color_value),$input.val(ui_color_value).trigger("change")},create:function(){$container=$input.closest(".wp-picker-container");var a8cIris=$input.data("a8cIris"),$transparent_wrap=$('<div class="wpcf--transparent-wrap"><div class="wpcf--transparent-slider"></div><div class="wpcf--transparent-offset"></div><div class="wpcf--transparent-text"></div><div class="wpcf--transparent-button">transparent <i class="fa fa-toggle-off"></i></div></div>').appendTo($container.find(".wp-picker-holder")),$transparent_slider=$transparent_wrap.find(".wpcf--transparent-slider"),$transparent_text=$transparent_wrap.find(".wpcf--transparent-text"),$transparent_offset=$transparent_wrap.find(".wpcf--transparent-offset"),$transparent_button=$transparent_wrap.find(".wpcf--transparent-button");"transparent"===$input.val()&&$container.addClass("wpcf--transparent-active"),$transparent_button.on("click",(function(){"transparent"!==$input.val()?($input.val("transparent").trigger("change").removeClass("iris-error"),$container.addClass("wpcf--transparent-active")):($input.val(a8cIris._color.toString()).trigger("change"),$container.removeClass("wpcf--transparent-active"))})),$transparent_slider.slider({value:picker_color.transparent,step:1,min:0,max:100,slide:function(event,ui){var slide_value=parseFloat(ui.value/100);a8cIris._color._alpha=slide_value,$input.wpColorPicker("color",a8cIris._color.toString()),$transparent_text.text(1===slide_value||0===slide_value?"":slide_value)},create:function(){var slide_value=parseFloat(picker_color.transparent/100),text_value=slide_value<1?slide_value:"";$transparent_text.text(text_value),$transparent_offset.css("background-color",picker_color.value),$container.on("click",".wp-picker-clear",(function(){a8cIris._color._alpha=1,$transparent_text.text(""),$transparent_slider.slider("option","value",100),$container.removeClass("wpcf--transparent-active"),$input.trigger("change")})),$container.on("click",".wp-picker-default",(function(){var default_color=SP_WPCF.funcs.parse_color($input.data("default-color")),default_value=parseFloat(default_color.transparent/100),default_text=default_value<1?default_value:"";a8cIris._color._alpha=default_value,$transparent_text.text(default_text),$transparent_slider.slider("option","value",default_color.transparent),"transparent"===default_color.value&&($input.removeClass("iris-error"),$container.addClass("wpcf--transparent-active"))}))}})}})}))},$.fn.wpcf_chosen=function(){return this.each((function(){var $this=$(this),$inited=$this.parent().find(".chosen-container"),is_sortable=$this.hasClass("wpcf-chosen-sortable")||!1,is_ajax=$this.hasClass("wpcf-chosen-ajax")||!1,is_multiple=$this.attr("multiple")||!1,set_width=is_multiple?"100%":"auto",set_options=$.extend({allow_single_deselect:!0,disable_search_threshold:10,width:set_width,no_results_text:window.wpcf_vars.i18n.no_results_text},$this.data("chosen-settings"));if($inited.length&&$inited.remove(),is_ajax){var set_ajax_options=$.extend({data:{type:"post",nonce:""},allow_single_deselect:!0,disable_search_threshold:-1,width:"100%",min_length:3,type_delay:500,typing_text:window.wpcf_vars.i18n.typing_text,searching_text:window.wpcf_vars.i18n.searching_text,no_results_text:window.wpcf_vars.i18n.no_results_text},$this.data("chosen-settings"));$this.SP_WPCFAjaxChosen(set_ajax_options)}else $this.chosen(set_options);if(is_multiple){var $hidden_select=$this.parent().find(".wpcf-hide-select"),$hidden_value=$hidden_select.val()||[];$this.on("change",(function(obj,result){result&&result.selected?$hidden_select.append('<option value="'+result.selected+'" selected="selected">'+result.selected+"</option>"):result&&result.deselected&&$hidden_select.find('option[value="'+result.deselected+'"]').remove(),void 0!==window.wp.customize&&0===$hidden_select.children().length&&$hidden_select.data("customize-setting-link")&&window.wp.customize.control($hidden_select.data("customize-setting-link")).setting.set(""),$hidden_select.trigger("change")})),$this.SP_WPCFChosenOrder($hidden_value,!0)}if(is_sortable){var $chosen_container,$chosen_choices=$this.parent().find(".chosen-container").find(".chosen-choices");$chosen_choices.bind("mousedown",(function(event){$(event.target).is("span")&&event.stopPropagation()})),$chosen_choices.sortable({items:"li:not(.search-field)",helper:"orginal",cursor:"move",placeholder:"search-choice-placeholder",start:function(e,ui){ui.placeholder.width(ui.item.innerWidth()),ui.placeholder.height(ui.item.innerHeight())},update:function(e,ui){var select_options="",chosen_object=$this.data("chosen"),$prev_select=$this.parent().find(".wpcf-hide-select");$chosen_choices.find(".search-choice-close").each((function(){var option_array_index=$(this).data("option-array-index");$.each(chosen_object.results_data,(function(index,data){data.array_index===option_array_index&&(select_options+='<option value="'+data.value+'" selected>'+data.value+"</option>")}))})),$prev_select.children().remove(),$prev_select.append(select_options),$prev_select.trigger("change")}})}}))},$.fn.wpcf_checkbox=function(){return this.each((function(){var $this=$(this),$input=$this.find(".wpcf--input"),$checkbox=$this.find(".wpcf--checkbox");$checkbox.on("click",(function(){$input.val(Number($checkbox.prop("checked"))).trigger("change")}))}))},$.fn.wpcf_siblings=function(){return this.each((function(){var $this=$(this),$siblings=$this.find(".wpcf--sibling"),multiple=$this.data("multiple")||!1;$siblings.on("click",(function(){var $sibling=$(this);multiple?$sibling.hasClass("wpcf--active")?($sibling.removeClass("wpcf--active"),$sibling.find("input").prop("checked",!1).trigger("change")):($sibling.addClass("wpcf--active"),$sibling.find("input").prop("checked",!0).trigger("change")):($this.find("input").prop("checked",!1),$sibling.find("input").prop("checked",!0).trigger("change"),$sibling.addClass("wpcf--active").siblings().removeClass("wpcf--active"))}))}))},$.fn.wpcf_help=function(){return this.each((function(){var $this=$(this),$tooltip,offset_left;$this.on({mouseenter:function(){$tooltip=$('<div class="wpcf-tooltip"></div>').html($this.find(".wpcf-help-text").html()).appendTo("body"),SP_WPCF.vars.is_rtl,offset_left=$this.offset().left+24,$tooltip.css({top:$this.offset().top-($tooltip.outerHeight()/2-14),left:offset_left})},mouseleave:function(){void 0!==$tooltip&&$tooltip.remove()}})}))},$.fn.wpcf_customizer_refresh=function(){return this.each((function(){var $this=$(this),$complex=$this.closest(".wpcf-customize-complex");if($complex.length){var unique_id=$complex.data("unique-id");if(void 0===unique_id)return;var $input=$complex.find(":input"),option_id=$complex.data("option-id"),obj=$input.serializeObjectSP_WPCF(),data=!$.isEmptyObject(obj)&&obj[unique_id]&&obj[unique_id][option_id]?obj[unique_id][option_id]:"",control=window.wp.customize.control(unique_id+"["+option_id+"]");control.setting._value=null,control.setting.set(data)}else $this.find(":input").first().trigger("change");$(document).trigger("wpcf-customizer-refresh",$this)}))},SP_WPCF.vars.$window.on("resize wpcf.resize",SP_WPCF.helper.debounce((function(event){var window_width;(navigator.userAgent.indexOf("AppleWebKit/")>-1?SP_WPCF.vars.$window.width():window.innerWidth)<=782&&!SP_WPCF.vars.onloaded&&($(".wpcf-section").wpcf_reload_script(),SP_WPCF.vars.onloaded=!0)}),200)).trigger("wpcf.resize"),$.fn.wpcf_widgets=function(){this.length&&($(document).on("widget-added widget-updated",(function(event,$widget){$widget.find(".wpcf-fields").wpcf_reload_script()})),$(".widgets-sortables, .control-section-sidebar").on("sortstop",(function(event,ui){ui.item.find(".wpcf-fields").wpcf_reload_script_retry()})),$(document).on("click",".widget-top",(function(event){$(this).parent().find(".wpcf-fields").wpcf_reload_script()})))},$.fn.wpcf_nav_menu=function(){return this.each((function(){var $navmenu=$(this);$navmenu.on("click","a.item-edit",(function(){$(this).closest("li.menu-item").find(".wpcf-fields").wpcf_reload_script()})),$navmenu.on("sortstop",(function(event,ui){ui.item.find(".wpcf-fields").wpcf_reload_script_retry()}))}))},$.fn.wpcf_reload_script_retry=function(){return this.each((function(){var $this=$(this);$this.data("inited")&&$this.children(".wpcf-field-wp_editor").wpcf_field_wp_editor()}))},$.fn.wpcf_reload_script=function(options){var settings=$.extend({dependency:!0},options);return this.each((function(){var $this=$(this);$this.data("inited")||($this.children(".wpcf-field-code_editor").wpcf_field_code_editor(),$this.children(".wpcf-field-gallery").wpcf_field_gallery(),$this.children(".wpcf-field-media").wpcf_field_media(),$this.children(".wpcf-field-slider").wpcf_field_slider(),$this.children(".wpcf-field-spinner").wpcf_field_spinner(),$this.children(".wpcf-field-switcher").wpcf_field_switcher(),$this.children(".wpcf-field-typography").wpcf_field_typography(),$this.children(".wpcf-field-border").find(".wpcf-color").wpcf_color(),$this.children(".wpcf-field-color").find(".wpcf-color").wpcf_color(),$this.children(".wpcf-field-color_group").find(".wpcf-color").wpcf_color(),$this.children(".wpcf-field-typography").find(".wpcf-color").wpcf_color(),$this.children(".wpcf-field-select").find(".wpcf-chosen").wpcf_chosen(),$this.children(".wpcf-field-checkbox").find(".wpcf-checkbox").wpcf_checkbox(),$this.children(".wpcf-field-button_set").find(".wpcf-siblings").wpcf_siblings(),$this.children(".wpcf-field-image_select").find(".wpcf-siblings").wpcf_siblings(),$this.children(".wpcf-field-carousel_type").find(".wpcf-siblings").wpcf_siblings(),$this.children(".wpcf-field").find(".wpcf-help").wpcf_help(),settings.dependency&&$this.wpcf_dependency(),$this.data("inited",!0),$(document).trigger("wpcf-reload-script",$this))}))},$(document).ready((function(){function wpcf_copyToClipboard(element){var $temp=$("<input>");$("body").append($temp),$temp.val($(element).text()).select(),document.execCommand("copy"),$temp.remove()}function wpcf_SelectText(element){var r=document.createRange(),w=element.get(0);r.selectNodeContents(w);var sel=window.getSelection();sel.removeAllRanges(),sel.addRange(r)}$(".wpcf-save").wpcf_save(),$(".wpcf-options").wpcf_options(),$(".wpcf-sticky-header").wpcf_sticky(),$(".wpcf-nav-options").wpcf_nav_options(),$(".wpcf-nav-metabox").wpcf_nav_metabox(),$(".wpcf-taxonomy").wpcf_taxonomy(),$(".wpcf-page-templates").wpcf_page_templates(),$(".wpcf-post-formats").wpcf_post_formats(),$(".wpcf-shortcode").wpcf_shortcode(),$(".wpcf-search").wpcf_search(),$(".wpcf-confirm").wpcf_confirm(),$(".wpcf-expand-all").wpcf_expand_all(),$(".wpcf-onload").wpcf_reload_script(),$(".widget").wpcf_widgets(),$("#menu-to-edit").wpcf_nav_menu(),$(".wpcf-shortcode-selectable").click((function(e){e.preventDefault(),wpcf_copyToClipboard($(this)),wpcf_SelectText($(this)),$(this).focus().select(),jQuery(".spwpc-after-copy-text").animate({opacity:1,bottom:25},300),setTimeout((function(){jQuery(".spwpc-after-copy-text").animate({opacity:0},200),jQuery(".spwpc-after-copy-text").animate({bottom:0},0)}),2e3)})),$(".post-type-sp_wp_carousel .shortcode.column-shortcode input").click((function(e){var copyText;e.preventDefault(),$(this).select(),document.execCommand("copy"),jQuery(".spwpc-after-copy-text").animate({opacity:1,bottom:25},300),setTimeout((function(){jQuery(".spwpc-after-copy-text").animate({opacity:0},200),jQuery(".spwpc-after-copy-text").animate({bottom:0},0)}),2e3)})),$('.wpcp_post_pagination_type label:contains("Pro")').css({"pointer-events":"none",color:"rgba(85,85,85,.6)!important"});var $export_type=$(".wpcp_what_export").find("input:checked").val();$(".wpcp_what_export").on("change",(function(){$export_type=$(this).find("input:checked").val()})),$(".wpcp_export .wpcf--button").click((function(event){event.preventDefault();var $shortcode_ids=$(".wpcp_post_ids select").val();console.log($shortcode_ids);var $ex_nonce=$("#wpcf_options_noncesp_wpcf_tools").val(),selected_shortcode;if("all_shortcodes"===$export_type||"selected_shortcodes"===$export_type)var data={action:"wpcp_export_shortcodes",wpcf_ids:"selected_shortcodes"===$export_type?$shortcode_ids:"all_shortcodes",nonce:$ex_nonce};else $(".wpcf-form-result.wpcf-form-success").text("No carousel selected.").show(),setTimeout((function(){$(".wpcf-form-result.wpcf-form-success").hide().text("")}),3e3);$.post(ajaxurl,data,(function(resp){if(resp){var json=JSON.stringify(resp);json=[json];var blob=new Blob(json),link=document.createElement("a"),wpcp_time=$.now();link.href=window.URL.createObjectURL(blob),link.download="wp-carousel-export-"+wpcp_time+".json",link.click(),$(".wpcf-form-result.wpcf-form-success").text("Exported successfully!").show(),setTimeout((function(){$(".wpcf-form-result.wpcf-form-success").hide().text(""),$(".wpcp_post_ids select").val("").trigger("chosen:updated")}),3e3)}}))})),$(".wpcp_import button.import").click((function(event){event.preventDefault();var wpcp_shortcodes=$("#import").prop("files")[0];if(""!=$("#import").val()){var $im_nonce=$("#wpcf_options_noncesp_wpcf_tools").val(),reader=new FileReader;reader.readAsText(wpcp_shortcodes),reader.onload=function(event){var jsonObj=JSON.stringify(event.target.result);$.ajax({url:ajaxurl,type:"POST",data:{shortcode:jsonObj,action:"wpcp_import_shortcodes",nonce:$im_nonce},success:function(resp){$(".wpcf-form-result.wpcf-form-success").text("Imported successfully!").show(),setTimeout((function(){$(".wpcf-form-result.wpcf-form-success").hide().text(""),$("#import").val(""),window.location.replace($("#wpcf_shortcode_link_redirect").attr("href"))}),2e3)}})}}else $(".wpcf-form-result.wpcf-form-success").text("No exported json file chosen.").show(),setTimeout((function(){$(".wpcf-form-result.wpcf-form-success").hide().text("")}),3e3)})),"gallery"==$('.wpcp_layout input[name="sp_wpcp_shortcode_options[wpcp_layout]"]:checked').val()?$(".wpcf-nav-metabox li:nth-child(3)").hide():$(".wpcf-nav-metabox li:nth-child(3)").show(),$(".wpcf-field-image_select.wpcp_layout").on("change",(function(){"gallery"==$('.wpcp_layout input[name="sp_wpcp_shortcode_options[wpcp_layout]"]:checked').val()?$(".wpcf-nav-metabox li:nth-child(3)").hide():$(".wpcf-nav-metabox li:nth-child(3)").show()}))})),$(document).on("keyup change",".sp_wp_carousel_page_wpcp_settings #wpcf-form",(function(e){var $button;e.preventDefault(),$(this).find(".wpcf-save").css({"background-color":"#00C263","pointer-events":"initial"}).val("Save Settings")})),$(".sp_wp_carousel_page_wpcp_settings .wpcf-save").click((function(e){e.preventDefault(),$(this).css({"background-color":"#C5C5C6","pointer-events":"none"}).val("Changes Saved")})),$(document).on("keyup change",".sp_wp_carousel_page_wpcp_settings #wpcf-form",(function(e){var $button;e.preventDefault(),$(this).find(".wpcf-save").css({"background-color":"#00C263","pointer-events":"initial"}).val("Save Settings")})),$(".sp_wp_carousel_page_wpcp_settings .wpcf-save").click((function(e){e.preventDefault(),$(this).css({"background-color":"#C5C5C6","pointer-events":"none"}).val("Changes Saved")}));var preview_box=$("#sp-wpcf-preview-box"),preview_display=$("#sp_wpcf_live_preview").hide();$(document).on("click","#sp__wpcf-show-preview:contains(Hide)",(function(e){var _this;e.preventDefault(),$(this).html('<i class="fa fa-eye" aria-hidden="true"></i> Show Preview'),preview_box.html(""),preview_display.hide()})),$(document).on("click","#sp__wpcf-show-preview:not(:contains(Hide))",(function(e){e.preventDefault();var previewJS=wpcf_vars.previewJS,_data=$("form#post").serialize(),_this=$(this),data={action:"sp_wpcf_preview_meta_box",data:_data,ajax_nonce:$("#wpcf_metabox_noncesp_wpcf_live_preview").val()};$.ajax({type:"POST",url:ajaxurl,data:data,error:function(response){console.log(response)},success:function(response){preview_display.show(),preview_box.html(response),$.getScript(previewJS,(function(){_this.html('<i class="fa fa-eye-slash" aria-hidden="true"></i> Hide Preview'),$(document).on("keyup change",".post-type-sp_wp_carousel",(function(e){e.preventDefault(),_this.html('<i class="fa fa-refresh" aria-hidden="true"></i> Update Preview')})),$("html, body").animate({scrollTop:preview_display.offset().top-50},"slow")})),$(".wpcp-carousel-preloader").animate({opacity:1},600).hide();var carousel_id=$(".wpcp-carousel-section.wpcp-preloader").attr("id");$("#"+carousel_id).animate({opacity:1},600),$(".wpcpro-post-pagination-number").click((function(e){e.preventDefault(),e.stopPropagation(),$(".spwpc-pagination-not-work").animate({opacity:1,bottom:25},300),setTimeout((function(){jQuery(".spwpc-pagination-not-work").animate({opacity:0},200),jQuery(".spwpc-pagination-not-work").animate({bottom:0},0)}),3e3)}))}})}))}(jQuery,window,document);
|
admin/views/sp-framework/assets/js/preview.js
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function ($) {
|
2 |
+
'use strict';
|
3 |
+
jQuery('body').find('.wpcp-carousel-section.wpcp-standard').each(function () {
|
4 |
+
|
5 |
+
var carousel_id = $(this).attr('id');
|
6 |
+
var _this = $(this);
|
7 |
+
|
8 |
+
if (jQuery().slick) {
|
9 |
+
|
10 |
+
jQuery('#' + carousel_id).slick({
|
11 |
+
prevArrow: '<div class="slick-prev"><i class="fa fa-angle-left"></i></div>',
|
12 |
+
nextArrow: '<div class="slick-next"><i class="fa fa-angle-right"></i></div>',
|
13 |
+
});
|
14 |
+
}
|
15 |
+
});
|
16 |
+
})(jQuery);
|
admin/views/sp-framework/assets/js/preview.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function($){"use strict";jQuery("body").find(".wpcp-carousel-section.wpcp-standard").each((function(){var carousel_id=$(this).attr("id"),_this=$(this);jQuery().slick&&jQuery("#"+carousel_id).slick({prevArrow:'<div class="slick-prev"><i class="fa fa-angle-left"></i></div>',nextArrow:'<div class="slick-next"><i class="fa fa-angle-right"></i></div>'})}))}(jQuery);
|
admin/views/sp-framework/classes/metabox-options.class.php
CHANGED
@@ -368,6 +368,9 @@ if ( ! class_exists( 'SP_WPCF_Metabox' ) ) {
|
|
368 |
|
369 |
echo '</div>';
|
370 |
|
|
|
|
|
|
|
371 |
if ( ! empty( $this->args['show_restore'] ) || ! empty( $this->args['show_reset'] ) ) {
|
372 |
|
373 |
echo '<div class="wpcf-sections-reset">';
|
368 |
|
369 |
echo '</div>';
|
370 |
|
371 |
+
echo '<a class="btn btn-success" id="sp__wpcf-show-preview" data-id="' . esc_attr( $post->ID ) . '" href=""> <i class="fa fa-eye" aria-hidden="true"></i> Show Preview</a>';
|
372 |
+
echo '<div class="spwpc-pagination-not-work"><i class="fa fa-check-circle"></i> The pagination will work in the frontend well. </div>';
|
373 |
+
|
374 |
if ( ! empty( $this->args['show_restore'] ) || ! empty( $this->args['show_reset'] ) ) {
|
375 |
|
376 |
echo '<div class="wpcf-sections-reset">';
|
admin/views/sp-framework/classes/setup.class.php
CHANGED
@@ -344,6 +344,7 @@ if ( ! class_exists( 'SP_WPCF' ) ) {
|
|
344 |
'textarea',
|
345 |
'typography',
|
346 |
'upload',
|
|
|
347 |
)
|
348 |
);
|
349 |
|
@@ -454,6 +455,7 @@ if ( ! class_exists( 'SP_WPCF' ) ) {
|
|
454 |
'wpcf',
|
455 |
'wpcf_vars',
|
456 |
array(
|
|
|
457 |
'color_palette' => apply_filters( 'wpcf_color_palette', array() ),
|
458 |
'i18n' => array(
|
459 |
'confirm' => esc_html__( 'Are you sure?', 'wp-carousel-free' ),
|
344 |
'textarea',
|
345 |
'typography',
|
346 |
'upload',
|
347 |
+
'preview',
|
348 |
)
|
349 |
);
|
350 |
|
455 |
'wpcf',
|
456 |
'wpcf_vars',
|
457 |
array(
|
458 |
+
'previewJS' => self::include_plugin_url( 'assets/js/preview' . $min . '.js' ),
|
459 |
'color_palette' => apply_filters( 'wpcf_color_palette', array() ),
|
460 |
'i18n' => array(
|
461 |
'confirm' => esc_html__( 'Are you sure?', 'wp-carousel-free' ),
|
admin/views/sp-framework/fields/preview/preview.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Preview field file.
|
4 |
+
*
|
5 |
+
* @link http://shapedplugin.com
|
6 |
+
* @since 2.0.0
|
7 |
+
*
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/Admin
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
+
die; } // Cannot access directly.
|
14 |
+
|
15 |
+
if ( ! class_exists( 'SP_WPCF_Field_preview' ) ) {
|
16 |
+
/**
|
17 |
+
*
|
18 |
+
* Field: shortcode
|
19 |
+
*
|
20 |
+
* @since 2.0.0
|
21 |
+
* @version 2.0.0
|
22 |
+
*/
|
23 |
+
class SP_WPCF_Field_preview extends SP_WPCF_Fields {
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Shortcode field constructor.
|
27 |
+
*
|
28 |
+
* @param array $field The field type.
|
29 |
+
* @param string $value The values of the field.
|
30 |
+
* @param string $unique The unique ID for the field.
|
31 |
+
* @param string $where To where show the output CSS.
|
32 |
+
* @param string $parent The parent args.
|
33 |
+
*/
|
34 |
+
public function __construct( $field, $value = '', $unique = '', $where = '', $parent = '' ) {
|
35 |
+
parent::__construct( $field, $value, $unique, $where, $parent );
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Render
|
40 |
+
*
|
41 |
+
* @return void
|
42 |
+
*/
|
43 |
+
public function render() {
|
44 |
+
echo '<div class="sp-wpcf-preview-box"><div id="sp-wpcf-preview-box"></div></div>';
|
45 |
+
}
|
46 |
+
|
47 |
+
}
|
48 |
+
}
|
admin/views/tmce-button.php
CHANGED
@@ -5,8 +5,8 @@
|
|
5 |
* @link https://shapedplugin.com
|
6 |
* @since 2.0.0
|
7 |
*
|
8 |
-
* @package
|
9 |
-
* @subpackage
|
10 |
*/
|
11 |
|
12 |
// Make sure we don't expose any info if called directly.
|
5 |
* @link https://shapedplugin.com
|
6 |
* @since 2.0.0
|
7 |
*
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/admin/views
|
10 |
*/
|
11 |
|
12 |
// Make sure we don't expose any info if called directly.
|
admin/views/tools-config.php
CHANGED
@@ -5,8 +5,8 @@
|
|
5 |
* @link https://shapedplugin.com
|
6 |
* @since 2.0.0
|
7 |
*
|
8 |
-
* @package
|
9 |
-
* @subpackage
|
10 |
*/
|
11 |
|
12 |
if ( ! defined( 'ABSPATH' ) ) {
|
5 |
* @link https://shapedplugin.com
|
6 |
* @since 2.0.0
|
7 |
*
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/admin/views
|
10 |
*/
|
11 |
|
12 |
if ( ! defined( 'ABSPATH' ) ) {
|
includes/class-wp-carousel-free-post-types.php
CHANGED
@@ -7,8 +7,8 @@
|
|
7 |
* @link http://shapedplugin.com
|
8 |
* @since 2.0.0
|
9 |
*
|
10 |
-
* @package
|
11 |
-
* @subpackage
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
7 |
* @link http://shapedplugin.com
|
8 |
* @since 2.0.0
|
9 |
*
|
10 |
+
* @package WP_Carousel_Free
|
11 |
+
* @subpackage WP_Carousel_Free/includes
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
includes/class-wp-carousel-free-shortcode.php
CHANGED
@@ -54,28 +54,21 @@ class WP_Carousel_Free_Shortcode {
|
|
54 |
return self::$instance;
|
55 |
}
|
56 |
|
|
|
57 |
/**
|
58 |
-
*
|
59 |
*
|
60 |
-
* @param
|
61 |
-
* @
|
|
|
|
|
62 |
*/
|
63 |
-
public function
|
64 |
-
if ( empty( $attributes['id'] ) ) {
|
65 |
-
return;
|
66 |
-
}
|
67 |
-
|
68 |
-
$post_id = intval( $attributes['id'] );
|
69 |
-
|
70 |
-
// Video Carousel.
|
71 |
-
$upload_data = get_post_meta( $post_id, 'sp_wpcp_upload_options', true );
|
72 |
if ( empty( $upload_data ) ) {
|
73 |
return;
|
74 |
}
|
75 |
$carousel_type = isset( $upload_data['wpcp_carousel_type'] ) ? $upload_data['wpcp_carousel_type'] : '';
|
76 |
|
77 |
-
$shortcode_data = get_post_meta( $post_id, 'sp_wpcp_shortcode_options', true );
|
78 |
-
|
79 |
// General Settings.
|
80 |
$section_title = isset( $shortcode_data['section_title'] ) ? $shortcode_data['section_title'] : '';
|
81 |
|
@@ -176,17 +169,35 @@ class WP_Carousel_Free_Shortcode {
|
|
176 |
ob_start();
|
177 |
include WPCAROUSELF_PATH . '/public/templates/carousel.php';
|
178 |
$html = ob_get_contents();
|
179 |
-
ob_end_clean();
|
180 |
return apply_filters( 'sp_wpcp_carousel_slider', $html, $post_id );
|
181 |
}
|
182 |
if ( 'gallery' === $wpcp_layout ) {
|
183 |
ob_start();
|
184 |
include WPCAROUSELF_PATH . '/public/templates/gallery.php';
|
185 |
$html = ob_get_contents();
|
186 |
-
ob_end_clean();
|
187 |
return apply_filters( 'sp_wpcp_carousel_gallery', $html, $post_id );
|
188 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
|
190 |
-
|
|
|
191 |
}
|
192 |
}
|
54 |
return self::$instance;
|
55 |
}
|
56 |
|
57 |
+
|
58 |
/**
|
59 |
+
* Full html show.
|
60 |
*
|
61 |
+
* @param array $upload_data get all layout options.
|
62 |
+
* @param array $shortcode_data get all meta options.
|
63 |
+
* @param array $post_id Shortcode ID.
|
64 |
+
* @param array $main_section_title section title.
|
65 |
*/
|
66 |
+
public static function wpcf_html_show( $upload_data, $shortcode_data, $post_id, $main_section_title ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
if ( empty( $upload_data ) ) {
|
68 |
return;
|
69 |
}
|
70 |
$carousel_type = isset( $upload_data['wpcp_carousel_type'] ) ? $upload_data['wpcp_carousel_type'] : '';
|
71 |
|
|
|
|
|
72 |
// General Settings.
|
73 |
$section_title = isset( $shortcode_data['section_title'] ) ? $shortcode_data['section_title'] : '';
|
74 |
|
169 |
ob_start();
|
170 |
include WPCAROUSELF_PATH . '/public/templates/carousel.php';
|
171 |
$html = ob_get_contents();
|
|
|
172 |
return apply_filters( 'sp_wpcp_carousel_slider', $html, $post_id );
|
173 |
}
|
174 |
if ( 'gallery' === $wpcp_layout ) {
|
175 |
ob_start();
|
176 |
include WPCAROUSELF_PATH . '/public/templates/gallery.php';
|
177 |
$html = ob_get_contents();
|
|
|
178 |
return apply_filters( 'sp_wpcp_carousel_gallery', $html, $post_id );
|
179 |
}
|
180 |
+
}
|
181 |
+
|
182 |
+
/**
|
183 |
+
* A shortcode for rendering the carousel.
|
184 |
+
*
|
185 |
+
* @param integer $attributes The ID the shortcode.
|
186 |
+
* @return void
|
187 |
+
*/
|
188 |
+
public function sp_wp_carousel_shortcode( $attributes ) {
|
189 |
+
if ( empty( $attributes['id'] ) ) {
|
190 |
+
return;
|
191 |
+
}
|
192 |
+
|
193 |
+
$post_id = intval( $attributes['id'] );
|
194 |
+
|
195 |
+
// Video Carousel.
|
196 |
+
$upload_data = get_post_meta( $post_id, 'sp_wpcp_upload_options', true );
|
197 |
+
$shortcode_data = get_post_meta( $post_id, 'sp_wpcp_shortcode_options', true );
|
198 |
+
$main_section_title = get_the_title( $post_id );
|
199 |
|
200 |
+
self::wpcf_html_show( $upload_data, $shortcode_data, $post_id, $main_section_title );
|
201 |
+
return ob_get_clean();
|
202 |
}
|
203 |
}
|
public/Helper.php
CHANGED
@@ -116,7 +116,7 @@ if ( ! class_exists( 'Helper' ) ) {
|
|
116 |
* @param mixed $section_title show/hide section title.
|
117 |
* @return void
|
118 |
*/
|
119 |
-
public static function section_title( $post_id, $section_title ) {
|
120 |
if ( $section_title ) {
|
121 |
ob_start();
|
122 |
include self::wpcf_locate_template( 'section-title.php' );
|
@@ -308,7 +308,7 @@ if ( ! class_exists( 'Helper' ) ) {
|
|
308 |
'posts_per_page' => $post_per_page,
|
309 |
'paged' => $paged,
|
310 |
'ignore_sticky_posts' => 1,
|
311 |
-
'suppress_filters' => true,
|
312 |
'post__in' => $queried_post_ids,
|
313 |
);
|
314 |
} else {
|
@@ -318,7 +318,7 @@ if ( ! class_exists( 'Helper' ) ) {
|
|
318 |
'order' => $post_order,
|
319 |
'orderby' => $post_order_by,
|
320 |
'ignore_sticky_posts' => 1,
|
321 |
-
'suppress_filters' => true,
|
322 |
'post__in' => $queried_post_ids,
|
323 |
'posts_per_page' => $number_of_total_posts,
|
324 |
);
|
@@ -360,7 +360,7 @@ if ( ! class_exists( 'Helper' ) ) {
|
|
360 |
'posts_per_page' => $post_per_page,
|
361 |
'paged' => $paged,
|
362 |
'ignore_sticky_posts' => 1,
|
363 |
-
'suppress_filters' => true,
|
364 |
'post__in' => $queried_post_ids,
|
365 |
);
|
366 |
} else {
|
@@ -370,7 +370,7 @@ if ( ! class_exists( 'Helper' ) ) {
|
|
370 |
'ignore_sticky_posts' => 1,
|
371 |
'order' => $post_order,
|
372 |
'orderby' => $post_order_by,
|
373 |
-
'suppress_filters' => true,
|
374 |
'post__in' => $queried_post_ids,
|
375 |
'posts_per_page' => $number_of_total_posts,
|
376 |
);
|
116 |
* @param mixed $section_title show/hide section title.
|
117 |
* @return void
|
118 |
*/
|
119 |
+
public static function section_title( $post_id, $section_title, $main_section_title ) {
|
120 |
if ( $section_title ) {
|
121 |
ob_start();
|
122 |
include self::wpcf_locate_template( 'section-title.php' );
|
308 |
'posts_per_page' => $post_per_page,
|
309 |
'paged' => $paged,
|
310 |
'ignore_sticky_posts' => 1,
|
311 |
+
'suppress_filters' => apply_filters( 'sp_wpcp_suppress_filters', true ),
|
312 |
'post__in' => $queried_post_ids,
|
313 |
);
|
314 |
} else {
|
318 |
'order' => $post_order,
|
319 |
'orderby' => $post_order_by,
|
320 |
'ignore_sticky_posts' => 1,
|
321 |
+
'suppress_filters' => apply_filters( 'sp_wpcp_suppress_filters', true ),
|
322 |
'post__in' => $queried_post_ids,
|
323 |
'posts_per_page' => $number_of_total_posts,
|
324 |
);
|
360 |
'posts_per_page' => $post_per_page,
|
361 |
'paged' => $paged,
|
362 |
'ignore_sticky_posts' => 1,
|
363 |
+
'suppress_filters' => apply_filters( 'sp_wpcp_suppress_filters', true ),
|
364 |
'post__in' => $queried_post_ids,
|
365 |
);
|
366 |
} else {
|
370 |
'ignore_sticky_posts' => 1,
|
371 |
'order' => $post_order,
|
372 |
'orderby' => $post_order_by,
|
373 |
+
'suppress_filters' => apply_filters( 'sp_wpcp_suppress_filters', true ),
|
374 |
'post__in' => $queried_post_ids,
|
375 |
'posts_per_page' => $number_of_total_posts,
|
376 |
);
|
public/class-wp-carousel-free-public.php
CHANGED
@@ -95,4 +95,28 @@ class WP_Carousel_Free_Public {
|
|
95 |
wp_register_script( 'wpcf-slick', WPCAROUSELF_URL . 'public/js/slick' . $this->suffix . '.js', array( 'jquery' ), $this->version, true );
|
96 |
wp_register_script( 'wpcf-slick-config', WPCAROUSELF_URL . 'public/js/wp-carousel-free-public' . $this->suffix . '.js', array( 'jquery' ), $this->version, true );
|
97 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
}
|
95 |
wp_register_script( 'wpcf-slick', WPCAROUSELF_URL . 'public/js/slick' . $this->suffix . '.js', array( 'jquery' ), $this->version, true );
|
96 |
wp_register_script( 'wpcf-slick-config', WPCAROUSELF_URL . 'public/js/wp-carousel-free-public' . $this->suffix . '.js', array( 'jquery' ), $this->version, true );
|
97 |
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Enqueue css and js files for live preview.
|
101 |
+
*
|
102 |
+
* @since 2.0.0
|
103 |
+
* @return void
|
104 |
+
*/
|
105 |
+
public function admin_enqueue_scripts() {
|
106 |
+
$current_screen = get_current_screen();
|
107 |
+
$the_current_post_type = $current_screen->post_type;
|
108 |
+
if ( 'sp_wp_carousel' === $the_current_post_type ) {
|
109 |
+
// Enqueue css file.
|
110 |
+
if ( wpcf_get_option( 'wpcp_enqueue_slick_css', true ) ) {
|
111 |
+
wp_enqueue_style( 'wpcf-slick', WPCAROUSELF_URL . 'public/css/slick' . $this->suffix . '.css', array(), $this->version, 'all' );
|
112 |
+
}
|
113 |
+
if ( wpcf_get_option( 'wpcp_enqueue_fa_css', true ) ) {
|
114 |
+
wp_enqueue_style( $this->plugin_name . '-fontawesome', WPCAROUSELF_URL . 'public/css/font-awesome.min.css', array(), $this->version, 'all' );
|
115 |
+
}
|
116 |
+
wp_enqueue_style( $this->plugin_name, WPCAROUSELF_URL . 'public/css/wp-carousel-free-public' . $this->suffix . '.css', array(), $this->version, 'all' );
|
117 |
+
|
118 |
+
// Enqueue js file.
|
119 |
+
wp_enqueue_script( 'wpcf-slick', WPCAROUSELF_URL . 'public/js/slick' . $this->suffix . '.js', array( 'jquery' ), $this->version, true );
|
120 |
+
}
|
121 |
+
}
|
122 |
}
|
public/css/wp-carousel-free-public.css
CHANGED
@@ -52,6 +52,7 @@
|
|
52 |
display: inline-block;
|
53 |
vertical-align: middle;
|
54 |
float: none;
|
|
|
55 |
}
|
56 |
.wpcp-all-captions li {
|
57 |
list-style: none;
|
52 |
display: inline-block;
|
53 |
vertical-align: middle;
|
54 |
float: none;
|
55 |
+
max-width: 100%;
|
56 |
}
|
57 |
.wpcp-all-captions li {
|
58 |
list-style: none;
|
public/css/wp-carousel-free-public.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wpcp-carousel-wrapper *{word-break:break-word;word-wrap:break-word;box-sizing:border-box}.wpcp-carousel-section.wpcp-standard:not(.wpcp-preloader){display:none}.wpcp-carousel-section.wpcp-standard.slick-initialized:not(.wpcp-preloader){display:block}.wpcp-carousel-wrapper{position:relative}.wpcp-carousel-section.wpcp-preloader{opacity:0}.wpcp-carousel-preloader{position:absolute;left:0;top:0;height:100%;width:100%;text-align:center;display:flex;align-items:center;justify-content:center}.sp-wpcp-wrapper{margin-bottom:0}.wpcp-carousel-section.wpcp-standard,.wpcp-carousel-section.wpcp-standard .slick-list{overflow:hidden}.wpcp-carousel-section.wpcp-standard{overflow:hidden;padding-right:2px}.wpcp-carousel-section.wpcp-standard.slick-initialized{position:relative}.wpcp-carousel-section .wpcp-single-item{overflow:hidden;display:inline-block;vertical-align:middle;float:none}.wpcp-all-captions li{list-style:none;margin:0}.wpcp-carousel-section p,.wpcp-carousel-section ul,.wpcp-image-carousel .wpcp-single-item .wpcp-all-captions h2{margin:0}.wpcp-carousel-section.wpcp-video-carousel .wpcp-single-item .wpcp-slide-image{position:relative}.wpcp-carousel-section.wpcp-content-carousel .wpcp-single-item{padding-left:15px;padding-right:15px}.wpcp-carousel-section .wpcp-single-item img[data-lazy]{width:32px}.wpcp-carousel-section .wpcp-single-item img{margin:0 auto;max-width:100%;height:auto;box-shadow:none}.wpcp-carousel-section.wpcp-image-carousel .wpcp-single-item .wpcp-all-captions{padding:10px 20px 15px}.wpcp-carousel-section .wpcp-single-item .wpcp-all-captions .wpcp-image-description{margin:6px 0 0}.wpcp-carousel-section .wpcp-single-item .wpcp-slide-image a:focus{outline:0}.wpcp-carousel-section .slick-slide:focus{outline:0}.wpcp-carousel-section.slick-initialized .slick-slide{margin-right:20px;float:none;display:inline-block;vertical-align:middle}.wpcp-carousel-section .slick-list{margin-right:-20px}.wpcp-carousel-section .wpcp-all-captions a,.wpcp-carousel-section a,.wpcp-carousel-section a:hover{text-decoration:none}.wpcp-post-carousel .wpcp-single-item .wpcp-all-captions{padding:15px 20px 0;overflow:hidden}.wpcp-post-carousel .wpcp-single-item .wpcp-all-captions h2{font-size:16px;font-weight:600;margin:0 0 10px}.wpcp-single-item h2 a{color:#444;text-decoration:none}.wpcp-post-carousel .wpcp-single-item .wpcp-all-captions .post-categories{margin:0 0 7px;padding:0;display:block}.wpcp-post-carousel .wpcp-all-captions p{margin-bottom:15px}.wpcp_readmore{border:1px solid;display:inline-block;background:#22afba;margin:0 0 14px;line-height:32px;padding:5px 14px;font-weight:600}.wpcp_readmore,.wpcp_readmore:focus,.wpcp_readmore:hover{color:#fff}.wpcp-single-item .wpcp-all-captions .wpcp-post-meta{margin:0 0 20px;padding:0}.wpcp-post-carousel .wpcp-post-meta li{display:inline-block;margin-right:5px}.wpcp-post-carousel .wpcp-post-meta li:last-child{margin-right:0}.wpcp-post-meta li,.wpcp-post-meta li a{color:#999}.wpcp-carousel-section.detail-on-right .wpcp-single-item .wpcp-all-captions,.wpcp-carousel-section.detail-on-right .wpcp-single-item .wpcp-slide-image{float:left;width:50%;box-sizing:border-box}.wpcp-carousel-section.detail-with-overlay .wpcp-all-captions{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;justify-content:center;height:100%}.wpcp-carousel-section.detail-with-overlay.overlay-lower .wpcp-all-captions{top:auto;display:block;height:auto}.wpcp-carousel-section.detail-with-overlay.overlay-on-hover .wpcp-all-captions{visibility:hidden;opacity:0;transition:visibility .3s linear,opacity .3s linear}.wpcp-carousel-section.detail-with-overlay.overlay-on-hover .wpcp-single-item:hover .wpcp-all-captions{visibility:visible;opacity:1}.wpcp-carousel-section.detail-with-overlay .wpcp-single-item{position:relative}.wpcp-carousel-section .wpcp-single-item:focus{outline:0}.wpcp-product-carousel .wpcp-single-item .wpcp-all-captions{padding:15px 20px 0;overflow:hidden;text-align:center}.wpcp-product-carousel .wpcp-single-item .wpcp-product-title{margin:0;font-size:16px;line-height:23px;font-weight:600}.wpcp-product-price{margin-top:5px}.wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button{margin-top:12px}.wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button a.button{background:#ebebeb;color:#545454;border:1px solid #d1d1d1;font-weight:500;padding:0 20px;line-height:38px;display:inline-block;font-size:14px}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button a.add_to_cart_button.added{display:none}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button .added_to_cart{font-size:100%;margin:0;line-height:38px;cursor:pointer;position:relative;text-decoration:none;overflow:visible;padding:0 20px;font-weight:600;border-radius:3px;left:auto;color:#515151;background-color:#ebe9eb;border:0;display:inline-block;background-image:none;box-shadow:none;text-shadow:none;border:1px solid}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button a.button:hover{background:#3f3f3f;border-color:#d1d1d1;color:#fff}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button .wc-forward::after{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-style:normal;font-variant:normal;font-weight:400;line-height:1;vertical-align:-.125em;font:normal normal normal 14px/1 FontAwesome;font-weight:900;line-height:inherit;vertical-align:baseline;content:"\f178";margin-left:.5407911001em}.wpcp-carousel-section .woocommerce-product-rating .star-rating{margin:4px auto;float:none}.wpcp-product-price span{font-weight:700;font-size:14px}.wpcp-carousel-section .slick-next:after,.wpcp-carousel-section .slick-next:before,.wpcp-carousel-section .slick-prev:after,.wpcp-carousel-section .slick-prev:before{display:none}.wpcp-carousel-section .slick-prev{left:0}.wpcp-carousel-section .slick-next{right:0}.wpcp-carousel-section .slick-next,.wpcp-carousel-section .slick-prev{width:30px;height:30px;line-height:30px;position:absolute;z-index:22;left:auto;top:auto;font-size:30px;-webkit-transition:ease all .3s;-moz-transition:ease all .3s;-ms-transition:ease all .3s;-o-transition:ease all .3s;transition:ease all .3s;margin-top:-15px;cursor:pointer}.wpcp-carousel-section.nav-vertical-center{padding:0 25px}.wpcp-carousel-section .slick-next,.wpcp-carousel-section .slick-next i,.wpcp-carousel-section .slick-prev,.wpcp-carousel-section .slick-prev i{line-height:28px;font-family:fontawesome;color:#000}.wpcp-carousel-section.nav-vertical-center .slick-next,.wpcp-carousel-section.nav-vertical-center .slick-prev{top:50%}.wpcp-carousel-section.nav-vertical-center .slick-prev{left:0}.wpcp-carousel-section.nav-vertical-center .slick-next,.wpcp-carousel-section.nav-vertical-center .slick-prev{margin-top:-15px}.wpcp-carousel-section.nav-vertical-center.slick-dotted .slick-next,.wpcp-carousel-section.nav-vertical-center.slick-dotted .slick-prev{margin-top:-35px}.wpcp-carousel-section.nav-vertical-center .slick-next{right:0;text-align:right}.wpcp-carousel-section ul.slick-dots{list-style:none;padding:0!important;margin:0;text-align:center;margin-top:18px;position:relative}.wpcp-carousel-section ul.slick-dots li{display:inline;margin:0}.wpcp-carousel-section ul.slick-dots li button{background-color:#ccc;border:0 solid;border-radius:50%;font-size:0;margin:3px;overflow:hidden;padding:0;text-indent:-999px;width:12px;height:12px;cursor:pointer}.wpcp-carousel-section ul.slick-dots,.wpcp-carousel-section ul.slick-dots li,.wpcp-carousel-section ul.slick-dots li button{line-height:1!important}.wpcp-carousel-section ul.slick-dots li button:focus{outline:0}.wpcp-carousel-section ul.slick-dots li.slick-active button{background-color:#666}.wpcpro-row.no-gutters>[class*=wpcpro-col-]{padding-right:0;padding-left:0}.wpcpro-row>[class*=wpcpro-col-]{padding:0 10px;padding-bottom:20px}.wpcpro-row{display:flex;flex-wrap:wrap;margin-right:-10px;margin-left:-10px}.wpcpro-post-pagination .ajax-page-numbers,.wpcpro-post-pagination .page-numbers{background:#fff;color:#5e5e5e;border:2px solid #bbb;width:38px;height:38px;line-height:38px;font-size:16px;text-align:center;display:inline-block;margin-right:4px;text-decoration:none;font-weight:700;border-radius:3px;-webkit-transition:all .33s;transition:all .33s;-webkit-box-sizing:content-box;box-sizing:content-box}.wpcpro-post-pagination .ajax-page-numbers.current,.wpcpro-post-pagination .page-numbers.current{cursor:auto;color:#fff;background:#178087;border-color:#178087}.wpcpro-post-pagination-number{margin-top:20px}.wpcpro-post-pagination a.page-numbers:hover,.wpcpro-post-pagination span.current,.wpcpro-post-pagination span:hover{color:#fff;background:#178087;border-color:#178087}
|
1 |
+
.wpcp-carousel-wrapper *{word-break:break-word;word-wrap:break-word;box-sizing:border-box}.wpcp-carousel-section.wpcp-standard:not(.wpcp-preloader){display:none}.wpcp-carousel-section.wpcp-standard.slick-initialized:not(.wpcp-preloader){display:block}.wpcp-carousel-wrapper{position:relative}.wpcp-carousel-section.wpcp-preloader{opacity:0}.wpcp-carousel-preloader{position:absolute;left:0;top:0;height:100%;width:100%;text-align:center;display:flex;align-items:center;justify-content:center}.sp-wpcp-wrapper{margin-bottom:0}.wpcp-carousel-section.wpcp-standard,.wpcp-carousel-section.wpcp-standard .slick-list{overflow:hidden}.wpcp-carousel-section.wpcp-standard{overflow:hidden;padding-right:2px}.wpcp-carousel-section.wpcp-standard.slick-initialized{position:relative}.wpcp-carousel-section .wpcp-single-item{overflow:hidden;display:inline-block;vertical-align:middle;float:none;max-width:100%}.wpcp-all-captions li{list-style:none;margin:0}.wpcp-carousel-section p,.wpcp-carousel-section ul,.wpcp-image-carousel .wpcp-single-item .wpcp-all-captions h2{margin:0}.wpcp-carousel-section.wpcp-video-carousel .wpcp-single-item .wpcp-slide-image{position:relative}.wpcp-carousel-section.wpcp-content-carousel .wpcp-single-item{padding-left:15px;padding-right:15px}.wpcp-carousel-section .wpcp-single-item img[data-lazy]{width:32px}.wpcp-carousel-section .wpcp-single-item img{margin:0 auto;max-width:100%;height:auto;box-shadow:none}.wpcp-carousel-section.wpcp-image-carousel .wpcp-single-item .wpcp-all-captions{padding:10px 20px 15px}.wpcp-carousel-section .wpcp-single-item .wpcp-all-captions .wpcp-image-description{margin:6px 0 0}.wpcp-carousel-section .wpcp-single-item .wpcp-slide-image a:focus{outline:0}.wpcp-carousel-section .slick-slide:focus{outline:0}.wpcp-carousel-section.slick-initialized .slick-slide{margin-right:20px;float:none;display:inline-block;vertical-align:middle}.wpcp-carousel-section .slick-list{margin-right:-20px}.wpcp-carousel-section .wpcp-all-captions a,.wpcp-carousel-section a,.wpcp-carousel-section a:hover{text-decoration:none}.wpcp-post-carousel .wpcp-single-item .wpcp-all-captions{padding:15px 20px 0;overflow:hidden}.wpcp-post-carousel .wpcp-single-item .wpcp-all-captions h2{font-size:16px;font-weight:600;margin:0 0 10px}.wpcp-single-item h2 a{color:#444;text-decoration:none}.wpcp-post-carousel .wpcp-single-item .wpcp-all-captions .post-categories{margin:0 0 7px;padding:0;display:block}.wpcp-post-carousel .wpcp-all-captions p{margin-bottom:15px}.wpcp_readmore{border:1px solid;display:inline-block;background:#22afba;margin:0 0 14px;line-height:32px;padding:5px 14px;font-weight:600}.wpcp_readmore,.wpcp_readmore:focus,.wpcp_readmore:hover{color:#fff}.wpcp-single-item .wpcp-all-captions .wpcp-post-meta{margin:0 0 20px;padding:0}.wpcp-post-carousel .wpcp-post-meta li{display:inline-block;margin-right:5px}.wpcp-post-carousel .wpcp-post-meta li:last-child{margin-right:0}.wpcp-post-meta li,.wpcp-post-meta li a{color:#999}.wpcp-carousel-section.detail-on-right .wpcp-single-item .wpcp-all-captions,.wpcp-carousel-section.detail-on-right .wpcp-single-item .wpcp-slide-image{float:left;width:50%;box-sizing:border-box}.wpcp-carousel-section.detail-with-overlay .wpcp-all-captions{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;justify-content:center;height:100%}.wpcp-carousel-section.detail-with-overlay.overlay-lower .wpcp-all-captions{top:auto;display:block;height:auto}.wpcp-carousel-section.detail-with-overlay.overlay-on-hover .wpcp-all-captions{visibility:hidden;opacity:0;transition:visibility .3s linear,opacity .3s linear}.wpcp-carousel-section.detail-with-overlay.overlay-on-hover .wpcp-single-item:hover .wpcp-all-captions{visibility:visible;opacity:1}.wpcp-carousel-section.detail-with-overlay .wpcp-single-item{position:relative}.wpcp-carousel-section .wpcp-single-item:focus{outline:0}.wpcp-product-carousel .wpcp-single-item .wpcp-all-captions{padding:15px 20px 0;overflow:hidden;text-align:center}.wpcp-product-carousel .wpcp-single-item .wpcp-product-title{margin:0;font-size:16px;line-height:23px;font-weight:600}.wpcp-product-price{margin-top:5px}.wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button{margin-top:12px}.wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button a.button{background:#ebebeb;color:#545454;border:1px solid #d1d1d1;font-weight:500;padding:0 20px;line-height:38px;display:inline-block;font-size:14px}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button a.add_to_cart_button.added{display:none}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button .added_to_cart{font-size:100%;margin:0;line-height:38px;cursor:pointer;position:relative;text-decoration:none;overflow:visible;padding:0 20px;font-weight:600;border-radius:3px;left:auto;color:#515151;background-color:#ebe9eb;border:0;display:inline-block;background-image:none;box-shadow:none;text-shadow:none;border:1px solid}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button a.button:hover{background:#3f3f3f;border-color:#d1d1d1;color:#fff}.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button .wc-forward::after{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-style:normal;font-variant:normal;font-weight:400;line-height:1;vertical-align:-.125em;font:normal normal normal 14px/1 FontAwesome;font-weight:900;line-height:inherit;vertical-align:baseline;content:"\f178";margin-left:.5407911001em}.wpcp-carousel-section .woocommerce-product-rating .star-rating{margin:4px auto;float:none}.wpcp-product-price span{font-weight:700;font-size:14px}.wpcp-carousel-section .slick-next:after,.wpcp-carousel-section .slick-next:before,.wpcp-carousel-section .slick-prev:after,.wpcp-carousel-section .slick-prev:before{display:none}.wpcp-carousel-section .slick-prev{left:0}.wpcp-carousel-section .slick-next{right:0}.wpcp-carousel-section .slick-next,.wpcp-carousel-section .slick-prev{width:30px;height:30px;line-height:30px;position:absolute;z-index:22;left:auto;top:auto;font-size:30px;-webkit-transition:ease all .3s;-moz-transition:ease all .3s;-ms-transition:ease all .3s;-o-transition:ease all .3s;transition:ease all .3s;margin-top:-15px;cursor:pointer}.wpcp-carousel-section.nav-vertical-center{padding:0 25px}.wpcp-carousel-section .slick-next,.wpcp-carousel-section .slick-next i,.wpcp-carousel-section .slick-prev,.wpcp-carousel-section .slick-prev i{line-height:28px;font-family:fontawesome;color:#000}.wpcp-carousel-section.nav-vertical-center .slick-next,.wpcp-carousel-section.nav-vertical-center .slick-prev{top:50%}.wpcp-carousel-section.nav-vertical-center .slick-prev{left:0}.wpcp-carousel-section.nav-vertical-center .slick-next,.wpcp-carousel-section.nav-vertical-center .slick-prev{margin-top:-15px}.wpcp-carousel-section.nav-vertical-center.slick-dotted .slick-next,.wpcp-carousel-section.nav-vertical-center.slick-dotted .slick-prev{margin-top:-35px}.wpcp-carousel-section.nav-vertical-center .slick-next{right:0;text-align:right}.wpcp-carousel-section ul.slick-dots{list-style:none;padding:0!important;margin:0;text-align:center;margin-top:18px;position:relative}.wpcp-carousel-section ul.slick-dots li{display:inline;margin:0}.wpcp-carousel-section ul.slick-dots li button{background-color:#ccc;border:0 solid;border-radius:50%;font-size:0;margin:3px;overflow:hidden;padding:0;text-indent:-999px;width:12px;height:12px;cursor:pointer}.wpcp-carousel-section ul.slick-dots,.wpcp-carousel-section ul.slick-dots li,.wpcp-carousel-section ul.slick-dots li button{line-height:1!important}.wpcp-carousel-section ul.slick-dots li button:focus{outline:0}.wpcp-carousel-section ul.slick-dots li.slick-active button{background-color:#666}.wpcpro-row.no-gutters>[class*=wpcpro-col-]{padding-right:0;padding-left:0}.wpcpro-row>[class*=wpcpro-col-]{padding:0 10px;padding-bottom:20px}.wpcpro-row{display:flex;flex-wrap:wrap;margin-right:-10px;margin-left:-10px}.wpcpro-post-pagination .ajax-page-numbers,.wpcpro-post-pagination .page-numbers{background:#fff;color:#5e5e5e;border:2px solid #bbb;width:38px;height:38px;line-height:38px;font-size:16px;text-align:center;display:inline-block;margin-right:4px;text-decoration:none;font-weight:700;border-radius:3px;-webkit-transition:all .33s;transition:all .33s;-webkit-box-sizing:content-box;box-sizing:content-box}.wpcpro-post-pagination .ajax-page-numbers.current,.wpcpro-post-pagination .page-numbers.current{cursor:auto;color:#fff;background:#178087;border-color:#178087}.wpcpro-post-pagination-number{margin-top:20px}.wpcpro-post-pagination a.page-numbers:hover,.wpcpro-post-pagination span.current,.wpcpro-post-pagination span:hover{color:#fff;background:#178087;border-color:#178087}
|
public/dynamic-style.php
CHANGED
@@ -8,18 +8,21 @@
|
|
8 |
*/
|
9 |
|
10 |
$section_title_dynamic_css = '';
|
11 |
-
|
12 |
-
$
|
13 |
-
$
|
14 |
-
|
15 |
-
|
16 |
-
$
|
|
|
|
|
|
|
17 |
|
18 |
if ( $section_title ) {
|
19 |
$old_section_title_margin = isset( $shortcode_data['section_title_margin_bottom'] ) && is_numeric( $shortcode_data['section_title_margin_bottom'] ) ? $shortcode_data['section_title_margin_bottom'] : '30';
|
20 |
$section_title_margin = isset( $shortcode_data['section_title_margin_bottom']['all'] ) && ( $shortcode_data['section_title_margin_bottom']['all'] >= 0 ) ? $shortcode_data['section_title_margin_bottom']['all'] : $old_section_title_margin;
|
21 |
$section_title_dynamic_css .= '
|
22 |
-
.wpcp-wrapper-' . $post_id . ' .sp-wpcpro-section-title {
|
23 |
margin-bottom: ' . $section_title_margin . 'px;
|
24 |
}';
|
25 |
}
|
8 |
*/
|
9 |
|
10 |
$section_title_dynamic_css = '';
|
11 |
+
if ( ! is_admin() ) {
|
12 |
+
$upload_data = get_post_meta( $post_id, 'sp_wpcp_upload_options', true );
|
13 |
+
$shortcode_data = get_post_meta( $post_id, 'sp_wpcp_shortcode_options', true );
|
14 |
+
}
|
15 |
+
|
16 |
+
$section_title = isset( $shortcode_data['section_title'] ) ? $shortcode_data['section_title'] : '';
|
17 |
+
$carousel_type = isset( $upload_data['wpcp_carousel_type'] ) ? $upload_data['wpcp_carousel_type'] : '';
|
18 |
+
$wpcp_arrows = isset( $shortcode_data['wpcp_navigation'] ) ? $shortcode_data['wpcp_navigation'] : 'show';
|
19 |
+
$wpcp_dots = isset( $shortcode_data['wpcp_pagination'] ) ? $shortcode_data['wpcp_pagination'] : '';
|
20 |
|
21 |
if ( $section_title ) {
|
22 |
$old_section_title_margin = isset( $shortcode_data['section_title_margin_bottom'] ) && is_numeric( $shortcode_data['section_title_margin_bottom'] ) ? $shortcode_data['section_title_margin_bottom'] : '30';
|
23 |
$section_title_margin = isset( $shortcode_data['section_title_margin_bottom']['all'] ) && ( $shortcode_data['section_title_margin_bottom']['all'] >= 0 ) ? $shortcode_data['section_title_margin_bottom']['all'] : $old_section_title_margin;
|
24 |
$section_title_dynamic_css .= '
|
25 |
+
.wpcp-wrapper-' . $post_id . ' .sp-wpcpro-section-title, .postbox .wpcp-wrapper-' . $post_id . ' .sp-wpcpro-section-title, #poststuff .wpcp-wrapper-' . $post_id . ' .sp-wpcpro-section-title {
|
26 |
margin-bottom: ' . $section_title_margin . 'px;
|
27 |
}';
|
28 |
}
|
public/templates/carousel.php
CHANGED
@@ -16,7 +16,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
16 |
?>
|
17 |
<div class="wpcp-carousel-wrapper wpcp-wrapper-<?php echo esc_attr( $post_id ); ?>">
|
18 |
<?php
|
19 |
-
Helper::section_title( $post_id, $section_title );
|
20 |
Helper::preloader( $post_id, $preloader );
|
21 |
$the_rtl = ( 'ltr' === $carousel_direction ) ? ' dir="rtl"' : ' dir="ltr"';
|
22 |
?>
|
16 |
?>
|
17 |
<div class="wpcp-carousel-wrapper wpcp-wrapper-<?php echo esc_attr( $post_id ); ?>">
|
18 |
<?php
|
19 |
+
Helper::section_title( $post_id, $section_title, $main_section_title );
|
20 |
Helper::preloader( $post_id, $preloader );
|
21 |
$the_rtl = ( 'ltr' === $carousel_direction ) ? ' dir="rtl"' : ' dir="ltr"';
|
22 |
?>
|
public/templates/gallery.php
CHANGED
@@ -17,7 +17,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
17 |
?>
|
18 |
<div class="wpcp-carousel-wrapper wpcp-wrapper-<?php echo esc_attr( $post_id ); ?>">
|
19 |
<?php
|
20 |
-
Helper::section_title( $post_id, $section_title );
|
21 |
Helper::preloader( $post_id, $preloader );
|
22 |
?>
|
23 |
<div id="sp-wp-carousel-free-id-<?php echo esc_attr( $post_id ); ?>" class="<?php echo esc_attr( $carousel_classes ); ?>" >
|
17 |
?>
|
18 |
<div class="wpcp-carousel-wrapper wpcp-wrapper-<?php echo esc_attr( $post_id ); ?>">
|
19 |
<?php
|
20 |
+
Helper::section_title( $post_id, $section_title, $main_section_title );
|
21 |
Helper::preloader( $post_id, $preloader );
|
22 |
?>
|
23 |
<div id="sp-wp-carousel-free-id-<?php echo esc_attr( $post_id ); ?>" class="<?php echo esc_attr( $carousel_classes ); ?>" >
|
public/templates/section-title.php
CHANGED
@@ -10,4 +10,4 @@
|
|
10 |
*/
|
11 |
|
12 |
?>
|
13 |
-
<h2 class="sp-wpcpro-section-title"> <?php echo wp_kses_post(
|
10 |
*/
|
11 |
|
12 |
?>
|
13 |
+
<h2 class="sp-wpcpro-section-title"> <?php echo wp_kses_post( $main_section_title ); ?> </h2>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://shapedplugin.com/donate
|
|
4 |
Tags: wordpress carousel, best carousel plugin, image carousel, image slider, post carousel, custom post carousel, custom taxonomy carousel, woocommerce product carousel, content carousel, video carousel, video slider, video lightbox, youtube carousel, video gallery, carousel, slider, responsive slider, responsive carousel, carousel slider, ticker carousel, center mode carousel, slide anything, image gallery, image lightbox, wordpress image gallery, photo gallery, gallery slider, wordpress gallery plugin, gallery, post slider, vimeo slider, self hosted video carousel, content slider, wordpress slider, featured content slider, html slider, horizontal carousel slider, posts content slider, product carousel, woocommerce slider, woocommerce product slider
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.8.2
|
7 |
-
Stable tag: 2.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -14,7 +14,7 @@ The Most Powerful and User-friendly Carousel & Gallery plugin. Create beautiful
|
|
14 |
|
15 |
== Description ==
|
16 |
|
17 |
-
[youtube https://www.youtube.com/
|
18 |
|
19 |
[__Live Demo__](https://wordpresscarousel.com/) | [__Video Tutorials__](https://www.youtube.com/shapedplugin/) | [__Documentation__](https://docs.shapedplugin.com/docs/wordpress-carousel/introduction/) | [__PRO Features »__](https://wordpresscarousel.com/#feature)
|
20 |
|
@@ -200,7 +200,7 @@ It’s even easier to put images of different height together so the width is dy
|
|
200 |
|
201 |
**WordPress Carousel Pro - Admin Panel Overview**
|
202 |
|
203 |
-
[youtube https://www.youtube.com/
|
204 |
|
205 |
[__Watch all Tutorials »__](https://www.youtube.com/watch?v=m2XP6GNW0mE&index=2&list=PLoUb-7uG-5jNgTTcnUflIiytxgTWaBEzm)
|
206 |
|
@@ -327,6 +327,11 @@ Thank you!
|
|
327 |
|
328 |
== Changelog ==
|
329 |
|
|
|
|
|
|
|
|
|
|
|
330 |
= 2.4.0 – Nov 15, 2021 =
|
331 |
* New: Image/photo gallery added.
|
332 |
* New: Posts Grid added.
|
4 |
Tags: wordpress carousel, best carousel plugin, image carousel, image slider, post carousel, custom post carousel, custom taxonomy carousel, woocommerce product carousel, content carousel, video carousel, video slider, video lightbox, youtube carousel, video gallery, carousel, slider, responsive slider, responsive carousel, carousel slider, ticker carousel, center mode carousel, slide anything, image gallery, image lightbox, wordpress image gallery, photo gallery, gallery slider, wordpress gallery plugin, gallery, post slider, vimeo slider, self hosted video carousel, content slider, wordpress slider, featured content slider, html slider, horizontal carousel slider, posts content slider, product carousel, woocommerce slider, woocommerce product slider
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.8.2
|
7 |
+
Stable tag: 2.4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
14 |
|
15 |
== Description ==
|
16 |
|
17 |
+
[youtube https://www.youtube.com/embed/videoseries?list=PLoUb-7uG-5jO_zo3exhqUNlZ7h0FQVJTt]
|
18 |
|
19 |
[__Live Demo__](https://wordpresscarousel.com/) | [__Video Tutorials__](https://www.youtube.com/shapedplugin/) | [__Documentation__](https://docs.shapedplugin.com/docs/wordpress-carousel/introduction/) | [__PRO Features »__](https://wordpresscarousel.com/#feature)
|
20 |
|
200 |
|
201 |
**WordPress Carousel Pro - Admin Panel Overview**
|
202 |
|
203 |
+
[youtube https://www.youtube.com/embed/videoseries?list=PLoUb-7uG-5jNgTTcnUflIiytxgTWaBEzm]
|
204 |
|
205 |
[__Watch all Tutorials »__](https://www.youtube.com/watch?v=m2XP6GNW0mE&index=2&list=PLoUb-7uG-5jNgTTcnUflIiytxgTWaBEzm)
|
206 |
|
327 |
|
328 |
== Changelog ==
|
329 |
|
330 |
+
= 2.4.1 – Dec 06, 2021 =
|
331 |
+
* New: Shortcode Live Preview added.
|
332 |
+
* Fix: Some minor issues.
|
333 |
+
* Improved: Hook added for WPML filter (suppress_filters).
|
334 |
+
|
335 |
= 2.4.0 – Nov 15, 2021 =
|
336 |
* New: Image/photo gallery added.
|
337 |
* New: Posts Grid added.
|
wp-carousel-free.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
* Plugin Name: WordPress Carousel
|
10 |
* Plugin URI: https://shapedplugin.com/plugin/wordpress-carousel-pro/?ref=1
|
11 |
* Description: The Most Powerful and User-friendly WordPress Carousel Plugin. Create beautiful carousels in minutes using Images, Posts, WooCommerce Products etc.
|
12 |
-
* Version: 2.4.
|
13 |
* Author: ShapedPlugin
|
14 |
* Author URI: https://shapedplugin.com/
|
15 |
* License: GPL-2.0+
|
@@ -119,7 +119,7 @@ class SP_WP_Carousel_Free {
|
|
119 |
*/
|
120 |
public function setup() {
|
121 |
$this->plugin_name = 'wp-carousel-free';
|
122 |
-
$this->version = '2.4.
|
123 |
$this->define_constants();
|
124 |
$this->includes();
|
125 |
$this->load_dependencies();
|
@@ -182,6 +182,7 @@ class SP_WP_Carousel_Free {
|
|
182 |
include_once WPCAROUSELF_PATH . '/admin/views/tmce-button.php';
|
183 |
include_once WPCAROUSELF_PATH . '/admin/views/help.php';
|
184 |
include_once WPCAROUSELF_PATH . '/admin/views/premium.php';
|
|
|
185 |
}
|
186 |
|
187 |
/**
|
@@ -281,6 +282,7 @@ class SP_WP_Carousel_Free {
|
|
281 |
|
282 |
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
|
283 |
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
|
|
|
284 |
|
285 |
$plugin_shortcode = new WP_Carousel_Free_Shortcode( $this->get_plugin_name(), $this->get_version() );
|
286 |
$this->loader->add_shortcode( 'sp_wpcarousel', $plugin_shortcode, 'sp_wp_carousel_shortcode' );
|
9 |
* Plugin Name: WordPress Carousel
|
10 |
* Plugin URI: https://shapedplugin.com/plugin/wordpress-carousel-pro/?ref=1
|
11 |
* Description: The Most Powerful and User-friendly WordPress Carousel Plugin. Create beautiful carousels in minutes using Images, Posts, WooCommerce Products etc.
|
12 |
+
* Version: 2.4.1
|
13 |
* Author: ShapedPlugin
|
14 |
* Author URI: https://shapedplugin.com/
|
15 |
* License: GPL-2.0+
|
119 |
*/
|
120 |
public function setup() {
|
121 |
$this->plugin_name = 'wp-carousel-free';
|
122 |
+
$this->version = '2.4.1';
|
123 |
$this->define_constants();
|
124 |
$this->includes();
|
125 |
$this->load_dependencies();
|
182 |
include_once WPCAROUSELF_PATH . '/admin/views/tmce-button.php';
|
183 |
include_once WPCAROUSELF_PATH . '/admin/views/help.php';
|
184 |
include_once WPCAROUSELF_PATH . '/admin/views/premium.php';
|
185 |
+
include_once WPCAROUSELF_PATH . '/admin/preview/class-wp-carousel-free-preview.php';
|
186 |
}
|
187 |
|
188 |
/**
|
282 |
|
283 |
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' );
|
284 |
$this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' );
|
285 |
+
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_public, 'admin_enqueue_scripts' );
|
286 |
|
287 |
$plugin_shortcode = new WP_Carousel_Free_Shortcode( $this->get_plugin_name(), $this->get_version() );
|
288 |
$this->loader->add_shortcode( 'sp_wpcarousel', $plugin_shortcode, 'sp_wp_carousel_shortcode' );
|