From ed57c386db34d8693ca75311972d0929ebe5f488 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 01 Jun 2026 22:23:19 +0000
Subject: [PATCH] =Added some more Schema classes, allowed for override of  array in outputSchema for complex schema, as for timeline post types

---
 inc/registrar/config/seo/Resolver.php |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/inc/registrar/config/seo/Resolver.php b/inc/registrar/config/seo/Resolver.php
index 99b4586..172e1c5 100644
--- a/inc/registrar/config/seo/Resolver.php
+++ b/inc/registrar/config/seo/Resolver.php
@@ -182,7 +182,7 @@
 
 		$ignore = ['description', 'name'];
 		if (JVB_TESTING && !in_array($property, $ignore)) {
-			error_log('[SEO]Resolver - No method found for '.$property.' with value: '.print_r($value, true).'. Defaulting to base Resolver');
+//			error_log('[SEO]Resolver - No method found for '.$property.' with value: '.print_r($value, true).'. Defaulting to base Resolver');
 		}
 
 
@@ -209,6 +209,12 @@
 			if (!$imgID || $imgID === '') {
 				return null;
 			}
+
+			return self::imgIDToSchema($imgID);
+
+		}
+		public static function imgIDToSchema(int $imgID):ImageObject|null
+		{
 			$img = wp_get_attachment_image_src($imgID,'full');
 			if (!$img) {
 				return null;
@@ -223,12 +229,14 @@
 					$imageObject = new ImageObject();
 					$imageObject->setContentUrl($img[0]);
 					$width = new QuantitativeValue();
+					$width->showID(false);
 					$width->setValue($img[1]);
 					$width->setUnitText('px');
 					$imageObject->setWidth($width);
 					$height = new QuantitativeValue();
+					$height->showID(false);
 					$height->setValue($img[2]);
-					$width->setUnitText('px');
+					$height->setUnitText('px');
 					$imageObject->setHeight($height);
 
 					$image_path = get_attached_file($imgID);
@@ -249,7 +257,6 @@
 					return $imageObject;
 				}
 			);
-
 		}
 
 		public static function resolveCreator(string $type, mixed $value, mixed $schema, ?Meta $meta):mixed

--
Gitblit v1.10.0