| | |
| | | <?php |
| | | |
| | | use JVBase\registrar\Registrar; |
| | | use JVBase\utility\Features; |
| | | |
| | | //require(JVB_DIR . '/inc/blocks/RegisterBlocks.php'); |
| | |
| | | new JVBase\blocks\MenuBlock(); |
| | | } |
| | | |
| | | if (Features::forSite()->has('faq') || array_key_exists('faq', JVB_CONTENT)) { |
| | | if (Features::forSite()->has('faq')) { |
| | | require(JVB_DIR . '/inc/blocks/FAQBlock.php'); |
| | | new JVBase\blocks\FAQBlock(); |
| | | } |
| | | |
| | | |
| | | if (Features::anyContentHas('is_gallery')) { |
| | | if (!empty(Registrar::getFeatured('is_gallery'))) { |
| | | require(JVB_DIR . '/inc/blocks/GlossaryBlock.php'); |
| | | new JVBase\blocks\GlossaryBlock(); |
| | | } |
| | | if (Features::anyContentHas('is_timeline')) { |
| | | if (!empty(Registrar::getFeatured('is_timeline'))) { |
| | | require(JVB_DIR . '/inc/blocks/TimelineBlock.php'); |
| | | new JVBase\blocks\TimelineBlock(); |
| | | } |
| | |
| | | // ] |
| | | // ); |
| | | // } |
| | | if (Features::anyContentHas('show_directory') || Features::anyTaxonomyHas('show_directory')) { |
| | | if (!empty(Registrar::getFeatured('show_directory'))) { |
| | | register_block_type( |
| | | JVB_DIR . '/build/list', |
| | | [ |