From 5fe601cd1962dca79c0765a54ce864af5abb7d40 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 26 Apr 2026 22:37:14 +0000
Subject: [PATCH] =test
---
content/support.php | 79 +++++++++++++++++++++++++++------------
1 files changed, 54 insertions(+), 25 deletions(-)
diff --git a/content/support.php b/content/support.php
index 87cb6b3..f26827c 100644
--- a/content/support.php
+++ b/content/support.php
@@ -1,28 +1,57 @@
<?php
// /content/support.php
-function ajv_support(): array
-{
- return [
- 'singular' => 'Support',
- 'plural' => 'Support',
- 'hide_single' => false,
- 'show_feed' => false,
- 'icon' => 'question',
- 'public' => false,
- 'rewrite' => [
- 'slug' => 'support',
- 'with_front' => false,
- ],
- 'fields' => [
- 'post_title' => [
- 'type' => 'text',
- 'label' => 'Title',
+
+use JVBase\registrar\Registrar;
+
+if (!defined('ABSPATH')) {
+ exit;
+}
+
+
+add_action('plugins_loaded', 'ajv_support',1);
+
+//add_filter('ajv_SupportSchemaDefault', 'ajv_support_schema');
+//add_filter('ajv_SupportMetaDefault', 'ajv_support_meta');
+//add_filter('ajv_SupportArchiveDefault', 'ajv_support_archive');
+
+function ajv_support(){
+ if (!class_exists('JVBase\registrar\Registrar')) {
+ return;
+ }
+ $support = Registrar::forPost('support', 'Support', 'Supports')
+ ->setIcon('question')
+ ->make([
+ 'rewrite' => [
+ 'slug' => 'support',
+ 'with_front' => false,
],
- 'post_content' => [
- 'type' => 'textarea',
- 'quill' => true,
- 'label' => 'Content'
- ]
- ],
- ];
-}
\ No newline at end of file
+ 'public' => false,
+ 'taxonomies' => []
+ ]);
+}
+//function ajv_support(): array
+//{
+// return [
+// 'singular' => 'Support',
+// 'plural' => 'Support',
+// 'hide_single' => false,
+// 'show_feed' => false,
+// 'icon' => 'question',
+// 'public' => false,
+// 'rewrite' => [
+// 'slug' => 'support',
+// 'with_front' => false,
+// ],
+// 'fields' => [
+// 'post_title' => [
+// 'type' => 'text',
+// 'label' => 'Title',
+// ],
+// 'post_content' => [
+// 'type' => 'textarea',
+// 'quill' => true,
+// 'label' => 'Content'
+// ]
+// ],
+// ];
+//}
--
Gitblit v1.10.0