блоки в админку и фиксы стилей
This commit is contained in:
@@ -73,6 +73,21 @@ function register_acf_blocks() {
|
||||
),
|
||||
));
|
||||
|
||||
acf_register_block_type(array(
|
||||
'name' => 'tiles-block',
|
||||
'title' => __('Блок с плитками'),
|
||||
'description' => __('Блок с плитками'),
|
||||
'render_template' => 'template-parts/la-components/blocks/tiles-block/tiles-block.php',
|
||||
'category' => 'theme-blocks',
|
||||
'icon' => 'grid-view',
|
||||
'keywords' => array('плитки', 'карточки', 'tiles', 'cards'),
|
||||
'supports' => array(
|
||||
'align' => array('wide', 'full'),
|
||||
'anchor' => true,
|
||||
'customClassName' => true,
|
||||
),
|
||||
));
|
||||
|
||||
acf_register_block_type(array(
|
||||
'name' => 'reviews-block',
|
||||
'title' => __('Блок с отзывами'),
|
||||
|
||||
Reference in New Issue
Block a user