Skip to content

Releases: emboldagency/embold-tailwind-blocks

v2.3.5

Choose a tag to compare

@josh-emBold josh-emBold released this 04 Sep 20:53

Fixes open_basedir warnings. Deactivates plugin when Sage theme is not active

v2.3.4

Choose a tag to compare

@josh-emBold josh-emBold released this 14 Oct 17:26

Fixed Theme Options menu position to prevent conflicts with plugin menu registration

v2.3.3

Choose a tag to compare

@embold-tyler embold-tyler released this 05 Nov 18:32
eae3828

What's Changed

Full Changelog: 2.3.2...2.3.3

Fix fatal error in view when using block template

Choose a tag to compare

@embold-tyler embold-tyler released this 24 Jul 15:49
62498e9

Change plugin homepage to the GitHub repo
Fix fatal error in view by converting template array to JSON string

The Why?

When creating blocks through the cli before, by default it would error when rendering the view because $block->template was returning an array instead of a json encoded string as expected.

<InnerBlocks template="{{ $block->template }}">

A workaround was to encode the string from the view:

<InnerBlocks template="@json_encode( $block->template )">

Now, template will be converted in the render function, before it gets passed to the view, so the generated block will just work out of the box.

Update assets method signature

Choose a tag to compare

@octoxan octoxan released this 24 Jul 14:52
9069850

Update assets method signature on CustomBlock class for greater flexibility and backward compatibility.

The Why?

When creating blocks through the cli before, by default it would create them with this method signature on assets.

public function assets(array $block): void

This would break if you tried to switch it to use CustomBlock unless you simplified it down to

public function assets($block)

Now both are valid formats, but do please prefer to upgrade any blocks you work in up to the new standard:

public function assets(array $block): void

Core Block Modifier Functionality

Choose a tag to compare

@octoxan octoxan released this 24 Jul 00:30
d2964c8

Added a new class to our plugin CoreModifier that you can extend in the theme that will allow setting block style options in an object oriented manner.

To get started, copy the plugins app/Modifiers/CoreGroup.php.example into the Sage theme at app/Modifiers/CoreGroup.php to get started customizing the core/group block.

ACF 6.3.0 Compatibility

Choose a tag to compare

@octoxan octoxan released this 22 May 15:22
e353f62

ACF 6.3.0 adds a major breaking change with validation properties which it expects to be there for every block that's already out there. The only option they added to skip this is using a block.json file which composer blocks do not use.

Added something to the default block initialization for now to add the 'validate' property to every single block as 'false'.

Remove extra acf/init check

Choose a tag to compare

@octoxan octoxan released this 06 May 19:00
99b4b7b

Remove nested acf/init action so that default options page gets called again

Fix deprecated function

Choose a tag to compare

@embold-tyler embold-tyler released this 03 May 20:32
0538d8d

Replaces a deprecated function causing warnings in the log

Disable updates beyond 1.0.0 if requirements not met

Choose a tag to compare

@octoxan octoxan released this 21 Mar 01:11

If the plugin is deactivating itself with a notice to grab the final 1.0 version, download this release.

The plugin is preparing for a 2.0 release which will require Acorn v4 and acf-composer v3.

If the plugin detects a version lower than this in the composer.json then it will no longer check for updates.