From 0afb2c0046b55c123eafb4ab9ee77efa68d12463 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sat, 06 Jun 2026 17:15:31 +0000
Subject: [PATCH] =Starting the Favourites.js setup, converting previous Northeh stuff to new Registrar, fixing up Square.php integration to match
---
inc/registrar/config/SEO.php | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/inc/registrar/config/SEO.php b/inc/registrar/config/SEO.php
index 7617b7b..5248bb7 100644
--- a/inc/registrar/config/SEO.php
+++ b/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;
}
--
Gitblit v1.10.0