webredone/theme-redone
Theme Redone is a custom WordPress theme starter/framework with its own Gutenberg blocks solution and a CLI that speeds up the block creation process.
📋 Minimum required PHP version changed to ^8.0
- Along with this change. Latte has been upgraded to version: 3.0.3, and Tracy Debugger to version: 2.9.4
- Fixed bugs caused by PHP version upgrade
- With PHP v8.0, we now have support for named arguments
- ___
📦 `tr_get_media()` function, when called synchronously, now prints only the image, without the 2 wrapper divs that are actually needed only for the async call, to prevent the CLS and calculate the space required for the image that would be loaded asynchronously.
- ___
✨ `TrRepeater` component now has a new feature that enables its nested elements to be represented in a grid in the admin. The same way as the root attributes' fields grid works (the only difference is that when setting up the grid, the property name in the `repeater`'s `field_meta` object is called `fields_grid`, and not `grid` ). (Up until now, only the `repeater_items` could be represented as a grid, but with this update, each 'repeater_item`'s child element can be represented as part of the grid). **Note that this only works for the first-level repeaters**.
- With this update, the example `repeater-fields-grid` block has been created, and we can see this feature used on the `breadcrumbs` repeater fields of this block.
- ___
✨ Added support for the _slider.latte component to accept an instance of the WP_Query as the alternative to the array.
- _Note that when using the slider component with the WP_Query, the "slide_q" block is used as opposed to the "slide" block, which is used with regular arrays_
- Can be used like this for example:
- ```latte
- {var $posts_query = new WP_Query(
- array(
- 'post_type' => 'post',
- 'posts_per_page' => 6,
- 'orderby' => 'DESC',
- + 19 more
Improved a11y for the tabs and accordion components **Full Changelog**: https://github.com/webredone/theme-redone/compare/v1.0.0...v1.0.1
