Jake Vanderwerf
2026-08-25 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a
inc/registrar/config/seo/Schema.php
@@ -142,9 +142,9 @@
               $config = $this->getConfig();
               $class = JVB()->schemaHelper()::classFromConfig($config, $meta);
               $class = SchemaHelper::getInstance()::classFromConfig($config, $meta);
               if (property_exists($class, 'author')) {
                  $class->setAuthor(JVB()->seo()->getCreator(true));
                  $class->setAuthor(SchemaOutput::getInstance()->getCreator(true));
               }
@@ -165,7 +165,7 @@
            $ID,
            function() use ($ID) {
               $action = BASE.ucfirst($this->slug).'Schema';
               $config = JVB()->schemaHelper()::schema($action);
               $config = SchemaHelper::getInstance()::schema($action);
               if (!array_key_exists('type', $config)) {
                  $config['type'] = 'JVBase\inc\managers\SEO\render\Thing\CreativeWork\WebPage\CollectionPage\CollectionPage';
@@ -174,7 +174,7 @@
                  error_log('No class found for archive schema output: '.$config['type']);
                  return [];
               }
               $class = JVB()->schemaHelper()::classFromConfig($config);
               $class = SchemaHelper::getInstance()::classFromConfig($config);
               $class->setIsPartOf(get_home_url().'/#website');
               $itemList = new render\Thing\Intangible\ItemList\ItemList();
@@ -218,7 +218,7 @@
               if (!empty($override)) {
                  return $override;
               }
               $config = JVB()->schemaHelper()->archive($this->slug);
               $config = SchemaHelper::getInstance()->archive($this->slug);
               if (!array_key_exists('type', $config)) {
                  $config['type'] = 'JVBase\inc\managers\SEO\render\Thing\CreativeWork\WebPage\CollectionPage\CollectionPage';
               }
@@ -239,7 +239,7 @@
               $obj = get_queried_object();
               $meta = (property_exists($obj, 'taxonomy')) ? Meta::forTerm($obj->term_id) : null;
               $class = JVB()->schemaHelper()::classFromConfig($config, $meta);
               $class = SchemaHelper::getInstance()::classFromConfig($config, $meta);
               $class->setIsPartOf(get_home_url().'/#website');
               $itemList = new render\Thing\Intangible\ItemList\ItemList();
@@ -306,7 +306,7 @@
                  $meta = null;
            }
            $config = $this->getConfig();
            $class = JVB()->schemaHelper()::classFromConfig($config, $meta);
            $class = SchemaHelper::getInstance()::classFromConfig($config, $meta);
            if ($class) {
               $class->delete('about');
            }
@@ -335,7 +335,7 @@
         error_log('[SEO]Schema::getConfig Invalid type: '.$type);
         return [];
      }
      return JVB()->schemaHelper()::getConfig($this->slug, $type);
      return SchemaHelper::getInstance()::getConfig($this->slug, $type);
   }
   public function resolveMeta(array $config, Meta $meta):array
@@ -459,7 +459,7 @@
      $question = SchemaHelper::classFromConfig($question);
      $page->setMainEntity($question);
      $page->setAuthor(JVB()->seo()->getCreator(true));
      $page->setAuthor(SchemaOutput::getInstance()->getCreator(true));
      return $page->outputSchema();
   }
@@ -499,7 +499,7 @@
      }
      $page->setImage($images);
      $page->setAuthor(JVB()->seo()->getCreator(true));
      $page->setAuthor(SchemaOutput::getInstance()->getCreator(true));
      return $page->outputSchema();
   }