Bot releases are visible (Hide)
Published by nikola-wd almost 2 years ago
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.repeater-fields-grid
block has been created, and we can see this feature used on the breadcrumbs
repeater fields of this block.Published by nikola-wd about 2 years ago
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:
{var $posts_query = new WP_Query(
array(
'post_type' => 'post',
'posts_per_page' => 6,
'orderby' => 'DESC',
)
)}
{embed
tr_part('_slider'),
class: 'slider--test',
slides: $posts_query
}
{block slide_q}
<div style="box-shadow: 0 0 0 1px blue">
<h5>{the_title()}</h5>
</div>
{/block}
{block after_loop}
<div style="padding: 10px; box-shadow: 0 0 0 1px orange;">
<strong>pagination can be added here</strong>
</div>
{/block}
{/embed}
Published by nikola-wd about 2 years ago
Improved a11y for the tabs and accordion components
Full Changelog: https://github.com/webredone/theme-redone/compare/v1.0.0...v1.0.1
Published by nikola-wd about 2 years ago