Version Description
Download this release
Release Info
Developer | Godaddy |
Plugin | Page Builder Gutenberg Blocks – CoBlocks |
Version | 1.20.1 |
Comparing to | |
See all releases |
Code changes from version 1.20.0 to 1.20.1
- class-coblocks.php +2 -2
- readme.txt +5 -1
- src/blocks/events/block.json +27 -0
- src/blocks/events/index.php +10 -0
class-coblocks.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: CoBlocks is a suite of professional <strong>page building content blocks</strong> for the WordPress Gutenberg block editor. Our blocks are hyper-focused on empowering makers to build beautifully rich pages in WordPress.
|
6 |
* Author: GoDaddy
|
7 |
* Author URI: https://www.godaddy.com
|
8 |
-
* Version: 1.20.
|
9 |
* Text Domain: coblocks
|
10 |
* Domain Path: /languages
|
11 |
* Tested up to: 5.3
|
@@ -26,7 +26,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
26 |
exit;
|
27 |
}
|
28 |
|
29 |
-
define( 'COBLOCKS_VERSION', '1.20.
|
30 |
define( 'COBLOCKS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
31 |
define( 'COBLOCKS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
32 |
define( 'COBLOCKS_PLUGIN_FILE', __FILE__ );
|
5 |
* Description: CoBlocks is a suite of professional <strong>page building content blocks</strong> for the WordPress Gutenberg block editor. Our blocks are hyper-focused on empowering makers to build beautifully rich pages in WordPress.
|
6 |
* Author: GoDaddy
|
7 |
* Author URI: https://www.godaddy.com
|
8 |
+
* Version: 1.20.1
|
9 |
* Text Domain: coblocks
|
10 |
* Domain Path: /languages
|
11 |
* Tested up to: 5.3
|
26 |
exit;
|
27 |
}
|
28 |
|
29 |
+
define( 'COBLOCKS_VERSION', '1.20.1' );
|
30 |
define( 'COBLOCKS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
31 |
define( 'COBLOCKS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
32 |
define( 'COBLOCKS_PLUGIN_FILE', __FILE__ );
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: page builder, Gutenberg blocks, WordPress blocks, gutenberg, blocks
|
|
6 |
Requires at least: 5.0
|
7 |
Tested up to: 5.3
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 1.20.
|
10 |
License: GPL-2.0
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
@@ -141,3 +141,7 @@ Developers can also apply minor style touch-ups to their themes if necessary. If
|
|
141 |
* [Remove the enqueing of the utilities stylesheet](https://github.com/godaddy-wordpress/coblocks/pull/1260)
|
142 |
* [Pass block name to custom class helper](https://github.com/godaddy-wordpress/coblocks/pull/1294)
|
143 |
* [E2E Compatibility Refactor](https://github.com/godaddy-wordpress/coblocks/pull/1261)
|
|
|
|
|
|
|
|
6 |
Requires at least: 5.0
|
7 |
Tested up to: 5.3
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 1.20.1
|
10 |
License: GPL-2.0
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
|
141 |
* [Remove the enqueing of the utilities stylesheet](https://github.com/godaddy-wordpress/coblocks/pull/1260)
|
142 |
* [Pass block name to custom class helper](https://github.com/godaddy-wordpress/coblocks/pull/1294)
|
143 |
* [E2E Compatibility Refactor](https://github.com/godaddy-wordpress/coblocks/pull/1261)
|
144 |
+
|
145 |
+
### 1.20.1
|
146 |
+
* Fix Slick carousel not being enqueued for the Events block
|
147 |
+
* Fix block.json file missing for the Events block
|
src/blocks/events/block.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "coblocks/events",
|
3 |
+
"category": "coblocks",
|
4 |
+
"attributes": {
|
5 |
+
"align": {
|
6 |
+
"type": "string"
|
7 |
+
},
|
8 |
+
"externalCalendarUrl": {
|
9 |
+
"type": "string",
|
10 |
+
"default": ""
|
11 |
+
},
|
12 |
+
"eventsRange": {
|
13 |
+
"type": "string",
|
14 |
+
"default": "all"
|
15 |
+
},
|
16 |
+
"eventsToShow": {
|
17 |
+
"type": "number",
|
18 |
+
"default": 5
|
19 |
+
},
|
20 |
+
"textColor": {
|
21 |
+
"type": "string"
|
22 |
+
},
|
23 |
+
"customTextColor": {
|
24 |
+
"type": "string"
|
25 |
+
}
|
26 |
+
}
|
27 |
+
}
|
src/blocks/events/index.php
CHANGED
@@ -134,6 +134,16 @@ function coblocks_register_events_block() {
|
|
134 |
return;
|
135 |
}
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
// Load attributes from block.json.
|
138 |
ob_start();
|
139 |
include COBLOCKS_PLUGIN_DIR . 'src/blocks/events/block.json';
|
134 |
return;
|
135 |
}
|
136 |
|
137 |
+
$vendors_dir = CoBlocks()->asset_source( 'js', 'vendors' );
|
138 |
+
|
139 |
+
wp_enqueue_script(
|
140 |
+
'coblocks-slick',
|
141 |
+
$vendors_dir . '/slick' . COBLOCKS_ASSET_SUFFIX . '.js',
|
142 |
+
array( 'jquery' ),
|
143 |
+
COBLOCKS_VERSION,
|
144 |
+
true
|
145 |
+
);
|
146 |
+
|
147 |
// Load attributes from block.json.
|
148 |
ob_start();
|
149 |
include COBLOCKS_PLUGIN_DIR . 'src/blocks/events/block.json';
|