diff --git a/changelog.txt b/changelog.txt index 970b6fa32b3..7fe8c08aceb 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,11 @@ +1.20.1 / 2020-01-23 +=================== + +### Bug Fixes +* Fix Slick carousel not being enqueued for the Events block +* Fix block.json file missing for the Events block + 1.20.0 / 2020-01-23 =================== diff --git a/gruntfile.js b/gruntfile.js index 2f6815a644b..16e616f26b1 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -35,17 +35,18 @@ module.exports = function( grunt ) { { expand: true, src: [ - 'class-' + pkg.name + '.php', + '!**/*.{ai,eps,psd}', 'LICENSE', + 'class-' + pkg.name + '.php', + 'dist/**', + 'includes/**', 'readme.txt', 'src/**/*.php', + 'src/blocks/events/*.json', 'src/blocks/post-carousel/*.json', 'src/blocks/posts/*.json', 'src/blocks/share/*.json', 'src/blocks/social-profiles/*.json', - 'dist/**', - 'includes/**', - '!**/*.{ai,eps,psd}', ], dest: 'build/<%= pkg.name %>', }, diff --git a/readme.txt b/readme.txt index 7268346d97d..e278109e9c4 100644 --- a/readme.txt +++ b/readme.txt @@ -141,3 +141,7 @@ Developers can also apply minor style touch-ups to their themes if necessary. If * [Remove the enqueing of the utilities stylesheet](https://github.com/godaddy-wordpress/coblocks/pull/1260) * [Pass block name to custom class helper](https://github.com/godaddy-wordpress/coblocks/pull/1294) * [E2E Compatibility Refactor](https://github.com/godaddy-wordpress/coblocks/pull/1261) + +### 1.20.1 +* Fix Slick carousel not being enqueued for the Events block +* Fix block.json file missing for the Events block diff --git a/src/blocks/events/index.php b/src/blocks/events/index.php index 8261d5ca0cc..bc50b28ed30 100644 --- a/src/blocks/events/index.php +++ b/src/blocks/events/index.php @@ -134,6 +134,16 @@ function coblocks_register_events_block() { return; } + $vendors_dir = CoBlocks()->asset_source( 'js', 'vendors' ); + + wp_enqueue_script( + 'coblocks-slick', + $vendors_dir . '/slick' . COBLOCKS_ASSET_SUFFIX . '.js', + array( 'jquery' ), + COBLOCKS_VERSION, + true + ); + // Load attributes from block.json. ob_start(); include COBLOCKS_PLUGIN_DIR . 'src/blocks/events/block.json';