Plugin Directory

Changeset 3065296 for wp-carousel-free


Ignore:
Timestamp:
04/05/2024 08:55:29 AM (13 months ago)
Author:
rubel_miah
Message:

Release version 2.6.4

Location:
wp-carousel-free
Files:
309 added
17 edited

Legend:

Unmodified
Added
Removed
  • wp-carousel-free/trunk/admin/ElementAddons/Wp_Carousel_Shortcode_Widget.php

    r3025593 r3065296  
    122122        }
    123123
    124         $post_id = $sp_wp_carousel_shortcode;
     124        $post_id = (int) $sp_wp_carousel_shortcode;
    125125
    126126        if ( \Elementor\Plugin::$instance->editor->is_edit_mode() ) {
     
    135135            ?>
    136136            <script>
    137                 jQuery('#wpcp-preloader-' + <?php echo esc_attr( $post_id ); ?>).animate({ opacity: 0 }, 600).remove();
    138                 jQuery('#sp-wp-carousel-free-id-' + <?php echo esc_attr( $post_id ); ?>).animate({ opacity: 1 }, 600);
     137                jQuery('#wpcp-preloader-' + <?php echo intval( $post_id ); ?>).animate({ opacity: 0 }, 600).remove();
     138                jQuery('#sp-wp-carousel-free-id-' + <?php echo intval( $post_id ); ?>).animate({ opacity: 1 }, 600);
    139139            </script>
    140140            <script src="<?php echo esc_url( WPCAROUSELF_URL . 'public/js/wp-carousel-free-public.min.js' ); ?>" ></script>
  • wp-carousel-free/trunk/admin/css/wp-carousel-free-admin.css

    r3025593 r3065296  
    267267
    268268#sp_wpcf_live_preview img {
    269     width: 100%;
     269    max-width: 100%;
     270    height: auto;
    270271}
    271272
  • wp-carousel-free/trunk/admin/css/wp-carousel-free-admin.min.css

    r3025593 r3065296  
    1 .text-center{text-align:center}#adminmenu .menu-icon-sp_wp_carousel .wp-menu-image img{width:22px;padding:7px 0;height:20px}.spwpcp-gallery-list li{display:inline;margin:5px}.js .tmce-active .wp-editor-area{color:#000}.disable-color-picker .wpcf-field-color{pointer-events:none;opacity:.6}.sp_wpcp_shortcode_generator .wpcf-wrapper{min-height:200px;z-index:999;background-image:url(../img/spinner.svg);background-repeat:no-repeat;background-color:#fff;background-position:center}.sp_wpcp_shortcode_generator .wpcf-wrapper li{opacity:0}.sp-wpcp-help .wp-badge{border:none;background:url(../img/wpcp-icon-256.png) right no-repeat;background-size:100px 100px;box-shadow:none;height:auto;top:-75px}.about-wrap.sp-wpcf-upgrade [class$="-col"],.about-wrap.sp-wpcp-help [class$="-col"]{display:flex;justify-content:space-between;flex-wrap:wrap}.about-wrap.sp-wpcf-upgrade [class$="-col"] .col,.about-wrap.sp-wpcp-help [class$="-col"] .col{flex:1;align-self:flex-start}.about-wrap.sp-wpcp-help .feature-section .col{margin-top:40px}.about-wrap.sp-wpcf-upgrade [class$="-col"] .col+.col{margin-left:0}.about-wrap.sp-wpcp-help [class$="-col"] .col+.col{margin-left:20px}.sp-wpcf-upgrade .headline-feature.feature-video,.sp-wpcp-help .headline-feature.feature-video{position:relative;margin:40px 0;padding-bottom:56.25%;width:100%;max-width:100%;height:0;text-align:center}.sp-wpcf-upgrade .headline-feature.feature-video iframe,.sp-wpcp-help .headline-feature.feature-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}.sp-wpcp-help .feature-section .sp-wpcp-feature{background-color:#fff;padding:20px 20px;border:1px solid #ddd}.sp-wpcp-help .feature-section .sp-wpcp-feature h3{font-size:16px;margin-top:18px}.sp-wpcp-help .feature-section i.sp-wpcp-font-icon{font-size:30px;display:block;color:#18afb9;font-family:fontawesome;font-style:normal}@media (max-width:500px){.sp-wpcp-help .wp-badge{background-position-x:center;top:0}}#sp-wpcfree-review-notice{padding:18px 15px 18px 0;background-color:#fff;border-radius:3px;margin:20px 20px 0 0;box-shadow:0 0 20px 0 rgba(36,39,50,.08)}#sp-wpcfree-review-notice .sp-wpcfree-plugin-icon{width:125px;float:left;line-height:90px;text-align:center;margin-left:8px}#sp-wpcfree-review-notice .sp-wpcfree-plugin-icon img{max-width:94px;vertical-align:middle;margin-right:8px}#sp-wpcfree-review-notice .sp-wpcfree-notice-text{overflow:hidden}#sp-wpcfree-review-notice .sp-wpcfree-notice-text h3{font-size:24px;margin:0 0 5px;font-weight:400;line-height:1}#sp-wpcfree-review-notice .sp-wpcfree-notice-text p{margin:10px 0 10px 0;font-size:13px}#sp-wpcfree-review-notice .sp-wpcfree-notice-text p.sp-wpcfree-review-actions{margin:10px 0 2px 0}#sp-wpcfree-review-notice .sp-wpcfree-notice-text .sp-wpcfree-review-actions a{text-decoration:none;margin-right:8px;color:#63a37b;display:inline-block;position:relative}#sp-wpcfree-review-notice .sp-wpcfree-notice-text .sp-wpcfree-review-actions a span{padding-right:2px}#sp-wpcfree-review-notice .sp-wpcfree-notice-text .sp-wpcfree-review-actions a.button{color:#fff}@media screen and (max-width:782px){.about-wrap .three-col .col{min-width:48%!important;max-width:48%!important;margin-left:0!important}.about-wrap.sp-wpcp-help .feature-section .col{margin-top:20px}}@media (max-width:960px){.sp-wpc-help .sp-wpc-upgrade-sticky-footer{width:calc(100%)}}@media only screen and (max-width:500px){.about-wrap .three-col .col{min-width:100%!important}.sp-wpcf-upgrade .wp-badge{background-position-x:center}}.spwpc-copy-btn{width:16px;margin-left:13px;position:absolute;top:50%;margin-top:-8px}.spwpc-after-copy-text,.spwpc-pagination-not-work{bottom:-100px;opacity:0;z-index:9999999;position:fixed;width:230px;left:180px;text-align:center;padding:15px 15px;line-height:15px;color:#fff;border-radius:3px;background:#32373c;border:1px solid #32373c}.spwpc-pagination-not-work{width:290px}.spwpc-after-copy-text .fa-check-circle,.spwpc-pagination-not-work .fa-check-circle{font-size:14px;margin-right:2px;color:#5db62e}#sp_wpcf_live_preview #poststuff .wpcp-carousel-wrapper .sp-wpcpro-section-title,#sp_wpcf_live_preview .wpcp-carousel-wrapper .sp-wpcpro-section-title{font-size:24px;line-height:28px;padding:0}#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions .wpcp-post-title{padding:0}#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions .wpcp-product-title a,#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions p{font-size:16px;line-height:26px}#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions ul li{font-size:14px;line-height:24px}#sp_wpcf_live_preview img{width:100%}.spwpcf-gutenberg-shortcode.editor-styles-wrapper{padding:0;line-height:24px}.block-editor-page .editor-styles-wrapper select,.block-editor-page select.spwpcf-shortcode-selector,.block-editor-page select.spwpcf-shortcode-selector:focus,.block-editor-page select.spwpcf-shortcode-selector:focus-visible{width:250px;padding:5px;border:1px solid #ccc;font-size:13px;padding-right:24px}#adminmenu #menu-posts-sp_wp_carousel li:nth-child(7) a{color:#dba617}#adminmenu #menu-posts-sp_wp_carousel li a .sp-go-pro-icon{background-image:url(../img/premium.svg);width:20px;height:20px;display:block;float:left;margin-right:1px;margin-left:-2px;margin-top:-1px}.wpcf-page-loading-spinner i{animation:import-spinner 2s linear infinite;margin-left:5px}@keyframes import-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.spwpcp-footer-text-star{color:#dba617}
     1.text-center{text-align:center}#adminmenu .menu-icon-sp_wp_carousel .wp-menu-image img{width:22px;padding:7px 0;height:20px}.spwpcp-gallery-list li{display:inline;margin:5px}.js .tmce-active .wp-editor-area{color:#000}.disable-color-picker .wpcf-field-color{pointer-events:none;opacity:.6}.sp_wpcp_shortcode_generator .wpcf-wrapper{min-height:200px;z-index:999;background-image:url(../img/spinner.svg);background-repeat:no-repeat;background-color:#fff;background-position:center}.sp_wpcp_shortcode_generator .wpcf-wrapper li{opacity:0}.sp-wpcp-help .wp-badge{border:none;background:url(../img/wpcp-icon-256.png) right no-repeat;background-size:100px 100px;box-shadow:none;height:auto;top:-75px}.about-wrap.sp-wpcf-upgrade [class$="-col"],.about-wrap.sp-wpcp-help [class$="-col"]{display:flex;justify-content:space-between;flex-wrap:wrap}.about-wrap.sp-wpcf-upgrade [class$="-col"] .col,.about-wrap.sp-wpcp-help [class$="-col"] .col{flex:1;align-self:flex-start}.about-wrap.sp-wpcp-help .feature-section .col{margin-top:40px}.about-wrap.sp-wpcf-upgrade [class$="-col"] .col+.col{margin-left:0}.about-wrap.sp-wpcp-help [class$="-col"] .col+.col{margin-left:20px}.sp-wpcf-upgrade .headline-feature.feature-video,.sp-wpcp-help .headline-feature.feature-video{position:relative;margin:40px 0;padding-bottom:56.25%;width:100%;max-width:100%;height:0;text-align:center}.sp-wpcf-upgrade .headline-feature.feature-video iframe,.sp-wpcp-help .headline-feature.feature-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}.sp-wpcp-help .feature-section .sp-wpcp-feature{background-color:#fff;padding:20px 20px;border:1px solid #ddd}.sp-wpcp-help .feature-section .sp-wpcp-feature h3{font-size:16px;margin-top:18px}.sp-wpcp-help .feature-section i.sp-wpcp-font-icon{font-size:30px;display:block;color:#18afb9;font-family:fontawesome;font-style:normal}@media (max-width:500px){.sp-wpcp-help .wp-badge{background-position-x:center;top:0}}#sp-wpcfree-review-notice{padding:18px 15px 18px 0;background-color:#fff;border-radius:3px;margin:20px 20px 0 0;box-shadow:0 0 20px 0 rgba(36,39,50,.08)}#sp-wpcfree-review-notice .sp-wpcfree-plugin-icon{width:125px;float:left;line-height:90px;text-align:center;margin-left:8px}#sp-wpcfree-review-notice .sp-wpcfree-plugin-icon img{max-width:94px;vertical-align:middle;margin-right:8px}#sp-wpcfree-review-notice .sp-wpcfree-notice-text{overflow:hidden}#sp-wpcfree-review-notice .sp-wpcfree-notice-text h3{font-size:24px;margin:0 0 5px;font-weight:400;line-height:1}#sp-wpcfree-review-notice .sp-wpcfree-notice-text p{margin:10px 0 10px 0;font-size:13px}#sp-wpcfree-review-notice .sp-wpcfree-notice-text p.sp-wpcfree-review-actions{margin:10px 0 2px 0}#sp-wpcfree-review-notice .sp-wpcfree-notice-text .sp-wpcfree-review-actions a{text-decoration:none;margin-right:8px;color:#63a37b;display:inline-block;position:relative}#sp-wpcfree-review-notice .sp-wpcfree-notice-text .sp-wpcfree-review-actions a span{padding-right:2px}#sp-wpcfree-review-notice .sp-wpcfree-notice-text .sp-wpcfree-review-actions a.button{color:#fff}@media screen and (max-width:782px){.about-wrap .three-col .col{min-width:48%!important;max-width:48%!important;margin-left:0!important}.about-wrap.sp-wpcp-help .feature-section .col{margin-top:20px}}@media (max-width:960px){.sp-wpc-help .sp-wpc-upgrade-sticky-footer{width:calc(100%)}}@media only screen and (max-width:500px){.about-wrap .three-col .col{min-width:100%!important}.sp-wpcf-upgrade .wp-badge{background-position-x:center}}.spwpc-copy-btn{width:16px;margin-left:13px;position:absolute;top:50%;margin-top:-8px}.spwpc-after-copy-text,.spwpc-pagination-not-work{bottom:-100px;opacity:0;z-index:9999999;position:fixed;width:230px;left:180px;text-align:center;padding:15px 15px;line-height:15px;color:#fff;border-radius:3px;background:#32373c;border:1px solid #32373c}.spwpc-pagination-not-work{width:290px}.spwpc-after-copy-text .fa-check-circle,.spwpc-pagination-not-work .fa-check-circle{font-size:14px;margin-right:2px;color:#5db62e}#sp_wpcf_live_preview #poststuff .wpcp-carousel-wrapper .sp-wpcpro-section-title,#sp_wpcf_live_preview .wpcp-carousel-wrapper .sp-wpcpro-section-title{font-size:24px;line-height:28px;padding:0}#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions .wpcp-post-title{padding:0}#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions .wpcp-product-title a,#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions p{font-size:16px;line-height:26px}#sp_wpcf_live_preview .wpcp-carousel-wrapper .wpcp-all-captions ul li{font-size:14px;line-height:24px}#sp_wpcf_live_preview img{max-width:100%;height:auto}.spwpcf-gutenberg-shortcode.editor-styles-wrapper{padding:0;line-height:24px}.block-editor-page .editor-styles-wrapper select,.block-editor-page select.spwpcf-shortcode-selector,.block-editor-page select.spwpcf-shortcode-selector:focus,.block-editor-page select.spwpcf-shortcode-selector:focus-visible{width:250px;padding:5px;border:1px solid #ccc;font-size:13px;padding-right:24px}#adminmenu #menu-posts-sp_wp_carousel li:nth-child(7) a{color:#dba617}#adminmenu #menu-posts-sp_wp_carousel li a .sp-go-pro-icon{background-image:url(../img/premium.svg);width:20px;height:20px;display:block;float:left;margin-right:1px;margin-left:-2px;margin-top:-1px}.wpcf-page-loading-spinner i{animation:import-spinner 2s linear infinite;margin-left:5px}@keyframes import-spinner{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.spwpcp-footer-text-star{color:#dba617}
  • wp-carousel-free/trunk/admin/help-page/help.php

    r3025593 r3065296  
    5555     * @var array
    5656     */
    57     protected static $not_show_plugin_list = array( 'aitasi-coming-soon', 'latest-posts', 'widget-post-slider', 'easy-lightbox-wp' );
     57    protected static $not_show_plugin_list = array( 'aitasi-coming-soon', 'latest-posts', 'widget-post-slider', 'easy-lightbox-wp', 'wp-carousel-free' );
    5858
    5959    /**
  • wp-carousel-free/trunk/admin/views/metabox-config.php

    r3025593 r3065296  
    338338                'subtitle'   => __( 'Set a space between the items.', 'wp-carousel-free' ),
    339339                'title_help' => '<div class="sp_wpcp-img-tag"><img src="' . plugin_dir_url( __DIR__ ) . 'img/help-visuals/space.svg" alt="Space"></div><div class="sp_wpcp-info-label">' . __( 'Space', 'wp-carousel-free' ) . '</div>',
     340                'sanitize'   => 'wpcf_sanitize_number_array_field',
    340341                'right'      => true,
    341342                'top'        => true,
     
    359360                'title'      => __( 'Column(s)', 'wp-carousel-free' ),
    360361                'subtitle'   => __( 'Set number of column on devices.', 'wp-carousel-free' ),
     362                'sanitize'   => 'wpcf_sanitize_number_array_field',
    361363                'title_help' => '<div class="sp_wpcp-img-tag"><img src="' . plugin_dir_url( __DIR__ ) . 'img/help-visuals/column.svg" alt="Column(s)"></div><div class="sp_wpcp-info-label">' . __( 'Column(s)', 'wp-carousel-free' ) . '</div>',
    362364                'default'    => array(
     
    586588                'title'      => __( 'Color', 'wp-carousel-free' ),
    587589                'subtitle'   => __( 'Set pagination color.', 'wp-carousel-free' ),
     590                'sanitize'   => 'wpcf_sanitize_color_group_field',
    588591                'dependency' => array( 'wpcp_carousel_type|wpcp_layout|wpcp_source_pagination', '!=|==|==', 'image-carousel|grid|true', true ),
    589592                'options'    => array(
     
    610613                'title'      => __( 'Color', 'wp-carousel-free' ),
    611614                'subtitle'   => __( 'Set pagination color.', 'wp-carousel-free' ),
     615                'sanitize'   => 'wpcf_sanitize_color_group_field',
    612616                'dependency' => array( 'wpcp_carousel_type|wpcp_layout', '==|==', 'image-carousel|grid', true ),
    613617                'options'    => array(
     
    749753                'type'       => 'border',
    750754                'title'      => __( 'Item Border', 'wp-carousel-free' ),
    751                 'subtitle'   => __( 'Set border for the slide.', 'wp-carousel-free' ),
    752755                'subtitle'   => __( 'Set border for the items.', 'wp-carousel-free' ),
     756                'sanitize'   => 'wpcf_sanitize_border_field',
    753757                'title_help' => '<div class="sp_wpcp-img-tag"><img src="' . plugin_dir_url( __DIR__ ) . 'img/help-visuals/slider-border.svg" alt="Items Border"></div><div class="sp_wpcp-info-label">' . __( 'Items Border', 'wp-carousel-free' ) . '</div>',
    754758                'all'        => true,
     
    11281132                'title'      => __( 'Image Border', 'wp-carousel-free' ),
    11291133                'subtitle'   => __( 'Set border for the product image.', 'wp-carousel-free' ),
     1134                'sanitize'   => 'wpcf_sanitize_border_field',
    11301135                'all'        => true,
    11311136                'default'    => array(
     
    12261231                                'title'           => __( 'Speed', 'wp-carousel-free' ),
    12271232                                'subtitle'        => __( 'The timeout between sliding to the next slide in milliseconds.', 'wp-carousel-free' ),
     1233                                'sanitize'        => 'wpcf_sanitize_number_array_field',
    12281234                                'all'             => true,
    12291235                                'all_text'        => false,
     
    12671273                                'title'    => __( 'Lightbox Navigation Arrow', 'wp-carousel-free' ),
    12681274                                'subtitle' => __( 'Set navigation color for the lightbox.', 'wp-carousel-free' ),
     1275                                'sanitize' => 'wpcf_sanitize_color_group_field',
    12691276                                'options'  => array(
    12701277                                    'color1' => __( 'Color', 'wp-carousel-free' ),
     
    13791386                                'title'    => __( 'Icon Color', 'wp-carousel-free' ),
    13801387                                'subtitle' => __( 'Set color for the lightbox icon.', 'wp-carousel-free' ),
     1388                                'sanitize' => 'wpcf_sanitize_color_group_field',
    13811389                                'options'  => array(
    13821390                                    'color1' => __( 'Color', 'wp-carousel-free' ),
     
    16741682                                'id'         => 'carousel_auto_play_speed',
    16751683                                'type'       => 'slider',
     1684                                'sanitize'   => 'wpcf_sanitize_number_field',
    16761685                                'title'      => __( 'AutoPlay Delay Time', 'wp-carousel-free' ),
    16771686                                'subtitle'   => __( 'Set auto play delay time in millisecond.', 'wp-carousel-free' ),
    16781687                                'title_help' => __(
    1679                                     '<div class="sp_wpcp-info-label">AutoPlay Delay Time</div><div class="sp_wpcp-short-content">Set autoplay delay or interval time. The amount of time to delay between automatically cycling a weather item. e.g. 1000 milliseconds(ms) = 1 second.</div>',
     1688                                    '<div class="sp_wpcp-info-label">AutoPlay Delay Time</div><div class="sp_wpcp-short-content">Set autoplay delay or interval time. The amount of time to delay between automatically carousel item. e.g. 1000 milliseconds(ms) = 1 second.</div>',
    16801689                                    'wp-carousel-free'
    16811690                                ),
     
    16941703                                'id'         => 'standard_carousel_scroll_speed',
    16951704                                'type'       => 'slider',
     1705                                'sanitize'   => 'wpcf_sanitize_number_field',
    16961706                                'title'      => __( 'Carousel Speed', 'wp-carousel-free' ),
    16971707                                'subtitle'   => __( 'Set autoplay scroll speed in millisecond.', 'wp-carousel-free' ),
     
    17441754                                'title'      => __( 'Carousel Row', 'wp-carousel-free' ),
    17451755                                'subtitle'   => __( 'Set number of carousel row on device.', 'wp-carousel-free' ),
     1756                                'sanitize'   => 'wpcf_sanitize_number_array_field',
    17461757                                'lg_desktop' => true,
    17471758                                'desktop'    => true,
     
    19241935                                'title'      => __( 'Icon Size', 'wp-carousel-free' ),
    19251936                                'subtitle'   => __( 'Set a size for the nav arrow icon.', 'wp-carousel-free' ),
     1937                                'sanitize'   => 'wpcf_sanitize_number_array_field',
    19261938                                'style'      => false,
    19271939                                'color'      => false,
     
    19481960                                'title'      => __( 'Background', 'wp-carousel-free' ),
    19491961                                'subtitle'   => __( 'Set color for the carousel navigation arrow.', 'wp-carousel-free' ),
     1962                                'sanitize'   => 'wpcf_sanitize_color_group_field',
    19501963                                'options'    => array(
    19511964                                    'color1' => __( 'Color', 'wp-carousel-free' ),
     
    19681981                                'title'      => __( 'Navigation Color', 'wp-carousel-free' ),
    19691982                                'subtitle'   => __( 'Set color for the carousel navigation.', 'wp-carousel-free' ),
     1983                                'sanitize'   => 'wpcf_sanitize_color_group_field',
    19701984                                'options'    => array(
    19711985                                    'color1' => __( 'Color', 'wp-carousel-free' ),
     
    20772091                                'output_mode' => 'margin',
    20782092                                'unit_text'   => 'Unit',
     2093                                'sanitize'    => 'wpcf_sanitize_number_array_field',
    20792094                                'class'       => 'wpcp_carousel_pagination_pro_options',
    20802095                                'min'         => '-200',
     
    20932108                                'title'      => __( 'Pagination Color', 'wp-carousel-free' ),
    20942109                                'subtitle'   => __( 'Set color for the carousel pagination dots.', 'wp-carousel-free' ),
     2110                                'sanitize'   => 'wpcf_sanitize_color_group_field',
    20952111                                'options'    => array(
    20962112                                    'color1' => __( 'Color', 'wp-carousel-free' ),
  • wp-carousel-free/trunk/admin/views/option-config.php

    r3017771 r3065296  
    115115        'fields' => array(
    116116            array(
    117                 'id'      => 'wm_watermark_type',
    118                 'title'   => __( 'Watermark Type', 'wp-carousel-free' ),
    119                 'type'    => 'button_set',
    120                 'class'   => 'only_pro_settings',
    121                 'options' => array(
     117                'id'       => 'wm_watermark_type',
     118                'title'    => __( 'Watermark Type', 'wp-carousel-free' ),
     119                'type'     => 'button_set',
     120                'sanitize' => 'sanitize_text_field',
     121                'class'    => 'only_pro_settings',
     122                'options'  => array(
    122123                    'logo' => __( 'Logo', 'wp-carousel-free' ),
    123124                    'text' => __( 'Text', 'wp-carousel-free' ),
    124125                ),
    125                 'default' => 'logo',
     126                'default'  => 'logo',
    126127            ),
    127128            array(
  • wp-carousel-free/trunk/admin/views/sp-framework/classes/metabox-options.class.php

    r3017771 r3065296  
    411411                                    $fields = $fields['fields'];
    412412                                    foreach ( $fields as $field ) {
    413                                         $field_id    = ! empty( $field['id'] ) ? $field['id'] : '';
     413                                        $field_id    = ! empty( $field['id'] ) ? sanitize_key( $field['id'] ) : '';
    414414                                        $field_value = isset( $request[ $field_id ] ) ? $request[ $field_id ] : '';
    415415
    416416                                        // Sanitize "post" request of field.
    417                                         if ( ! isset( $field['sanitize'] ) ) {
     417                                        if ( isset( $field['sanitize'] ) && is_callable( $field['sanitize'] ) ) {
     418                                            $data[ $field_id ] = call_user_func( $field['sanitize'], $field_value );
     419                                        } else {
    418420                                            if ( is_array( $field_value ) ) {
    419421                                                $data[ $field_id ] = wp_kses_post_deep( $field_value );
     
    421423                                                $data[ $field_id ] = wp_kses_post( $field_value );
    422424                                            }
    423                                         } elseif ( isset( $field['sanitize'] ) && is_callable( $field['sanitize'] ) ) {
    424                                             $data[ $field_id ] = call_user_func( $field['sanitize'], $field_value );
    425                                         } else {
    426                                             $data[ $field_id ] = $field_value;
    427425                                        }
    428426
     
    441439                            } elseif ( ! empty( $field['id'] ) ) {
    442440
    443                                 $field_id    = $field['id'];
     441                                $field_id    = sanitize_key( $field['id'] );
    444442                                $field_value = isset( $request[ $field_id ] ) ? $request[ $field_id ] : '';
    445443                                // Sanitize "post" request of field.
    446                                 if ( ! isset( $field['sanitize'] ) ) {
     444                                if ( isset( $field['sanitize'] ) && is_callable( $field['sanitize'] ) ) {
     445                                        $data[ $field_id ] = call_user_func( $field['sanitize'], $field_value );
     446                                } else {
    447447                                    if ( is_array( $field_value ) ) {
    448448                                        $data[ $field_id ] = wp_kses_post_deep( $field_value );
     
    450450                                        $data[ $field_id ] = wp_kses_post( $field_value );
    451451                                    }
    452                                 } elseif ( isset( $field['sanitize'] ) && is_callable( $field['sanitize'] ) ) {
    453                                         $data[ $field_id ] = call_user_func( $field['sanitize'], $field_value );
    454                                 } else {
    455                                     $data[ $field_id ] = $field_value;
    456452                                }
    457453
  • wp-carousel-free/trunk/admin/views/sp-framework/functions/sanitize.php

    r2837251 r3065296  
    4444    }
    4545}
     46
     47if ( ! function_exists( 'wpcf_sanitize_number_array_field' ) ) {
     48    /**
     49     *
     50     * Sanitize number array
     51     *
     52     * @param  mixed $array value.
     53     * @since 1.0.0
     54     * @version 1.0.0
     55     */
     56    function wpcf_sanitize_number_array_field( $array ) {
     57        if ( empty( $array ) || ! is_array( $array ) ) {
     58            return array();
     59        }
     60
     61        $new_array = array();
     62        foreach ( $array as $key => $value ) {
     63            $sanitize_key = sanitize_key( $key );
     64            if ( 'unit' === $key || 'units' === $key ) {
     65                $new_array[ $sanitize_key ] = wp_filter_nohtml_kses( $value );
     66            } else {
     67                $new_array[ $sanitize_key ] = intval( $value );
     68            }
     69        }
     70        return $new_array;
     71    }
     72}
     73
     74if ( ! function_exists( 'wpcf_sanitize_number_field' ) ) {
     75    /**
     76     *
     77     * Sanitize number
     78     *
     79     * @param  mixed $value value.
     80     * @since 1.0.0
     81     * @version 1.0.0
     82     */
     83    function wpcf_sanitize_number_field( $value ) {
     84        if ( empty( $value ) ) {
     85            return 0;
     86        } else {
     87            return intval( $value );
     88        }
     89    }
     90}
     91
     92if ( ! function_exists( 'wpcf_sanitize_border_field' ) ) {
     93    /**
     94     *
     95     * Sanitize border field
     96     *
     97     * @param  mixed $array value.
     98     * @since 1.0.0
     99     * @version 1.0.0
     100     */
     101    function wpcf_sanitize_border_field( $array ) {
     102        if ( empty( $array ) || ! is_array( $array ) ) {
     103            return array();
     104        }
     105
     106        $new_array = array();
     107        foreach ( $array as $key => $value ) {
     108            $sanitize_key = sanitize_key( $key );
     109            if ( 'style' == $key || strpos( $key, 'color' ) !== false ) {
     110                $new_array[ $sanitize_key ] = sanitize_text_field( $value );
     111            } elseif ( ! empty( $value ) ) {
     112                $new_array[ $sanitize_key ] = intval( $value );
     113            }
     114        }
     115        return $new_array;
     116    }
     117}
     118
     119if ( ! function_exists( 'wpcf_sanitize_color_group_field' ) ) {
     120    /**
     121     *
     122     * Sanitize color group field
     123     *
     124     * @param  mixed $array value.
     125     * @since 1.0.0
     126     * @version 1.0.0
     127     */
     128    function wpcf_sanitize_color_group_field( $array ) {
     129        if ( empty( $array ) || ! is_array( $array ) ) {
     130            return array();
     131        }
     132
     133        $new_array = array();
     134        foreach ( $array as $key => $value ) {
     135            $sanitize_key               = sanitize_key( $key );
     136            $new_array[ $sanitize_key ] = sanitize_text_field( $value );
     137        }
     138        return $new_array;
     139    }
     140}
  • wp-carousel-free/trunk/admin/views/tools-config.php

    r2639954 r3065296  
    7575            ),
    7676            array(
    77                 'id'      => 'export',
    78                 'class'   => 'wpcp_export',
    79                 'type'    => 'button_set',
    80                 'title'   => ' ',
    81                 'options' => array(
     77                'id'       => 'export',
     78                'class'    => 'wpcp_export',
     79                'type'     => 'button_set',
     80                'sanitize' => 'sanitize_text_field',
     81                'title'    => ' ',
     82                'options'  => array(
    8283                    '' => 'Export',
    8384                ),
  • wp-carousel-free/trunk/includes/class-wp-carousel-free-import-export.php

    r2981138 r3065296  
    4747                    );
    4848                    foreach ( get_post_meta( $shortcode->ID ) as $metakey => $value ) {
    49                         $shortcode_export['meta'][ $metakey ] = $value[0];
    50                     }
    51                     $str  = isset( $shortcode_export['meta']['sp_wpcp_upload_options'] ) ? $shortcode_export['meta']['sp_wpcp_upload_options'] : '';
    52                     $data = unserialize( $str );
     49                        $shortcode_export['meta'][ $metakey ] = maybe_unserialize( $value[0] );
     50                    }
     51                    $str  = isset( $shortcode_export['meta']['sp_wpcp_upload_options'] ) ? maybe_unserialize( $shortcode_export['meta']['sp_wpcp_upload_options'] ) : '';
     52                    $data = maybe_unserialize( $str );
    5353                    if ( 'image-carousel' === $data['wpcp_carousel_type'] ) {
    5454                        $image_gallery      = explode( ',', $data['wpcp_gallery'] );
     
    207207                    }
    208208                    $gallery_img_url_id                          = implode( ',', $gallery_id );
    209                     $data                                        = unserialize( $shortcode['meta']['sp_wpcp_upload_options'] );
    210                     $data['wpcp_gallery']                        = $gallery_img_url_id;
    211                     $shortcode['meta']['sp_wpcp_upload_options'] = serialize( $data );
     209                    $option_data                                 = $shortcode['meta']['sp_wpcp_upload_options'];
     210                    $option_data['wpcp_gallery']                 = $gallery_img_url_id;
     211                    $shortcode['meta']['sp_wpcp_upload_options'] = $option_data;
    212212                }
    213213                if ( is_wp_error( $new_shortcode_id ) ) {
     
    220220                            $new_shortcode_id,
    221221                            $key,
    222                             maybe_unserialize( str_replace( '{#ID#}', $new_shortcode_id, $value ) )
     222                            $value
    223223                        );
    224224                    }
  • wp-carousel-free/trunk/includes/class-wp-carousel-free-shortcode.php

    r3020269 r3065296  
    167167            $rtl                   = ( 'ltr' === $carousel_direction ) ? 'true' : 'false';
    168168            $carousel_classes     .= ' wpcp-standard';
    169             $wpcp_swiper_options   = 'data-swiper=\'{ "accessibility":true, "spaceBetween":' . $space_between . ', "arrows":' . $arrows . ', "freeMode": ' . $free_mode . ', "autoplay":' . $auto_play . ', "autoplaySpeed":' . $autoplay_speed . ', "dots":' . $dots . ', "infinite":' . $infinite . ', "speed":' . $speed . ', "pauseOnHover":' . $pause_on_hover . ',
    170             "slidesToShow":{"lg_desktop":' . $column_lg_desktop . ', "desktop": ' . $column_desktop . ', "laptop": ' . $column_sm_desktop . ', "tablet": ' . $column_tablet . ', "mobile": ' . $column_mobile . '}, "responsive":{"desktop":' . $desktop_size . ', "laptop": ' . $laptop_size . ', "tablet": ' . $tablet_size . ', "mobile": ' . $mobile_size . '}, "rtl":' . $rtl . ', "lazyLoad": "' . $lazy_load_image . '", "swipe": ' . $swipe . ', "draggable": ' . $draggable . ', "swipeToSlide":' . $swipetoslide . ' }\' ';
     169            $wpcp_swiper_options   = '{ "accessibility":true, "spaceBetween":' . $space_between . ', "arrows":' . $arrows . ', "freeMode": ' . $free_mode . ', "autoplay":' . $auto_play . ', "autoplaySpeed":' . $autoplay_speed . ', "dots":' . $dots . ', "infinite":' . $infinite . ', "speed":' . $speed . ', "pauseOnHover":' . $pause_on_hover . ',
     170            "slidesToShow":{"lg_desktop":' . $column_lg_desktop . ', "desktop": ' . $column_desktop . ', "laptop": ' . $column_sm_desktop . ', "tablet": ' . $column_tablet . ', "mobile": ' . $column_mobile . '}, "responsive":{"desktop":' . $desktop_size . ', "laptop": ' . $laptop_size . ', "tablet": ' . $tablet_size . ', "mobile": ' . $mobile_size . '}, "rtl":' . $rtl . ', "lazyLoad": "' . $lazy_load_image . '", "swipe": ' . $swipe . ', "draggable": ' . $draggable . ', "swipeToSlide":' . $swipetoslide . ' }';
    171171            // Carousel Configurations.
    172172            if ( wpcf_get_option( 'wpcp_swiper_js', true ) ) {
  • wp-carousel-free/trunk/public/css/wp-carousel-free-public.css

    r3017771 r3065296  
    8787    margin: 0;
    8888    line-height: 0;
     89}
     90
     91.wpcp-carousel-section.wpcp-image-carousel .wpcp-single-item figure {
     92    text-align: center;
    8993}
    9094
  • wp-carousel-free/trunk/public/css/wp-carousel-free-public.min.css

    r3017771 r3065296  
    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.swiper-initialized:not(.wpcp-preloader){display:block}.wpcp-carousel-wrapper,.wpcp-carousel-wrapper .wpcp-carousel-content-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{overflow:hidden}.wpcp-carousel-section.wpcp-standard{overflow:hidden;padding-right:2px}.wpcp-carousel-section .swiper-wrapper{align-items:center}.wpcp-carousel-section .wpcp-single-item{overflow:hidden;vertical-align:middle;float:none;max-width:100%}.wpcp-all-captions li{list-style:none;margin:0}.wpcp-carousel-section p,.wpcp-carousel-section ul,.wpcp-image-carousel .wpcp-single-item .wpcp-all-captions h2{margin:0}.wpcp-carousel-section.wpcp-video-carousel .wpcp-single-item .wpcp-slide-image{position:relative}.wpcp-carousel-section.wpcp-content-carousel .wpcp-single-item{padding-left:15px;padding-right:15px}.wpcp-carousel-section .wpcp-single-item figure{margin:0;line-height:0}.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 .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}#poststuff h2,.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 6px;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:8px 20px;line-height:22px;display:inline-block;font-size:14px}#sp-wpcf-preview-box .wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button a.button{height:auto;margin-bottom:5px}.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 .swiper-button-next:after,.wpcp-carousel-section .swiper-button-next:before,.wpcp-carousel-section .swiper-button-prev:after,.wpcp-carousel-section .swiper-button-prev:before{display:none}.wpcp-carousel-section .swiper-button-prev{left:0;right:auto}.wpcp-carousel-section .swiper-button-next{right:0;left:auto}.wpcp-carousel-section .swiper-button-next,.wpcp-carousel-section .swiper-button-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{margin:0 25px}.wpcp-carousel-section .swiper-button-next,.wpcp-carousel-section .swiper-button-next i,.wpcp-carousel-section .swiper-button-prev,.wpcp-carousel-section .swiper-button-prev i{line-height:28px;font-family:fontawesome;color:#000}.wpcp-carousel-section.nav-vertical-center .swiper-button-next,.wpcp-carousel-section.nav-vertical-center .swiper-button-prev{top:50%}.wpcp-carousel-section.nav-vertical-center .swiper-button-prev{left:-5px;right:auto;text-align:left}.wpcp-carousel-section.nav-vertical-center .swiper-button-next,.wpcp-carousel-section.nav-vertical-center .swiper-button-prev{margin-top:-15px}.wpcp-carousel-section.nav-vertical-center .swiper-pagination~.swiper-button-next,.wpcp-carousel-section.nav-vertical-center .swiper-pagination~.swiper-button-prev{margin-top:-35px}.wpcp-carousel-section.nav-vertical-center .swiper-button-next{right:-5px;text-align:right;left:auto}.wpcp-carousel-section .wpcp-swiper-dots{position:inherit;margin-top:10px}.wpcp-carousel-section .wpcp-swiper-dots .swiper-pagination-bullet{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;opacity:1}.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}.wpcp-single-item{direction:ltr}html[dir=rtl] .wpcp-single-item{direction:rtl}.wpcp-carousel-section .wpcp-slide-image{line-height:0;text-align:center;overflow:hidden}.wpcp-carousel-section i.fa{font-style:normal}.block-editor-page a.sp_wp_carousel_block_edit_button,a.sp_wp_carousel_block_edit_button{display:inline-block;text-decoration:underline;font-size:16px;margin:10px 0}.wpcf-fancybox-wrapper .fancybox-thumbs{top:auto;width:auto;left:0;right:0;padding:3px 10px 5px 10px;box-sizing:border-box;background:rgba(0,0,0,.3);margin:0 auto}.wpcf-fancybox-wrapper .fancybox-thumbs-x .fancybox-thumbs__list{margin:auto}.wpcf-fancybox-wrapper .fancybox-inner{right:0!important;bottom:0}body.admin-bar .wpcf-fancybox-wrapper.fancybox-container .fancybox-infobar,body.admin-bar .wpcf-fancybox-wrapper.fancybox-container .fancybox-toolbar{top:0}.wpcf-fancybox-wrapper .fancybox-slide--image .fancybox-content{margin-top:0;margin-bottom:0}.wpcf-fancybox-wrapper.fancybox-show-thumbs .fancybox-inner{bottom:95px}.fancybox-container,.wpcf-fancybox-wrapper{z-index:9999929!important}.wpcf-fancybox-wrapper .fancybox-thumbs__list a:before{border-width:4px}.wpcf-fancybox-wrapper .fancybox-navigation .fancybox-button .wpcp-fancybox-nav-arrow i{font-size:30px}.wpcf-fancybox-wrapper .fancybox-navigation .fancybox-button{background-clip:border-box;width:50px}.wpcf-fancybox-wrapper .fancybox-navigation .fancybox-button.fancybox-button--arrow_right .wpcp-fancybox-nav-arrow{margin-left:-15px}.wpcf-fancybox-wrapper~.elementor-lightbox{display:none!important}.elementor-default .wpcp-carousel-wrapper .swiper-container:not(.swiper-container-initialized) .swiper-wrapper{overflow:initial}.wpcp-carousel-wrapper .wpcp-carousel-section.wpcp-image-carousel .wpcp-single-item img,.wpcp-carousel-wrapper .wpcp-carousel-section.wpcp-post-carousel .wpcp-single-item img,.wpcp-carousel-wrapper .wpcp-carousel-section.wpcp-product-carousel .wpcp-single-item img{-webkit-transition:all .3s;-moz-transition:all .3s;-ms-transition:all .3s;-o-transition:all .3s;transition:all .3s}
     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.swiper-initialized:not(.wpcp-preloader){display:block}.wpcp-carousel-wrapper,.wpcp-carousel-wrapper .wpcp-carousel-content-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{overflow:hidden}.wpcp-carousel-section.wpcp-standard{overflow:hidden;padding-right:2px}.wpcp-carousel-section .swiper-wrapper{align-items:center}.wpcp-carousel-section .wpcp-single-item{overflow:hidden;vertical-align:middle;float:none;max-width:100%}.wpcp-all-captions li{list-style:none;margin:0}.wpcp-carousel-section p,.wpcp-carousel-section ul,.wpcp-image-carousel .wpcp-single-item .wpcp-all-captions h2{margin:0}.wpcp-carousel-section.wpcp-video-carousel .wpcp-single-item .wpcp-slide-image{position:relative}.wpcp-carousel-section.wpcp-content-carousel .wpcp-single-item{padding-left:15px;padding-right:15px}.wpcp-carousel-section .wpcp-single-item figure{margin:0;line-height:0}.wpcp-carousel-section.wpcp-image-carousel .wpcp-single-item figure{text-align:center}.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 .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}#poststuff h2,.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 6px;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:8px 20px;line-height:22px;display:inline-block;font-size:14px}#sp-wpcf-preview-box .wpcp-carousel-section.wpcp-product-carousel .wpcp-cart-button a.button{height:auto;margin-bottom:5px}.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 .swiper-button-next:after,.wpcp-carousel-section .swiper-button-next:before,.wpcp-carousel-section .swiper-button-prev:after,.wpcp-carousel-section .swiper-button-prev:before{display:none}.wpcp-carousel-section .swiper-button-prev{left:0;right:auto}.wpcp-carousel-section .swiper-button-next{right:0;left:auto}.wpcp-carousel-section .swiper-button-next,.wpcp-carousel-section .swiper-button-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{margin:0 25px}.wpcp-carousel-section .swiper-button-next,.wpcp-carousel-section .swiper-button-next i,.wpcp-carousel-section .swiper-button-prev,.wpcp-carousel-section .swiper-button-prev i{line-height:28px;font-family:fontawesome;color:#000}.wpcp-carousel-section.nav-vertical-center .swiper-button-next,.wpcp-carousel-section.nav-vertical-center .swiper-button-prev{top:50%}.wpcp-carousel-section.nav-vertical-center .swiper-button-prev{left:-5px;right:auto;text-align:left}.wpcp-carousel-section.nav-vertical-center .swiper-button-next,.wpcp-carousel-section.nav-vertical-center .swiper-button-prev{margin-top:-15px}.wpcp-carousel-section.nav-vertical-center .swiper-pagination~.swiper-button-next,.wpcp-carousel-section.nav-vertical-center .swiper-pagination~.swiper-button-prev{margin-top:-35px}.wpcp-carousel-section.nav-vertical-center .swiper-button-next{right:-5px;text-align:right;left:auto}.wpcp-carousel-section .wpcp-swiper-dots{position:inherit;margin-top:10px}.wpcp-carousel-section .wpcp-swiper-dots .swiper-pagination-bullet{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;opacity:1}.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}.wpcp-single-item{direction:ltr}html[dir=rtl] .wpcp-single-item{direction:rtl}.wpcp-carousel-section .wpcp-slide-image{line-height:0;text-align:center;overflow:hidden}.wpcp-carousel-section i.fa{font-style:normal}.block-editor-page a.sp_wp_carousel_block_edit_button,a.sp_wp_carousel_block_edit_button{display:inline-block;text-decoration:underline;font-size:16px;margin:10px 0}.wpcf-fancybox-wrapper .fancybox-thumbs{top:auto;width:auto;left:0;right:0;padding:3px 10px 5px 10px;box-sizing:border-box;background:rgba(0,0,0,.3);margin:0 auto}.wpcf-fancybox-wrapper .fancybox-thumbs-x .fancybox-thumbs__list{margin:auto}.wpcf-fancybox-wrapper .fancybox-inner{right:0!important;bottom:0}body.admin-bar .wpcf-fancybox-wrapper.fancybox-container .fancybox-infobar,body.admin-bar .wpcf-fancybox-wrapper.fancybox-container .fancybox-toolbar{top:0}.wpcf-fancybox-wrapper .fancybox-slide--image .fancybox-content{margin-top:0;margin-bottom:0}.wpcf-fancybox-wrapper.fancybox-show-thumbs .fancybox-inner{bottom:95px}.fancybox-container,.wpcf-fancybox-wrapper{z-index:9999929!important}.wpcf-fancybox-wrapper .fancybox-thumbs__list a:before{border-width:4px}.wpcf-fancybox-wrapper .fancybox-navigation .fancybox-button .wpcp-fancybox-nav-arrow i{font-size:30px}.wpcf-fancybox-wrapper .fancybox-navigation .fancybox-button{background-clip:border-box;width:50px}.wpcf-fancybox-wrapper .fancybox-navigation .fancybox-button.fancybox-button--arrow_right .wpcp-fancybox-nav-arrow{margin-left:-15px}.wpcf-fancybox-wrapper~.elementor-lightbox{display:none!important}.elementor-default .wpcp-carousel-wrapper .swiper-container:not(.swiper-container-initialized) .swiper-wrapper{overflow:initial}.wpcp-carousel-wrapper .wpcp-carousel-section.wpcp-image-carousel .wpcp-single-item img,.wpcp-carousel-wrapper .wpcp-carousel-section.wpcp-post-carousel .wpcp-single-item img,.wpcp-carousel-wrapper .wpcp-carousel-section.wpcp-product-carousel .wpcp-single-item img{-webkit-transition:all .3s;-moz-transition:all .3s;-ms-transition:all .3s;-o-transition:all .3s;transition:all .3s}
  • wp-carousel-free/trunk/public/shortcode-deprecated.php

    r2874221 r3065296  
    173173
    174174        $swipetoslide        = esc_attr( $swipe ) ? true : false;
    175         $wpcp_swiper_options = 'data-swiper=\'{ "accessibility":true, "arrows":' . esc_attr( $nav ) . ', "autoplay":' . esc_attr( $auto_play ) . ', "autoplaySpeed":' . esc_attr( intval( $autoplay_speed ) ) . ', "dots":' . esc_attr( $bullets ) . ', "infinite":' . esc_attr( $infinite ) . ', "speed":' . esc_attr( intval( $speed ) ) . ', "pauseOnHover":' . esc_attr( $pause_on_hover ) . ', "spaceBetween": 20, "slidesToShow":{"lg_desktop":' . esc_attr( intval( $items ) ) . ', "desktop": ' . esc_attr( intval( $items_desktop ) ) . ', "laptop": ' . esc_attr( intval( $items_desktop_small ) ) . ', "tablet": ' . esc_attr( intval( $items_tablet ) ) . ', "mobile": ' . esc_attr( intval( $items_mobile ) ) . '}, "responsive":{"desktop":' . esc_attr( intval( $desktop_size ) ) . ', "laptop": ' . esc_attr( intval( $laptop_size ) ) . ', "tablet": ' . esc_attr( intval( $tablet_size ) ) . ', "mobile": ' . esc_attr( intval( $mobile_size ) ) . '}, "rtl":' . esc_attr( $rtl ) . ', "lazyLoad": false, "swipe": ' . esc_attr( $swipe ) . ', "draggable": ' . esc_attr( $draggable ) . ', "swipeToSlide":' . esc_attr( $swipetoslide ) . ', "freeMode": false }\' ';
    176 
    177         $gallery_div = "<div class='wpcp-carousel-wrapper wpcp-wrapper-" . esc_attr( $id ) . "'><div id='wordpress-carousel-free-" . esc_attr( $id ) . "' class='wpcp-carousel-section wpcp-standard nav-vertical-center' " . wp_kses_post( $wpcp_swiper_options ) . "><div class='swiper-wrapper'>";
     175        $wpcp_swiper_options = '{ "accessibility":true, "arrows":' . esc_attr( $nav ) . ', "autoplay":' . esc_attr( $auto_play ) . ', "autoplaySpeed":' . esc_attr( intval( $autoplay_speed ) ) . ', "dots":' . esc_attr( $bullets ) . ', "infinite":' . esc_attr( $infinite ) . ', "speed":' . esc_attr( intval( $speed ) ) . ', "pauseOnHover":' . esc_attr( $pause_on_hover ) . ', "spaceBetween": 20, "slidesToShow":{"lg_desktop":' . esc_attr( intval( $items ) ) . ', "desktop": ' . esc_attr( intval( $items_desktop ) ) . ', "laptop": ' . esc_attr( intval( $items_desktop_small ) ) . ', "tablet": ' . esc_attr( intval( $items_tablet ) ) . ', "mobile": ' . esc_attr( intval( $items_mobile ) ) . '}, "responsive":{"desktop":' . esc_attr( intval( $desktop_size ) ) . ', "laptop": ' . esc_attr( intval( $laptop_size ) ) . ', "tablet": ' . esc_attr( intval( $tablet_size ) ) . ', "mobile": ' . esc_attr( intval( $mobile_size ) ) . '}, "rtl":' . esc_attr( $rtl ) . ', "lazyLoad": false, "swipe": ' . esc_attr( $swipe ) . ', "draggable": ' . esc_attr( $draggable ) . ', "swipeToSlide":' . esc_attr( $swipetoslide ) . ', "freeMode": false }';
     176
     177        $gallery_div = "<div class='wpcp-carousel-wrapper wpcp-wrapper-" . esc_attr( $id ) . "'><div id='wordpress-carousel-free-" . esc_attr( $id ) . "' class='wpcp-carousel-section wpcp-standard nav-vertical-center' data-swiper='" . esc_attr( $wpcp_swiper_options ) . "'><div class='swiper-wrapper'>";
    178178
    179179        $output = apply_filters( 'gallery_style', $gallery_style . $gallery_div );
  • wp-carousel-free/trunk/public/templates/carousel.php

    r3017771 r3065296  
    1919    WPCF_Helper::section_title( $post_id, $section_title, $main_section_title );
    2020    WPCF_Helper::preloader( $post_id, $preloader );
    21     $the_rtl = ( 'ltr' === $carousel_direction ) ? ' dir="rtl"' : ' dir="ltr"';
     21    $the_rtl = ( 'ltr' === $carousel_direction ) ? 'rtl' : 'ltr';
    2222    ?>
    2323    <div class="wpcp-carousel-content-wrapper">
    24     <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_swiper_options ); ?> <?php echo $the_rtl; ?>>
     24    <div id="sp-wp-carousel-free-id-<?php echo esc_attr( $post_id ); ?>" class="<?php echo esc_attr( $carousel_classes ); ?>" data-swiper='<?php echo esc_attr( $wpcp_swiper_options ); ?>' dir="<?php echo esc_attr( $the_rtl ); ?>">
    2525        <div class="swiper-wrapper">
    2626        <?php
  • wp-carousel-free/trunk/readme.txt

    r3063183 r3065296  
    44Requires at least: 5.0
    55Tested up to: 6.5
    6 Stable tag: 2.6.3
     6Stable tag: 2.6.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    327327== Changelog ==
    328328
     329= 2.6.4 – Apr 05, 2024 =
     330* Improved: The plugin security improved.
     331* Improved: The horizontal alignment of the images is set to center aligned in the image carousel.
     332* Tested: WooCommerce 8.7.0 compatibility.
     333
    329334= 2.6.3 – Apr 03, 2024 =
    330335* Fix: The warning was found when the plugin was activated via the WP-Cli command.
  • wp-carousel-free/trunk/wp-carousel-free.php

    r3063183 r3065296  
    1010 * Plugin URI:        https://wordpresscarousel.com/
    1111 * Description:       The most powerful and user-friendly carousel, slider, and gallery plugin for WordPress. Create unlimited beautiful carousels, sliders, and galleries in minutes using images, posts, WooCommerce products, etc.
    12  * Version:           2.6.3
     12 * Version:           2.6.4
    1313 * Author:            ShapedPlugin LLC
    1414 * Author URI:        https://shapedplugin.com/
     
    1818 * Domain Path:       /languages
    1919 * WC requires at least: 4.0
    20  * WC tested up to: 8.5.1
     20 * WC tested up to: 8.7.0
    2121 */
    2222
     
    120120    public function setup() {
    121121        $this->plugin_name = 'wp-carousel-free';
    122         $this->version     = '2.6.3';
     122        $this->version     = '2.6.4';
    123123        $this->define_constants();
    124124        $this->includes();
Note: See TracChangeset for help on using the changeset viewer.