Jake Vanderwerf
2 days ago 235ce5716edc2f7cbe80fdccf26eac7269587839
inc/blocks/_setup.php
@@ -11,37 +11,33 @@
function jvb_conditionally_load_blocks(): void
{
   if (Site::has('feed_block')) {
      require(JVB_DIR . '/inc/blocks/FeedBlock.php');
      require('FeedBlock.php');
      new JVBase\blocks\FeedBlock();
   }
   if (Site::has('is_restaurant')) {
      require(JVB_DIR . '/inc/blocks/MenuBlock.php');
      require('MenuBlock.php');
      new JVBase\blocks\MenuBlock();
   }
   if (!empty(Registrar::getFeatured('is_faq'))) {
      require(JVB_DIR . '/inc/blocks/FAQBlock.php');
   if (!empty(Registrar::withFeature('is_faq'))) {
      require('FAQBlock.php');
      new JVBase\blocks\FAQBlock();
   }
   if (!empty(Registrar::getFeatured('is_glossary'))) {
      require(JVB_DIR . '/inc/blocks/GlossaryBlock.php');
   if (!empty(Registrar::withFeature('is_glossary'))) {
      require('GlossaryBlock.php');
      new JVBase\blocks\GlossaryBlock();
   }
   if (!empty(Registrar::getFeatured('is_timeline'))) {
      require(JVB_DIR . '/inc/blocks/TimelineBlock.php');
   if (!empty(Registrar::withFeature('is_timeline'))) {
      require('TimelineBlock.php');
      new JVBase\blocks\TimelineBlock();
   }
   if (Site::hasIntegration('gmb')) {
      require(JVB_DIR . '/build/gmbreviews/render.php');
      register_block_type(
         JVB_DIR . '/build/gmbreviews',
         [
            'render_callback' => 'jvbRenderGMBReviewsBlock'
         ]);
      require('GMBReviewBlock.php');
      new JVBase\blocks\GMBReviewBlock();
   }
//    if (jvbSiteUsesFeedBlock()) {
//        register_block_type(
@@ -51,7 +47,7 @@
//            ]
//        );
//    }
// if (!empty(Registrar::getFeatured('show_directory'))) {
// if (!empty(Registrar::withFeature('show_directory'))) {
//    error_log('Registering Directory List Block');
//    register_block_type(
//       JVB_DIR . '/build/list',
@@ -60,21 +56,22 @@
//       ]
//    );
// }
   register_block_type(
      JVB_DIR . '/build/drawer-menu',
   );
}
require(JVB_DIR . '/inc/blocks/SummaryBlock.php');
require('SummaryBlock.php');
new JVBase\blocks\SummaryBlock();
require(JVB_DIR . '/inc/blocks/VideoCoverBlock.php');
require('VideoCoverBlock.php');
new JVBase\blocks\VideoCoverBlock();
require(JVB_DIR . '/inc/blocks/FormBlock.php');
require('FormBlock.php');
new JVBase\blocks\FormBlock();
require ('DrawerMenuBlock.php');
new JVBase\blocks\DrawerMenuBlock();
function jvbRegisterBlockCategory(array $categories):array
{