Skip to content

Commit 6baefad

Browse files
authored
Merge pull request #2 from closemarketing/develop
[BUG] Fix data-autoplay attribute values not beign applied to Glide.
2 parents 76059f6 + f0c4b0f commit 6baefad

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

frontblocks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: FrontBlocks
44
* Plugin URI: https://github.com/closemarketing/frontblocks
55
* Description: Blocks and helpers to facilitate GeneratePress frontend developing.
6-
* Version: 0.2.2
6+
* Version: 0.2.3
77
* Author: Closemarketing
88
* Author URI: https://close.marketing
99
* Text Domain: frontblocks
@@ -27,7 +27,7 @@
2727

2828
defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
2929

30-
define( 'FRBL_VERSION', '0.2.2' );
30+
define( 'FRBL_VERSION', '0.2.3' );
3131
define( 'FRBL_PLUGIN', __FILE__ );
3232
define( 'FRBL_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
3333
define( 'FRBL_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );

includes/carousel/frontblocks-carousel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ window.addEventListener('load', function (event) {
6161
type: carouselType,
6262
perView: carouselView,
6363
startAt: 0,
64-
autoplay: 2000,
64+
autoplay: carouselAutoplay === 0 ? 2500 : carouselAutoplay,
6565
gap: 0,
6666
breakpoints: {
6767
430: {

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Custom enhacements for front developing.
1313

1414
== Description ==
1515

16-
Plugin to create custom blocks for the front of the website. It includes a carousel/slider block and an animation block.
16+
To start using the Carousel, add the frontblocks-carousel class to the element and then, include any of the following attributes:
1717

1818
Data Attributes for Carrousel:
1919
- data-type: slider, carousel
@@ -86,6 +86,9 @@ WordPress installation and then activate the Plugin from Plugins page.
8686
[Official Repository Github](https://github.com/closemarketing/frontblocks)
8787

8888
== Changelog ==
89+
= 0.2.3 =
90+
* Updated Glide autoplay value assignation.
91+
8992
= 0.2.2 =
9093
* Updated images.
9194

0 commit comments

Comments
 (0)