This commit is contained in:
Hoang Huu
2020-05-14 14:30:49 +07:00
parent dc600a4172
commit 22afb180e4
5 changed files with 13 additions and 7 deletions

View File

@@ -2,10 +2,11 @@
$_id = 'posts-block-' . rand( 1, 9 );
$item = apply_filters( 'opalesate_carousel_property_column', 3, isset( $args ) ? $args : [] );
$data = [
'slidesPerView' => $item,
'slidesPerView' => 3,
'spaceBetween' => 30,
'slidesPerGroup' => $item,
// 'slidesPerGroup' => 1,
'loop' => false,
'breakpoints' => [ 1024 => [ "slidesPerView" => 1 ], 768 => [ "slidesPerView" => 1 ] ],
];
$template_style = isset( $args['style'] ) && $args['style'] ? sanitize_text_field( $args['style'] ) : 'content-property-grid';