Jake Vanderwerf
2026-04-15 c4aa5cdb5e90ad4b420e22772797d16980232a2b
inc/registrar/config/SEO.php
@@ -33,7 +33,24 @@
   protected function initSchema():void
   {
      if (!array_key_exists('type', $this->config['schema'])){
      if (!array_key_exists('type', $this->config['schema'])) {
         $registrar = Registrar::getInstance($this->slug);
         if ($registrar) {
            switch ($registrar->getType()) {
               case 'term':
                  $this->config['schema']['type'] = 'JVBase\inc\managers\SEO\render\Thing\CreativeWork\WebPage\CollectionPage\CollectionPage';
                  break;
               case 'post':
                  $this->config['schema']['type'] = 'JVBase\managers\SEO\render\Thing\CreativeWork\CreativeWork';
                  break;
               case 'user':
                  $this->config['schema']['type'] = 'JVBase\managers\SEO\render\Thing\CreativeWork\WebPage\ProfilePage';
                  break;
            }
         }
      }
      if (!array_key_exists('type', $this->config['schema'])) {
         error_log('Missing schema type');
         return;
      }