Skip to content

Commit

Permalink
Merge branch 'pr/89'
Browse files Browse the repository at this point in the history
  • Loading branch information
franmastromarino committed Mar 5, 2024
2 parents 9bdde7e + 10a4c79 commit 670c90d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/shortcodes/class-carousel.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public static function carousel_shortcode( $atts ) {
'items' => '10',
'items_to_show' => '5',
'items_to_scroll' => '1',
'rtl' => 'false',
'image_size' => 'thumbnail',
'autoplay' => 'false',
'arrows' => 'false',
Expand Down Expand Up @@ -55,6 +56,7 @@ private static function slick_settings() {
'slidesToScroll' => (int) self::$atts['items_to_scroll'],
'autoplay' => ( 'true' === self::$atts['autoplay'] ) ? true : false,
'arrows' => ( 'true' === self::$atts['arrows'] ) ? true : false,
'rtl' => ( 'true' === self::$atts['rtl'] ) ? true : false,
);

return htmlspecialchars( json_encode( $slick_settings ), ENT_QUOTES, 'UTF-8' );
Expand Down
2 changes: 2 additions & 0 deletions lib/shortcodes/class-product-carousel.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public static function product_carousel_shortcode( $atts ) {
'products_to_scroll' => '1',
'autoplay' => 'false',
'arrows' => 'false',
'rtl' => 'false',
),
$atts,
'pwb-product-carousel'
Expand Down Expand Up @@ -52,6 +53,7 @@ private static function slick_settings() {
'slidesToScroll' => (int) self::$atts['products_to_scroll'],
'autoplay' => ( 'true' === self::$atts['autoplay'] ) ? true : false,
'arrows' => ( 'true' === self::$atts['arrows'] ) ? true : false,
'rtl' => ( 'true' === self::$atts['rtl'] ) ? true : false,
);

return htmlspecialchars( json_encode( $slick_settings ), ENT_QUOTES, 'UTF-8' );
Expand Down

0 comments on commit 670c90d

Please sign in to comment.