Version Description
Nov 15, 2021 = * New: Image/photo gallery added. * New: Posts Grid added. * New: WooCommerce Products Grid added. * New: Template overriding/modification options. * Improved: Plugin settings text. * Fix: Several minor tweaking. * Tested: WooCommerce 5.9.0 compatibility.
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.0 |
Comparing to | |
See all releases |
Code changes from version 2.3.3 to 2.4.0
- admin/class-wp-carousel-free-admin.php +2 -2
- admin/img/carousel.svg +24 -0
- admin/img/gallery.svg +24 -0
- admin/img/masonry.svg +18 -0
- admin/views/metabox-config.php +390 -278
- admin/views/option-config.php +1 -1
- admin/views/sp-framework/assets/css/style.css +45 -4
- admin/views/sp-framework/assets/css/style.min.css +1 -1
- admin/views/sp-framework/assets/js/main.js +26 -2
- admin/views/sp-framework/assets/js/main.min.js +1 -1
- admin/views/sp-framework/classes/admin-options.class.php +2 -9
- includes/class-wp-carousel-free-shortcode.php +80 -105
- public/Helper.php +388 -0
- public/class-wp-carousel-free-public.php +2 -0
- public/css/wp-carousel-free-public.css +104 -27
- public/css/wp-carousel-free-public.min.css +1 -1
- public/dynamic-style.php +8 -4
- public/js/wp-carousel-free-public.js +0 -1
- public/js/wp-carousel-free-public.min.js +1 -1
- public/responsive.php +17 -0
- public/templates/carousel.php +28 -0
- public/templates/gallery.php +29 -0
- public/templates/image-carousel.php +0 -54
- public/templates/loop/image-type.php +37 -0
- public/templates/loop/image-type/image.php +15 -0
- public/templates/loop/post-type.php +29 -0
- public/templates/loop/post-type/content.php +16 -0
- public/templates/loop/post-type/meta.php +27 -0
- public/templates/loop/post-type/thumbnails.php +32 -0
- public/templates/loop/post-type/title.php +20 -0
- public/templates/loop/product-type.php +35 -0
- public/templates/loop/product-type/add_to_cart.php +18 -0
- public/templates/loop/product-type/image.php +33 -0
- public/templates/loop/product-type/name.php +18 -0
- public/templates/loop/product-type/price.php +19 -0
- public/templates/loop/product-type/rating.php +25 -0
- public/templates/pagination.php +24 -0
- public/templates/post-carousel.php +0 -98
- public/templates/preloader.php +4 -4
- public/templates/product-carousel.php +0 -106
- public/templates/section-title.php +13 -0
- readme.txt +23 -14
- wp-carousel-free.php +4 -3
admin/class-wp-carousel-free-admin.php
CHANGED
@@ -99,9 +99,9 @@ class WP_Carousel_Free_Admin {
|
|
99 |
*/
|
100 |
public function filter_carousel_admin_column() {
|
101 |
$admin_columns['cb'] = '<input type="checkbox" />';
|
102 |
-
$admin_columns['title'] = __( '
|
103 |
$admin_columns['shortcode'] = __( 'Shortcode', 'wp-carousel-free' );
|
104 |
-
$admin_columns['carousel_type'] = __( '
|
105 |
$admin_columns['date'] = __( 'Date', 'wp-carousel-free' );
|
106 |
|
107 |
return $admin_columns;
|
99 |
*/
|
100 |
public function filter_carousel_admin_column() {
|
101 |
$admin_columns['cb'] = '<input type="checkbox" />';
|
102 |
+
$admin_columns['title'] = __( 'Title', 'wp-carousel-free' );
|
103 |
$admin_columns['shortcode'] = __( 'Shortcode', 'wp-carousel-free' );
|
104 |
+
$admin_columns['carousel_type'] = __( 'Source Type', 'wp-carousel-free' );
|
105 |
$admin_columns['date'] = __( 'Date', 'wp-carousel-free' );
|
106 |
|
107 |
return $admin_columns;
|
admin/img/carousel.svg
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
viewBox="0 0 130 80" style="enable-background:new 0 0 130 80;" xml:space="preserve">
|
5 |
+
<style type="text/css">
|
6 |
+
.st0{fill:#BDC5CB;}
|
7 |
+
.st1{fill:none;stroke:#D2D2D2;stroke-miterlimit:10;}
|
8 |
+
</style>
|
9 |
+
<g>
|
10 |
+
<g>
|
11 |
+
<rect x="18.6" y="30.5" class="st0" width="20.9" height="19.1"/>
|
12 |
+
<rect x="42.5" y="30.5" class="st0" width="20.9" height="19.1"/>
|
13 |
+
<rect x="66.5" y="30.5" class="st0" width="20.9" height="19.1"/>
|
14 |
+
<rect x="90.4" y="30.4" class="st0" width="20.9" height="19.1"/>
|
15 |
+
</g>
|
16 |
+
<g transform="translate(0,-952.36218)">
|
17 |
+
<path class="st0" d="M118.5,992.4l-0.4-0.4l-3-3l-0.9,0.9l2.6,2.6l-2.6,2.6l0.9,0.9l3-3C118.1,992.8,118.5,992.4,118.5,992.4z"/>
|
18 |
+
</g>
|
19 |
+
<g transform="translate(0,-952.36218)">
|
20 |
+
<path class="st0" d="M11.9,992.8l3,3l0.9-0.9l-2.6-2.6l2.6-2.6l-0.9-0.9l-3,3l-0.4,0.4C11.5,992.4,11.9,992.8,11.9,992.8z"/>
|
21 |
+
</g>
|
22 |
+
</g>
|
23 |
+
<rect x="0.5" y="0.5" class="st1" width="129" height="79"/>
|
24 |
+
</svg>
|
admin/img/gallery.svg
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
viewBox="0 0 130 80" style="enable-background:new 0 0 130 80;" xml:space="preserve">
|
5 |
+
<style type="text/css">
|
6 |
+
.st0{fill:#BDC5CB;}
|
7 |
+
.st1{fill:none;stroke:#D2D2D2;stroke-miterlimit:10;}
|
8 |
+
</style>
|
9 |
+
<g>
|
10 |
+
<g>
|
11 |
+
<rect x="18.7" y="19.5" class="st0" width="20.9" height="19.1"/>
|
12 |
+
<rect x="42.6" y="19.5" class="st0" width="20.9" height="19.1"/>
|
13 |
+
<rect x="66.5" y="19.5" class="st0" width="20.9" height="19.1"/>
|
14 |
+
<rect x="90.4" y="19.4" class="st0" width="20.9" height="19.1"/>
|
15 |
+
</g>
|
16 |
+
<g>
|
17 |
+
<rect x="18.7" y="41.5" class="st0" width="20.9" height="19.1"/>
|
18 |
+
<rect x="42.6" y="41.5" class="st0" width="20.9" height="19.1"/>
|
19 |
+
<rect x="66.5" y="41.5" class="st0" width="20.9" height="19.1"/>
|
20 |
+
<rect x="90.4" y="41.4" class="st0" width="20.9" height="19.1"/>
|
21 |
+
</g>
|
22 |
+
</g>
|
23 |
+
<rect x="0.5" y="0.5" class="st1" width="129" height="79"/>
|
24 |
+
</svg>
|
admin/img/masonry.svg
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
viewBox="0 0 130 80" style="enable-background:new 0 0 130 80;" xml:space="preserve">
|
5 |
+
<style type="text/css">
|
6 |
+
.st0{fill:#BDC5CB;}
|
7 |
+
.st1{fill:none;stroke:#D2D2D2;stroke-miterlimit:10;}
|
8 |
+
</style>
|
9 |
+
<rect x="18.7" y="19.5" class="st0" width="20.9" height="14.5"/>
|
10 |
+
<rect x="42.6" y="19.5" class="st0" width="20.9" height="21.5"/>
|
11 |
+
<rect x="66.5" y="19.5" class="st0" width="20.9" height="8.5"/>
|
12 |
+
<rect x="90.4" y="19.4" class="st0" width="20.9" height="18.6"/>
|
13 |
+
<rect x="18.7" y="37" class="st0" width="20.9" height="23.6"/>
|
14 |
+
<rect x="42.6" y="44" class="st0" width="20.9" height="16.6"/>
|
15 |
+
<rect x="66.5" y="31" class="st0" width="20.9" height="29.6"/>
|
16 |
+
<rect x="90.4" y="41" class="st0" width="20.9" height="19.5"/>
|
17 |
+
<rect x="0.5" y="0.5" class="st1" width="129" height="79"/>
|
18 |
+
</svg>
|
admin/views/metabox-config.php
CHANGED
@@ -45,7 +45,7 @@ SP_WPCF::createSection(
|
|
45 |
array(
|
46 |
'id' => 'wpcp_carousel_type',
|
47 |
'type' => 'carousel_type',
|
48 |
-
'title' => __( '
|
49 |
'options' => array(
|
50 |
'image-carousel' => array(
|
51 |
'icon' => 'fa fa-image',
|
@@ -80,7 +80,7 @@ SP_WPCF::createSection(
|
|
80 |
array(
|
81 |
'id' => 'wpcp_gallery',
|
82 |
'type' => 'gallery',
|
83 |
-
'title' => '
|
84 |
'wrap_class' => 'wpcp-gallery-filed-wrapper',
|
85 |
'add_title' => __( 'ADD IMAGE', 'wp-carousel-free' ),
|
86 |
'edit_title' => __( 'EDIT IMAGE', 'wp-carousel-free' ),
|
@@ -185,53 +185,66 @@ SP_WPCF::createSection(
|
|
185 |
'icon' => 'fa fa-cog',
|
186 |
'fields' => array(
|
187 |
array(
|
188 |
-
'id'
|
189 |
-
'
|
190 |
-
'
|
191 |
-
'
|
192 |
-
'
|
193 |
-
'
|
194 |
-
|
195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
),
|
197 |
array(
|
198 |
-
'id'
|
199 |
-
'
|
200 |
-
'
|
201 |
-
'
|
202 |
-
'
|
203 |
-
'
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
|
|
|
|
|
|
210 |
),
|
211 |
-
'
|
|
|
212 |
),
|
213 |
array(
|
214 |
-
'id'
|
215 |
-
'type'
|
216 |
-
'title'
|
217 |
-
'subtitle'
|
218 |
-
'options'
|
219 |
'standard' => __( 'Standard', 'wp-carousel-free' ),
|
220 |
'ticker' => array(
|
221 |
-
'
|
222 |
-
'pro_only'
|
223 |
),
|
224 |
'center' => array(
|
225 |
-
'
|
226 |
-
'pro_only'
|
227 |
),
|
228 |
),
|
229 |
-
'default'
|
|
|
230 |
),
|
231 |
array(
|
232 |
'id' => 'wpcp_number_of_columns',
|
233 |
'type' => 'column',
|
234 |
-
'title' => __( '
|
235 |
'subtitle' => __( 'Set number of column on devices.', 'wp-carousel-free' ),
|
236 |
'default' => array(
|
237 |
'lg_desktop' => '5',
|
@@ -250,7 +263,7 @@ SP_WPCF::createSection(
|
|
250 |
array(
|
251 |
'id' => 'wpcp_logo_link_show',
|
252 |
'type' => 'button_set',
|
253 |
-
'title' => __( '
|
254 |
'options' => array(
|
255 |
'link' => array(
|
256 |
'option_name' => __( 'Link', 'wp-carousel-free' ),
|
@@ -262,7 +275,7 @@ SP_WPCF::createSection(
|
|
262 |
),
|
263 |
'none' => __( 'None', 'wp-carousel-free' ),
|
264 |
),
|
265 |
-
'subtitle' => __( 'Select
|
266 |
'default' => 'none',
|
267 |
'dependency' => array( 'wpcp_carousel_type', '==', 'image-carousel', true ),
|
268 |
),
|
@@ -310,276 +323,100 @@ SP_WPCF::createSection(
|
|
310 |
'id' => 'wpcp_preloader',
|
311 |
'type' => 'switcher',
|
312 |
'title' => __( 'Preloader', 'wp-carousel-free' ),
|
313 |
-
'subtitle' => __( '
|
314 |
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
315 |
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
316 |
'text_width' => 96,
|
317 |
'default' => true,
|
318 |
),
|
|
|
319 |
array(
|
320 |
-
'type'
|
321 |
-
'
|
322 |
-
'
|
323 |
-
'content' => __( 'To unlock the numerous Lightbox and other features, <a href="https://shapedplugin.com/plugin/wordpress-carousel-pro/?ref=1" target="_blank"><b>Upgrade To Pro!</b></a>', 'wp-carousel-free' ),
|
324 |
-
),
|
325 |
-
), // Fields array end.
|
326 |
-
)
|
327 |
-
); // End of Upload section.
|
328 |
-
|
329 |
-
//
|
330 |
-
// Carousel settings section begin.
|
331 |
-
//
|
332 |
-
SP_WPCF::createSection(
|
333 |
-
$wpcp_carousel_shortcode_settings,
|
334 |
-
array(
|
335 |
-
'title' => __( 'Carousel Settings', 'wp-carousel-free' ),
|
336 |
-
'icon' => 'fa fa-sliders',
|
337 |
-
'fields' => array(
|
338 |
-
array(
|
339 |
-
'id' => 'wpcp_carousel_orientation',
|
340 |
-
'type' => 'button_set',
|
341 |
-
'title' => __( 'Carousel Orientation', 'wp-carousel-free' ),
|
342 |
-
'subtitle' => __( 'Choose a carousel orientation.', 'wp-carousel-free' ),
|
343 |
-
'options' => array(
|
344 |
-
'horizontal' => __( 'Horizontal', 'wp-carousel-free' ),
|
345 |
-
'vertical' => array(
|
346 |
-
'option_name' => __( 'Vertical', 'wp-carousel-free' ),
|
347 |
-
'pro_only' => true,
|
348 |
-
),
|
349 |
-
),
|
350 |
-
'radio' => true,
|
351 |
-
'default' => 'horizontal',
|
352 |
),
|
353 |
array(
|
354 |
-
'id' => '
|
|
|
355 |
'type' => 'switcher',
|
356 |
-
'title' => __( 'AutoPlay', 'wp-carousel-free' ),
|
357 |
-
'subtitle' => __( 'Enable/Disable auto play.', 'wp-carousel-free' ),
|
358 |
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
359 |
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
360 |
'text_width' => 95,
|
|
|
|
|
361 |
'default' => true,
|
|
|
362 |
),
|
363 |
array(
|
364 |
-
'id'
|
365 |
-
'type' => 'spacing',
|
366 |
-
'title' => __( 'AutoPlay Speed', 'wp-carousel-free' ),
|
367 |
-
'subtitle' => __( 'Set auto play speed. Default value is 3000 milliseconds.', 'wp-carousel-free' ),
|
368 |
-
'all' => true,
|
369 |
-
'all_text' => false,
|
370 |
-
'all_placeholder' => 'speed',
|
371 |
-
'default' => array(
|
372 |
-
'all' => '3000',
|
373 |
-
),
|
374 |
-
'units' => array(
|
375 |
-
'ms',
|
376 |
-
),
|
377 |
-
'attributes' => array(
|
378 |
-
'min' => 0,
|
379 |
-
),
|
380 |
-
'dependency' => array(
|
381 |
-
'wpcp_carousel_auto_play',
|
382 |
-
'==',
|
383 |
-
'true',
|
384 |
-
),
|
385 |
-
),
|
386 |
-
array(
|
387 |
-
'id' => 'standard_carousel_scroll_speed',
|
388 |
-
'type' => 'spacing',
|
389 |
-
'title' => __( 'Sliding Speed', 'wp-carousel-free' ),
|
390 |
-
'subtitle' => __( 'Set sliding or scrolling speed. Default value is 600 milliseconds.', 'wp-carousel-free' ),
|
391 |
-
'all' => true,
|
392 |
-
'all_text' => false,
|
393 |
-
'all_placeholder' => 'speed',
|
394 |
-
'default' => array(
|
395 |
-
'all' => '600',
|
396 |
-
),
|
397 |
-
'units' => array(
|
398 |
-
'ms',
|
399 |
-
),
|
400 |
-
'attributes' => array(
|
401 |
-
'min' => 0,
|
402 |
-
),
|
403 |
-
),
|
404 |
-
|
405 |
-
array(
|
406 |
-
'id' => 'carousel_pause_on_hover',
|
407 |
'type' => 'switcher',
|
408 |
-
'title' => __( 'Pause on Hover', 'wp-carousel-free' ),
|
409 |
-
'subtitle' => __( 'Enable/Disable carousel pause on hover.', 'wp-carousel-free' ),
|
410 |
-
'default' => true,
|
411 |
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
412 |
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
413 |
'text_width' => 95,
|
414 |
-
'
|
415 |
-
|
416 |
-
|
417 |
-
'
|
418 |
-
'type' => 'switcher',
|
419 |
-
'title' => __( 'Infinite Loop', 'wp-carousel-free' ),
|
420 |
-
'subtitle' => __( 'Enable/Disable infinite loop mode.', 'wp-carousel-free' ),
|
421 |
-
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
422 |
-
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
423 |
-
'text_width' => 95,
|
424 |
-
'default' => true,
|
425 |
-
),
|
426 |
-
array(
|
427 |
-
'id' => 'wpcp_carousel_direction',
|
428 |
-
'type' => 'button_set',
|
429 |
-
'title' => __( 'Carousel Direction', 'wp-carousel-free' ),
|
430 |
-
'subtitle' => __( 'Set carousel direction as you need.', 'wp-carousel-free' ),
|
431 |
-
'options' => array(
|
432 |
-
'rtl' => __( 'Right to Left', 'wp-carousel-free' ),
|
433 |
-
'ltr' => __( 'Left to Right', 'wp-carousel-free' ),
|
434 |
-
),
|
435 |
-
'radio' => true,
|
436 |
-
'default' => 'rtl',
|
437 |
-
'dependency' => array( 'wpcp_carousel_orientation', '==', 'horizontal', true ),
|
438 |
-
),
|
439 |
-
array(
|
440 |
-
'id' => 'wpcp_carousel_row',
|
441 |
-
'class' => 'wpcp_carousel_row_pro_only',
|
442 |
-
'type' => 'column',
|
443 |
-
'title' => __( 'Carousel Row', 'wp-carousel-free' ),
|
444 |
-
'subtitle' => __( 'Set number of carousel row on device.', 'wp-carousel-free' ),
|
445 |
-
'lg_desktop' => true,
|
446 |
-
'desktop' => true,
|
447 |
-
'laptop' => true,
|
448 |
-
'tablet' => true,
|
449 |
-
'mobile' => true,
|
450 |
-
'default' => array(
|
451 |
-
'lg_desktop' => '1',
|
452 |
-
'desktop' => '1',
|
453 |
-
'laptop' => '1',
|
454 |
-
'tablet' => '1',
|
455 |
-
'mobile' => '1',
|
456 |
-
),
|
457 |
-
),
|
458 |
-
array(
|
459 |
-
'type' => 'subheading',
|
460 |
-
'content' => __( 'Navigation', 'wp-carousel-free' ),
|
461 |
-
),
|
462 |
-
// Navigation.
|
463 |
-
array(
|
464 |
-
'id' => 'wpcp_navigation',
|
465 |
-
'type' => 'button_set',
|
466 |
-
'title' => __( 'Navigation', 'wp-carousel-free' ),
|
467 |
-
'subtitle' => __( 'Show/Hide carousel navigation.', 'wp-carousel-free' ),
|
468 |
-
'options' => array(
|
469 |
-
'show' => __( 'Show', 'wp-carousel-free' ),
|
470 |
-
'hide' => __( 'Hide', 'wp-carousel-free' ),
|
471 |
-
'hide_mobile' => __( 'Hide on Mobile', 'wp-carousel-free' ),
|
472 |
-
),
|
473 |
-
'radio' => true,
|
474 |
-
'default' => 'hide_mobile',
|
475 |
-
// 'attributes' => array(
|
476 |
-
// 'data-depend-id' => 'wpcp_navigation',
|
477 |
-
// ),
|
478 |
),
|
479 |
-
|
480 |
array(
|
481 |
-
'id' => '
|
482 |
-
'
|
483 |
-
'
|
484 |
-
'
|
|
|
485 |
'options' => array(
|
486 |
-
'
|
487 |
-
'
|
488 |
-
|
489 |
-
|
490 |
-
'color1' => '#aaa',
|
491 |
-
'color2' => '#178087',
|
492 |
),
|
493 |
-
'
|
|
|
494 |
),
|
495 |
-
// Pagination.
|
496 |
array(
|
497 |
-
'
|
498 |
-
'
|
499 |
-
|
500 |
-
|
501 |
-
'
|
502 |
-
'type' => 'button_set',
|
503 |
-
'title' => __( 'Pagination', 'wp-carousel-free' ),
|
504 |
-
'subtitle' => __( 'Show/Hide carousel pagination.', 'wp-carousel-free' ),
|
505 |
-
'options' => array(
|
506 |
-
'show' => __( 'Show', 'wp-carousel-free' ),
|
507 |
-
'hide' => __( 'Hide', 'wp-carousel-free' ),
|
508 |
-
'hide_mobile' => __( 'Hide on Mobile', 'wp-carousel-free' ),
|
509 |
-
),
|
510 |
-
'radio' => true,
|
511 |
-
'default' => 'show',
|
512 |
-
// 'attributes' => array(
|
513 |
-
// 'data-depend-id' => 'wpcp_pagination',
|
514 |
-
// ),
|
515 |
-
),
|
516 |
-
array(
|
517 |
-
'id' => 'wpcp_pagination_color',
|
518 |
-
'type' => 'color_group',
|
519 |
-
'title' => __( 'Pagination Color', 'wp-carousel-free' ),
|
520 |
-
'subtitle' => __( 'Set color for the carousel pagination dots.', 'wp-carousel-free' ),
|
521 |
'options' => array(
|
522 |
-
'
|
523 |
-
'
|
524 |
),
|
525 |
-
'default' =>
|
526 |
-
|
527 |
-
'color2' => '#178087',
|
528 |
-
),
|
529 |
-
'dependency' => array( 'wpcp_pagination', '!=', 'hide' ),
|
530 |
),
|
531 |
-
|
532 |
-
// Miscellaneous.
|
533 |
array(
|
534 |
-
'
|
535 |
-
'
|
536 |
-
|
537 |
-
|
538 |
-
'
|
539 |
-
'
|
540 |
-
'
|
541 |
-
'
|
542 |
-
'
|
543 |
-
'default' => false,
|
544 |
-
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
545 |
-
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
546 |
-
'text_width' => 95,
|
547 |
-
),
|
548 |
-
array(
|
549 |
-
'id' => 'slider_swipe',
|
550 |
-
'type' => 'switcher',
|
551 |
-
'title' => __( 'Touch Swipe', 'wp-carousel-free' ),
|
552 |
-
'subtitle' => __( 'Enable/Disable touch swipe mode.', 'wp-carousel-free' ),
|
553 |
-
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
554 |
-
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
555 |
-
'text_width' => 96,
|
556 |
-
'default' => true,
|
557 |
),
|
558 |
array(
|
559 |
-
'id' => '
|
560 |
-
'type' => '
|
561 |
-
'title' => __( '
|
562 |
-
'subtitle' => __( '
|
563 |
-
'
|
564 |
-
'
|
565 |
-
'
|
566 |
-
'
|
567 |
-
'dependency' => array( 'slider_swipe', '==', 'true' ),
|
568 |
),
|
569 |
array(
|
570 |
-
'
|
571 |
-
'
|
572 |
-
'
|
573 |
-
'
|
574 |
-
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
575 |
-
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
576 |
-
'text_width' => 96,
|
577 |
-
'default' => false,
|
578 |
-
'dependency' => array( 'slider_swipe', '==', 'true' ),
|
579 |
),
|
580 |
-
),
|
581 |
)
|
582 |
-
); //
|
|
|
583 |
|
584 |
//
|
585 |
// Style settings section begin.
|
@@ -590,6 +427,32 @@ SP_WPCF::createSection(
|
|
590 |
'title' => __( 'Style Settings', 'wp-carousel-free' ),
|
591 |
'icon' => 'fa fa-paint-brush',
|
592 |
'fields' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
593 |
array(
|
594 |
'id' => 'wpcp_post_detail_position',
|
595 |
'class' => 'wpcp_post_detail_position',
|
@@ -855,17 +718,14 @@ SP_WPCF::createSection(
|
|
855 |
'false' => __( 'Off', 'wp-carousel-free' ),
|
856 |
'ondemand' => __( 'On Demand', 'wp-carousel-free' ),
|
857 |
),
|
858 |
-
// 'attributes' => array(
|
859 |
-
// 'data-depend-id' => 'wpcp_image_lazy_load',
|
860 |
-
// ),
|
861 |
'radio' => true,
|
862 |
'default' => 'false',
|
863 |
-
'dependency' => array( 'wpcp_carousel_type|wpcp_carousel_mode|show_image', 'any|!=|==', 'image-carousel,post-carousel,product-carousel|ticker|true', true ),
|
864 |
),
|
865 |
array(
|
866 |
'id' => 'wpcp_product_image_border',
|
867 |
'type' => 'border',
|
868 |
-
'title' => __( 'Image Border', 'wp-carousel-
|
869 |
'subtitle' => __( 'Set border for the product image.', 'wp-carousel-free' ),
|
870 |
'all' => true,
|
871 |
'default' => array(
|
@@ -900,15 +760,267 @@ SP_WPCF::createSection(
|
|
900 |
),
|
901 |
array(
|
902 |
'id' => '_image_title_attr',
|
903 |
-
'type' => '
|
|
|
|
|
904 |
'title' => __( 'Image Title Attribute', 'wp-carousel-free' ),
|
905 |
-
'subtitle' => __( '
|
906 |
'default' => false,
|
|
|
907 |
'dependency' => array( 'wpcp_carousel_type|show_image', 'any|==', 'image-carousel,post-carousel,product-carousel|true', true ),
|
908 |
),
|
909 |
), // End of fields array.
|
910 |
)
|
911 |
); // Style settings section end.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
912 |
|
913 |
|
914 |
//
|
45 |
array(
|
46 |
'id' => 'wpcp_carousel_type',
|
47 |
'type' => 'carousel_type',
|
48 |
+
'title' => __( 'Source Type', 'wp-carousel-free' ),
|
49 |
'options' => array(
|
50 |
'image-carousel' => array(
|
51 |
'icon' => 'fa fa-image',
|
80 |
array(
|
81 |
'id' => 'wpcp_gallery',
|
82 |
'type' => 'gallery',
|
83 |
+
'title' => __( 'Images', 'wp-carousel-free' ),
|
84 |
'wrap_class' => 'wpcp-gallery-filed-wrapper',
|
85 |
'add_title' => __( 'ADD IMAGE', 'wp-carousel-free' ),
|
86 |
'edit_title' => __( 'EDIT IMAGE', 'wp-carousel-free' ),
|
185 |
'icon' => 'fa fa-cog',
|
186 |
'fields' => array(
|
187 |
array(
|
188 |
+
'id' => 'wpcp_layout',
|
189 |
+
'class' => 'wpcp_layout',
|
190 |
+
'type' => 'image_select',
|
191 |
+
'title' => __( 'Layout Type', 'wp-carousel-free' ),
|
192 |
+
'subtitle' => __( 'Choose a layout type.', 'wp-carousel-free' ),
|
193 |
+
'options' => array(
|
194 |
+
'carousel' => array(
|
195 |
+
'image' => plugin_dir_url( __DIR__ ) . 'img/carousel.svg',
|
196 |
+
'text' => __( 'Carousel', 'wp-carousel-free' ),
|
197 |
+
),
|
198 |
+
'gallery' => array(
|
199 |
+
'image' => plugin_dir_url( __DIR__ ) . 'img/gallery.svg',
|
200 |
+
'text' => __( 'Gallery', 'wp-carousel-free' ),
|
201 |
+
),
|
202 |
+
),
|
203 |
+
'default' => 'carousel',
|
204 |
),
|
205 |
array(
|
206 |
+
'id' => 'wpcp_grid_mode',
|
207 |
+
'class' => 'wpcp_grid_mode',
|
208 |
+
'type' => 'image_select',
|
209 |
+
'title' => __( 'Layout Mode', 'wp-carousel-free' ),
|
210 |
+
'subtitle' => __( 'Choose a layout mode.', 'wp-carousel-free' ),
|
211 |
+
'options' => array(
|
212 |
+
'grid' => array(
|
213 |
+
'image' => plugin_dir_url( __DIR__ ) . 'img/gallery.svg',
|
214 |
+
'text' => __( 'Even', 'wp-carousel-free' ),
|
215 |
+
),
|
216 |
+
'masonry' => array(
|
217 |
+
'image' => plugin_dir_url( __DIR__ ) . 'img/masonry.svg',
|
218 |
+
'text' => __( 'Masonry', 'wp-carousel-free' ),
|
219 |
+
'pro_only' => true,
|
220 |
+
),
|
221 |
),
|
222 |
+
'default' => 'grid',
|
223 |
+
'dependency' => array( 'wpcp_layout', '==', 'gallery' ),
|
224 |
),
|
225 |
array(
|
226 |
+
'id' => 'wpcp_carousel_mode',
|
227 |
+
'type' => 'select',
|
228 |
+
'title' => __( 'Carousel Mode', 'wp-carousel-free' ),
|
229 |
+
'subtitle' => __( 'Set carousel mode. Carousel controls are disabled in the ticker mode.', 'wp-carousel-free' ),
|
230 |
+
'options' => array(
|
231 |
'standard' => __( 'Standard', 'wp-carousel-free' ),
|
232 |
'ticker' => array(
|
233 |
+
'text' => __( 'Ticker (Pro)', 'wp-carousel-free' ),
|
234 |
+
'pro_only' => true,
|
235 |
),
|
236 |
'center' => array(
|
237 |
+
'text' => __( 'Center (Pro)', 'wp-carousel-free' ),
|
238 |
+
'pro_only' => true,
|
239 |
),
|
240 |
),
|
241 |
+
'default' => 'standard',
|
242 |
+
'dependency' => array( 'wpcp_layout', '==', 'carousel' ),
|
243 |
),
|
244 |
array(
|
245 |
'id' => 'wpcp_number_of_columns',
|
246 |
'type' => 'column',
|
247 |
+
'title' => __( 'Column(s)', 'wp-carousel-free' ),
|
248 |
'subtitle' => __( 'Set number of column on devices.', 'wp-carousel-free' ),
|
249 |
'default' => array(
|
250 |
'lg_desktop' => '5',
|
263 |
array(
|
264 |
'id' => 'wpcp_logo_link_show',
|
265 |
'type' => 'button_set',
|
266 |
+
'title' => __( 'Link type ', 'wp-carousel-free' ),
|
267 |
'options' => array(
|
268 |
'link' => array(
|
269 |
'option_name' => __( 'Link', 'wp-carousel-free' ),
|
275 |
),
|
276 |
'none' => __( 'None', 'wp-carousel-free' ),
|
277 |
),
|
278 |
+
'subtitle' => __( 'Select a linking type for the images.', 'wp-carousel-free' ),
|
279 |
'default' => 'none',
|
280 |
'dependency' => array( 'wpcp_carousel_type', '==', 'image-carousel', true ),
|
281 |
),
|
323 |
'id' => 'wpcp_preloader',
|
324 |
'type' => 'switcher',
|
325 |
'title' => __( 'Preloader', 'wp-carousel-free' ),
|
326 |
+
'subtitle' => __( 'Items will be hidden until page load completed.', 'wp-carousel-free' ),
|
327 |
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
328 |
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
329 |
'text_width' => 96,
|
330 |
'default' => true,
|
331 |
),
|
332 |
+
// Pagination.
|
333 |
array(
|
334 |
+
'type' => 'subheading',
|
335 |
+
'content' => __( 'Pagination', 'wp-carousel-free' ),
|
336 |
+
'dependency' => array( 'wpcp_layout', '==', 'gallery', true ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
),
|
338 |
array(
|
339 |
+
'id' => 'wpcp_source_pagination_pro',
|
340 |
+
'class' => 'only_pro_switcher',
|
341 |
'type' => 'switcher',
|
|
|
|
|
342 |
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
343 |
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
344 |
'text_width' => 95,
|
345 |
+
'title' => __( 'Pagination', 'wp-carousel-free' ),
|
346 |
+
'subtitle' => __( 'Enable to show pagination.', 'wp-carousel-free' ),
|
347 |
'default' => true,
|
348 |
+
'dependency' => array( 'wpcp_carousel_type|wpcp_layout', '==|==', 'image-carousel|gallery', true ),
|
349 |
),
|
350 |
array(
|
351 |
+
'id' => 'wpcp_source_pagination',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
'type' => 'switcher',
|
|
|
|
|
|
|
353 |
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
354 |
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
355 |
'text_width' => 95,
|
356 |
+
'title' => __( 'Pagination', 'wp-carousel-free' ),
|
357 |
+
'subtitle' => __( 'Enable to show pagination.', 'wp-carousel-free' ),
|
358 |
+
'default' => true,
|
359 |
+
'dependency' => array( 'wpcp_carousel_type|wpcp_layout', 'any|==', 'post-carousel,product-carousel|gallery', true ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
360 |
),
|
|
|
361 |
array(
|
362 |
+
'id' => 'wpcp_post_pagination_type',
|
363 |
+
'class' => 'wpcp_post_pagination_type',
|
364 |
+
'type' => 'radio',
|
365 |
+
'title' => __( 'Pagination Type', 'wp-carousel-free' ),
|
366 |
+
'subtitle' => __( 'Select pagination type.', 'wp-carousel-free' ),
|
367 |
'options' => array(
|
368 |
+
'load_more_btn' => __( 'Load More Button (Pro)', 'wp-carousel-free' ),
|
369 |
+
'infinite_scroll' => __( 'Load More on Infinite Scroll (Pro)', 'wp-carousel-free' ),
|
370 |
+
'ajax_number' => __( 'Ajax Number Pagination (Pro)', 'wp-carousel-free' ),
|
371 |
+
'normal' => __( 'No Ajax (Normal Pagination)', 'wp-carousel-free' ),
|
|
|
|
|
372 |
),
|
373 |
+
'default' => 'normal',
|
374 |
+
'dependency' => array( 'wpcp_carousel_type|wpcp_source_pagination|wpcp_layout', 'any|==|==', 'post-carousel,product-carousel|true|gallery', true ),
|
375 |
),
|
|
|
376 |
array(
|
377 |
+
'id' => 'wpcp_pagination_type',
|
378 |
+
'class' => 'pro_only_field',
|
379 |
+
'type' => 'radio',
|
380 |
+
'title' => __( 'Pagination Type', 'wp-carousel-free' ),
|
381 |
+
'subtitle' => __( 'Select pagination type.', 'wp-carousel-free' ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
382 |
'options' => array(
|
383 |
+
'load_more_btn' => __( 'Load More Button(Ajax)', 'wp-carousel-free' ),
|
384 |
+
'infinite_scroll' => __( 'Load More on Infinite Scroll(Ajax)', 'wp-carousel-free' ),
|
385 |
),
|
386 |
+
'default' => 'load_more_btn',
|
387 |
+
'dependency' => array( 'wpcp_carousel_type|wpcp_layout', '==|==', 'image-carousel|gallery', true ),
|
|
|
|
|
|
|
388 |
),
|
|
|
|
|
389 |
array(
|
390 |
+
'id' => 'post_per_page_pro',
|
391 |
+
'class' => 'pro_only_field',
|
392 |
+
'type' => 'spinner',
|
393 |
+
'title' => __( 'Item(s) To Show Per Page/Click', 'wp-carousel-free' ),
|
394 |
+
'subtitle' => __( 'Set item(s) to show per page or click.', 'wp-carousel-free' ),
|
395 |
+
'default' => '8',
|
396 |
+
'min' => 1,
|
397 |
+
'max' => 10000,
|
398 |
+
'dependency' => array( 'wpcp_carousel_type|wpcp_layout', '==|==', 'image-carousel|gallery', true ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
399 |
),
|
400 |
array(
|
401 |
+
'id' => 'post_per_page',
|
402 |
+
'type' => 'spinner',
|
403 |
+
'title' => __( 'Item(s) To Show Per Page/Click', 'wp-carousel-free' ),
|
404 |
+
'subtitle' => __( 'Set item(s) to show per page or click.', 'wp-carousel-free' ),
|
405 |
+
'default' => '8',
|
406 |
+
'min' => 1,
|
407 |
+
'max' => 10000,
|
408 |
+
'dependency' => array( 'wpcp_carousel_type|wpcp_source_pagination|wpcp_layout', 'any|==|==', 'post-carousel,product-carousel|true|gallery', true ),
|
|
|
409 |
),
|
410 |
array(
|
411 |
+
'type' => 'notice',
|
412 |
+
'style' => 'normal',
|
413 |
+
'class' => 'pro_notice',
|
414 |
+
'content' => __( 'To unlock the 28+ dedicated options of <b>Lightbox Settings</b> tab, <a href="https://shapedplugin.com/plugin/wordpress-carousel-pro/?ref=1" target="_blank"><b>Upgrade To Pro!</b></a>', 'wp-carousel-free' ),
|
|
|
|
|
|
|
|
|
|
|
415 |
),
|
416 |
+
), // Fields array end.
|
417 |
)
|
418 |
+
); // End of Upload section.
|
419 |
+
|
420 |
|
421 |
//
|
422 |
// Style settings section begin.
|
427 |
'title' => __( 'Style Settings', 'wp-carousel-free' ),
|
428 |
'icon' => 'fa fa-paint-brush',
|
429 |
'fields' => array(
|
430 |
+
array(
|
431 |
+
'id' => 'section_title',
|
432 |
+
'type' => 'switcher',
|
433 |
+
'title' => __( 'Carousel Section Title', 'wp-carousel-free' ),
|
434 |
+
'subtitle' => __( 'Show/Hide the carousel section title.', 'wp-carousel-free' ),
|
435 |
+
'default' => false,
|
436 |
+
'text_on' => __( 'Show', 'wp-carousel-free' ),
|
437 |
+
'text_off' => __( 'Hide', 'wp-carousel-free' ),
|
438 |
+
'text_width' => 75,
|
439 |
+
),
|
440 |
+
array(
|
441 |
+
'id' => 'section_title_margin_bottom',
|
442 |
+
'type' => 'spacing',
|
443 |
+
'title' => __( 'Margin Bottom from Section Title', 'wp-carousel-free' ),
|
444 |
+
'subtitle' => __( 'Set margin bottom from carousel section title. Default value is 30px.', 'wp-carousel-free' ),
|
445 |
+
'all' => true,
|
446 |
+
'all_text' => '<i class="fa fa-long-arrow-down"></i>',
|
447 |
+
'units' => array(
|
448 |
+
'px',
|
449 |
+
),
|
450 |
+
'all_placeholder' => 'margin',
|
451 |
+
'default' => array(
|
452 |
+
'all' => '30',
|
453 |
+
),
|
454 |
+
'dependency' => array( 'section_title', '==', 'true', true ),
|
455 |
+
),
|
456 |
array(
|
457 |
'id' => 'wpcp_post_detail_position',
|
458 |
'class' => 'wpcp_post_detail_position',
|
718 |
'false' => __( 'Off', 'wp-carousel-free' ),
|
719 |
'ondemand' => __( 'On Demand', 'wp-carousel-free' ),
|
720 |
),
|
|
|
|
|
|
|
721 |
'radio' => true,
|
722 |
'default' => 'false',
|
723 |
+
'dependency' => array( 'wpcp_carousel_type|wpcp_carousel_mode|show_image|wpcp_layout', 'any|!=|==', 'image-carousel,post-carousel,product-carousel|ticker|true|carousel', true ),
|
724 |
),
|
725 |
array(
|
726 |
'id' => 'wpcp_product_image_border',
|
727 |
'type' => 'border',
|
728 |
+
'title' => __( 'Image Border', 'wp-carousel-free' ),
|
729 |
'subtitle' => __( 'Set border for the product image.', 'wp-carousel-free' ),
|
730 |
'all' => true,
|
731 |
'default' => array(
|
760 |
),
|
761 |
array(
|
762 |
'id' => '_image_title_attr',
|
763 |
+
'type' => 'switcher',
|
764 |
+
'text_on' => __( 'Show', 'wp-carousel-free' ),
|
765 |
+
'text_off' => __( 'Hide', 'wp-carousel-free' ),
|
766 |
'title' => __( 'Image Title Attribute', 'wp-carousel-free' ),
|
767 |
+
'subtitle' => __( 'Show/Hide image title attribute.', 'wp-carousel-free' ),
|
768 |
'default' => false,
|
769 |
+
'text_width' => 77,
|
770 |
'dependency' => array( 'wpcp_carousel_type|show_image', 'any|==', 'image-carousel,post-carousel,product-carousel|true', true ),
|
771 |
),
|
772 |
), // End of fields array.
|
773 |
)
|
774 |
); // Style settings section end.
|
775 |
+
//
|
776 |
+
// Carousel settings section begin.
|
777 |
+
//
|
778 |
+
SP_WPCF::createSection(
|
779 |
+
$wpcp_carousel_shortcode_settings,
|
780 |
+
array(
|
781 |
+
'title' => __( 'Carousel Settings', 'wp-carousel-free' ),
|
782 |
+
'icon' => 'fa fa-sliders',
|
783 |
+
'fields' => array(
|
784 |
+
array(
|
785 |
+
'id' => 'wpcp_carousel_orientation',
|
786 |
+
'type' => 'button_set',
|
787 |
+
'title' => __( 'Carousel Orientation', 'wp-carousel-free' ),
|
788 |
+
'subtitle' => __( 'Choose a carousel orientation.', 'wp-carousel-free' ),
|
789 |
+
'options' => array(
|
790 |
+
'horizontal' => __( 'Horizontal', 'wp-carousel-free' ),
|
791 |
+
'vertical' => array(
|
792 |
+
'option_name' => __( 'Vertical', 'wp-carousel-free' ),
|
793 |
+
'pro_only' => true,
|
794 |
+
),
|
795 |
+
),
|
796 |
+
'radio' => true,
|
797 |
+
'default' => 'horizontal',
|
798 |
+
),
|
799 |
+
array(
|
800 |
+
'id' => 'wpcp_carousel_auto_play',
|
801 |
+
'type' => 'switcher',
|
802 |
+
'title' => __( 'AutoPlay', 'wp-carousel-free' ),
|
803 |
+
'subtitle' => __( 'Enable/Disable auto play.', 'wp-carousel-free' ),
|
804 |
+
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
805 |
+
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
806 |
+
'text_width' => 95,
|
807 |
+
'default' => true,
|
808 |
+
),
|
809 |
+
array(
|
810 |
+
'id' => 'carousel_auto_play_speed',
|
811 |
+
'type' => 'spacing',
|
812 |
+
'title' => __( 'AutoPlay Speed', 'wp-carousel-free' ),
|
813 |
+
'subtitle' => __( 'Set auto play speed. Default value is 3000 milliseconds.', 'wp-carousel-free' ),
|
814 |
+
'all' => true,
|
815 |
+
'all_text' => false,
|
816 |
+
'all_placeholder' => 'speed',
|
817 |
+
'default' => array(
|
818 |
+
'all' => '3000',
|
819 |
+
),
|
820 |
+
'units' => array(
|
821 |
+
'ms',
|
822 |
+
),
|
823 |
+
'attributes' => array(
|
824 |
+
'min' => 0,
|
825 |
+
),
|
826 |
+
'dependency' => array(
|
827 |
+
'wpcp_carousel_auto_play',
|
828 |
+
'==',
|
829 |
+
'true',
|
830 |
+
),
|
831 |
+
),
|
832 |
+
array(
|
833 |
+
'id' => 'standard_carousel_scroll_speed',
|
834 |
+
'type' => 'spacing',
|
835 |
+
'title' => __( 'Sliding Speed', 'wp-carousel-free' ),
|
836 |
+
'subtitle' => __( 'Set sliding or scrolling speed. Default value is 600 milliseconds.', 'wp-carousel-free' ),
|
837 |
+
'all' => true,
|
838 |
+
'all_text' => false,
|
839 |
+
'all_placeholder' => 'speed',
|
840 |
+
'default' => array(
|
841 |
+
'all' => '600',
|
842 |
+
),
|
843 |
+
'units' => array(
|
844 |
+
'ms',
|
845 |
+
),
|
846 |
+
'attributes' => array(
|
847 |
+
'min' => 0,
|
848 |
+
),
|
849 |
+
),
|
850 |
+
|
851 |
+
array(
|
852 |
+
'id' => 'carousel_pause_on_hover',
|
853 |
+
'type' => 'switcher',
|
854 |
+
'title' => __( 'Pause on Hover', 'wp-carousel-free' ),
|
855 |
+
'subtitle' => __( 'Enable/Disable carousel pause on hover.', 'wp-carousel-free' ),
|
856 |
+
'default' => true,
|
857 |
+
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
858 |
+
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
859 |
+
'text_width' => 95,
|
860 |
+
'dependency' => array( 'wpcp_carousel_auto_play', '==', 'true', true ),
|
861 |
+
),
|
862 |
+
array(
|
863 |
+
'id' => 'carousel_infinite',
|
864 |
+
'type' => 'switcher',
|
865 |
+
'title' => __( 'Infinite Loop', 'wp-carousel-free' ),
|
866 |
+
'subtitle' => __( 'Enable/Disable infinite loop mode.', 'wp-carousel-free' ),
|
867 |
+
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
868 |
+
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
869 |
+
'text_width' => 95,
|
870 |
+
'default' => true,
|
871 |
+
),
|
872 |
+
array(
|
873 |
+
'id' => 'wpcp_carousel_direction',
|
874 |
+
'type' => 'button_set',
|
875 |
+
'title' => __( 'Carousel Direction', 'wp-carousel-free' ),
|
876 |
+
'subtitle' => __( 'Set carousel direction as you need.', 'wp-carousel-free' ),
|
877 |
+
'options' => array(
|
878 |
+
'rtl' => __( 'Right to Left', 'wp-carousel-free' ),
|
879 |
+
'ltr' => __( 'Left to Right', 'wp-carousel-free' ),
|
880 |
+
),
|
881 |
+
'radio' => true,
|
882 |
+
'default' => 'rtl',
|
883 |
+
'dependency' => array( 'wpcp_carousel_orientation', '==', 'horizontal', true ),
|
884 |
+
),
|
885 |
+
array(
|
886 |
+
'id' => 'wpcp_carousel_row',
|
887 |
+
'class' => 'wpcp_carousel_row_pro_only',
|
888 |
+
'type' => 'column',
|
889 |
+
'title' => __( 'Carousel Row', 'wp-carousel-free' ),
|
890 |
+
'subtitle' => __( 'Set number of carousel row on device.', 'wp-carousel-free' ),
|
891 |
+
'lg_desktop' => true,
|
892 |
+
'desktop' => true,
|
893 |
+
'laptop' => true,
|
894 |
+
'tablet' => true,
|
895 |
+
'mobile' => true,
|
896 |
+
'default' => array(
|
897 |
+
'lg_desktop' => '1',
|
898 |
+
'desktop' => '1',
|
899 |
+
'laptop' => '1',
|
900 |
+
'tablet' => '1',
|
901 |
+
'mobile' => '1',
|
902 |
+
),
|
903 |
+
),
|
904 |
+
array(
|
905 |
+
'type' => 'subheading',
|
906 |
+
'content' => __( 'Navigation', 'wp-carousel-free' ),
|
907 |
+
),
|
908 |
+
// Navigation.
|
909 |
+
array(
|
910 |
+
'id' => 'wpcp_navigation',
|
911 |
+
'type' => 'button_set',
|
912 |
+
'title' => __( 'Navigation', 'wp-carousel-free' ),
|
913 |
+
'subtitle' => __( 'Show/Hide carousel navigation.', 'wp-carousel-free' ),
|
914 |
+
'options' => array(
|
915 |
+
'show' => __( 'Show', 'wp-carousel-free' ),
|
916 |
+
'hide' => __( 'Hide', 'wp-carousel-free' ),
|
917 |
+
'hide_mobile' => __( 'Hide on Mobile', 'wp-carousel-free' ),
|
918 |
+
),
|
919 |
+
'radio' => true,
|
920 |
+
'default' => 'hide_mobile',
|
921 |
+
),
|
922 |
+
|
923 |
+
array(
|
924 |
+
'id' => 'wpcp_nav_colors',
|
925 |
+
'type' => 'color_group',
|
926 |
+
'title' => __( 'Navigation Color', 'wp-carousel-free' ),
|
927 |
+
'subtitle' => __( 'Set color for the carousel navigation.', 'wp-carousel-free' ),
|
928 |
+
'options' => array(
|
929 |
+
'color1' => __( 'Color', 'wp-carousel-free' ),
|
930 |
+
'color2' => __( 'Hover Color', 'wp-carousel-free' ),
|
931 |
+
),
|
932 |
+
'default' => array(
|
933 |
+
'color1' => '#aaa',
|
934 |
+
'color2' => '#178087',
|
935 |
+
),
|
936 |
+
'dependency' => array( 'wpcp_navigation', '!=', 'hide' ),
|
937 |
+
),
|
938 |
+
// Pagination.
|
939 |
+
array(
|
940 |
+
'type' => 'subheading',
|
941 |
+
'content' => __( 'Pagination', 'wp-carousel-free' ),
|
942 |
+
),
|
943 |
+
array(
|
944 |
+
'id' => 'wpcp_pagination',
|
945 |
+
'type' => 'button_set',
|
946 |
+
'title' => __( 'Pagination', 'wp-carousel-free' ),
|
947 |
+
'subtitle' => __( 'Show/Hide carousel pagination.', 'wp-carousel-free' ),
|
948 |
+
'options' => array(
|
949 |
+
'show' => __( 'Show', 'wp-carousel-free' ),
|
950 |
+
'hide' => __( 'Hide', 'wp-carousel-free' ),
|
951 |
+
'hide_mobile' => __( 'Hide on Mobile', 'wp-carousel-free' ),
|
952 |
+
),
|
953 |
+
'radio' => true,
|
954 |
+
'default' => 'show',
|
955 |
+
),
|
956 |
+
array(
|
957 |
+
'id' => 'wpcp_pagination_color',
|
958 |
+
'type' => 'color_group',
|
959 |
+
'title' => __( 'Pagination Color', 'wp-carousel-free' ),
|
960 |
+
'subtitle' => __( 'Set color for the carousel pagination dots.', 'wp-carousel-free' ),
|
961 |
+
'options' => array(
|
962 |
+
'color1' => __( 'Color', 'wp-carousel-free' ),
|
963 |
+
'color2' => __( 'Active Color', 'wp-carousel-free' ),
|
964 |
+
),
|
965 |
+
'default' => array(
|
966 |
+
'color1' => '#cccccc',
|
967 |
+
'color2' => '#178087',
|
968 |
+
),
|
969 |
+
'dependency' => array( 'wpcp_pagination', '!=', 'hide' ),
|
970 |
+
),
|
971 |
+
|
972 |
+
// Miscellaneous.
|
973 |
+
array(
|
974 |
+
'type' => 'subheading',
|
975 |
+
'content' => __( 'Miscellaneous', 'wp-carousel-free' ),
|
976 |
+
),
|
977 |
+
array(
|
978 |
+
'id' => 'wpcp_scheduler',
|
979 |
+
'class' => 'only_pro_switcher',
|
980 |
+
'type' => 'switcher',
|
981 |
+
'title' => __( 'Scheduling', 'wp-carousel-free' ),
|
982 |
+
'subtitle' => __( 'Enable/Disable scheduling carousel.', 'wp-carousel-free' ),
|
983 |
+
'default' => false,
|
984 |
+
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
985 |
+
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
986 |
+
'text_width' => 95,
|
987 |
+
),
|
988 |
+
array(
|
989 |
+
'id' => 'slider_swipe',
|
990 |
+
'type' => 'switcher',
|
991 |
+
'title' => __( 'Touch Swipe', 'wp-carousel-free' ),
|
992 |
+
'subtitle' => __( 'Enable/Disable touch swipe mode.', 'wp-carousel-free' ),
|
993 |
+
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
994 |
+
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
995 |
+
'text_width' => 96,
|
996 |
+
'default' => true,
|
997 |
+
),
|
998 |
+
array(
|
999 |
+
'id' => 'slider_draggable',
|
1000 |
+
'type' => 'switcher',
|
1001 |
+
'title' => __( 'Mouse Draggable', 'wp-carousel-free' ),
|
1002 |
+
'subtitle' => __( 'Enable/Disable mouse draggable mode.', 'wp-carousel-free' ),
|
1003 |
+
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
1004 |
+
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
1005 |
+
'text_width' => 96,
|
1006 |
+
'default' => true,
|
1007 |
+
'dependency' => array( 'slider_swipe', '==', 'true' ),
|
1008 |
+
),
|
1009 |
+
array(
|
1010 |
+
'id' => 'carousel_swipetoslide',
|
1011 |
+
'type' => 'switcher',
|
1012 |
+
'title' => __( 'Swipe To Slide', 'wp-carousel-free' ),
|
1013 |
+
'subtitle' => __( 'Allow users to drag or swipe directly to a slide irrespective of slides to scroll.', 'wp-carousel-free' ),
|
1014 |
+
'text_on' => __( 'Enabled', 'wp-carousel-free' ),
|
1015 |
+
'text_off' => __( 'Disabled', 'wp-carousel-free' ),
|
1016 |
+
'text_width' => 96,
|
1017 |
+
'default' => false,
|
1018 |
+
'dependency' => array( 'slider_swipe', '==', 'true' ),
|
1019 |
+
),
|
1020 |
+
),
|
1021 |
+
)
|
1022 |
+
); // Carousel settings section end.
|
1023 |
+
|
1024 |
|
1025 |
|
1026 |
//
|
admin/views/option-config.php
CHANGED
@@ -112,7 +112,7 @@ SP_WPCF::createSection(
|
|
112 |
array(
|
113 |
'id' => 'wpcp_responsive_screen_setting',
|
114 |
'type' => 'column',
|
115 |
-
'title' => __( '
|
116 |
'min' => '300',
|
117 |
'unit' => true,
|
118 |
'units' => array(
|
112 |
array(
|
113 |
'id' => 'wpcp_responsive_screen_setting',
|
114 |
'type' => 'column',
|
115 |
+
'title' => __( 'Minimum Screen Width', 'wp-carousel-free' ),
|
116 |
'min' => '300',
|
117 |
'unit' => true,
|
118 |
'units' => array(
|
admin/views/sp-framework/assets/css/style.css
CHANGED
@@ -2064,6 +2064,7 @@ overflow: hidden;
|
|
2064 |
margin-top: 6px;
|
2065 |
font-weight: 400;
|
2066 |
color: #999;
|
|
|
2067 |
}
|
2068 |
|
2069 |
.wpcf-error-text {
|
@@ -3126,6 +3127,7 @@ Advanced Typography Field*/
|
|
3126 |
font-size: 13px;
|
3127 |
font-weight: 500;
|
3128 |
margin-left: 8px;
|
|
|
3129 |
text-transform: uppercase;
|
3130 |
-webkit-transition: all 0.4s;
|
3131 |
-moz-transition: all 0.4s;
|
@@ -3281,10 +3283,13 @@ Advanced Typography Field*/
|
|
3281 |
.wpcf-field-image_select figure .sp-carousel-type {
|
3282 |
text-align: center;
|
3283 |
margin-bottom: 0;
|
|
|
|
|
|
|
3284 |
}
|
3285 |
.wpcf-field-image_select .wpcf--image img {
|
3286 |
color: #7b8898;
|
3287 |
-
margin-right:
|
3288 |
outline: solid 3px transparent;
|
3289 |
border-radius: 2px;
|
3290 |
cursor: pointer;
|
@@ -3414,6 +3419,7 @@ Advanced Typography Field*/
|
|
3414 |
.wpcf-field.wpcf-field-checkbox .wpcf-help {
|
3415 |
display: inline-block;
|
3416 |
float: none;
|
|
|
3417 |
}
|
3418 |
|
3419 |
/* Import export css */
|
@@ -3594,15 +3600,30 @@ Advanced Typography Field*/
|
|
3594 |
}
|
3595 |
.wpcf-field-image_select .wpcf--image.wpcf-pro-only:after {
|
3596 |
top: 2px;
|
3597 |
-
right:
|
3598 |
border-radius: 0 1px 0 0;
|
3599 |
}
|
3600 |
.wpcf-field.wpcf-field-switcher.only_pro_switcher .sp_wpcp--switcher{
|
3601 |
background: #cbcfd0;
|
3602 |
pointer-events: none;
|
3603 |
}
|
3604 |
-
|
3605 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3606 |
opacity: .7;
|
3607 |
pointer-events: none;
|
3608 |
}
|
@@ -3621,3 +3642,23 @@ Advanced Typography Field*/
|
|
3621 |
margin-top: 7px;
|
3622 |
right: -20px;
|
3623 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2064 |
margin-top: 6px;
|
2065 |
font-weight: 400;
|
2066 |
color: #999;
|
2067 |
+
font-style: italic;
|
2068 |
}
|
2069 |
|
2070 |
.wpcf-error-text {
|
3127 |
font-size: 13px;
|
3128 |
font-weight: 500;
|
3129 |
margin-left: 8px;
|
3130 |
+
font-weight: 500;
|
3131 |
text-transform: uppercase;
|
3132 |
-webkit-transition: all 0.4s;
|
3133 |
-moz-transition: all 0.4s;
|
3283 |
.wpcf-field-image_select figure .sp-carousel-type {
|
3284 |
text-align: center;
|
3285 |
margin-bottom: 0;
|
3286 |
+
font-weight: 500;
|
3287 |
+
margin-top: 5px
|
3288 |
+
|
3289 |
}
|
3290 |
.wpcf-field-image_select .wpcf--image img {
|
3291 |
color: #7b8898;
|
3292 |
+
margin-right: 0;
|
3293 |
outline: solid 3px transparent;
|
3294 |
border-radius: 2px;
|
3295 |
cursor: pointer;
|
3419 |
.wpcf-field.wpcf-field-checkbox .wpcf-help {
|
3420 |
display: inline-block;
|
3421 |
float: none;
|
3422 |
+
vertical-align: middle;
|
3423 |
}
|
3424 |
|
3425 |
/* Import export css */
|
3600 |
}
|
3601 |
.wpcf-field-image_select .wpcf--image.wpcf-pro-only:after {
|
3602 |
top: 2px;
|
3603 |
+
right: 2px;
|
3604 |
border-radius: 0 1px 0 0;
|
3605 |
}
|
3606 |
.wpcf-field.wpcf-field-switcher.only_pro_switcher .sp_wpcp--switcher{
|
3607 |
background: #cbcfd0;
|
3608 |
pointer-events: none;
|
3609 |
}
|
3610 |
+
.wpcf-field-image_select.wpcp_grid_mode .wpcf--image img {
|
3611 |
+
width: 60px;
|
3612 |
+
outline: solid 2px transparent;
|
3613 |
+
outline-offset: -2px;
|
3614 |
+
}
|
3615 |
+
.wpcf-field-image_select.wpcp_grid_mode .wpcf--active img{
|
3616 |
+
outline-color: #1ea4b0;
|
3617 |
+
}
|
3618 |
+
.wpcf-field-image_select.wpcp_grid_mode figure:before,
|
3619 |
+
.wpcf-field-image_select.wpcp_layout figure:before {
|
3620 |
+
content: '';
|
3621 |
+
width: 0;
|
3622 |
+
}
|
3623 |
+
/* Carousel Row style */
|
3624 |
+
.only_pro_switcher,
|
3625 |
+
.pro_only_field,
|
3626 |
+
.wpcf-field-column.wpcp_carousel_row_pro_only {
|
3627 |
opacity: .7;
|
3628 |
pointer-events: none;
|
3629 |
}
|
3642 |
margin-top: 7px;
|
3643 |
right: -20px;
|
3644 |
}
|
3645 |
+
/* Extra css */
|
3646 |
+
#sp_wpcp_shortcode_options {
|
3647 |
+
border-top-color: #f1f1f1;
|
3648 |
+
}
|
3649 |
+
|
3650 |
+
#sp_wpcp_shortcode_options .wpcf-nav ul li {
|
3651 |
+
margin-bottom: -1px;
|
3652 |
+
}
|
3653 |
+
|
3654 |
+
#sp_wpcp_shortcode_options .wpcf-nav.wpcf-nav-metabox {
|
3655 |
+
border-right-color: #f1f1f1;
|
3656 |
+
border-right-color: #f1f1f1;
|
3657 |
+
background: #f1f1f1;
|
3658 |
+
margin-right: -2px;
|
3659 |
+
}
|
3660 |
+
|
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 |
+
}
|
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}.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;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}.wpcf-field-image_select .wpcf--image img{color:#7b8898;margin-right:10px;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}.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:12px;border-radius:0 1px 0 0}.wpcf-field.wpcf-field-switcher.only_pro_switcher .sp_wpcp--switcher{background:#cbcfd0;pointer-events:none}.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}
|
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)}
|
admin/views/sp-framework/assets/js/main.js
CHANGED
@@ -2446,7 +2446,7 @@
|
|
2446 |
// Field Siblings
|
2447 |
$this.children('.wpcf-field-button_set').find('.wpcf-siblings').wpcf_siblings();
|
2448 |
// $this.children('.wpcf-field-icon_select').find('.wpcf-siblings').wpcf_siblings();
|
2449 |
-
|
2450 |
$this.children('.wpcf-field-carousel_type').find('.wpcf-siblings').wpcf_siblings();
|
2451 |
// $this.children('.wpcf-field-palette').find('.wpcf-siblings').wpcf_siblings();
|
2452 |
|
@@ -2544,7 +2544,7 @@
|
|
2544 |
}, 0);
|
2545 |
}, 2000);
|
2546 |
});
|
2547 |
-
|
2548 |
|
2549 |
// WP Carousel export.
|
2550 |
var $export_type = $('.wpcp_what_export').find('input:checked').val();
|
@@ -2591,6 +2591,8 @@
|
|
2591 |
}
|
2592 |
});
|
2593 |
});
|
|
|
|
|
2594 |
// Wp Carousel import.
|
2595 |
$('.wpcp_import button.import').click(function (event) {
|
2596 |
event.preventDefault();
|
@@ -2626,8 +2628,30 @@
|
|
2626 |
}, 3000);
|
2627 |
}
|
2628 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2629 |
|
2630 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2631 |
|
2632 |
$(document).on('keyup change', '.sp_wp_carousel_page_wpcp_settings #wpcf-form', function (e) {
|
2633 |
e.preventDefault();
|
2446 |
// Field Siblings
|
2447 |
$this.children('.wpcf-field-button_set').find('.wpcf-siblings').wpcf_siblings();
|
2448 |
// $this.children('.wpcf-field-icon_select').find('.wpcf-siblings').wpcf_siblings();
|
2449 |
+
$this.children('.wpcf-field-image_select').find('.wpcf-siblings').wpcf_siblings();
|
2450 |
$this.children('.wpcf-field-carousel_type').find('.wpcf-siblings').wpcf_siblings();
|
2451 |
// $this.children('.wpcf-field-palette').find('.wpcf-siblings').wpcf_siblings();
|
2452 |
|
2544 |
}, 0);
|
2545 |
}, 2000);
|
2546 |
});
|
2547 |
+
$('.wpcp_post_pagination_type label:contains("Pro")').css({'pointer-events': 'none', 'color' : 'rgba(85,85,85,.6)!important'});
|
2548 |
|
2549 |
// WP Carousel export.
|
2550 |
var $export_type = $('.wpcp_what_export').find('input:checked').val();
|
2591 |
}
|
2592 |
});
|
2593 |
});
|
2594 |
+
|
2595 |
+
|
2596 |
// Wp Carousel import.
|
2597 |
$('.wpcp_import button.import').click(function (event) {
|
2598 |
event.preventDefault();
|
2628 |
}, 3000);
|
2629 |
}
|
2630 |
});
|
2631 |
+
// hide carousel box
|
2632 |
+
if($('.wpcp_layout input[name="sp_wpcp_shortcode_options[wpcp_layout]"]:checked').val() =='gallery'){
|
2633 |
+
$(".wpcf-nav-metabox li:nth-child(3)").hide();
|
2634 |
+
}else{
|
2635 |
+
$(".wpcf-nav-metabox li:nth-child(3)").show();
|
2636 |
+
}
|
2637 |
+
$('.wpcf-field-image_select.wpcp_layout').on('change', function() {
|
2638 |
+
if($('.wpcp_layout input[name="sp_wpcp_shortcode_options[wpcp_layout]"]:checked').val() == 'gallery' ){
|
2639 |
+
$(".wpcf-nav-metabox li:nth-child(3)").hide();
|
2640 |
+
}else{
|
2641 |
+
$(".wpcf-nav-metabox li:nth-child(3)").show();
|
2642 |
+
}
|
2643 |
+
});
|
2644 |
|
2645 |
});
|
2646 |
+
$(document).on('keyup change', '.sp_wp_carousel_page_wpcp_settings #wpcf-form', function (e) {
|
2647 |
+
e.preventDefault();
|
2648 |
+
var $button = $(this).find('.wpcf-save');
|
2649 |
+
$button.css({"background-color": "#00C263", "pointer-events": "initial"}).val('Save Settings');
|
2650 |
+
});
|
2651 |
+
$('.sp_wp_carousel_page_wpcp_settings .wpcf-save').click(function(e) {
|
2652 |
+
e.preventDefault();
|
2653 |
+
$(this).css({"background-color": "#C5C5C6","pointer-events": "none"}).val('Changes Saved');
|
2654 |
+
})
|
2655 |
|
2656 |
$(document).on('keyup change', '.sp_wp_carousel_page_wpcp_settings #wpcf-form', function (e) {
|
2657 |
e.preventDefault();
|
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-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)}));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)}))})),$(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")}))}(jQuery,window,document);
|
admin/views/sp-framework/classes/admin-options.class.php
CHANGED
@@ -707,22 +707,15 @@ if ( ! class_exists( 'SP_WPCF_Options' ) ) {
|
|
707 |
echo '<div class="wpcf-header-inner">';
|
708 |
|
709 |
echo '<div class="wpcf-header-left">';
|
710 |
-
// echo '<h1><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 709.6 557.7" style="enable-background:new 0 0 709.6 557.7;" xml:space="preserve"> <style type="text/css"> .st0{fill:#1DAEB9;}</style><g><g><polygon class="st0" points="514,317.1 437,221.5 483.7,183.9 560.7,279.5"/><polygon class="st0" points="484,375.3 437.3,337.7 514.2,242.1 560.9,279.7"/></g><g><polygon class="st0" points="196.4,317.1 149.7,279.5 226.7,183.9 273.4,221.5"/><polygon class="st0" points="226.4,375.3 149.5,279.7 196.2,242.1 273.1,337.7"/></g><g><path class="st0" d="M699,547.2H11.4V12H699V547.2z M89.1,469.5h532.2V89.7H89.1V469.5z"/></g></g></svg>' . wp_kses_post( $this->args['framework_title'] ) . '</h1>';
|
711 |
if ( $show_buttons ) {
|
712 |
-
echo '<h1><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 709.6 557.7" style="enable-background:new 0 0 709.6 557.7;" xml:space="preserve"> <style type="text/css"> .st0{fill:#1DAEB9;}</style><g><g><polygon class="st0" points="514,317.1 437,221.5 483.7,183.9 560.7,279.5"/><polygon class="st0" points="484,375.3 437.3,337.7 514.2,242.1 560.9,279.7"/></g><g><polygon class="st0" points="196.4,317.1 149.7,279.5 226.7,183.9 273.4,221.5"/><polygon class="st0" points="226.4,375.3 149.5,279.7 196.2,242.1 273.1,337.7"/></g><g><path class="st0" d="M699,547.2H11.4V12H699V547.2z M89.1,469.5h532.2V89.7H89.1V469.5z"/></g></g></svg>' . $this->args['framework_title'] . '</h1>';
|
713 |
} else {
|
714 |
-
echo '<h1 class="export-import"><img src="' . WPCAROUSELF_URL . 'admin/img/import-export.svg">' . $this->args['framework_title'] . '</h1>';
|
715 |
}
|
716 |
echo '</div>';
|
717 |
|
718 |
echo '<div class="wpcf-header-right">';
|
719 |
|
720 |
-
|
721 |
-
|
722 |
-
// echo '<div class="wpcf-form-result wpcf-form-success ' . esc_attr( $notice_class ) . '">' . wp_kses_post( $notice_text ) . '</div>';
|
723 |
-
|
724 |
-
// echo ( $this->args['show_form_warning'] ) ? '<div class="wpcf-form-result wpcf-form-warning">' . esc_html__( 'You have unsaved changes, save your changes!', 'wp-carousel-free' ) . '</div>' : '';
|
725 |
-
|
726 |
echo ( $has_nav && $this->args['show_all_options'] ) ? '<div class="wpcf-expand-all" title="' . esc_html__( 'show all settings', 'wp-carousel-free' ) . '"><i class="fa fa-outdent"></i></div>' : '';
|
727 |
|
728 |
echo ( $this->args['show_search'] ) ? '<div class="wpcf-search"><input type="text" name="wpcf-search" placeholder="' . esc_html__( 'Search...', 'wp-carousel-free' ) . '" autocomplete="off" /></div>' : '';
|
707 |
echo '<div class="wpcf-header-inner">';
|
708 |
|
709 |
echo '<div class="wpcf-header-left">';
|
|
|
710 |
if ( $show_buttons ) {
|
711 |
+
echo '<h1><svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 709.6 557.7" style="enable-background:new 0 0 709.6 557.7;" xml:space="preserve"> <style type="text/css"> .st0{fill:#1DAEB9;}</style><g><g><polygon class="st0" points="514,317.1 437,221.5 483.7,183.9 560.7,279.5"/><polygon class="st0" points="484,375.3 437.3,337.7 514.2,242.1 560.9,279.7"/></g><g><polygon class="st0" points="196.4,317.1 149.7,279.5 226.7,183.9 273.4,221.5"/><polygon class="st0" points="226.4,375.3 149.5,279.7 196.2,242.1 273.1,337.7"/></g><g><path class="st0" d="M699,547.2H11.4V12H699V547.2z M89.1,469.5h532.2V89.7H89.1V469.5z"/></g></g></svg>' . esc_attr( $this->args['framework_title'] ) . '</h1>';
|
712 |
} else {
|
713 |
+
echo '<h1 class="export-import"><img src="' . WPCAROUSELF_URL . 'admin/img/import-export.svg">' . esc_attr( $this->args['framework_title'] ) . '</h1>';
|
714 |
}
|
715 |
echo '</div>';
|
716 |
|
717 |
echo '<div class="wpcf-header-right">';
|
718 |
|
|
|
|
|
|
|
|
|
|
|
|
|
719 |
echo ( $has_nav && $this->args['show_all_options'] ) ? '<div class="wpcf-expand-all" title="' . esc_html__( 'show all settings', 'wp-carousel-free' ) . '"><i class="fa fa-outdent"></i></div>' : '';
|
720 |
|
721 |
echo ( $this->args['show_search'] ) ? '<div class="wpcf-search"><input type="text" name="wpcf-search" placeholder="' . esc_html__( 'Search...', 'wp-carousel-free' ) . '" autocomplete="off" /></div>' : '';
|
includes/class-wp-carousel-free-shortcode.php
CHANGED
@@ -79,90 +79,16 @@ class WP_Carousel_Free_Shortcode {
|
|
79 |
// General Settings.
|
80 |
$section_title = isset( $shortcode_data['section_title'] ) ? $shortcode_data['section_title'] : '';
|
81 |
|
82 |
-
|
83 |
-
$image_orderby = isset( $shortcode_data['wpcp_image_order_by'] ) ? $shortcode_data['wpcp_image_order_by'] : '';
|
84 |
-
$show_slide_image = isset( $shortcode_data['show_image'] ) ? $shortcode_data['show_image'] : '';
|
85 |
-
$show_img_title = isset( $shortcode_data['wpcp_post_title'] ) ? $shortcode_data['wpcp_post_title'] : '';
|
86 |
-
|
87 |
-
$lazy_load_img = apply_filters( 'wpcp_lazy_load_img', WPCAROUSELF_URL . 'public/css/bx_loader.gif' );
|
88 |
-
$lazy_load_image = isset( $shortcode_data['wpcp_image_lazy_load'] ) ? $shortcode_data['wpcp_image_lazy_load'] : 'false';
|
89 |
-
|
90 |
-
$_image_title_att = isset( $shortcode_data['_image_title_attr'] ) ? $shortcode_data['_image_title_attr'] : '';
|
91 |
-
$show_image_title_attr = ( $_image_title_att ) ? 'true' : 'false';
|
92 |
-
$image_sizes = isset( $shortcode_data['wpcp_image_sizes'] ) ? $shortcode_data['wpcp_image_sizes'] : '';
|
93 |
|
94 |
// Carousel Column.
|
95 |
-
$column_number
|
96 |
-
$old_column_lg_desktop = isset( $column_number['column1'] ) ? $column_number['column1'] : '5';
|
97 |
-
$column_lg_desktop = isset( $column_number['lg_desktop'] ) && ! empty( $column_number['lg_desktop'] ) ? $column_number['lg_desktop'] : $old_column_lg_desktop;
|
98 |
-
$old_column_desktop = isset( $column_number['column2'] ) ? $column_number['column2'] : '4';
|
99 |
-
$column_desktop = isset( $column_number['desktop'] ) && ! empty( $column_number['desktop'] ) ? $column_number['desktop'] : $old_column_desktop;
|
100 |
-
$old_column_sm_desktop = isset( $column_number['column3'] ) ? $column_number['column3'] : '3';
|
101 |
-
$column_sm_desktop = isset( $column_number['laptop'] ) && ! empty( $column_number['laptop'] ) ? $column_number['laptop'] : $old_column_sm_desktop;
|
102 |
-
$old_column_tablet = isset( $column_number['column4'] ) ? $column_number['column4'] : '2';
|
103 |
-
$column_tablet = isset( $column_number['tablet'] ) && ! empty( $column_number['tablet'] ) ? $column_number['tablet'] : $old_column_tablet;
|
104 |
-
$old_column_mobile = isset( $column_number['column5'] ) ? $column_number['column5'] : '1';
|
105 |
-
$column_mobile = isset( $column_number['mobile'] ) && ! empty( $column_number['mobile'] ) ? $column_number['mobile'] : $old_column_mobile;
|
106 |
|
107 |
// Carousel Settings.
|
108 |
-
$preloader
|
109 |
-
$
|
110 |
-
$old_autoplay_speed = isset( $shortcode_data['carousel_auto_play_speed'] ) && is_numeric( $shortcode_data['carousel_auto_play_speed'] ) ? $shortcode_data['carousel_auto_play_speed'] : '3000';
|
111 |
-
$autoplay_speed = isset( $shortcode_data['carousel_auto_play_speed']['all'] ) && ! empty( $shortcode_data['carousel_auto_play_speed']['all'] ) ? $shortcode_data['carousel_auto_play_speed']['all'] : $old_autoplay_speed;
|
112 |
-
$old_speed = isset( $shortcode_data['standard_carousel_scroll_speed'] ) && is_numeric( $shortcode_data['standard_carousel_scroll_speed'] ) ? $shortcode_data['standard_carousel_scroll_speed'] : '600';
|
113 |
-
$speed = isset( $shortcode_data['standard_carousel_scroll_speed']['all'] ) && ! empty( $shortcode_data['standard_carousel_scroll_speed']['all'] ) ? $shortcode_data['standard_carousel_scroll_speed']['all'] : $old_speed;
|
114 |
-
$infinite = $shortcode_data['carousel_infinite'] ? 'true' : 'false';
|
115 |
-
$pause_on_hover = $shortcode_data['carousel_pause_on_hover'] ? 'true' : 'false';
|
116 |
-
$carousel_direction = isset( $shortcode_data['wpcp_carousel_direction'] ) ? $shortcode_data['wpcp_carousel_direction'] : '';
|
117 |
-
|
118 |
-
$draggable = $shortcode_data['slider_draggable'] ? 'true' : 'false';
|
119 |
-
$swipe = $shortcode_data['slider_swipe'] ? 'true' : 'false';
|
120 |
-
$is_swipetoslide = isset( $shortcode_data['carousel_swipetoslide'] ) ? $shortcode_data['carousel_swipetoslide'] : true;
|
121 |
-
$swipetoslide = $is_swipetoslide ? 'true' : 'false';
|
122 |
-
|
123 |
-
$post_order_by = ( isset( $shortcode_data['wpcp_post_order_by'] ) ? $shortcode_data['wpcp_post_order_by'] : '' );
|
124 |
-
$post_order = ( isset( $shortcode_data['wpcp_post_order'] ) ? $shortcode_data['wpcp_post_order'] : '' );
|
125 |
-
|
126 |
-
$wpcp_dots = isset( $shortcode_data['wpcp_pagination'] ) ? $shortcode_data['wpcp_pagination'] : '';
|
127 |
-
switch ( $wpcp_dots ) {
|
128 |
-
case 'show':
|
129 |
-
$dots = 'true';
|
130 |
-
$dots_mobile = 'true';
|
131 |
-
break;
|
132 |
-
case 'hide':
|
133 |
-
$dots = 'false';
|
134 |
-
$dots_mobile = 'false';
|
135 |
-
break;
|
136 |
-
case 'hide_mobile':
|
137 |
-
$dots = 'true';
|
138 |
-
$dots_mobile = 'false';
|
139 |
-
break;
|
140 |
-
}
|
141 |
-
$wpcp_arrows = isset( $shortcode_data['wpcp_navigation'] ) ? $shortcode_data['wpcp_navigation'] : 'show';
|
142 |
-
switch ( $wpcp_arrows ) {
|
143 |
-
case 'show':
|
144 |
-
$arrows = 'true';
|
145 |
-
$arrows_mobile = 'true';
|
146 |
-
break;
|
147 |
-
case 'hide':
|
148 |
-
$arrows = 'false';
|
149 |
-
$arrows_mobile = 'false';
|
150 |
-
break;
|
151 |
-
case 'hide_mobile':
|
152 |
-
$arrows = 'true';
|
153 |
-
$arrows_mobile = 'false';
|
154 |
-
break;
|
155 |
-
}
|
156 |
-
|
157 |
-
// Responsive screen sizes.
|
158 |
-
$wpcp_screen_sizes = wpcf_get_option( 'wpcp_responsive_screen_setting' );
|
159 |
-
$desktop_size = isset( $wpcp_screen_sizes['desktop'] ) ? $wpcp_screen_sizes['desktop'] : '1200';
|
160 |
-
$laptop_size = isset( $wpcp_screen_sizes['laptop'] ) ? $wpcp_screen_sizes['laptop'] : '980';
|
161 |
-
$tablet_size = isset( $wpcp_screen_sizes['tablet'] ) ? $wpcp_screen_sizes['tablet'] : '736';
|
162 |
-
$mobile_size = isset( $wpcp_screen_sizes['mobile'] ) ? $wpcp_screen_sizes['mobile'] : '480';
|
163 |
-
|
164 |
// Carousel Classes.
|
165 |
-
$carousel_classes = 'wpcp-carousel-section sp-wpcp-' . $post_id . '
|
166 |
if ( 'image-carousel' === $carousel_type ) {
|
167 |
$carousel_classes .= ' wpcp-image-carousel';
|
168 |
} elseif ( 'post-carousel' === $carousel_type ) {
|
@@ -171,45 +97,94 @@ class WP_Carousel_Free_Shortcode {
|
|
171 |
$carousel_classes .= ' wpcp-product-carousel';
|
172 |
}
|
173 |
|
174 |
-
// Carousel Configurations.
|
175 |
-
if ( wpcf_get_option( 'wpcp_slick_js', true ) ) {
|
176 |
-
wp_enqueue_script( 'wpcf-slick' );
|
177 |
-
}
|
178 |
-
wp_enqueue_script( 'wpcf-slick-config' );
|
179 |
-
|
180 |
// Preloader classes.
|
181 |
if ( $preloader ) {
|
182 |
wp_enqueue_script( 'wpcp-preloader' );
|
183 |
$carousel_classes .= ' wpcp-preloader';
|
184 |
}
|
185 |
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
ob_start();
|
200 |
-
include WPCAROUSELF_PATH . '/public/templates/
|
201 |
$html = ob_get_contents();
|
202 |
ob_end_clean();
|
203 |
-
|
204 |
-
return apply_filters( 'sp_wpcp_post_carousel', $html, $post_id );
|
205 |
}
|
206 |
-
if ( '
|
207 |
ob_start();
|
208 |
-
include WPCAROUSELF_PATH . '/public/templates/
|
209 |
$html = ob_get_contents();
|
210 |
ob_end_clean();
|
211 |
-
|
212 |
-
return apply_filters( 'sp_wpcp_product_carousel', $html, $post_id );
|
213 |
}
|
214 |
|
215 |
return '';
|
79 |
// General Settings.
|
80 |
$section_title = isset( $shortcode_data['section_title'] ) ? $shortcode_data['section_title'] : '';
|
81 |
|
82 |
+
$wpcp_layout = isset( $shortcode_data['wpcp_layout'] ) ? $shortcode_data['wpcp_layout'] : 'carousel';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
|
84 |
// Carousel Column.
|
85 |
+
$column_number = isset( $shortcode_data['wpcp_number_of_columns'] ) ? $shortcode_data['wpcp_number_of_columns'] : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
|
87 |
// Carousel Settings.
|
88 |
+
$preloader = isset( $shortcode_data['wpcp_preloader'] ) ? $shortcode_data['wpcp_preloader'] : true;
|
89 |
+
$nav_class = 'gallery' === $wpcp_layout ? 'wpcp-gallery-wrapper' : ' nav-vertical-center';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
// Carousel Classes.
|
91 |
+
$carousel_classes = 'wpcp-carousel-section sp-wpcp-' . $post_id . ' ' . $nav_class;
|
92 |
if ( 'image-carousel' === $carousel_type ) {
|
93 |
$carousel_classes .= ' wpcp-image-carousel';
|
94 |
} elseif ( 'post-carousel' === $carousel_type ) {
|
97 |
$carousel_classes .= ' wpcp-product-carousel';
|
98 |
}
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
// Preloader classes.
|
101 |
if ( $preloader ) {
|
102 |
wp_enqueue_script( 'wpcp-preloader' );
|
103 |
$carousel_classes .= ' wpcp-preloader';
|
104 |
}
|
105 |
|
106 |
+
if ( 'carousel' === $wpcp_layout ) {
|
107 |
+
|
108 |
+
$wpcp_dots = isset( $shortcode_data['wpcp_pagination'] ) ? $shortcode_data['wpcp_pagination'] : '';
|
109 |
+
switch ( $wpcp_dots ) {
|
110 |
+
case 'show':
|
111 |
+
$dots = 'true';
|
112 |
+
$dots_mobile = 'true';
|
113 |
+
break;
|
114 |
+
case 'hide':
|
115 |
+
$dots = 'false';
|
116 |
+
$dots_mobile = 'false';
|
117 |
+
break;
|
118 |
+
case 'hide_mobile':
|
119 |
+
$dots = 'true';
|
120 |
+
$dots_mobile = 'false';
|
121 |
+
break;
|
122 |
+
}
|
123 |
+
$wpcp_arrows = isset( $shortcode_data['wpcp_navigation'] ) ? $shortcode_data['wpcp_navigation'] : 'show';
|
124 |
+
switch ( $wpcp_arrows ) {
|
125 |
+
case 'show':
|
126 |
+
$arrows = 'true';
|
127 |
+
$arrows_mobile = 'true';
|
128 |
+
break;
|
129 |
+
case 'hide':
|
130 |
+
$arrows = 'false';
|
131 |
+
$arrows_mobile = 'false';
|
132 |
+
break;
|
133 |
+
case 'hide_mobile':
|
134 |
+
$arrows = 'true';
|
135 |
+
$arrows_mobile = 'false';
|
136 |
+
break;
|
137 |
+
}
|
138 |
+
|
139 |
+
// Responsive screen sizes.
|
140 |
+
$wpcp_screen_sizes = wpcf_get_option( 'wpcp_responsive_screen_setting' );
|
141 |
+
$desktop_size = isset( $wpcp_screen_sizes['desktop'] ) && ! empty( $wpcp_screen_sizes['desktop'] ) ? $wpcp_screen_sizes['desktop'] : '1200';
|
142 |
+
$laptop_size = isset( $wpcp_screen_sizes['laptop'] ) && ! empty( $wpcp_screen_sizes['laptop'] ) ? $wpcp_screen_sizes['laptop'] : '980';
|
143 |
+
$tablet_size = isset( $wpcp_screen_sizes['tablet'] ) && ! empty( $wpcp_screen_sizes['tablet'] ) ? $wpcp_screen_sizes['tablet'] : '736';
|
144 |
+
$mobile_size = isset( $wpcp_screen_sizes['mobile'] ) && ! empty( $wpcp_screen_sizes['mobile'] ) ? $wpcp_screen_sizes['mobile'] : '480';
|
145 |
+
$old_column_lg_desktop = isset( $column_number['column1'] ) ? $column_number['column1'] : '5';
|
146 |
+
$column_lg_desktop = isset( $column_number['lg_desktop'] ) && ! empty( $column_number['lg_desktop'] ) ? $column_number['lg_desktop'] : $old_column_lg_desktop;
|
147 |
+
$old_column_desktop = isset( $column_number['column2'] ) ? $column_number['column2'] : '4';
|
148 |
+
$column_desktop = isset( $column_number['desktop'] ) && ! empty( $column_number['desktop'] ) ? $column_number['desktop'] : $old_column_desktop;
|
149 |
+
$old_column_sm_desktop = isset( $column_number['column3'] ) ? $column_number['column3'] : '3';
|
150 |
+
$column_sm_desktop = isset( $column_number['laptop'] ) && ! empty( $column_number['laptop'] ) ? $column_number['laptop'] : $old_column_sm_desktop;
|
151 |
+
$old_column_tablet = isset( $column_number['column4'] ) ? $column_number['column4'] : '2';
|
152 |
+
$column_tablet = isset( $column_number['tablet'] ) && ! empty( $column_number['tablet'] ) ? $column_number['tablet'] : $old_column_tablet;
|
153 |
+
$old_column_mobile = isset( $column_number['column5'] ) ? $column_number['column5'] : '1';
|
154 |
+
$column_mobile = isset( $column_number['mobile'] ) && ! empty( $column_number['mobile'] ) ? $column_number['mobile'] : $old_column_mobile;
|
155 |
+
$auto_play = $shortcode_data['wpcp_carousel_auto_play'] ? 'true' : 'false';
|
156 |
+
$old_autoplay_speed = isset( $shortcode_data['carousel_auto_play_speed'] ) && is_numeric( $shortcode_data['carousel_auto_play_speed'] ) ? $shortcode_data['carousel_auto_play_speed'] : '3000';
|
157 |
+
$autoplay_speed = isset( $shortcode_data['carousel_auto_play_speed']['all'] ) && ! empty( $shortcode_data['carousel_auto_play_speed']['all'] ) ? $shortcode_data['carousel_auto_play_speed']['all'] : $old_autoplay_speed;
|
158 |
+
$old_speed = isset( $shortcode_data['standard_carousel_scroll_speed'] ) && is_numeric( $shortcode_data['standard_carousel_scroll_speed'] ) ? $shortcode_data['standard_carousel_scroll_speed'] : '600';
|
159 |
+
$speed = isset( $shortcode_data['standard_carousel_scroll_speed']['all'] ) && ! empty( $shortcode_data['standard_carousel_scroll_speed']['all'] ) ? $shortcode_data['standard_carousel_scroll_speed']['all'] : $old_speed;
|
160 |
+
$infinite = $shortcode_data['carousel_infinite'] ? 'true' : 'false';
|
161 |
+
$pause_on_hover = $shortcode_data['carousel_pause_on_hover'] ? 'true' : 'false';
|
162 |
+
$carousel_direction = isset( $shortcode_data['wpcp_carousel_direction'] ) ? $shortcode_data['wpcp_carousel_direction'] : '';
|
163 |
+
$lazy_load_image = isset( $shortcode_data['wpcp_image_lazy_load'] ) ? $shortcode_data['wpcp_image_lazy_load'] : 'false';
|
164 |
+
$draggable = $shortcode_data['slider_draggable'] ? 'true' : 'false';
|
165 |
+
$swipe = $shortcode_data['slider_swipe'] ? 'true' : 'false';
|
166 |
+
$is_swipetoslide = isset( $shortcode_data['carousel_swipetoslide'] ) ? $shortcode_data['carousel_swipetoslide'] : true;
|
167 |
+
$swipetoslide = $is_swipetoslide ? 'true' : 'false';
|
168 |
+
$rtl = ( 'ltr' === $carousel_direction ) ? 'true' : 'false';
|
169 |
+
$carousel_classes .= ' wpcp-standard';
|
170 |
+
$wpcp_slick_options = 'data-slick=\'{ "accessibility":true, "arrows":' . $arrows . ', "autoplay":' . $auto_play . ', "autoplaySpeed":' . $autoplay_speed . ', "dots":' . $dots . ', "infinite":' . $infinite . ', "speed":' . $speed . ', "pauseOnHover":' . $pause_on_hover . ', "slidesToShow":' . $column_lg_desktop . ', "responsive":[ { "breakpoint":' . $desktop_size . ', "settings": { "slidesToShow":' . $column_desktop . ' } }, { "breakpoint":' . $laptop_size . ', "settings":{ "slidesToShow":' . $column_sm_desktop . ' } }, { "breakpoint":' . $tablet_size . ', "settings": { "slidesToShow":' . $column_tablet . ' } }, {"breakpoint":' . $mobile_size . ', "settings":{ "slidesToShow":' . $column_mobile . ', "arrows": ' . $arrows_mobile . ', "dots": ' . $dots_mobile . ' } } ], "rtl":' . $rtl . ', "lazyLoad": "' . $lazy_load_image . '", "swipe": ' . $swipe . ', "draggable": ' . $draggable . ', "swipeToSlide":' . $swipetoslide . ' }\' ';
|
171 |
+
// Carousel Configurations.
|
172 |
+
if ( wpcf_get_option( 'wpcp_slick_js', true ) ) {
|
173 |
+
wp_enqueue_script( 'wpcf-slick' );
|
174 |
+
}
|
175 |
+
wp_enqueue_script( 'wpcf-slick-config' );
|
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 |
return '';
|
public/Helper.php
ADDED
@@ -0,0 +1,388 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* The Helper class to manage all public facing stuffs.
|
5 |
+
*
|
6 |
+
* @since 2.3.4
|
7 |
+
* @package WP_Carousel_Free
|
8 |
+
* @subpackage WP_Carousel_Free/public
|
9 |
+
*/
|
10 |
+
|
11 |
+
if ( ! class_exists( 'Helper' ) ) {
|
12 |
+
/**
|
13 |
+
* The Helper class.
|
14 |
+
*
|
15 |
+
* @since 2.3.4
|
16 |
+
*/
|
17 |
+
class Helper {
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Holds the class object.
|
21 |
+
*
|
22 |
+
* @since 2.3.4
|
23 |
+
* @var object
|
24 |
+
*/
|
25 |
+
public static $instance;
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Contain the version class object.
|
29 |
+
*
|
30 |
+
* @since 2.3.4
|
31 |
+
* @var object
|
32 |
+
*/
|
33 |
+
public $version;
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Holds the carousel data.
|
37 |
+
*
|
38 |
+
* @since 2.3.4
|
39 |
+
* @var array
|
40 |
+
*/
|
41 |
+
public $data;
|
42 |
+
|
43 |
+
/**
|
44 |
+
* YouTube video support.
|
45 |
+
*
|
46 |
+
* @since 2.3.4
|
47 |
+
* @var boolean
|
48 |
+
*/
|
49 |
+
public $youtube = false;
|
50 |
+
|
51 |
+
/**
|
52 |
+
* Vimeo video support.
|
53 |
+
*
|
54 |
+
* @since 2.3.4
|
55 |
+
* @var boolean
|
56 |
+
*/
|
57 |
+
public $vimeo = false;
|
58 |
+
|
59 |
+
/**
|
60 |
+
* The post ID.
|
61 |
+
*
|
62 |
+
* @var string $post_id The post id of the carousel shortcode.
|
63 |
+
*/
|
64 |
+
public $post_id;
|
65 |
+
|
66 |
+
|
67 |
+
/**
|
68 |
+
* Allows for accessing single instance of class. Class should only be constructed once per call.
|
69 |
+
*
|
70 |
+
* @since 2.3.4
|
71 |
+
* @static
|
72 |
+
* @return Helper instance.
|
73 |
+
*/
|
74 |
+
public static function instance() {
|
75 |
+
if ( is_null( self::$instance ) ) {
|
76 |
+
self::$instance = new self();
|
77 |
+
}
|
78 |
+
return self::$instance;
|
79 |
+
}
|
80 |
+
|
81 |
+
/**
|
82 |
+
* Custom Template locator.
|
83 |
+
*
|
84 |
+
* @param mixed $template_name template name .
|
85 |
+
* @param mixed $template_path template path .
|
86 |
+
* @param mixed $default_path default path .
|
87 |
+
* @return string
|
88 |
+
*/
|
89 |
+
public static function wpcf_locate_template( $template_name, $template_path = '', $default_path = '' ) {
|
90 |
+
if ( ! $template_path ) {
|
91 |
+
$template_path = 'wp-carousel-free/templates';
|
92 |
+
}
|
93 |
+
|
94 |
+
if ( ! $default_path ) {
|
95 |
+
$default_path = WPCAROUSELF_PATH . 'public/templates/';
|
96 |
+
}
|
97 |
+
|
98 |
+
$template = locate_template(
|
99 |
+
array(
|
100 |
+
trailingslashit( $template_path ) . $template_name,
|
101 |
+
$template_name,
|
102 |
+
)
|
103 |
+
);
|
104 |
+
|
105 |
+
// Get default template.
|
106 |
+
if ( ! $template ) {
|
107 |
+
$template = $default_path . $template_name;
|
108 |
+
}
|
109 |
+
// Return what we found.
|
110 |
+
return $template;
|
111 |
+
}
|
112 |
+
/**
|
113 |
+
* Section title
|
114 |
+
*
|
115 |
+
* @param mixed $post_id post id.
|
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' );
|
123 |
+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
124 |
+
echo apply_filters( 'sp_wpcp_section_title', ob_get_clean() );
|
125 |
+
}
|
126 |
+
}
|
127 |
+
/**
|
128 |
+
* Preloader
|
129 |
+
*
|
130 |
+
* @param int $post_id post id.
|
131 |
+
* @param bool $preloader show preload.
|
132 |
+
* @return void
|
133 |
+
*/
|
134 |
+
public static function preloader( $post_id, $preloader ) {
|
135 |
+
$preloader_image = WPCAROUSELF_URL . 'public/css/ajax-loader.gif';
|
136 |
+
if ( ! empty( $preloader_image ) && $preloader ) {
|
137 |
+
ob_start();
|
138 |
+
include self::wpcf_locate_template( 'preloader.php' );
|
139 |
+
echo apply_filters( 'sp_wpcp_preloader', ob_get_clean() );
|
140 |
+
}
|
141 |
+
}
|
142 |
+
|
143 |
+
/**
|
144 |
+
* All loop items.
|
145 |
+
*
|
146 |
+
* @param array $upload_data upper upload data.
|
147 |
+
* @param array $shortcode_data bottom metabox.
|
148 |
+
* @param string $carousel_type carousel type.
|
149 |
+
* @param array $post_id carousel post id.
|
150 |
+
* @return void
|
151 |
+
*/
|
152 |
+
public static function get_item_loops( $upload_data, $shortcode_data, $carousel_type, $post_id ) {
|
153 |
+
$show_slide_image = isset( $shortcode_data['show_image'] ) ? $shortcode_data['show_image'] : '';
|
154 |
+
$show_img_title = isset( $shortcode_data['wpcp_post_title'] ) ? $shortcode_data['wpcp_post_title'] : '';
|
155 |
+
$wpcp_layout = isset( $shortcode_data['wpcp_layout'] ) ? $shortcode_data['wpcp_layout'] : 'carousel';
|
156 |
+
$lazy_load_img = apply_filters( 'wpcp_lazy_load_img', WPCAROUSELF_URL . 'public/css/bx_loader.gif' );
|
157 |
+
$lazy_load_image = isset( $shortcode_data['wpcp_image_lazy_load'] ) ? $shortcode_data['wpcp_image_lazy_load'] : 'false';
|
158 |
+
|
159 |
+
$_image_title_att = isset( $shortcode_data['_image_title_attr'] ) ? $shortcode_data['_image_title_attr'] : '';
|
160 |
+
$show_image_title_attr = ( $_image_title_att ) ? 'true' : 'false';
|
161 |
+
$image_sizes = isset( $shortcode_data['wpcp_image_sizes'] ) ? $shortcode_data['wpcp_image_sizes'] : '';
|
162 |
+
$post_order_by = isset( $shortcode_data['wpcp_post_order_by'] ) ? $shortcode_data['wpcp_post_order_by'] : '';
|
163 |
+
$post_order = isset( $shortcode_data['wpcp_post_order'] ) ? $shortcode_data['wpcp_post_order'] : '';
|
164 |
+
$grid_column = '';
|
165 |
+
if ( 'gallery' === $wpcp_layout ) {
|
166 |
+
$column_number = isset( $shortcode_data['wpcp_number_of_columns'] ) ? $shortcode_data['wpcp_number_of_columns'] : '';
|
167 |
+
$column_lg_desktop = isset( $column_number['lg_desktop'] ) && ! empty( $column_number['lg_desktop'] ) ? $column_number['lg_desktop'] : '5';
|
168 |
+
$column_desktop = isset( $column_number['desktop'] ) && ! empty( $column_number['desktop'] ) ? $column_number['desktop'] : '4';
|
169 |
+
$column_sm_desktop = isset( $column_number['laptop'] ) && ! empty( $column_number['laptop'] ) ? $column_number['laptop'] : '3';
|
170 |
+
$column_tablet = isset( $column_number['tablet'] ) && ! empty( $column_number['tablet'] ) ? $column_number['tablet'] : '2';
|
171 |
+
$column_mobile = isset( $column_number['mobile'] ) && ! empty( $column_number['mobile'] ) ? $column_number['mobile'] : '1';
|
172 |
+
$grid_column = "wpcpro-col-xs-$column_mobile wpcpro-col-sm-$column_tablet wpcpro-col-md-$column_sm_desktop wpcpro-col-lg-$column_desktop wpcpro-col-xl-$column_lg_desktop";
|
173 |
+
}
|
174 |
+
|
175 |
+
if ( 'product-carousel' === $carousel_type ) {
|
176 |
+
$show_product_name = $shortcode_data['wpcp_product_name'];
|
177 |
+
$show_product_price = $shortcode_data['wpcp_product_price'];
|
178 |
+
$show_product_rating = $shortcode_data['wpcp_product_rating'];
|
179 |
+
$show_product_cart = $shortcode_data['wpcp_product_cart'];
|
180 |
+
$product_query = self::wpcp_query( $upload_data, $shortcode_data, $post_id );
|
181 |
+
if ( $product_query->have_posts() ) {
|
182 |
+
while ( $product_query->have_posts() ) :
|
183 |
+
$product_query->the_post();
|
184 |
+
global $product, $woocommerce;
|
185 |
+
require self::wpcf_locate_template( 'loop/product-type.php' );
|
186 |
+
endwhile;
|
187 |
+
wp_reset_postdata();
|
188 |
+
} else {
|
189 |
+
echo '<h2 class="sp-not-found-any-post" >' . esc_html__( 'No products found', 'wp-carousel-free' ) . '</h2>';
|
190 |
+
}
|
191 |
+
}
|
192 |
+
if ( 'post-carousel' === $carousel_type ) {
|
193 |
+
$show_post_content = $shortcode_data['wpcp_post_content_show'];
|
194 |
+
$show_post_date = $shortcode_data['wpcp_post_date_show'];
|
195 |
+
$show_post_author = $shortcode_data['wpcp_post_author_show'];
|
196 |
+
|
197 |
+
$post_query = self::wpcp_query( $upload_data, $shortcode_data, $post_id );
|
198 |
+
if ( $post_query->have_posts() ) {
|
199 |
+
while ( $post_query->have_posts() ) :
|
200 |
+
$post_query->the_post();
|
201 |
+
require self::wpcf_locate_template( 'loop/post-type.php' );
|
202 |
+
endwhile;
|
203 |
+
wp_reset_postdata();
|
204 |
+
} else {
|
205 |
+
echo '<h2 class="wpcp-no-post-found" >' . esc_html__( 'No posts found', 'wp-carousel-free' ) . '</h2>';
|
206 |
+
}
|
207 |
+
}
|
208 |
+
if ( 'image-carousel' === $carousel_type ) {
|
209 |
+
$gallery_ids = $upload_data['wpcp_gallery'];
|
210 |
+
$the_image_title_at = isset( $shortcode_data['wpcp_logo_link_nofollow'] ) ? $shortcode_data['wpcp_logo_link_nofollow'] : '';
|
211 |
+
$image_link_nofollow = $the_image_title_at ? ' rel="nofollow"' : '';
|
212 |
+
if ( empty( $gallery_ids ) ) {
|
213 |
+
return;
|
214 |
+
}
|
215 |
+
$image_orderby = isset( $shortcode_data['wpcp_image_order_by'] ) ? $shortcode_data['wpcp_image_order_by'] : '';
|
216 |
+
$attachments = explode( ',', $gallery_ids );
|
217 |
+
( ( 'rand' === $image_orderby ) ? shuffle( $attachments ) : '' );
|
218 |
+
if ( is_array( $attachments ) || is_object( $attachments ) ) :
|
219 |
+
foreach ( $attachments as $attachment ) {
|
220 |
+
require self::wpcf_locate_template( 'loop/image-type.php' );
|
221 |
+
} // End foreach.
|
222 |
+
endif;
|
223 |
+
}
|
224 |
+
}
|
225 |
+
/**
|
226 |
+
* Get pagination
|
227 |
+
*
|
228 |
+
* @param array $upload_data shortcode upper metabox.
|
229 |
+
* @param array $shortcode_data shortcode bottom metabox.
|
230 |
+
* @param int $post_id shortcode id.
|
231 |
+
* @return void
|
232 |
+
*/
|
233 |
+
public static function get_pagination( $upload_data, $shortcode_data, $post_id ) {
|
234 |
+
$wpcp_pagination = isset( $shortcode_data['wpcp_source_pagination'] ) ? $shortcode_data['wpcp_source_pagination'] : false;
|
235 |
+
$wpcp_layout = isset( $shortcode_data['wpcp_layout'] ) ? $shortcode_data['wpcp_layout'] : 'carousel';
|
236 |
+
if ( $wpcp_pagination && 'carousel' !== $wpcp_layout ) {
|
237 |
+
$carousel_type = isset( $upload_data['wpcp_carousel_type'] ) ? $upload_data['wpcp_carousel_type'] : '';
|
238 |
+
if ( 'post-carousel' === $carousel_type || 'product-carousel' === $carousel_type ) {
|
239 |
+
$wpcp_layout = isset( $shortcode_data['wpcp_layout'] ) ? $shortcode_data['wpcp_layout'] : 'carousel';
|
240 |
+
$wpcp_query = self::wpcp_query( $upload_data, $shortcode_data, $post_id );
|
241 |
+
|
242 |
+
$total_pages = $wpcp_query->max_num_pages;
|
243 |
+
// Full wp pagination example.
|
244 |
+
$wppaged = 'paged' . $post_id;
|
245 |
+
$args = array(
|
246 |
+
'format' => '?' . $wppaged . '=%#%',
|
247 |
+
// 'format' => '?paged=%#%',
|
248 |
+
'current' => isset( $_GET[ "$wppaged" ] ) ? $_GET[ "$wppaged" ] : 1,
|
249 |
+
'total' => $total_pages,
|
250 |
+
'prev_next' => true,
|
251 |
+
'next_text' => '<i class="fa fa-angle-right"></i>',
|
252 |
+
'prev_text' => '<i class="fa fa-angle-left"></i>',
|
253 |
+
// 'type' => $type,
|
254 |
+
'show_all' => true,
|
255 |
+
'aria_current' => true,
|
256 |
+
);
|
257 |
+
$page_links = paginate_links( $args );
|
258 |
+
|
259 |
+
include self::wpcf_locate_template( 'pagination.php' );
|
260 |
+
}
|
261 |
+
}
|
262 |
+
}
|
263 |
+
/**
|
264 |
+
* Post and product query
|
265 |
+
*
|
266 |
+
* @param array $upload_data upper upload data.
|
267 |
+
* @param array $shortcode_data bottom metabox.
|
268 |
+
* @param mixed $post_id shortcode id.
|
269 |
+
* @return object
|
270 |
+
*/
|
271 |
+
public static function wpcp_query( $upload_data, $shortcode_data, $post_id ) {
|
272 |
+
$carousel_type = isset( $upload_data['wpcp_carousel_type'] ) ? $upload_data['wpcp_carousel_type'] : '';
|
273 |
+
|
274 |
+
// Order orderby.
|
275 |
+
$post_order_by = isset( $shortcode_data['wpcp_post_order_by'] ) ? $shortcode_data['wpcp_post_order_by'] : '';
|
276 |
+
$post_order = isset( $shortcode_data['wpcp_post_order'] ) ? $shortcode_data['wpcp_post_order'] : '';
|
277 |
+
$post_per_page = isset( $shortcode_data['post_per_page'] ) ? (int) $shortcode_data['post_per_page'] : 10;
|
278 |
+
$wpcp_pagination = isset( $shortcode_data['wpcp_source_pagination'] ) ? $shortcode_data['wpcp_source_pagination'] : false;
|
279 |
+
$wpcp_layout = isset( $shortcode_data['wpcp_layout'] ) ? $shortcode_data['wpcp_layout'] : 'carousel';
|
280 |
+
$final_args = array();
|
281 |
+
if ( 'post-carousel' === $carousel_type ) {
|
282 |
+
$number_of_total_posts = isset( $upload_data['number_of_total_posts'] ) && ! empty( $upload_data['number_of_total_posts'] ) ? $upload_data['number_of_total_posts'] : -1;
|
283 |
+
$include_current_post = apply_filters( 'sp_wpcp_include_current_post', false );
|
284 |
+
$args = array(
|
285 |
+
'post_type' => 'post',
|
286 |
+
'post_status' => 'publish',
|
287 |
+
'fields' => 'ids',
|
288 |
+
'orderby' => $post_order_by,
|
289 |
+
'order' => $post_order, // If used random order, Randomly limited ids come from all ids.
|
290 |
+
'posts_per_page' => $number_of_total_posts,
|
291 |
+
'post__not_in' => array( get_the_ID() ),
|
292 |
+
);
|
293 |
+
if ( $include_current_post ) {
|
294 |
+
unset( $args['post__not_in'] );
|
295 |
+
}
|
296 |
+
// Get array of all queried members id.
|
297 |
+
$queried_post_ids = get_posts( $args );
|
298 |
+
$number_of_total_posts = count( $queried_post_ids );
|
299 |
+
if ( ! empty( $queried_post_ids ) ) {
|
300 |
+
if ( 'carousel' !== $wpcp_layout && $wpcp_pagination ) {
|
301 |
+
$wppaged = 'paged' . $post_id;
|
302 |
+
$paged = isset( $_GET[ "$wppaged" ] ) ? $_GET[ "$wppaged" ] : 1;
|
303 |
+
$final_args = array(
|
304 |
+
'post_type' => 'post',
|
305 |
+
'post_status' => 'publish',
|
306 |
+
'order' => $post_order,
|
307 |
+
'orderby' => $post_order_by,
|
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 {
|
315 |
+
$final_args = array(
|
316 |
+
'post_type' => 'post',
|
317 |
+
'post_status' => 'publish',
|
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 |
+
);
|
325 |
+
}
|
326 |
+
}
|
327 |
+
}
|
328 |
+
if ( 'product-carousel' === $carousel_type && ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ), true ) ) ) {
|
329 |
+
$number_of_total_products = isset( $upload_data['wpcp_total_products'] ) && ! empty( $upload_data['wpcp_total_products'] ) ? $upload_data['wpcp_total_products'] : -1;
|
330 |
+
$default_args = array(
|
331 |
+
'post_type' => 'product',
|
332 |
+
'post_status' => 'publish',
|
333 |
+
'ignore_sticky_posts' => 1,
|
334 |
+
'posts_per_page' => $number_of_total_products,
|
335 |
+
'fields' => 'ids',
|
336 |
+
'orderby' => $post_order_by,
|
337 |
+
'order' => $post_order,
|
338 |
+
'meta_query' => array(
|
339 |
+
array(
|
340 |
+
'key' => '_stock_status',
|
341 |
+
'value' => 'outofstock',
|
342 |
+
'compare' => 'NOT IN',
|
343 |
+
),
|
344 |
+
),
|
345 |
+
);
|
346 |
+
|
347 |
+
$queried_post_ids = get_posts( $default_args );
|
348 |
+
$number_of_total_posts = count( $queried_post_ids );
|
349 |
+
|
350 |
+
if ( ! empty( $queried_post_ids ) ) {
|
351 |
+
|
352 |
+
if ( 'carousel' !== $wpcp_layout && $wpcp_pagination ) {
|
353 |
+
$wppaged = 'paged' . $post_id;
|
354 |
+
$paged = isset( $_GET[ "$wppaged" ] ) ? $_GET[ "$wppaged" ] : 1;
|
355 |
+
$final_args = array(
|
356 |
+
'post_type' => 'product',
|
357 |
+
'post_status' => 'publish',
|
358 |
+
'order' => $post_order,
|
359 |
+
'orderby' => $post_order_by,
|
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 {
|
367 |
+
$final_args = array(
|
368 |
+
'post_type' => 'product',
|
369 |
+
'post_status' => 'publish',
|
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 |
+
);
|
377 |
+
}
|
378 |
+
}
|
379 |
+
}
|
380 |
+
$post_query = new WP_Query( $final_args );
|
381 |
+
|
382 |
+
return $post_query;
|
383 |
+
}
|
384 |
+
|
385 |
+
}
|
386 |
+
|
387 |
+
}
|
388 |
+
|
public/class-wp-carousel-free-public.php
CHANGED
@@ -79,6 +79,8 @@ class WP_Carousel_Free_Public {
|
|
79 |
foreach ( $carousel_ids as $post_id ) {
|
80 |
include WPCAROUSELF_PATH . '/public/dynamic-style.php';
|
81 |
}
|
|
|
|
|
82 |
wp_add_inline_style( $this->plugin_name, $the_wpcf_dynamic_css );
|
83 |
}
|
84 |
|
79 |
foreach ( $carousel_ids as $post_id ) {
|
80 |
include WPCAROUSELF_PATH . '/public/dynamic-style.php';
|
81 |
}
|
82 |
+
$the_wpcf_dynamic_css .= trim( html_entity_decode( wpcf_get_option( 'wpcp_custom_css' ) ) );
|
83 |
+
include WPCAROUSELF_PATH . '/public/responsive.php';
|
84 |
wp_add_inline_style( $this->plugin_name, $the_wpcf_dynamic_css );
|
85 |
}
|
86 |
|
public/css/wp-carousel-free-public.css
CHANGED
@@ -1,11 +1,16 @@
|
|
1 |
/*--------------------------------------------------------------
|
2 |
## Preloader
|
3 |
--------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
4 |
.wpcp-carousel-section.wpcp-standard:not(.wpcp-preloader) {
|
5 |
display: none;
|
6 |
}
|
7 |
.wpcp-carousel-section.wpcp-standard.slick-initialized:not(.wpcp-preloader) {
|
8 |
-
display: block;
|
9 |
}
|
10 |
.wpcp-carousel-wrapper {
|
11 |
position: relative;
|
@@ -61,10 +66,13 @@
|
|
61 |
.wpcp-carousel-section.wpcp-video-carousel .wpcp-single-item .wpcp-slide-image {
|
62 |
position: relative;
|
63 |
}
|
64 |
-
.wpcp-carousel-section.wpcp-content-carousel .wpcp-single-item{
|
65 |
padding-left: 15px;
|
66 |
padding-right: 15px;
|
67 |
}
|
|
|
|
|
|
|
68 |
.wpcp-carousel-section .wpcp-single-item img {
|
69 |
margin: 0 auto;
|
70 |
max-width: 100%;
|
@@ -74,25 +82,26 @@
|
|
74 |
.wpcp-carousel-section.wpcp-image-carousel .wpcp-single-item .wpcp-all-captions {
|
75 |
padding: 10px 20px 15px;
|
76 |
}
|
77 |
-
.wpcp-carousel-section .wpcp-single-item .wpcp-all-captions .wpcp-image-description{
|
78 |
margin: 6px 0 0;
|
79 |
}
|
80 |
-
.wpcp-carousel-section .wpcp-single-item .wpcp-slide-image a:focus{
|
81 |
outline: none;
|
82 |
}
|
83 |
.wpcp-carousel-section .slick-slide:focus {
|
84 |
outline: none;
|
85 |
}
|
86 |
.wpcp-carousel-section.slick-initialized .slick-slide {
|
87 |
-
margin-right: 20px;
|
88 |
float: none;
|
89 |
display: inline-block;
|
90 |
-
|
91 |
}
|
92 |
.wpcp-carousel-section .slick-list {
|
93 |
margin-right: -20px;
|
94 |
}
|
95 |
-
.wpcp-carousel-section a,
|
|
|
96 |
.wpcp-carousel-section .wpcp-all-captions a {
|
97 |
text-decoration: none;
|
98 |
}
|
@@ -135,7 +144,9 @@
|
|
135 |
font-weight: 600;
|
136 |
}
|
137 |
|
138 |
-
.wpcp_readmore,
|
|
|
|
|
139 |
color: #fff;
|
140 |
}
|
141 |
.wpcp-single-item .wpcp-all-captions .wpcp-post-meta {
|
@@ -151,11 +162,13 @@
|
|
151 |
margin-right: 0;
|
152 |
}
|
153 |
|
154 |
-
.wpcp-post-meta li,
|
|
|
155 |
color: #999;
|
156 |
}
|
157 |
|
158 |
-
.wpcp-carousel-section.detail-on-right .wpcp-single-item .wpcp-slide-image
|
|
|
159 |
float: left;
|
160 |
width: 50%;
|
161 |
box-sizing: border-box;
|
@@ -215,7 +228,7 @@
|
|
215 |
font-weight: 600;
|
216 |
}
|
217 |
.wpcp-product-price {
|
218 |
-
margin-top:5px;
|
219 |
}
|
220 |
.wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button {
|
221 |
margin-top: 12px;
|
@@ -223,12 +236,12 @@
|
|
223 |
.wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button a.button {
|
224 |
background: #ebebeb;
|
225 |
color: #545454;
|
226 |
-
border: 1px solid #d1d1d1;
|
227 |
font-weight: 500;
|
228 |
padding: 0 20px;
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
}
|
233 |
|
234 |
.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button a.add_to_cart_button.added {
|
@@ -257,10 +270,10 @@
|
|
257 |
border: 1px solid;
|
258 |
}
|
259 |
|
260 |
-
.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button a.button:hover{
|
261 |
background: #3f3f3f;
|
262 |
-
|
263 |
-
|
264 |
}
|
265 |
|
266 |
.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button .wc-forward::after {
|
@@ -271,7 +284,7 @@
|
|
271 |
font-variant: normal;
|
272 |
font-weight: normal;
|
273 |
line-height: 1;
|
274 |
-
vertical-align:
|
275 |
font: normal normal normal 14px/1 FontAwesome;
|
276 |
font-weight: 900;
|
277 |
line-height: inherit;
|
@@ -280,17 +293,20 @@
|
|
280 |
margin-left: 0.5407911001em;
|
281 |
}
|
282 |
.wpcp-carousel-section .woocommerce-product-rating .star-rating {
|
283 |
-
|
284 |
-
|
285 |
}
|
286 |
-
.wpcp-product-price span{
|
287 |
font-weight: 700;
|
288 |
font-size: 14px;
|
289 |
}
|
290 |
/*--------------------------------------------------------------
|
291 |
## Carousel Navigation
|
292 |
--------------------------------------------------------------*/
|
293 |
-
.wpcp-carousel-section .slick-prev:before,
|
|
|
|
|
|
|
294 |
display: none;
|
295 |
}
|
296 |
|
@@ -302,7 +318,8 @@
|
|
302 |
right: 0;
|
303 |
}
|
304 |
|
305 |
-
.wpcp-carousel-section .slick-prev,
|
|
|
306 |
width: 30px;
|
307 |
height: 30px;
|
308 |
line-height: 30px;
|
@@ -323,12 +340,16 @@
|
|
323 |
.wpcp-carousel-section.nav-vertical-center {
|
324 |
padding: 0 25px;
|
325 |
}
|
326 |
-
.wpcp-carousel-section .slick-prev i,
|
|
|
|
|
|
|
327 |
line-height: 28px;
|
328 |
font-family: fontawesome;
|
329 |
color: #000;
|
330 |
}
|
331 |
-
.wpcp-carousel-section.nav-vertical-center .slick-next,
|
|
|
332 |
top: 50%;
|
333 |
}
|
334 |
|
@@ -387,4 +408,60 @@
|
|
387 |
|
388 |
.wpcp-carousel-section ul.slick-dots li.slick-active button {
|
389 |
background-color: #666;
|
390 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/*--------------------------------------------------------------
|
2 |
## Preloader
|
3 |
--------------------------------------------------------------*/
|
4 |
+
.wpcp-carousel-wrapper * {
|
5 |
+
word-break: break-word;
|
6 |
+
word-wrap: break-word;
|
7 |
+
box-sizing: border-box;
|
8 |
+
}
|
9 |
.wpcp-carousel-section.wpcp-standard:not(.wpcp-preloader) {
|
10 |
display: none;
|
11 |
}
|
12 |
.wpcp-carousel-section.wpcp-standard.slick-initialized:not(.wpcp-preloader) {
|
13 |
+
display: block;
|
14 |
}
|
15 |
.wpcp-carousel-wrapper {
|
16 |
position: relative;
|
66 |
.wpcp-carousel-section.wpcp-video-carousel .wpcp-single-item .wpcp-slide-image {
|
67 |
position: relative;
|
68 |
}
|
69 |
+
.wpcp-carousel-section.wpcp-content-carousel .wpcp-single-item {
|
70 |
padding-left: 15px;
|
71 |
padding-right: 15px;
|
72 |
}
|
73 |
+
.wpcp-carousel-section .wpcp-single-item img[data-lazy]{
|
74 |
+
width: 32px;
|
75 |
+
}
|
76 |
.wpcp-carousel-section .wpcp-single-item img {
|
77 |
margin: 0 auto;
|
78 |
max-width: 100%;
|
82 |
.wpcp-carousel-section.wpcp-image-carousel .wpcp-single-item .wpcp-all-captions {
|
83 |
padding: 10px 20px 15px;
|
84 |
}
|
85 |
+
.wpcp-carousel-section .wpcp-single-item .wpcp-all-captions .wpcp-image-description {
|
86 |
margin: 6px 0 0;
|
87 |
}
|
88 |
+
.wpcp-carousel-section .wpcp-single-item .wpcp-slide-image a:focus {
|
89 |
outline: none;
|
90 |
}
|
91 |
.wpcp-carousel-section .slick-slide:focus {
|
92 |
outline: none;
|
93 |
}
|
94 |
.wpcp-carousel-section.slick-initialized .slick-slide {
|
95 |
+
margin-right: 20px;
|
96 |
float: none;
|
97 |
display: inline-block;
|
98 |
+
vertical-align: middle;
|
99 |
}
|
100 |
.wpcp-carousel-section .slick-list {
|
101 |
margin-right: -20px;
|
102 |
}
|
103 |
+
.wpcp-carousel-section a,
|
104 |
+
.wpcp-carousel-section a:hover,
|
105 |
.wpcp-carousel-section .wpcp-all-captions a {
|
106 |
text-decoration: none;
|
107 |
}
|
144 |
font-weight: 600;
|
145 |
}
|
146 |
|
147 |
+
.wpcp_readmore,
|
148 |
+
.wpcp_readmore:focus,
|
149 |
+
.wpcp_readmore:hover {
|
150 |
color: #fff;
|
151 |
}
|
152 |
.wpcp-single-item .wpcp-all-captions .wpcp-post-meta {
|
162 |
margin-right: 0;
|
163 |
}
|
164 |
|
165 |
+
.wpcp-post-meta li,
|
166 |
+
.wpcp-post-meta li a {
|
167 |
color: #999;
|
168 |
}
|
169 |
|
170 |
+
.wpcp-carousel-section.detail-on-right .wpcp-single-item .wpcp-slide-image,
|
171 |
+
.wpcp-carousel-section.detail-on-right .wpcp-single-item .wpcp-all-captions {
|
172 |
float: left;
|
173 |
width: 50%;
|
174 |
box-sizing: border-box;
|
228 |
font-weight: 600;
|
229 |
}
|
230 |
.wpcp-product-price {
|
231 |
+
margin-top: 5px;
|
232 |
}
|
233 |
.wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button {
|
234 |
margin-top: 12px;
|
236 |
.wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button a.button {
|
237 |
background: #ebebeb;
|
238 |
color: #545454;
|
239 |
+
border: 1px solid #d1d1d1;
|
240 |
font-weight: 500;
|
241 |
padding: 0 20px;
|
242 |
+
line-height: 38px;
|
243 |
+
display: inline-block;
|
244 |
+
font-size: 14px;
|
245 |
}
|
246 |
|
247 |
.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button a.add_to_cart_button.added {
|
270 |
border: 1px solid;
|
271 |
}
|
272 |
|
273 |
+
.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button a.button:hover {
|
274 |
background: #3f3f3f;
|
275 |
+
border-color: #d1d1d1;
|
276 |
+
color: #fff;
|
277 |
}
|
278 |
|
279 |
.wpcp-carousel-section.wpcp-product-carousel .wpcp-all-captions .wpcp-cart-button .wc-forward::after {
|
284 |
font-variant: normal;
|
285 |
font-weight: normal;
|
286 |
line-height: 1;
|
287 |
+
vertical-align: -0.125em;
|
288 |
font: normal normal normal 14px/1 FontAwesome;
|
289 |
font-weight: 900;
|
290 |
line-height: inherit;
|
293 |
margin-left: 0.5407911001em;
|
294 |
}
|
295 |
.wpcp-carousel-section .woocommerce-product-rating .star-rating {
|
296 |
+
margin: 4px auto;
|
297 |
+
float: none;
|
298 |
}
|
299 |
+
.wpcp-product-price span {
|
300 |
font-weight: 700;
|
301 |
font-size: 14px;
|
302 |
}
|
303 |
/*--------------------------------------------------------------
|
304 |
## Carousel Navigation
|
305 |
--------------------------------------------------------------*/
|
306 |
+
.wpcp-carousel-section .slick-prev:before,
|
307 |
+
.wpcp-carousel-section .slick-next:before,
|
308 |
+
.wpcp-carousel-section .slick-prev:after,
|
309 |
+
.wpcp-carousel-section .slick-next:after {
|
310 |
display: none;
|
311 |
}
|
312 |
|
318 |
right: 0;
|
319 |
}
|
320 |
|
321 |
+
.wpcp-carousel-section .slick-prev,
|
322 |
+
.wpcp-carousel-section .slick-next {
|
323 |
width: 30px;
|
324 |
height: 30px;
|
325 |
line-height: 30px;
|
340 |
.wpcp-carousel-section.nav-vertical-center {
|
341 |
padding: 0 25px;
|
342 |
}
|
343 |
+
.wpcp-carousel-section .slick-prev i,
|
344 |
+
.wpcp-carousel-section .slick-next i,
|
345 |
+
.wpcp-carousel-section .slick-prev,
|
346 |
+
.wpcp-carousel-section .slick-next {
|
347 |
line-height: 28px;
|
348 |
font-family: fontawesome;
|
349 |
color: #000;
|
350 |
}
|
351 |
+
.wpcp-carousel-section.nav-vertical-center .slick-next,
|
352 |
+
.wpcp-carousel-section.nav-vertical-center .slick-prev {
|
353 |
top: 50%;
|
354 |
}
|
355 |
|
408 |
|
409 |
.wpcp-carousel-section ul.slick-dots li.slick-active button {
|
410 |
background-color: #666;
|
411 |
+
}
|
412 |
+
|
413 |
+
/* Gallery CSS */
|
414 |
+
.wpcpro-row.no-gutters > [class*="wpcpro-col-"] {
|
415 |
+
padding-right: 0;
|
416 |
+
padding-left: 0;
|
417 |
+
}
|
418 |
+
.wpcpro-row > [class*="wpcpro-col-"] {
|
419 |
+
padding: 0 10px;
|
420 |
+
padding-bottom: 20px;
|
421 |
+
}
|
422 |
+
.wpcpro-row {
|
423 |
+
display: flex;
|
424 |
+
flex-wrap: wrap;
|
425 |
+
margin-right: -10px;
|
426 |
+
margin-left: -10px;
|
427 |
+
}
|
428 |
+
/* Pagination */
|
429 |
+
/* Pagination css */
|
430 |
+
.wpcpro-post-pagination .ajax-page-numbers,
|
431 |
+
.wpcpro-post-pagination .page-numbers {
|
432 |
+
background: #fff;
|
433 |
+
color: #5e5e5e;
|
434 |
+
border: 2px solid #bbb;
|
435 |
+
width: 38px;
|
436 |
+
height: 38px;
|
437 |
+
line-height: 38px;
|
438 |
+
font-size: 16px;
|
439 |
+
text-align: center;
|
440 |
+
display: inline-block;
|
441 |
+
margin-right: 4px;
|
442 |
+
text-decoration: none;
|
443 |
+
font-weight: 700;
|
444 |
+
border-radius: 3px;
|
445 |
+
-webkit-transition: all 0.33s;
|
446 |
+
transition: all 0.33s;
|
447 |
+
-webkit-box-sizing: content-box;
|
448 |
+
box-sizing: content-box;
|
449 |
+
}
|
450 |
+
|
451 |
+
.wpcpro-post-pagination .ajax-page-numbers.current,
|
452 |
+
.wpcpro-post-pagination .page-numbers.current {
|
453 |
+
cursor: auto;
|
454 |
+
color: #fff;
|
455 |
+
background: #178087;
|
456 |
+
border-color: #178087;
|
457 |
+
}
|
458 |
+
.wpcpro-post-pagination-number {
|
459 |
+
margin-top: 20px;
|
460 |
+
}
|
461 |
+
.wpcpro-post-pagination a.page-numbers:hover,
|
462 |
+
.wpcpro-post-pagination span.current,
|
463 |
+
.wpcpro-post-pagination span:hover {
|
464 |
+
color: #fff;
|
465 |
+
background: #178087;
|
466 |
+
border-color: #178087;
|
467 |
+
}
|
public/css/wp-carousel-free-public.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.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{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;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}
|
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}
|
public/dynamic-style.php
CHANGED
@@ -35,7 +35,6 @@ $image_border_width = isset( $shortcode_data['wpcp_product_image_border']['all']
|
|
35 |
$image_border_style = isset( $shortcode_data['wpcp_product_image_border']['style'] ) ? $shortcode_data['wpcp_product_image_border']['style'] : '1';
|
36 |
$image_border_color = isset( $shortcode_data['wpcp_product_image_border']['color'] ) ? $shortcode_data['wpcp_product_image_border']['color'] : '#ddd';
|
37 |
|
38 |
-
$custom_css = wpcf_get_option( 'wpcp_custom_css' );
|
39 |
|
40 |
if ( 'product-carousel' === $carousel_type ) {
|
41 |
$wpcp_product_css = '#sp-wp-carousel-free-id-' . $post_id . '.sp-wpcp-' . $post_id . '.wpcp-product-carousel .wpcp-slide-image {
|
@@ -98,8 +97,13 @@ if ( 'post-carousel' === $carousel_type ) {
|
|
98 |
background: ' . ( isset( $shortcode_data['wpcp_slide_background'] ) ? $shortcode_data['wpcp_slide_background'] : '#f9f9f9' ) . ';
|
99 |
}';
|
100 |
}
|
101 |
-
|
102 |
-
|
|
|
|
|
|
|
|
|
|
|
103 |
$the_wpcf_dynamic_css .= '
|
104 |
@media screen and (max-width: 479px) {
|
105 |
#sp-wp-carousel-free-id-' . $post_id . '.nav-vertical-center {
|
@@ -107,4 +111,4 @@ if ( 'hide_mobile' === $wpcp_arrows ) {
|
|
107 |
}
|
108 |
}';
|
109 |
}
|
110 |
-
|
35 |
$image_border_style = isset( $shortcode_data['wpcp_product_image_border']['style'] ) ? $shortcode_data['wpcp_product_image_border']['style'] : '1';
|
36 |
$image_border_color = isset( $shortcode_data['wpcp_product_image_border']['color'] ) ? $shortcode_data['wpcp_product_image_border']['color'] : '#ddd';
|
37 |
|
|
|
38 |
|
39 |
if ( 'product-carousel' === $carousel_type ) {
|
40 |
$wpcp_product_css = '#sp-wp-carousel-free-id-' . $post_id . '.sp-wpcp-' . $post_id . '.wpcp-product-carousel .wpcp-slide-image {
|
97 |
background: ' . ( isset( $shortcode_data['wpcp_slide_background'] ) ? $shortcode_data['wpcp_slide_background'] : '#f9f9f9' ) . ';
|
98 |
}';
|
99 |
}
|
100 |
+
if ( 'hide' === $wpcp_arrows ) {
|
101 |
+
$the_wpcf_dynamic_css .= '
|
102 |
+
#sp-wp-carousel-free-id-' . $post_id . '.nav-vertical-center {
|
103 |
+
padding: 0;
|
104 |
+
}';
|
105 |
+
}
|
106 |
+
if ( 'show' !== $wpcp_arrows ) {
|
107 |
$the_wpcf_dynamic_css .= '
|
108 |
@media screen and (max-width: 479px) {
|
109 |
#sp-wp-carousel-free-id-' . $post_id . '.nav-vertical-center {
|
111 |
}
|
112 |
}';
|
113 |
}
|
114 |
+
|
public/js/wp-carousel-free-public.js
CHANGED
@@ -10,7 +10,6 @@
|
|
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 |
-
lazyLoad: 'ondemand',
|
14 |
});
|
15 |
}
|
16 |
});
|
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 |
});
|
public/js/wp-carousel-free-public.min.js
CHANGED
@@ -1 +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>'
|
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);
|
public/responsive.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* The Responsive style file for the WP Carousel Free.
|
5 |
+
*
|
6 |
+
* @since 2.3.4
|
7 |
+
* @package WP_Carousel_Free
|
8 |
+
* @subpackage WP_Carousel_Free/public/templates
|
9 |
+
*/
|
10 |
+
|
11 |
+
// Responsive style.
|
12 |
+
$wpcp_screen_sizes = wpcf_get_option( 'wpcp_responsive_screen_setting' );
|
13 |
+
$desktop_size = isset( $wpcp_screen_sizes['desktop'] ) && ! empty( $wpcp_screen_sizes['desktop'] ) ? $wpcp_screen_sizes['desktop'] : '1200';
|
14 |
+
$laptop_size = isset( $wpcp_screen_sizes['laptop'] ) && ! empty( $wpcp_screen_sizes['laptop'] ) ? $wpcp_screen_sizes['laptop'] : '980';
|
15 |
+
$tablet_size = isset( $wpcp_screen_sizes['tablet'] ) && ! empty( $wpcp_screen_sizes['tablet'] ) ? $wpcp_screen_sizes['tablet'] : '736';
|
16 |
+
$mobile_size = isset( $wpcp_screen_sizes['mobile'] ) && ! empty( $wpcp_screen_sizes['mobile'] ) ? $wpcp_screen_sizes['mobile'] : '480';
|
17 |
+
$the_wpcf_dynamic_css .= '@media (min-width: ' . $mobile_size . 'px) { .wpcpro-row .wpcpro-col-sm-1 { flex: 0 0 100%; max-width: 100%; } .wpcpro-row .wpcpro-col-sm-2 { flex: 0 0 50%; max-width: 50%; } .wpcpro-row .wpcpro-col-sm-2-5 { flex: 0 0 75%; max-width: 75%; } .wpcpro-row .wpcpro-col-sm-3 { flex: 0 0 33.333%; max-width: 33.333%; } .wpcpro-row .wpcpro-col-sm-4 { flex: 0 0 25%; max-width: 25%; } .wpcpro-row .wpcpro-col-sm-5 { flex: 0 0 20%; max-width: 20%; } .wpcpro-row .wpcpro-col-sm-6 { flex: 0 0 16.66666666666667%; max-width: 16.66666666666667%; } .wpcpro-row .wpcpro-col-sm-7 { flex: 0 0 14.28571428%; max-width: 14.28571428%; } .wpcpro-row .wpcpro-col-sm-8 { flex: 0 0 12.5%; max-width: 12.5%; } } @media (max-width: ' . $mobile_size . 'px) { .wpcpro-row .wpcpro-col-xs-1 { flex: 0 0 100%; max-width: 100%; } .wpcpro-row .wpcpro-col-xs-2 { flex: 0 0 50%; max-width: 50%; } .wpcpro-row .wpcpro-col-xs-3 { flex: 0 0 33.222%; max-width: 33.222%; } .wpcpro-row .wpcpro-col-xs-4 { flex: 0 0 25%; max-width: 25%; } .wpcpro-row .wpcpro-col-xs-5 { flex: 0 0 20%; max-width: 20%; } .wpcpro-row .wpcpro-col-xs-6 { flex: 0 0 16.6667%; max-width: 16.6667%; } .wpcpro-row .wpcpro-col-xs-7 { flex: 0 0 14.28571428%; max-width: 14.28571428%; } .wpcpro-row .wpcpro-col-xs-8 { flex: 0 0 12.5%; max-width: 12.5%; } } @media (min-width: ' . $tablet_size . 'px) { .wpcpro-row .wpcpro-col-md-1 { flex: 0 0 100%; max-width: 100%; } .wpcpro-row .wpcpro-col-md-2 { flex: 0 0 50%; max-width: 50%; } .wpcpro-row .wpcpro-col-md-2-5 { flex: 0 0 75%; max-width: 75%; } .wpcpro-row .wpcpro-col-md-3 { flex: 0 0 33.333%; max-width: 33.333%; } .wpcpro-row .wpcpro-col-md-4 { flex: 0 0 25%; max-width: 25%; } .wpcpro-row .wpcpro-col-md-5 { flex: 0 0 20%; max-width: 20%; } .wpcpro-row .wpcpro-col-md-6 { flex: 0 0 16.66666666666667%; max-width: 16.66666666666667%; } .wpcpro-row .wpcpro-col-md-7 { flex: 0 0 14.28571428%; max-width: 14.28571428%; } .wpcpro-row .wpcpro-col-md-8 { flex: 0 0 12.5%; max-width: 12.5%; } } @media (min-width: ' . $laptop_size . 'px) { .wpcpro-row .wpcpro-col-lg-1 { flex: 0 0 100%; max-width: 100%; } .wpcpro-row .wpcpro-col-lg-2 { flex: 0 0 50%; max-width: 50%; } .wpcpro-row .wpcpro-col-lg-3 { flex: 0 0 33.222%; max-width: 33.222%; } .wpcpro-row .wpcpro-col-lg-4 { flex: 0 0 25%; max-width: 25%; } .wpcpro-row .wpcpro-col-lg-5 { flex: 0 0 20%; max-width: 20%; } .wpcpro-row .wpcpro-col-lg-6 { flex: 0 0 16.6667%; max-width: 16.6667%; } .wpcpro-row .wpcpro-col-lg-7 { flex: 0 0 14.28571428%; max-width: 14.28571428%; } .wpcpro-row .wpcpro-col-lg-8 { flex: 0 0 12.5%; max-width: 12.5%; } } @media (min-width: ' . $desktop_size . 'px) { .wpcpro-row .wpcpro-col-xl-1 { flex: 0 0 100%; max-width: 100%; } .wpcpro-row .wpcpro-col-xl-2 { flex: 0 0 50%; max-width: 50%; } .wpcpro-row .wpcpro-col-xl-3 { flex: 0 0 33.22222222%; max-width: 33.22222222%; } .wpcpro-row .wpcpro-col-xl-4 { flex: 0 0 25%; max-width: 25%; } .wpcpro-row .wpcpro-col-xl-5 { flex: 0 0 20%; max-width: 20%; } .wpcpro-row .wpcpro-col-xl-6 { flex: 0 0 16.66667%; max-width: 16.66667%; } .wpcpro-row .wpcpro-col-xl-7 { flex: 0 0 14.28571428%; max-width: 14.28571428%; } .wpcpro-row .wpcpro-col-xl-8 { flex: 0 0 12.5%; max-width: 12.5%; } }';
|
public/templates/carousel.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Carousel.
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/carousel.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
// If this file is called directly, abort.
|
13 |
+
if ( ! defined( 'WPINC' ) ) {
|
14 |
+
die;
|
15 |
+
}
|
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 |
+
?>
|
23 |
+
<div id="sp-wp-carousel-free-id-<?php echo esc_attr( $post_id ); ?>" class="<?php echo esc_attr( $carousel_classes ); ?>" <?php echo wp_kses_post( $wpcp_slick_options ); ?> <?php echo $the_rtl; ?>>
|
24 |
+
<?php
|
25 |
+
Helper::get_item_loops( $upload_data, $shortcode_data, $carousel_type, $post_id );
|
26 |
+
?>
|
27 |
+
</div>
|
28 |
+
</div>
|
public/templates/gallery.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Gallery.
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/gallery.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
// If this file is called directly, abort.
|
13 |
+
if ( ! defined( 'WPINC' ) ) {
|
14 |
+
die;
|
15 |
+
}
|
16 |
+
|
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 ); ?>" >
|
24 |
+
<div class="wpcpro-row">
|
25 |
+
<?php Helper::get_item_loops( $upload_data, $shortcode_data, $carousel_type, $post_id ); ?>
|
26 |
+
</div>
|
27 |
+
</div>
|
28 |
+
<?php Helper::get_pagination( $upload_data, $shortcode_data, $post_id ); ?>
|
29 |
+
</div> <!-- // Carousel Wrapper. -->
|
public/templates/image-carousel.php
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* The image carousel template.
|
4 |
-
*
|
5 |
-
* @package WP_Carousel_Free
|
6 |
-
* @subpackage WP_Carousel_Free/public/templates
|
7 |
-
*/
|
8 |
-
|
9 |
-
// If this file is called directly, abort.
|
10 |
-
if ( ! defined( 'WPINC' ) ) {
|
11 |
-
die;
|
12 |
-
}
|
13 |
-
|
14 |
-
$gallery_ids = $upload_data['wpcp_gallery'];
|
15 |
-
$the_image_title_at = isset( $shortcode_data['wpcp_logo_link_nofollow'] ) ? $shortcode_data['wpcp_logo_link_nofollow'] : '';
|
16 |
-
$image_link_nofollow = $the_image_title_at ? ' rel="nofollow"' : '';
|
17 |
-
if ( empty( $gallery_ids ) ) {
|
18 |
-
return;
|
19 |
-
}
|
20 |
-
echo '<div class="wpcp-carousel-wrapper wpcp-wrapper-' . esc_attr( $post_id ) . '">';
|
21 |
-
if ( $section_title ) {
|
22 |
-
echo '<h2 class="sp-wpcpro-section-title">' . wp_kses_post( get_the_title( $post_id ) ) . '</h2>';
|
23 |
-
}
|
24 |
-
if ( $preloader ) {
|
25 |
-
require WPCAROUSELF_PATH . '/public/templates/preloader.php';
|
26 |
-
}
|
27 |
-
$the_rtl = ( 'ltr' === $carousel_direction ) ? ' dir="rtl"' : ' dir="ltr"';
|
28 |
-
echo wp_kses_post( '<div id="sp-wp-carousel-free-id-' . $post_id . '" class="' . $carousel_classes . '" ' . $wpcp_slick_options . ' ' . $the_rtl . '>' );
|
29 |
-
$attachments = explode( ',', $gallery_ids );
|
30 |
-
( ( 'rand' === $image_orderby ) ? shuffle( $attachments ) : '' );
|
31 |
-
if ( is_array( $attachments ) || is_object( $attachments ) ) :
|
32 |
-
foreach ( $attachments as $attachment ) {
|
33 |
-
$image_data = get_post( $attachment );
|
34 |
-
$image_title = $image_data->post_title;
|
35 |
-
$image_alt_titles = $image_data->_wp_attachment_image_alt;
|
36 |
-
$image_alt_title = ! empty( $image_alt_titles ) ? $image_alt_titles : $image_title;
|
37 |
-
$image_url = wp_get_attachment_image_src( $attachment, $image_sizes );
|
38 |
-
$the_image_title_attr = ' title="' . $image_title . '"';
|
39 |
-
$image_title_attr = 'true' === $show_image_title_attr ? $the_image_title_attr : '';
|
40 |
-
|
41 |
-
if ( 'false' !== $lazy_load_image ) {
|
42 |
-
$image = sprintf( '<img class="wcp-lazy" data-lazy="%1$s" src="%2$s"%3$s alt="%4$s" width="%5$s" height="%6$s">', $image_url[0], $lazy_load_img, $image_title_attr, $image_alt_title, $image_url[1], $image_url[2] );
|
43 |
-
} else {
|
44 |
-
$image = sprintf( '<img class="skip-lazy" src="%1$s"%2$s alt="%3$s" width="%4$s" height="%5$s">', $image_url[0], $image_title_attr, $image_alt_title, $image_url[1], $image_url[2] );
|
45 |
-
}
|
46 |
-
|
47 |
-
// Single Item.
|
48 |
-
echo '<div class="wpcp-single-item">';
|
49 |
-
echo sprintf( '<div class="wpcp-slide-image">%1$s</div>', wp_kses_post( $image ) );
|
50 |
-
echo '</div>';
|
51 |
-
} // End foreach.
|
52 |
-
endif;
|
53 |
-
echo '</div>';
|
54 |
-
echo '</div>'; // Carousel Wrapper.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public/templates/loop/image-type.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The image carousel template.
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/image-type.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
// If this file is called directly, abort.
|
13 |
+
if ( ! defined( 'WPINC' ) ) {
|
14 |
+
die;
|
15 |
+
}
|
16 |
+
$image_data = get_post( $attachment );
|
17 |
+
$image_title = $image_data->post_title;
|
18 |
+
$image_alt_titles = $image_data->_wp_attachment_image_alt;
|
19 |
+
$image_alt_title = ! empty( $image_alt_titles ) ? $image_alt_titles : $image_title;
|
20 |
+
$image_url = wp_get_attachment_image_src( $attachment, $image_sizes );
|
21 |
+
$the_image_title_attr = ' title="' . $image_title . '"';
|
22 |
+
$image_title_attr = 'true' === $show_image_title_attr ? $the_image_title_attr : '';
|
23 |
+
|
24 |
+
if ( 'false' !== $lazy_load_image && 'carousel' === $wpcp_layout ) {
|
25 |
+
$image = sprintf( '<img class="wcp-lazy" data-lazy="%1$s" src="%2$s"%3$s alt="%4$s" width="%5$s" height="%6$s">', $image_url[0], $lazy_load_img, $image_title_attr, $image_alt_title, $image_url[1], $image_url[2] );
|
26 |
+
} else {
|
27 |
+
$image = sprintf( '<img class="skip-lazy" src="%1$s"%2$s alt="%3$s" width="%4$s" height="%5$s">', $image_url[0], $image_title_attr, $image_alt_title, $image_url[1], $image_url[2] );
|
28 |
+
}
|
29 |
+
?>
|
30 |
+
<div class="<?php echo esc_attr( $grid_column ); ?>">
|
31 |
+
<div class="wpcp-single-item">
|
32 |
+
<?php
|
33 |
+
|
34 |
+
include Helper::wpcf_locate_template( 'loop/image-type/image.php' );
|
35 |
+
?>
|
36 |
+
</div>
|
37 |
+
</div>
|
public/templates/loop/image-type/image.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Image
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/image-type/image.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
?>
|
13 |
+
<div class="wpcp-slide-image">
|
14 |
+
<?php echo wp_kses_post( $image ); ?>
|
15 |
+
</div>
|
public/templates/loop/post-type.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The post carousel template.
|
4 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/post-type.php
|
5 |
+
*
|
6 |
+
* @since 2.3.4
|
7 |
+
* @package WP_Carousel_Free
|
8 |
+
* @subpackage WP_Carousel_Free/public/templates
|
9 |
+
*/
|
10 |
+
|
11 |
+
// If this file is called directly, abort.
|
12 |
+
if ( ! defined( 'WPINC' ) ) {
|
13 |
+
die;
|
14 |
+
}
|
15 |
+
?>
|
16 |
+
<div class="<?php echo esc_attr( $grid_column ); ?>">
|
17 |
+
<div class="wpcp-single-item">
|
18 |
+
<?php
|
19 |
+
require Helper::wpcf_locate_template( 'loop/post-type/thumbnails.php' );
|
20 |
+
?>
|
21 |
+
<div class="wpcp-all-captions">
|
22 |
+
<?php
|
23 |
+
require Helper::wpcf_locate_template( 'loop/post-type/title.php' );
|
24 |
+
require Helper::wpcf_locate_template( 'loop/post-type/content.php' );
|
25 |
+
require Helper::wpcf_locate_template( 'loop/post-type/meta.php' );
|
26 |
+
?>
|
27 |
+
</div>
|
28 |
+
</div>
|
29 |
+
</div>
|
public/templates/loop/post-type/content.php
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Post Content
|
5 |
+
*
|
6 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/post-type/content.php.
|
7 |
+
*
|
8 |
+
* @since 2.3.4
|
9 |
+
* @package WP_Carousel_Free
|
10 |
+
* @subpackage WP_Carousel_Free/public/templates
|
11 |
+
*/
|
12 |
+
|
13 |
+
if ( $show_post_content ) {
|
14 |
+
?>
|
15 |
+
<p><?php the_excerpt(); ?></p>
|
16 |
+
<?php } ?>
|
public/templates/loop/post-type/meta.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Post meta
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/post-type/meta.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
// The Post Author.
|
13 |
+
$the_post_author_name = __( ' By ', 'wp-carousel-free' ) . get_the_author();
|
14 |
+
// The Post Date.
|
15 |
+
$wpcp_post_date = __( 'On ', 'wp-carousel-free' ) . get_the_date();
|
16 |
+
if ( $show_post_date || $show_post_author ) {
|
17 |
+
?>
|
18 |
+
<ul class="wpcp-post-meta">
|
19 |
+
<?php if ( $show_post_date ) { ?>
|
20 |
+
<li><time class="entry-date published updated" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"> <?php echo wp_kses_post( $wpcp_post_date ); ?></time></li>
|
21 |
+
<?php } ?>
|
22 |
+
<?php if ( $show_post_author ) { ?>
|
23 |
+
<li><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"><?php echo wp_kses_post( $the_post_author_name ); ?></a></li>
|
24 |
+
<?php } ?>
|
25 |
+
</ul>
|
26 |
+
<?php
|
27 |
+
}
|
public/templates/loop/post-type/thumbnails.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Post thumbnails
|
5 |
+
*
|
6 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/post-type/thumbnails.php
|
7 |
+
*
|
8 |
+
* @since 2.3.4
|
9 |
+
* @package WP_Carousel_Free
|
10 |
+
* @subpackage WP_Carousel_Free/public/templates
|
11 |
+
*/
|
12 |
+
|
13 |
+
if ( has_post_thumbnail() && $show_slide_image ) {
|
14 |
+
$image_id = get_post_thumbnail_id();
|
15 |
+
$image_url = wp_get_attachment_image_src( $image_id, $image_sizes );
|
16 |
+
$image_alt_text = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
|
17 |
+
$the_image_title_attr = ' title="' . the_title_attribute( 'echo=0' ) . '"';
|
18 |
+
$image_title_attr = ( 'true' === $show_image_title_attr ) ? $the_image_title_attr : '';
|
19 |
+
|
20 |
+
if ( 'false' !== $lazy_load_image && 'carousel' === $wpcp_layout ) {
|
21 |
+
$post_thumb = sprintf( '<img class="wcp-lazy" data-lazy="%1$s" src="%2$s"%3$s alt="%4$s" width="%5$s" height="%6$s">', $image_url[0], $lazy_load_img, $image_title_attr, $image_alt_text, $image_url[1], $image_url[2] );
|
22 |
+
} else {
|
23 |
+
$post_thumb = sprintf( '<img class="skip-lazy" src="%1$s"%2$s alt="%3$s" width="%4$s" height="%5$s">', $image_url[0], $image_title_attr, $image_alt_text, $image_url[1], $image_url[2] );
|
24 |
+
}
|
25 |
+
?>
|
26 |
+
<div class="wpcp-slide-image">
|
27 |
+
<a href="<?php echo esc_url( get_the_permalink() ); ?>">
|
28 |
+
<?php echo wp_kses_post( $post_thumb ); ?>
|
29 |
+
</a>
|
30 |
+
</div>
|
31 |
+
<?php
|
32 |
+
} // End of Has post thumbnail.
|
public/templates/loop/post-type/title.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Post Title
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/post-type/title.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( ( $show_img_title && ! empty( get_the_title() ) ) ) {
|
13 |
+
?>
|
14 |
+
<h2 class="wpcp-post-title">
|
15 |
+
<a href="<?php echo esc_url( apply_filters( 'wpcp_post_title_url', get_the_permalink() ) ); ?>">
|
16 |
+
<?php the_title(); ?>
|
17 |
+
</a>
|
18 |
+
</h2>
|
19 |
+
<?php
|
20 |
+
}
|
public/templates/loop/product-type.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The product carousel template.
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/product-type.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
// If this file is called directly, abort.
|
13 |
+
if ( ! defined( 'WPINC' ) ) {
|
14 |
+
die;
|
15 |
+
}
|
16 |
+
if ( ! class_exists( 'WooCommerce' ) ) {
|
17 |
+
return;
|
18 |
+
}
|
19 |
+
?>
|
20 |
+
<div class="<?php echo esc_attr( $grid_column ); ?>">
|
21 |
+
<div class="wpcp-single-item">
|
22 |
+
<?php
|
23 |
+
require Helper::wpcf_locate_template( 'loop/product-type/image.php' );
|
24 |
+
?>
|
25 |
+
<div class="wpcp-all-captions">
|
26 |
+
<?php
|
27 |
+
require Helper::wpcf_locate_template( 'loop/product-type/name.php' );
|
28 |
+
require Helper::wpcf_locate_template( 'loop/product-type/price.php' );
|
29 |
+
require Helper::wpcf_locate_template( 'loop/product-type/rating.php' );
|
30 |
+
require Helper::wpcf_locate_template( 'loop/product-type/add_to_cart.php' );
|
31 |
+
?>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
</div>
|
35 |
+
<?php
|
public/templates/loop/product-type/add_to_cart.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Product add to cart button
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/product-type/add_to_cart.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
// Add to cart button.
|
13 |
+
$wpcp_cart = apply_filters( 'wpcp_filter_product_cart', do_shortcode( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style="none"]' ) );
|
14 |
+
if ( $show_product_cart ) :
|
15 |
+
?>
|
16 |
+
<div class="wpcp-cart-button"><?php echo wp_kses_post( $wpcp_cart ); ?></div>
|
17 |
+
<?php
|
18 |
+
endif;
|
public/templates/loop/product-type/image.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Product image
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/product-type/image.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( has_post_thumbnail() && $show_slide_image ) {
|
13 |
+
$product_thumb_id = get_post_thumbnail_id();
|
14 |
+
$product_thumb_alt_text = get_post_meta( $product_thumb_id, '_wp_attachment_image_alt', true );
|
15 |
+
$image_url = wp_get_attachment_image_src( $product_thumb_id, $image_sizes );
|
16 |
+
$the_image_title_attr = ' title="' . get_the_title() . '"';
|
17 |
+
$image_title_attr = $show_image_title_attr ? $the_image_title_attr : '';
|
18 |
+
|
19 |
+
// Product Thumbnail.
|
20 |
+
$wpcp_product_image = '';
|
21 |
+
if ( ! empty( $image_url[0] ) ) {
|
22 |
+
if ( 'false' !== $lazy_load_image && 'carousel' === $wpcp_layout ) {
|
23 |
+
$wpcp_product_thumb = sprintf( '<img class="wcp-lazy" data-lazy="%1$s" src="%2$s"%3$s alt="%4$s" width="%5$s" height="%6$s">', $image_url[0], $lazy_load_img, $image_title_attr, $product_thumb_alt_text, $image_url[1], $image_url[2] );
|
24 |
+
} else {
|
25 |
+
$wpcp_product_thumb = sprintf( '<img class="skip-lazy" src="%1$s"%2$s alt="%3$s" width="%4$s" height="%5$s">', $image_url[0], $image_title_attr, $product_thumb_alt_text, $image_url[1], $image_url[2] );
|
26 |
+
}
|
27 |
+
?>
|
28 |
+
<div class="wpcp-slide-image">
|
29 |
+
<a href="<?php the_permalink(); ?>"><?php echo wp_kses_post( $wpcp_product_thumb ); ?></a>
|
30 |
+
</div>
|
31 |
+
<?php
|
32 |
+
}
|
33 |
+
}
|
public/templates/loop/product-type/name.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Product name
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/product-type/name.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
if ( $show_product_name && ! empty( get_the_title() ) ) {
|
13 |
+
?>
|
14 |
+
<h2 class="wpcp-product-title">
|
15 |
+
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
|
16 |
+
</h2>
|
17 |
+
<?php
|
18 |
+
}
|
public/templates/loop/product-type/price.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Product price
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/product-type/price.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
$price_html = $product->get_price_html();
|
13 |
+
if ( $price_html && $show_product_price ) {
|
14 |
+
?>
|
15 |
+
<div class="wpcp-product-price">
|
16 |
+
<?php echo wp_kses_post( $price_html ); ?>
|
17 |
+
</div>
|
18 |
+
<?php
|
19 |
+
}
|
public/templates/loop/product-type/rating.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Product ratting
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/loop/product-type/rating.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
$av_rating = $product->get_average_rating();
|
13 |
+
$average_rating = ( $av_rating / 5 ) * 100;
|
14 |
+
if ( $average_rating > 0 && $show_product_rating ) {
|
15 |
+
$rating_text = __( 'Rated ', 'wp-carousel-free' ) . $av_rating . __( ' out of 5', 'wp-carousel-free' );
|
16 |
+
?>
|
17 |
+
<div class="wpcp-product-rating woocommerce">
|
18 |
+
<div class="woocommerce-product-rating">
|
19 |
+
<div class="star-rating" title="<?php echo esc_attr( $rating_text ); ?>">
|
20 |
+
<span style="width:<?php echo esc_attr( $average_rating ); ?>%"></span>
|
21 |
+
</div>
|
22 |
+
</div>
|
23 |
+
</div
|
24 |
+
<?php
|
25 |
+
}
|
public/templates/pagination.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Pagination.
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/pagination.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
// If this file is called directly, abort.
|
13 |
+
if ( ! defined( 'WPINC' ) ) {
|
14 |
+
die;
|
15 |
+
}
|
16 |
+
if ( ( 'post-carousel' === $carousel_type || 'product-carousel' === $carousel_type ) && ! empty( $total_pages ) && ( $total_pages > 1 ) ) {
|
17 |
+
?>
|
18 |
+
<div class="wpcpro-post-pagination">
|
19 |
+
<div class="wpcpro-post-pagination-number">
|
20 |
+
<?php echo wp_kses_post( $page_links ); ?>
|
21 |
+
</div>
|
22 |
+
</div>
|
23 |
+
<?php
|
24 |
+
}
|
public/templates/post-carousel.php
DELETED
@@ -1,98 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* The image carousel template.
|
4 |
-
*
|
5 |
-
* @package WP_Carousel_Free
|
6 |
-
* @subpackage WP_Carousel_Free/public/templates
|
7 |
-
*/
|
8 |
-
|
9 |
-
// If this file is called directly, abort.
|
10 |
-
if ( ! defined( 'WPINC' ) ) {
|
11 |
-
die;
|
12 |
-
}
|
13 |
-
|
14 |
-
$number_of_total_posts = ( isset( $upload_data['number_of_total_posts'] ) ? $upload_data['number_of_total_posts'] : '' );
|
15 |
-
|
16 |
-
$show_post_content = $shortcode_data['wpcp_post_content_show'];
|
17 |
-
$show_post_date = $shortcode_data['wpcp_post_date_show'];
|
18 |
-
$show_post_author = $shortcode_data['wpcp_post_author_show'];
|
19 |
-
$args = array(
|
20 |
-
'post_type' => 'post',
|
21 |
-
'post_status' => 'publish',
|
22 |
-
'order' => $post_order,
|
23 |
-
'orderby' => $post_order_by,
|
24 |
-
'ignore_sticky_posts' => 1,
|
25 |
-
'posts_per_page' => $number_of_total_posts,
|
26 |
-
);
|
27 |
-
|
28 |
-
// Carousel Wrapper Start.
|
29 |
-
echo '<div class="wpcp-carousel-wrapper wpcp-wrapper-' . esc_attr( $post_id ) . '">';
|
30 |
-
if ( $section_title ) {
|
31 |
-
echo '<h2 class="sp-wpcpro-section-title">' . wp_kses_post( get_the_title( $post_id ) ) . '</h2>';
|
32 |
-
}
|
33 |
-
if ( $preloader ) {
|
34 |
-
require WPCAROUSELF_PATH . '/public/templates/preloader.php';
|
35 |
-
}
|
36 |
-
$the_rtl = ( 'ltr' === $carousel_direction ) ? ' dir="rtl"' : ' dir="ltr"';
|
37 |
-
echo wp_kses_post( '<div id="sp-wp-carousel-free-id-' . $post_id . '" class="' . $carousel_classes . '" ' . $wpcp_slick_options . ' ' . $the_rtl . '>' );
|
38 |
-
$post_query = new WP_Query( $args );
|
39 |
-
if ( $post_query->have_posts() ) {
|
40 |
-
while ( $post_query->have_posts() ) :
|
41 |
-
$post_query->the_post();
|
42 |
-
$image = '';
|
43 |
-
if ( has_post_thumbnail( $post_query->post->ID ) && $show_slide_image ) {
|
44 |
-
$image_id = get_post_thumbnail_id();
|
45 |
-
$image_url = wp_get_attachment_image_src( $image_id, $image_sizes );
|
46 |
-
$image_alt_text = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
|
47 |
-
$the_image_title_attr = ' title="' . the_title_attribute( 'echo=0' ) . '"';
|
48 |
-
$image_title_attr = ( 'true' === $show_image_title_attr ) ? $the_image_title_attr : '';
|
49 |
-
|
50 |
-
if ( 'false' !== $lazy_load_image ) {
|
51 |
-
$post_thumb = sprintf( '<img class="wcp-lazy" data-lazy="%1$s" src="%2$s"%3$s alt="%4$s" width="%5$s" height="%6$s">', $image_url[0], $lazy_load_img, $image_title_attr, $image_alt_text, $image_url[1], $image_url[2] );
|
52 |
-
} else {
|
53 |
-
$post_thumb = sprintf( '<img class="skip-lazy" src="%1$s"%2$s alt="%3$s" width="%4$s" height="%5$s">', $image_url[0], $image_title_attr, $image_alt_text, $image_url[1], $image_url[2] );
|
54 |
-
}
|
55 |
-
|
56 |
-
$image = sprintf( '<div class="wpcp-slide-image"><a href="%2$s">%1$s</a></div>', $post_thumb, get_the_permalink() );
|
57 |
-
|
58 |
-
} // End of Has post thumbnail.
|
59 |
-
|
60 |
-
// Post Title.
|
61 |
-
$wpcp_title = sprintf( '<h2 class="wpcp-post-title"><a href="%1$s">%2$s</a></h2>', get_the_permalink(), get_the_title() );
|
62 |
-
$wpcp_post_title = ( $show_img_title && ! empty( get_the_title() ) ) ? $wpcp_title : '';
|
63 |
-
|
64 |
-
// The Post Author.
|
65 |
-
$the_post_author_name = sprintf( '<li><a href="%1$s">%2$s%3$s</a></li>', get_author_posts_url( get_the_author_meta( 'ID' ) ), __( ' By ', 'wp-carousel-free' ), get_the_author() );
|
66 |
-
$post_author_name = $show_post_author ? $the_post_author_name : '';
|
67 |
-
|
68 |
-
// The Post Date.
|
69 |
-
$post_update_date = sprintf( '<time class="updated wpcp-hidden" datetime="%1$s">%2$s</time>', get_the_modified_date( 'c' ), get_the_modified_date() );
|
70 |
-
$wpcp_post_date = sprintf( '<li><time class="entry-date published updated" datetime="%1$s">%2$s%3$s</time></li>', get_the_date( 'c' ), __( 'On ', 'wp-carousel-free' ), get_the_date() );
|
71 |
-
$post_date = $show_post_date ? $wpcp_post_date : '';
|
72 |
-
|
73 |
-
// The Post Meta.
|
74 |
-
$wpcp_post_meta = '';
|
75 |
-
if ( $show_post_date || $show_post_author ) {
|
76 |
-
$wpcp_post_meta = sprintf( '<ul class="wpcp-post-meta">%1$s%2$s</ul>', $post_author_name, $post_date );
|
77 |
-
}
|
78 |
-
|
79 |
-
// Post Content.
|
80 |
-
$wpcp_post_content = sprintf( '<p>%1$s</p>', get_the_excerpt() );
|
81 |
-
|
82 |
-
$all_captions = '';
|
83 |
-
if ( $show_img_title || $show_post_content || ! empty( $wpcp_post_meta ) ) {
|
84 |
-
$all_captions = '<div class="wpcp-all-captions">' . $wpcp_post_title . ( $show_post_content ? $wpcp_post_content : '' ) . $wpcp_post_meta . '</div>';
|
85 |
-
}
|
86 |
-
|
87 |
-
if ( $image || $all_captions ) {
|
88 |
-
echo '<div class="wpcp-single-item">';
|
89 |
-
echo wp_kses_post( $image . $all_captions );
|
90 |
-
echo '</div>';
|
91 |
-
}
|
92 |
-
endwhile;
|
93 |
-
wp_reset_postdata();
|
94 |
-
} else {
|
95 |
-
echo '<h2 class="wpcp-no-post-found" >' . esc_html__( 'No posts found', 'wp-carousel-free' ) . '</h2>';
|
96 |
-
}
|
97 |
-
echo '</div>';
|
98 |
-
echo '</div>'; // Carousel Wrapper.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public/templates/preloader.php
CHANGED
@@ -2,17 +2,17 @@
|
|
2 |
/**
|
3 |
* The image carousel template.
|
4 |
*
|
5 |
-
* @
|
6 |
-
* @
|
|
|
7 |
*/
|
8 |
|
9 |
// If this file is called directly, abort.
|
10 |
if ( ! defined( 'WPINC' ) ) {
|
11 |
die;
|
12 |
}
|
13 |
-
$preloader_image = WPCAROUSELF_URL . 'public/css/ajax-loader.gif';
|
14 |
if ( ! empty( $preloader_image ) ) {
|
15 |
echo '<div id="wpcp-preloader-' . esc_attr( $post_id ) . '" class="wpcp-carousel-preloader">';
|
16 |
-
echo '<img src="
|
17 |
echo '</div>';
|
18 |
}
|
2 |
/**
|
3 |
* The image carousel template.
|
4 |
*
|
5 |
+
* @since 2.3.4
|
6 |
+
* @package WP_Carousel_Free
|
7 |
+
* @subpackage WP_Carousel_Free/public/templates
|
8 |
*/
|
9 |
|
10 |
// If this file is called directly, abort.
|
11 |
if ( ! defined( 'WPINC' ) ) {
|
12 |
die;
|
13 |
}
|
|
|
14 |
if ( ! empty( $preloader_image ) ) {
|
15 |
echo '<div id="wpcp-preloader-' . esc_attr( $post_id ) . '" class="wpcp-carousel-preloader">';
|
16 |
+
echo '<img src="' . esc_url( $preloader_image ) . '"/>';
|
17 |
echo '</div>';
|
18 |
}
|
public/templates/product-carousel.php
DELETED
@@ -1,106 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* The image carousel template.
|
4 |
-
*
|
5 |
-
* @package WP_Carousel_Free
|
6 |
-
* @subpackage WP_Carousel_Free/public/templates
|
7 |
-
*/
|
8 |
-
|
9 |
-
// If this file is called directly, abort.
|
10 |
-
if ( ! defined( 'WPINC' ) ) {
|
11 |
-
die;
|
12 |
-
}
|
13 |
-
if ( ! class_exists( 'WooCommerce' ) ) {
|
14 |
-
return;
|
15 |
-
}
|
16 |
-
|
17 |
-
$number_of_total_products = $upload_data['wpcp_total_products'];
|
18 |
-
|
19 |
-
$show_product_name = $shortcode_data['wpcp_product_name'];
|
20 |
-
$show_product_price = $shortcode_data['wpcp_product_price'];
|
21 |
-
$show_product_rating = $shortcode_data['wpcp_product_rating'];
|
22 |
-
$show_product_cart = $shortcode_data['wpcp_product_cart'];
|
23 |
-
$default_args = array(
|
24 |
-
'post_type' => 'product',
|
25 |
-
'post_status' => 'publish',
|
26 |
-
'ignore_sticky_posts' => 1,
|
27 |
-
'posts_per_page' => $number_of_total_products,
|
28 |
-
'order' => $post_order,
|
29 |
-
'orderby' => $post_order_by,
|
30 |
-
'meta_query' => array( // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query
|
31 |
-
array(
|
32 |
-
'key' => '_stock_status',
|
33 |
-
'value' => 'outofstock',
|
34 |
-
'compare' => 'NOT IN',
|
35 |
-
),
|
36 |
-
),
|
37 |
-
);
|
38 |
-
$product_query = new WP_Query( $default_args );
|
39 |
-
|
40 |
-
// Carousel Wrapper Start.
|
41 |
-
echo '<div class="wpcp-carousel-wrapper wpcp-wrapper-' . esc_attr( $post_id ) . '">';
|
42 |
-
if ( $section_title ) {
|
43 |
-
echo '<h2 class="sp-wpcpro-section-title">' . wp_kses_post( get_the_title( $post_id ) ) . '</h2>';
|
44 |
-
}
|
45 |
-
if ( $preloader ) {
|
46 |
-
require WPCAROUSELF_PATH . '/public/templates/preloader.php';
|
47 |
-
}
|
48 |
-
$the_rtl = ( 'ltr' === $carousel_direction ) ? ' dir="rtl"' : ' dir="ltr"';
|
49 |
-
echo wp_kses_post( '<div id="sp-wp-carousel-free-id-' . $post_id . '" class="' . $carousel_classes . '" ' . $wpcp_slick_options . ' ' . $the_rtl . '">' );
|
50 |
-
if ( $product_query->have_posts() ) {
|
51 |
-
while ( $product_query->have_posts() ) :
|
52 |
-
$product_query->the_post();
|
53 |
-
global $product, $woocommerce;
|
54 |
-
echo '<div class="wpcp-single-item">';
|
55 |
-
|
56 |
-
$product_thumb_id = get_post_thumbnail_id();
|
57 |
-
$product_thumb_alt_text = get_post_meta( $product_thumb_id, '_wp_attachment_image_alt', true );
|
58 |
-
$image_url = wp_get_attachment_image_src( $product_thumb_id, $image_sizes );
|
59 |
-
$the_image_title_attr = ' title="' . get_the_title() . '"';
|
60 |
-
$image_title_attr = $show_image_title_attr ? $the_image_title_attr : '';
|
61 |
-
|
62 |
-
// Product Thumbnail.
|
63 |
-
$wpcp_product_image = '';
|
64 |
-
if ( ! empty( $image_url[0] ) && $show_slide_image ) {
|
65 |
-
|
66 |
-
if ( 'false' !== $lazy_load_image ) {
|
67 |
-
$wpcp_product_thumb = sprintf( '<img class="wcp-lazy" data-lazy="%1$s" src="%2$s"%3$s alt="%4$s" width="%5$s" height="%6$s">', $image_url[0], $lazy_load_img, $image_title_attr, $product_thumb_alt_text, $image_url[1], $image_url[2] );
|
68 |
-
} else {
|
69 |
-
$wpcp_product_thumb = sprintf( '<img class="skip-lazy" src="%1$s"%2$s alt="%3$s" width="%4$s" height="%5$s">', $image_url[0], $image_title_attr, $product_thumb_alt_text, $image_url[1], $image_url[2] );
|
70 |
-
}
|
71 |
-
|
72 |
-
$wpcp_product_image = sprintf( '<div class="wpcp-slide-image"><a href="%1$s">%2$s</a></div>', get_the_permalink(), $wpcp_product_thumb );
|
73 |
-
}
|
74 |
-
|
75 |
-
// Product name.
|
76 |
-
$wpcp_product_name = sprintf( '<h2 class="wpcp-product-title"><a href="%1$s">%2$s</a></h2>', get_the_permalink(), get_the_title() );
|
77 |
-
|
78 |
-
$price_html = $product->get_price_html();
|
79 |
-
if ( $price_html ) {
|
80 |
-
$wpcp_product_price = sprintf( '<div class="wpcp-product-price">%1$s</div>', $price_html );
|
81 |
-
}
|
82 |
-
|
83 |
-
// Product rating.
|
84 |
-
$av_rating = $product->get_average_rating();
|
85 |
-
$average_rating = ( $av_rating / 5 ) * 100;
|
86 |
-
if ( $average_rating > 0 ) {
|
87 |
-
$wpcp_product_rating = sprintf( '<div class="wpcp-product-rating woocommerce"><div class="woocommerce-product-rating"><div class="star-rating" title="%1$s %2$s %3$s"><span style="width:%4$s"></span></div></div></div>', __( 'Rated ', 'wp-carousel-free' ), $av_rating, __( ' out of 5', 'wp-carousel-free' ), $average_rating . '%' );
|
88 |
-
}
|
89 |
-
|
90 |
-
// Add to cart button.
|
91 |
-
$wpcp_cart = apply_filters( 'wpcp_filter_product_cart', do_shortcode( '[add_to_cart id="' . get_the_ID() . '" show_price="false" style="none"]' ) );
|
92 |
-
$wpcp_cart_button = sprintf( '<div class="wpcp-cart-button">%1$s</div>', $wpcp_cart );
|
93 |
-
|
94 |
-
if ( $show_product_name || $show_product_rating || $show_product_price || $show_product_cart ) {
|
95 |
-
$wpcp_product_details = '<div class="wpcp-all-captions">' . ( ( $show_product_name ) && isset( $wpcp_product_name ) ? $wpcp_product_name : '' ) . ( $show_product_price && isset( $wpcp_product_price ) ? $wpcp_product_price : '' ) . ( $show_product_rating && isset( $wpcp_product_rating ) ? $wpcp_product_rating : '' ) . ( $show_product_cart ? $wpcp_cart_button : '' ) . '</div>';
|
96 |
-
}
|
97 |
-
echo wp_kses_post( $wpcp_product_image . $wpcp_product_details );
|
98 |
-
echo '</div>';
|
99 |
-
|
100 |
-
endwhile;
|
101 |
-
wp_reset_postdata();
|
102 |
-
} else {
|
103 |
-
echo '<h2 class="sp-not-found-any-post" >' . esc_html__( 'No products found', 'wp-carousel-free' ) . '</h2>';
|
104 |
-
}
|
105 |
-
echo '</div>
|
106 |
-
</div>'; // Carousel Wrapper.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public/templates/section-title.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Section title
|
4 |
+
*
|
5 |
+
* This template can be overridden by copying it to yourtheme/wp-carousel-free/templates/section-title.php
|
6 |
+
*
|
7 |
+
* @since 2.3.4
|
8 |
+
* @package WP_Carousel_Free
|
9 |
+
* @subpackage WP_Carousel_Free/public/templates
|
10 |
+
*/
|
11 |
+
|
12 |
+
?>
|
13 |
+
<h2 class="sp-wpcpro-section-title"> <?php echo wp_kses_post( get_the_title( $post_id ) ); ?> </h2>
|
readme.txt
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
===
|
2 |
Contributors: shapedplugin, khalilu, shamimmiashuhagh, rubel_miah
|
3 |
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.
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
|
12 |
-
The Most Powerful and User-friendly
|
13 |
|
14 |
|
15 |
== Description ==
|
@@ -91,7 +91,7 @@ It’s even easier to put images of different height together so the width is dy
|
|
91 |
* **Image Carousel** - WordPress Carousel Pro allows you to create beautiful image carousels for your site in minutes! Upload images via WordPress regular media gallery, create a gallery to make carousel.
|
92 |
* **Post Carousel** - Display posts from multiple Categories, Tags, Formats, or Types: Latest, Taxonomies, Specific etc. Show the standard post contents: title, image, excerpt, read more, category, date, author, tags, comments etc.
|
93 |
* **Product Carousel** - Filter by different product types. (e.g. latest, categories, specific products etc.). Show/hide the product name, image, price, excerpt, read more, rating, add to cart button etc.
|
94 |
-
* **Content Carousel (Slide Anything)** - Slide anything you want based on your WordPress site. (e.g. images, text, HTML, shortcodes, any custom contents etc.) You can sort slide content by drag and drop easily.
|
95 |
* **Video Carousel** - Show videos from multiple sources: YouTube, Vimeo, Dailymotion, mp4, WebM, and even self-hosted video with Lightbox. A customizable video icon will place over the video thumb.
|
96 |
|
97 |
|
@@ -135,14 +135,14 @@ It’s even easier to put images of different height together so the width is dy
|
|
135 |
* Post order (Ascending & Descending) and order by ID, date, random, title, modified etc.
|
136 |
* **Content Carousel**
|
137 |
* **Slide Anything you want based on your website. (e.g. images, text, HTML, shortcodes, any custom contents etc.)**
|
138 |
-
* **Video Carousel.**
|
139 |
* Video icon color customization.
|
140 |
* Add video caption and description.
|
141 |
* Add custom video thumbnail for the Self-hosted Video.
|
142 |
* Custom CSS field to override styles.
|
143 |
* Display carousel section title.
|
144 |
* Set margin-bottom for the section title.
|
145 |
-
* Scripts Enqueue or Dequeue options to avoid conflicts.
|
146 |
* **Carousel Mode (Standard, Ticker and Center Mode).**
|
147 |
* AutoPlay on/off.
|
148 |
* Control AutoPlay and Pagination speed.
|
@@ -173,15 +173,15 @@ It’s even easier to put images of different height together so the width is dy
|
|
173 |
* **Fast and friendly support.**
|
174 |
* Any new features we add in the future (which is often).
|
175 |
* [__Full list of PRO features.__](https://shapedplugin.com/plugin/wordpress-carousel-pro/?ref=1)
|
176 |
-
|
177 |
-
|
178 |
= Multilingual Ready =
|
179 |
|
180 |
* [WPML](https://wpml.org/)
|
181 |
* [Polylang](https://wordpress.org/plugins/polylang/)
|
182 |
* [qTranslate-x](https://wordpress.org/plugins/qtranslate-x/)
|
183 |
* [GTranslate](https://wordpress.org/plugins/gtranslate/)
|
184 |
-
* [Google Language Translator](https://wordpress.org/plugins/google-language-translator/)
|
185 |
* [WPGlobus](https://wordpress.org/plugins/wpglobus/)
|
186 |
|
187 |
= Page Builders Ready =
|
@@ -263,7 +263,7 @@ The WordPress codex contains <a href="https://codex.wordpress.org/Managing_Plugi
|
|
263 |
= What types of carousel you can create using WordPress Carousel? =
|
264 |
You can create three (3) types of carousel using **WordPress Carousel** such as: **Image Carousel, Post Carousel, and Product Carousel.** And with the [__Premium Version__](https://shapedplugin.com/plugin/wordpress-carousel-pro/?ref=1), you can create also **Content Carousel** and **Video Carousel**.
|
265 |
|
266 |
-
= Do I need to have coding skills to use WordPress Carousel? =
|
267 |
No. You don’t need any coding skill. No more pain writing any shortcode attributes to display carousel in your site. With just a few clicks, you can amazingly create unlimited Image, Post, and Product Carousels.
|
268 |
|
269 |
= Is WordPress Carousel responsive? =
|
@@ -278,7 +278,7 @@ Yes. You can have an unlimited carousel with each separate setting in the page,
|
|
278 |
= Will WordPress Carousel work with my theme? =
|
279 |
WordPress Carousel works with any WordPress theme if themes are developed according to WordPress standard.
|
280 |
|
281 |
-
= How can I get support if the plugin is not working? =
|
282 |
If you face any problem with our plugin or something is not working as it should, first follow the preliminary steps:
|
283 |
Test the plugin with a WordPress default theme, to be sure that the error is not caused by the theme you are currently using.
|
284 |
|
@@ -297,7 +297,7 @@ You can get access to more features when you purchase a license of the plugin. P
|
|
297 |
=Is WordPress Carousel Multilingual Ready?=
|
298 |
Yes, WordPress Carousel is 100% translation ready and tested with [WPML](https://wpml.org/), [Polylang](https://wordpress.org/plugins/polylang/), [qTranslate-x](https://wordpress.org/plugins/qtranslate-x/), [GTranslate](https://wordpress.org/plugins/gtranslate/), [Google Language Translator](https://wordpress.org/plugins/google-language-translator/), [WPGlobus](https://wordpress.org/plugins/wpglobus/) etc.
|
299 |
|
300 |
-
= Is WordPress Carousel compatible with WordPress multisite? =
|
301 |
Yes, WordPress Carousel works perfectly with WordPress multi-site network.
|
302 |
|
303 |
= How to use ‘WordPress Carousel’ in WordPress 5.0 Gutenberg Block Editor =
|
@@ -312,7 +312,7 @@ Thank you!
|
|
312 |
|
313 |
== Screenshots ==
|
314 |
|
315 |
-
1. Live Demo.
|
316 |
2. Carousel Settings.
|
317 |
3. General Settings (Image Carousel).
|
318 |
4. Style Settings.
|
@@ -327,6 +327,15 @@ Thank you!
|
|
327 |
|
328 |
== Changelog ==
|
329 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
330 |
= 2.3.3 – Nov 04, 2021 =
|
331 |
* Fix: Image alt text issue.
|
332 |
* Improved: Settings page "Save Changes" and "Reset Tab" button.
|
1 |
+
=== Carousel, Slider, Gallery by WP Carousel - Image Carousel & Photo Gallery, Post Carousel & Post Grid, Product Carousel & Product Grid for WooCommerce ===
|
2 |
Contributors: shapedplugin, khalilu, shamimmiashuhagh, rubel_miah
|
3 |
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.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
|
12 |
+
The Most Powerful and User-friendly Carousel & Gallery plugin. Create beautiful carousel and gallery in minutes using Images, Posts, WooCommerce Products, etc.
|
13 |
|
14 |
|
15 |
== Description ==
|
91 |
* **Image Carousel** - WordPress Carousel Pro allows you to create beautiful image carousels for your site in minutes! Upload images via WordPress regular media gallery, create a gallery to make carousel.
|
92 |
* **Post Carousel** - Display posts from multiple Categories, Tags, Formats, or Types: Latest, Taxonomies, Specific etc. Show the standard post contents: title, image, excerpt, read more, category, date, author, tags, comments etc.
|
93 |
* **Product Carousel** - Filter by different product types. (e.g. latest, categories, specific products etc.). Show/hide the product name, image, price, excerpt, read more, rating, add to cart button etc.
|
94 |
+
* **Content Carousel (Slide Anything)** - Slide anything you want based on your WordPress site. (e.g. images, text, HTML, shortcodes, any custom contents etc.) You can sort slide content by drag and drop easily.
|
95 |
* **Video Carousel** - Show videos from multiple sources: YouTube, Vimeo, Dailymotion, mp4, WebM, and even self-hosted video with Lightbox. A customizable video icon will place over the video thumb.
|
96 |
|
97 |
|
135 |
* Post order (Ascending & Descending) and order by ID, date, random, title, modified etc.
|
136 |
* **Content Carousel**
|
137 |
* **Slide Anything you want based on your website. (e.g. images, text, HTML, shortcodes, any custom contents etc.)**
|
138 |
+
* **Video Carousel.**
|
139 |
* Video icon color customization.
|
140 |
* Add video caption and description.
|
141 |
* Add custom video thumbnail for the Self-hosted Video.
|
142 |
* Custom CSS field to override styles.
|
143 |
* Display carousel section title.
|
144 |
* Set margin-bottom for the section title.
|
145 |
+
* Scripts Enqueue or Dequeue options to avoid conflicts.
|
146 |
* **Carousel Mode (Standard, Ticker and Center Mode).**
|
147 |
* AutoPlay on/off.
|
148 |
* Control AutoPlay and Pagination speed.
|
173 |
* **Fast and friendly support.**
|
174 |
* Any new features we add in the future (which is often).
|
175 |
* [__Full list of PRO features.__](https://shapedplugin.com/plugin/wordpress-carousel-pro/?ref=1)
|
176 |
+
|
177 |
+
|
178 |
= Multilingual Ready =
|
179 |
|
180 |
* [WPML](https://wpml.org/)
|
181 |
* [Polylang](https://wordpress.org/plugins/polylang/)
|
182 |
* [qTranslate-x](https://wordpress.org/plugins/qtranslate-x/)
|
183 |
* [GTranslate](https://wordpress.org/plugins/gtranslate/)
|
184 |
+
* [Google Language Translator](https://wordpress.org/plugins/google-language-translator/)
|
185 |
* [WPGlobus](https://wordpress.org/plugins/wpglobus/)
|
186 |
|
187 |
= Page Builders Ready =
|
263 |
= What types of carousel you can create using WordPress Carousel? =
|
264 |
You can create three (3) types of carousel using **WordPress Carousel** such as: **Image Carousel, Post Carousel, and Product Carousel.** And with the [__Premium Version__](https://shapedplugin.com/plugin/wordpress-carousel-pro/?ref=1), you can create also **Content Carousel** and **Video Carousel**.
|
265 |
|
266 |
+
= Do I need to have coding skills to use WordPress Carousel? =
|
267 |
No. You don’t need any coding skill. No more pain writing any shortcode attributes to display carousel in your site. With just a few clicks, you can amazingly create unlimited Image, Post, and Product Carousels.
|
268 |
|
269 |
= Is WordPress Carousel responsive? =
|
278 |
= Will WordPress Carousel work with my theme? =
|
279 |
WordPress Carousel works with any WordPress theme if themes are developed according to WordPress standard.
|
280 |
|
281 |
+
= How can I get support if the plugin is not working? =
|
282 |
If you face any problem with our plugin or something is not working as it should, first follow the preliminary steps:
|
283 |
Test the plugin with a WordPress default theme, to be sure that the error is not caused by the theme you are currently using.
|
284 |
|
297 |
=Is WordPress Carousel Multilingual Ready?=
|
298 |
Yes, WordPress Carousel is 100% translation ready and tested with [WPML](https://wpml.org/), [Polylang](https://wordpress.org/plugins/polylang/), [qTranslate-x](https://wordpress.org/plugins/qtranslate-x/), [GTranslate](https://wordpress.org/plugins/gtranslate/), [Google Language Translator](https://wordpress.org/plugins/google-language-translator/), [WPGlobus](https://wordpress.org/plugins/wpglobus/) etc.
|
299 |
|
300 |
+
= Is WordPress Carousel compatible with WordPress multisite? =
|
301 |
Yes, WordPress Carousel works perfectly with WordPress multi-site network.
|
302 |
|
303 |
= How to use ‘WordPress Carousel’ in WordPress 5.0 Gutenberg Block Editor =
|
312 |
|
313 |
== Screenshots ==
|
314 |
|
315 |
+
1. Live Demo.
|
316 |
2. Carousel Settings.
|
317 |
3. General Settings (Image Carousel).
|
318 |
4. Style Settings.
|
327 |
|
328 |
== Changelog ==
|
329 |
|
330 |
+
= 2.4.0 – Nov 15, 2021 =
|
331 |
+
* New: Image/photo gallery added.
|
332 |
+
* New: Posts Grid added.
|
333 |
+
* New: WooCommerce Products Grid added.
|
334 |
+
* New: Template overriding/modification options.
|
335 |
+
* Improved: Plugin settings text.
|
336 |
+
* Fix: Several minor tweaking.
|
337 |
+
* Tested: WooCommerce 5.9.0 compatibility.
|
338 |
+
|
339 |
= 2.3.3 – Nov 04, 2021 =
|
340 |
* Fix: Image alt text issue.
|
341 |
* Improved: Settings page "Save Changes" and "Reset Tab" button.
|
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.
|
13 |
* Author: ShapedPlugin
|
14 |
* Author URI: https://shapedplugin.com/
|
15 |
* License: GPL-2.0+
|
@@ -17,7 +17,7 @@
|
|
17 |
* Text Domain: wp-carousel-free
|
18 |
* Domain Path: /languages
|
19 |
* WC requires at least: 4.0
|
20 |
-
* WC tested up to: 5.
|
21 |
*/
|
22 |
|
23 |
// If this file is called directly, abort.
|
@@ -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.
|
123 |
$this->define_constants();
|
124 |
$this->includes();
|
125 |
$this->load_dependencies();
|
@@ -176,6 +176,7 @@ class SP_WP_Carousel_Free {
|
|
176 |
include_once WPCAROUSELF_INCLUDES . '/class-wp-carousel-free-import-export.php';
|
177 |
include_once WPCAROUSELF_PATH . '/public/shortcode-deprecated.php';
|
178 |
include_once WPCAROUSELF_INCLUDES . '/class-wp-carousel-free-i18n.php';
|
|
|
179 |
include_once WPCAROUSELF_PATH . '/public/class-wp-carousel-free-public.php';
|
180 |
include_once WPCAROUSELF_PATH . '/admin/class-wp-carousel-free-admin.php';
|
181 |
include_once WPCAROUSELF_PATH . '/admin/views/tmce-button.php';
|
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.0
|
13 |
* Author: ShapedPlugin
|
14 |
* Author URI: https://shapedplugin.com/
|
15 |
* License: GPL-2.0+
|
17 |
* Text Domain: wp-carousel-free
|
18 |
* Domain Path: /languages
|
19 |
* WC requires at least: 4.0
|
20 |
+
* WC tested up to: 5.9.0
|
21 |
*/
|
22 |
|
23 |
// If this file is called directly, abort.
|
119 |
*/
|
120 |
public function setup() {
|
121 |
$this->plugin_name = 'wp-carousel-free';
|
122 |
+
$this->version = '2.4.0';
|
123 |
$this->define_constants();
|
124 |
$this->includes();
|
125 |
$this->load_dependencies();
|
176 |
include_once WPCAROUSELF_INCLUDES . '/class-wp-carousel-free-import-export.php';
|
177 |
include_once WPCAROUSELF_PATH . '/public/shortcode-deprecated.php';
|
178 |
include_once WPCAROUSELF_INCLUDES . '/class-wp-carousel-free-i18n.php';
|
179 |
+
include_once WPCAROUSELF_PATH . '/public/Helper.php';
|
180 |
include_once WPCAROUSELF_PATH . '/public/class-wp-carousel-free-public.php';
|
181 |
include_once WPCAROUSELF_PATH . '/admin/class-wp-carousel-free-admin.php';
|
182 |
include_once WPCAROUSELF_PATH . '/admin/views/tmce-button.php';
|