From 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 25 Aug 2026 22:57:22 +0000
Subject: [PATCH] =It's been a minute. I went through the Routes and associated Managers and ensured they played together well. Reworked the Cache.php, and I think I caught all the references. Moving away from JVBase() root class, to individuall classes that are Instanced. Double checked for the ABSPATH check in every file, and added index.php to every directory that didn't already have it. Also still working on the MenuBlock to work with WooCommerce for now for Northeh
---
inc/registrar/config/seo/Schema.php | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/inc/registrar/config/seo/Schema.php b/inc/registrar/config/seo/Schema.php
index 6692c5e..c87147d 100644
--- a/inc/registrar/config/seo/Schema.php
+++ b/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();
}
--
Gitblit v1.10.0