diff --git a/blocks/header/class-header-block.php b/blocks/header/class-header-block.php index ea971c8..533a5ea 100644 --- a/blocks/header/class-header-block.php +++ b/blocks/header/class-header-block.php @@ -65,13 +65,17 @@ protected function child_blocks(): array { 'logo', 'Logo', array(), - plugin_dir_path( __FILE__ ) . 'templates/logo.php' + plugin_dir_path( __FILE__ ) . 'templates/logo.php', + array(), + 'format-image' ), new Child_Block( 'general', 'General', array(), - plugin_dir_path( __FILE__ ) . 'templates/general.php' + plugin_dir_path( __FILE__ ) . 'templates/general.php', + array(), + 'admin-generic' ), new Child_Block( 'menu', @@ -85,7 +89,9 @@ protected function child_blocks(): array { 'choices' => $this->get_menu_choices(), ), ), - plugin_dir_path( __FILE__ ) . 'templates/menu.php' + plugin_dir_path( __FILE__ ) . 'templates/menu.php', + array(), + 'menu', ), ); } diff --git a/blocks/search-and-filter/class-search-and-filter-block.php b/blocks/search-and-filter/class-search-and-filter-block.php index 006a408..57fff00 100644 --- a/blocks/search-and-filter/class-search-and-filter-block.php +++ b/blocks/search-and-filter/class-search-and-filter-block.php @@ -208,36 +208,48 @@ protected function child_blocks(): array { 'Search and Filter Search', array(), plugin_dir_path( __FILE__ ) . 'templates/child-blocks/form/search.php', + array(), + 'search' ), new Child_Block( 'choice', 'Search and Filter Choice', array(), plugin_dir_path( __FILE__ ) . 'templates/child-blocks/form/choice.php', + array(), + 'yes-alt' ), new Child_Block( 'range', 'Search and Filter Range', array(), plugin_dir_path( __FILE__ ) . 'templates/child-blocks/form/range.php', + array(), + 'filter' ), new Child_Block( 'advanced', 'Search and Filter Advanced', array(), plugin_dir_path( __FILE__ ) . 'templates/child-blocks/form/advanced.php', + array(), + 'filter', ), new Child_Block( 'reusable', 'Search and Filter Reusable', array(), plugin_dir_path( __FILE__ ) . 'templates/child-blocks/form/reusable.php', + array(), + 'filter', ), new Child_Block( 'control', 'Search and Filter Control', array(), plugin_dir_path( __FILE__ ) . 'templates/child-blocks/form/control.php', + array(), + 'filter', ), ) ),