From 1aa7c404dae63c9518468fe9b579fad819f8d871 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 13 Sep 2026 18:32:43 +0000
Subject: [PATCH] =Single Event page setup done through the new Event block. Currently working on the Simple Calendar block setup

---
 inc/registrar/Fields.php |   62 +++++++++++++++---------------
 1 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/inc/registrar/Fields.php b/inc/registrar/Fields.php
index d48c56e..71e118b 100644
--- a/inc/registrar/Fields.php
+++ b/inc/registrar/Fields.php
@@ -437,37 +437,37 @@
 		$business->setHasOfferCatalogField($this);
 	}
 
-	public function registerPostFields():void
-	{
-		$postType = $this->registrar->getBased();
-		add_meta_box(
-			$postType.'_fields',
-			'Extra Fields',
-			[$this, 'renderMyMetaBox'],
-			$postType,
-			'side',
-			'high'
-		);
-	}
-	public function renderMyMetaBox():void
-	{
-		$ID = get_the_ID();
-		$meta = match ($this->type) {
-			'post'	=> Meta::forPost($ID),
-			'term'	=> Meta::forTerm($ID),
-			'user'	=> Meta::forUser($ID),
-		};
-		$defaults = array_keys(match($this->type) {
-			'post'	=> $this->defaultPostFields(),
-			'term'	=> $this->defaultTermFields(),
-			'user'	=> $this->defaultUserFields()
-		});
-		foreach ($this->fields as $fName => $field){
-			if (!in_array($fName, $defaults)){
-				echo Form::render($fName, $meta->get($fName),$field->getConfig());
-			}
-		}
-	}
+//	public function registerPostFields():void
+//	{
+//		$postType = $this->registrar->getBased();
+//		add_meta_box(
+//			$postType.'_fields',
+//			'Extra Fields',
+//			[$this, 'renderMyMetaBox'],
+//			$postType,
+//			'side',
+//			'high'
+//		);
+//	}
+//	public function renderMyMetaBox():void
+//	{
+//		$ID = get_the_ID();
+//		$meta = match ($this->type) {
+//			'post'	=> Meta::forPost($ID),
+//			'term'	=> Meta::forTerm($ID),
+//			'user'	=> Meta::forUser($ID),
+//		};
+//		$defaults = array_keys(match($this->type) {
+//			'post'	=> $this->defaultPostFields(),
+//			'term'	=> $this->defaultTermFields(),
+//			'user'	=> $this->defaultUserFields()
+//		});
+//		foreach ($this->fields as $fName => $field){
+//			if (!in_array($fName, $defaults)){
+//				echo Form::render($fName, $meta->get($fName),$field->getConfig());
+//			}
+//		}
+//	}
 
 	public static function getUserFields():array
 	{

--
Gitblit v1.10.0