From 25b7594afdd46a0764f0191e8f7b178e81274c52 Mon Sep 17 00:00:00 2001 From: Manolo Ramos <35995905+manoloramos@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:28:16 +0100 Subject: [PATCH 1/5] Readme updated --- readme.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.txt b/readme.txt index 3aadb37..5334227 100644 --- a/readme.txt +++ b/readme.txt @@ -13,6 +13,8 @@ Custom enhacements for front developing. == Description == +To start using the Carousel, add the frontblocks-carousel class to the element and then, include any of the following attributes: + Data Attributes for Carrousel: - data-type: slider, carousel slider - rewinds slider to the start/end when it reaches first or last slide, From 4ffe4aad58ba94fb99fb0c57cd8443331f17f1ac Mon Sep 17 00:00:00 2001 From: Manolo Ramos <35995905+manoloramos@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:16:35 +0200 Subject: [PATCH 2/5] Added data-attribute autoplay value to Glide --- includes/carousel/frontblocks-carousel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/carousel/frontblocks-carousel.js b/includes/carousel/frontblocks-carousel.js index 7dbb390..c7f1a09 100644 --- a/includes/carousel/frontblocks-carousel.js +++ b/includes/carousel/frontblocks-carousel.js @@ -61,7 +61,7 @@ window.addEventListener('load', function (event) { type: carouselType, perView: carouselView, startAt: 0, - autoplay: 2000, + autoplay: carouselAutoplay, gap: 0, breakpoints: { 430: { From 0fb1e6072e9ae1da69a40aa22930153d66930b27 Mon Sep 17 00:00:00 2001 From: Manolo Ramos <35995905+manoloramos@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:21:18 +0200 Subject: [PATCH 3/5] Add changelong to readme --- readme.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.txt b/readme.txt index f6c3d09..0889e32 100644 --- a/readme.txt +++ b/readme.txt @@ -86,6 +86,9 @@ WordPress installation and then activate the Plugin from Plugins page. [Official Repository Github](https://github.com/closemarketing/frontblocks) == Changelog == += 0.2.3 = +* Updated Glide autoplay value assignation. + = 0.2.2 = * Updated images. From 5a2dd677090a4988ed1a58fdc8195df82deac87d Mon Sep 17 00:00:00 2001 From: Manolo Ramos <35995905+manoloramos@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:21:29 +0200 Subject: [PATCH 4/5] Update plugin version to 0.2.3 --- frontblocks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontblocks.php b/frontblocks.php index 290d0eb..9ff2532 100644 --- a/frontblocks.php +++ b/frontblocks.php @@ -3,7 +3,7 @@ * Plugin Name: FrontBlocks * Plugin URI: https://github.com/closemarketing/frontblocks * Description: Blocks and helpers to facilitate GeneratePress frontend developing. - * Version: 0.2.2 + * Version: 0.2.3 * Author: Closemarketing * Author URI: https://close.marketing * Text Domain: frontblocks @@ -27,7 +27,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); -define( 'FRBL_VERSION', '0.2.2' ); +define( 'FRBL_VERSION', '0.2.3' ); define( 'FRBL_PLUGIN', __FILE__ ); define( 'FRBL_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); define( 'FRBL_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); From f0c4b0f3060b375c8a90340a18ab3f992e6d6a6d Mon Sep 17 00:00:00 2001 From: Manolo Ramos <35995905+manoloramos@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:46:58 +0200 Subject: [PATCH 5/5] Added value fallback to cover the case in which the data-autoplay attribute might not be present --- includes/carousel/frontblocks-carousel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/carousel/frontblocks-carousel.js b/includes/carousel/frontblocks-carousel.js index c7f1a09..e340719 100644 --- a/includes/carousel/frontblocks-carousel.js +++ b/includes/carousel/frontblocks-carousel.js @@ -61,7 +61,7 @@ window.addEventListener('load', function (event) { type: carouselType, perView: carouselView, startAt: 0, - autoplay: carouselAutoplay, + autoplay: carouselAutoplay === 0 ? 2500 : carouselAutoplay, gap: 0, breakpoints: { 430: {