From ad0b0246d88f723056970e7b1fb0af3de459a174 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 10 Nov 2025 22:25:12 +0000
Subject: [PATCH] =Cleaner Base
---
/dev/null | 27 ---------------------------
content/sample.php | 4 ++--
forms/_setup.php | 6 ------
content/_setup.php | 8 ++------
4 files changed, 4 insertions(+), 41 deletions(-)
diff --git a/content/_setup.php b/content/_setup.php
index 604f962..f1f163e 100644
--- a/content/_setup.php
+++ b/content/_setup.php
@@ -29,16 +29,12 @@
*/
-require(AJV_DIR . '/content/faq.php');
-require(AJV_DIR . '/content/progress.php');
-require(AJV_DIR . '/content/terms.php');
+require(AJV_DIR . '/content/sample.php');
add_filter('jvb_content', 'altr_content');
function altr_content($content):array
{
return [
- 'faq' => altr_faq(),
- 'progress' => altr_progress(),
- 'terms' => altr_terms(),
+ 'sample' => altr_sample(),
];
}
\ No newline at end of file
diff --git a/content/faq.php b/content/faq.php
deleted file mode 100644
index 505b842..0000000
--- a/content/faq.php
+++ /dev/null
@@ -1,143 +0,0 @@
-<?php
-// /content/faq.php
-function altr_faq():array
-{
- return [
- 'singular' => 'Frequently Asked Question',
- 'plural' => 'Frequently Asked Questions',
- 'dash_description' => 'Manage your answers',
- 'capability_type' => ['faq', 'faqs'],
- 'breadcrumb' => 'FAQ',
- 'dash_title' => 'FAQs',
- 'icon' => 'question',
- 'rewrite_taxonomy' => 'section',
- 'rewrite' => [
- 'slug' => 'faq',
- 'with_front' => false,
- ],
- 'fields' => [
- 'post_title' => [
- 'type' => 'text',
- 'label' => 'Question',
- ],
- 'post_status' => [
- 'type' => 'radio',
- 'label' => 'Status',
- 'hidden' => true,
- 'options' => [
- 'publish' => 'Show',
- 'draft' => 'Hide',
- 'trash' => 'Scrap',
- 'delete' => 'Permanently Delete'
- ]
- ],
- 'post_content' => [
- 'type' => 'textarea',
- 'label' => 'Answer',
- 'quill' => true,
- ],
- ],
- 'single_image' => false,
- 'upload_title' => 'Upload Before & Afters',
- ];
-}
-
-
-add_action('wp_enqueue_scripts', 'nebDashScripts', 9999);
-function nebDashScripts() {
- global $wp;
- $page = str_replace('dash/', '', $wp->request);
- if ($page === 'settings') {
- wp_enqueue_script('jvb-form');
- wp_enqueue_script('jvb-tabs');
- wp_enqueue_script('jvb-populate-form');
- wp_enqueue_script('jvb-copy-hours');
- wp_enqueue_script('jvb-quill');
- wp_enqueue_script('jvb-store');
- $script = 'function loadSettingsPage() {
- let tabs = new window.jvbTabs(document.querySelector(".replace"));
- let store = new window.jvbStore({
- name: "options",
- endpoint: "options",
- headers: {
- "action_nonce": jvbSettings.dash,
- }
- });
-
- let form = new window.jvbForm(store);
- let forms = [ "#hours", "#menu-sections"];
- let setForms = {};
- forms.forEach(f => {
- let gotF = document.querySelector(`form${f}`);
- setForms[f] = form.registerForm(gotF);
-
- });
-
- form.subscribe((event, data) => {
- switch (event) {
- case "form-submit":
- case "form-autosave":
- window.jvbQueue.addToQueue({
- endpoint: "options",
- headers: {
- "action_nonce": jvbSettings.dash,
- },
- data: data.changes,
- popup: `Saving options...`,
- title: "Saving Options"
- });
- break;
- }
- });
- }
- document.addEventListener("DOMContentLoaded", ()=>{
- loadSettingsPage()
- });
- ';
- $output = wp_add_inline_script('jvb-form', $script, 'after');
- } elseif ($page === 'dash') {
- wp_enqueue_script('jvb-form');
- wp_enqueue_script('jvb-store');
- $script = 'function loadDashPage() {
-
- let store = new window.jvbStore({
- name: "options",
- endpoint: "options",
- headers: {
- "action_nonce": jvbSettings.dash,
- }
- });
-
- let form = new window.jvbForm(store);
- let forms = [ "#options"];
- let setForms = {};
- forms.forEach(f => {
- let gotF = document.querySelector(`form${f}`);
- setForms[f] = form.registerForm(gotF);
-
- });
-
- form.subscribe((event, data) => {
- switch (event) {
- case "form-submit":
- case "form-autosave":
- window.jvbQueue.addToQueue({
- endpoint: "options",
- headers: {
- "action_nonce": jvbSettings.dash,
- },
- data: data.changes,
- popup: `Saving options...`,
- title: "Saving Options"
- });
- break;
- }
- });
- }
- document.addEventListener("DOMContentLoaded", ()=>{
- loadDashPage()
- });
- ';
-// $output = wp_add_inline_script('jvb-form', $script, 'after');
- }
-}
\ No newline at end of file
diff --git a/content/progress.php b/content/progress.php
deleted file mode 100644
index 0900884..0000000
--- a/content/progress.php
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-// /content/progress.php
-function altr_progress():array
-{
- return [
- 'singular' => 'Before & After',
- 'plural' => 'Before & Afters',
- 'dash_title' => 'Progress',
- 'dash_description' => 'Manage your before and after posts',
- 'breadcrumb' => 'Before & Afters',
- 'capability_type' => ['progress', 'progress'],
- 'hide_children' => true,
- 'is_timeline' => true,
- 'show_feed' => true,
- 'hierarchical' => true,
- 'icon' => 'arrows-left-right',
- 'rewrite' => [
- 'slug' => 'before-and-after',
- 'with_front' => false,
- ],
- 'sections' => [
- 'progression' => [
- 'label' => 'Progression',
- ]
- ],
- 'fields' => [
- 'post_title' => [
- 'type' => 'text',
- 'label' => 'Title',
- 'quickEdit' => true,
- 'section' => 'progression',
- 'for_all' => true,
- ],
- 'post_status' => [
- 'type' => 'radio',
- 'label' => 'Status',
- 'hidden' => true,
- 'options' => [
- 'publish' => 'Show',
- 'draft' => 'Hide',
- 'trash' => 'Scrap',
- 'delete' => 'Permanently Delete'
- ],
- 'section' => 'progression',
- 'for_all' => true,
- ],
- 'post_thumbnail' => [
- 'type' => 'image',
- 'label' => 'Image',
- 'quickEdit' => true,
- 'section' => 'progression',
- 'for_all' => true,
- ],
- 'person' => [
- 'type' => 'taxonomy',
- 'taxonomy' => 'person',
- 'autocomplete' => true,
- 'label' => 'Person',
- 'quickEdit' => true,
- 'createNew' => true,
- 'section' => 'progression',
- 'hint' => 'Not public, just to make it easier to find'
- ],
- 'goal' => [
- 'type' => 'taxonomy',
- 'taxonomy' => 'goal',
- 'autocomplete' => true,
- 'label' => 'Goal',
- 'quickEdit' => true,
- 'createNew' => true,
- 'section' => 'progression'
- ],
- 'timeline' => [
- 'type' => 'taxonomy',
- 'taxonomy' => 'timeline',
- 'autocomplete' => true,
- 'label' => 'Timeline',
- 'quickEdit' => true,
- 'createNew' => true,
- 'section' => 'progression',
- 'for_all' => true,
- ],
- 'body-part' => [
- 'type' => 'taxonomy',
- 'taxonomy' => 'body-part',
- 'label' => 'Body Part',
- 'autocomplete' => true,
- 'quickEdit' => true,
- 'createNew' => true,
- 'section' => 'progression'
- ],
- 'style' => [
- 'type' => 'taxonomy',
- 'taxonomy' => 'style',
- 'autocomplete' => true,
- 'label' => 'Tattoo Style',
- 'quickEdit' => true,
- 'createNew' => true,
- 'section' => 'progression'
- ],
- 'skin-type' => [
- 'type' => 'taxonomy',
- 'taxonomy' => 'skin-type',
- 'label' => 'Skin Type',
- 'autocomplete' => true,
- 'quickEdit' => true,
- 'createNew' => true,
- 'section' => 'progression'
- ],
- 'age' => [
- 'type' => 'taxonomy',
- 'taxonomy' => 'age',
- 'autocomplete' => true,
- 'label' => 'Age of Tattoo',
- 'quickEdit' => true,
- 'createNew' => true,
- 'section' => 'progression'
- ],
- 'post_content' => [
- 'type' => 'textarea',
- 'quill' => true,
- 'label' => 'Notes',
- 'section' => 'progression',
- 'for_all' => true,
- ]
- ],
- 'upload_title' => 'Upload Before & Afters',
- ];
-}
diff --git a/content/terms.php b/content/sample.php
similarity index 97%
rename from content/terms.php
rename to content/sample.php
index 7507ccf..346e59e 100644
--- a/content/terms.php
+++ b/content/sample.php
@@ -1,6 +1,6 @@
<?php
-// /content/terms.php
-function altr_terms():array
+// /content/sample.php
+function altr_sample():array
{
return [
'singular' => 'Term',
diff --git a/forms/_setup.php b/forms/_setup.php
index bb62db1..dfa64d3 100644
--- a/forms/_setup.php
+++ b/forms/_setup.php
@@ -15,17 +15,11 @@
*
************************************************************/
-require(AJV_DIR . '/forms/get-an-estimate.php');
-require(AJV_DIR . '/forms/nlp.php');
require(AJV_DIR . '/forms/contact.php');
-require(AJV_DIR . '/forms/partner.php');
add_filter('jvb_register_forms', 'altr_register_forms');
function altr_register_forms($forms) {
- $forms['get_an_estimate'] = altr_get_an_estimate();
- $forms['nlp'] = altr_nlp();
$forms['contact'] = altr_contact();
- $forms['partner'] = altr_nlp_partner();
return $forms;
}
\ No newline at end of file
diff --git a/forms/get-an-estimate.php b/forms/get-an-estimate.php
deleted file mode 100644
index 1a8db32..0000000
--- a/forms/get-an-estimate.php
+++ /dev/null
@@ -1,92 +0,0 @@
-<?php
-
-function altr_get_an_estimate():array
-{
- return [
- 'title' => 'Get an Estimate',
- 'submit' => 'Get your estimate',
- 'success_title' => 'Success!',
- 'success_description' => [
- 'We got it.',
- 'We\'ll get back to you as soon as we can - usually pretty quick (unless it\'s a Monday or a Tuesday)'
- ],
- 'email_subject' => 'New Estimate Request',
- 'fields' => [
- 'first_name' => [
- 'type' => 'text',
- 'label' => 'First Name',
- 'required' => true,
- 'section' => 'about_you',
- ],
- 'last_name' => [
- 'type' => 'text',
- 'label' => 'Last Name',
- 'required' => true,
- 'section' => 'about_you',
- ],
- 'email' => [
- 'type' => 'email',
- 'label' => 'Email',
- 'required' => true,
- 'section' => 'about_you',
- ],
- 'phone' => [
- 'type' => 'tel',
- 'label' => 'Phone',
- 'required' => true,
- 'section' => 'about_you',
- ],
- 'contact' => [
- 'type' => 'checkbox',
- 'label' => 'Preferred Contact',
- 'options' => [
- 'text' => 'Text',
- 'email' => 'Email',
- 'call' => 'Call',
- ],
- 'section' => 'about_you',
- ],
- 'age' => [
- 'type' => 'text',
- 'subtype' => 'number',
- 'label' => 'How old is your tattoo?',
- 'section' => 'tattoo',
- ],
- 'location' => [
- 'type' => 'radio',
- 'label' => 'Location on Body',
- 'options' => [
- 'face' => 'Face',
- 'neck' => 'Neck',
- 'scalp' => 'Scalp',
- 'chest' => 'Chest',
- 'back' => 'Back',
- 'arm' => 'Arm',
- 'hand' => 'Hand',
- 'finger' => 'Finger',
- 'butt' => 'Butt',
- 'genitals' => 'Genitals',
- 'leg' => 'Leg',
- 'foot' => 'Foot'
- ],
- 'section' => 'tattoo',
- ],
- 'goal' => [
- 'type' => 'radio',
- 'label' => 'Removal Goal',
- 'options' => [
- 'cover_up' => 'Fading for a Cover Up Tattoo',
- 'complete_removal' => 'Complete Removal',
- 'clean_up' => 'Clean Up',
- ],
- 'section' => 'tattoo',
- ],
- 'photos' => [
- 'type' => 'gallery',
- 'label' => 'Photo(s) of Tattoo',
- 'section' => 'tattoo',
- 'description' => 'Make sure we can get a sense of scale.'
- ]
- ]
- ];
-}
\ No newline at end of file
diff --git a/forms/nlp.php b/forms/nlp.php
deleted file mode 100644
index 5bf3ede..0000000
--- a/forms/nlp.php
+++ /dev/null
@@ -1,123 +0,0 @@
-<?php
-
-function altr_nlp():array
-{
- return [
- 'title' => 'New Legacy Program',
-// 'description' => '',
- 'submit' => 'Apply Now',
- 'success_title' => 'Success!',
- 'success_description' => [
- 'We got it.',
- 'We\'ll get back to you as soon as we can - usually pretty quick (unless it\'s a Monday or a Tuesday)'
- ],
- 'email_subject' => '[NLP] Application',
- 'fields' => [
- 'first_name' => [
- 'type' => 'text',
- 'label' => 'First Name',
- 'required' => true,
- 'section' => 'about_you',
- ],
- 'last_name' => [
- 'type' => 'text',
- 'label' => 'Last Name',
- 'required' => true,
- 'section' => 'about_you',
- ],
- 'email' => [
- 'type' => 'email',
- 'label' => 'Email',
- 'required' => true,
- 'section' => 'about_you',
- ],
- 'phone' => [
- 'type' => 'tel',
- 'label' => 'Phone',
- 'required' => true,
- 'section' => 'about_you',
- ],
- 'contact' => [
- 'type' => 'checkbox',
- 'label' => 'Preferred Contact',
- 'options' => [
- 'text' => 'Text',
- 'email' => 'Email',
- 'call' => 'Call',
- ],
- 'section' => 'about_you',
- ],
- 'type' => [
- 'type' => 'checkbox',
- 'label' => 'Type of Tattoo',
- 'options' => [
- 'gang' => 'Gang Affiliated',
- 'hate' => 'Hateful Symbolism',
- 'dv' => 'Domestic Violence',
- 'trafficking' => 'Human Trafficking',
- 'prison' => 'Prison or Jail',
- 'other'
- ],
- 'section' => 'tattoo',
- ],
- 'referred' => [
- 'type' => 'checkbox',
- 'label' => 'Referred By',
- 'options' => [
- 'po' => 'Parole Officer',
- 'sw' => 'Social Worker',
- 'cow' => 'Community Outreach Worker',
- 'doctor' => 'Doctor',
- 'mental_health' => 'Mental Health Worker',
- 'sponsor' => 'Sponsor',
- 'other'
- ],
- 'section' => 'tattoo',
- ],
- 'age' => [
- 'type' => 'text',
- 'subtype' => 'number',
- 'label' => 'How old is your tattoo?',
- 'section' => 'tattoo',
- ],
- 'location' => [
- 'type' => 'radio',
- 'label' => 'Location on Body',
- 'options' => [
- 'face' => 'Face',
- 'neck' => 'Neck',
- 'scalp' => 'Scalp',
- 'chest' => 'Chest',
- 'back' => 'Back',
- 'arm' => 'Arm',
- 'hand' => 'Hand',
- 'finger' => 'Finger',
- 'butt' => 'Butt',
- 'genitals' => 'Genitals',
- 'leg' => 'Leg',
- 'foot' => 'Foot'
- ],
- 'section' => 'tattoo',
- ],
- 'photos' => [
- 'type' => 'gallery',
- 'label' => 'Photo(s) of Tattoo',
- 'section' => 'tattoo',
- 'hint' => 'Make sure we can get a sense of scale.'
- ],
- 'docs' => [
- 'type' => 'files',
- 'subtype' => '.doc,.pdf,.txt,.jpg',
- 'label' => 'Letter of Support',
- 'section' => 'tattoo',
- 'hint' => 'Please provide a letter written by one of the above mentioned people that referred you who are working alongside you building your New Legacy.'
- ],
- 'notes' => [
- 'type' => 'textarea',
- 'label' => 'Anything else to add?',
- 'quill' => true,
- 'section' => 'tattoo',
- ]
- ]
- ];
-}
\ No newline at end of file
diff --git a/forms/partner.php b/forms/partner.php
deleted file mode 100644
index 2e1cd76..0000000
--- a/forms/partner.php
+++ /dev/null
@@ -1,104 +0,0 @@
-<?php
-
-function altr_nlp_partner():array
-{
- return [
- 'title' => 'Partner with Us',
-// 'description' => '',
- 'submit' => 'Submit Form',
- 'success_title' => 'Success!',
- 'success_description' => [
- 'We got it.',
- 'We\'ll get back to you as soon as we can - usually pretty quick (unless it\'s a Monday or a Tuesday)'
- ],
- 'email_subject' => '[Partner] Inquiry',
- 'fields' => [
- 'your_name' => [
- 'type' => 'text',
- 'label' => 'Your Name',
- 'required'=> true,
- 'section' => 'about_you',
- ],
- 'your_role' => [
- 'type' => 'text',
- 'label' => 'Your Role/Title',
- 'required'=> true,
- 'section' => 'about_you',
- ],
- 'email' => [
- 'type' => 'email',
- 'label' => 'Email',
- 'required' => true,
- 'section' => 'about_you',
- ],
- 'phone' => [
- 'type' => 'tel',
- 'label' => 'Phone',
- 'required' => true,
- 'section' => 'about_you',
- ],
- 'contact' => [
- 'type' => 'checkbox',
- 'label' => 'Preferred Contact',
- 'options' => [
- 'text' => 'Text',
- 'email' => 'Email',
- 'call' => 'Call',
- ],
- 'section' => 'about_you',
- ],
- 'organization_name' => [
- 'type' => 'text',
- 'label' => 'Organization Name',
- 'required' => true,
- 'section' => 'organization',
- ],
- 'website' => [
- 'type' => 'url',
- 'label' => 'Organization Website',
- 'section' => 'organization',
- ],
- 'type' => [
- 'type' => 'checkbox',
- 'label' => 'Organization Type',
- 'options' => [
- 'po' => 'Parole Officer',
- 'sw' => 'Social Services',
- 'cow' => 'Community Outreach',
- 'doctor' => 'Healthcare Provider',
- 'mental_health' => 'Mental Health Services',
- 'indigenous' => 'Indigenous Services',
- 'other'
- ],
- 'section' => 'organization'
- ],
- 'location' => [
- 'type' => 'radio',
- 'label' => 'Where are your clients located?',
- 'options' => [
- 'yeg' => 'Edmonton Area',
- 'elsewhere'=> 'Elsewhere in Alberta',
- 'other'=> 'Other'
- ],
- 'section' => 'organization',
- ],
- 'intent' => [
- 'type' => 'radio',
- 'label' => 'Are you',
- 'options' => [
- 'individual' => 'Referring a specific individual right now',
- 'partner' => 'Exploring partnership opportunities',
- 'both' => 'Both',
- ],
- 'section' => 'referrals',
- ],
- 'notes' => [
- 'type' => 'textarea',
- 'label' => 'Tell us more',
- 'quill' => true,
- 'section' => 'referrals',
- 'hint' => 'What would be most helpful for us to know about your organization and the people you serve?'
- ]
- ]
- ];
-}
\ No newline at end of file
diff --git a/taxonomies/age.php b/taxonomies/age.php
deleted file mode 100644
index 0db9ae6..0000000
--- a/taxonomies/age.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-// /taxonomies/target.php
-function altr_age():array
-{
- return [
- 'singular' => 'Age of Tattoo',
- 'plural' => 'Ages of Tattoo',
- 'icon' => 'cake',
- 'show_feed' => true,
- 'rewrite' => [
- 'slug' => 'age',
- 'with_front' => false,
- 'hierarchical' => false,
- ],
- 'hierarchical' => false,
- 'for_content' => [
- 'progress',
- ],
- 'fields' => [
- 'term_name' => [
- 'label' => 'Name',
- 'type' => 'text',
- 'subtype' => 'number',
- 'quickEdit' => true,
- ],
- 'common' => [ 'wiki' ]
- ]
- ];
-}
diff --git a/taxonomies/body-part.php b/taxonomies/body-part.php
deleted file mode 100644
index 3529009..0000000
--- a/taxonomies/body-part.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-// /taxonomies/form.php
-function altr_body_part():array
-{
- return [
- 'singular' => 'Location',
- 'plural' => 'Locations',
- 'description' => [
- 'Location of the tattoo on body.'
- ],
- 'icon' => 'person',
- 'show_feed' => true,
- 'show_directory' => true,
- 'approve_new' => false,
- 'rewrite' => [
- 'slug' => 'location',
- 'with_front' => false,
- 'hierarchical' => true,
- ],
- 'hierarchical' => true,
- 'for_content' => [
- 'progress',
- ],
- 'fields' => [
- 'term_name' => [
- 'label' => 'Name',
- 'type' => 'text',
- 'quickEdit' => true,
- ],
- 'common' => [ 'wiki' ]
- ]
- ];
-}
diff --git a/taxonomies/goal.php b/taxonomies/goal.php
deleted file mode 100644
index 7ce9dcd..0000000
--- a/taxonomies/goal.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-// /taxonomies/goal.php
-function altr_goal():array
-{
- return [
- 'singular' => 'Goal',
- 'plural' => 'Goals',
- 'icon' => 'crosshair',
- 'description' => [
- 'Complete tattoo removal or fading for a cover up tattoo (or unknown)'
- ],
- 'show_feed' => true,
- 'rewrite' => [
- 'slug' => 'goal',
- 'with_front' => false,
- ],
- 'for_content' => [
- 'progress',
- ],
- 'fields' => [
- 'term_name' => [
- 'label' => 'Name',
- 'type' => 'text',
- 'quickEdit' => true,
- ],
- 'common' => [ 'wiki' ]
- ]
- ];
-}
diff --git a/taxonomies/person.php b/taxonomies/person.php
deleted file mode 100644
index bb6b8e5..0000000
--- a/taxonomies/person.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-// /taxonomies/target.php
-function altr_person():array
-{
- return [
- 'singular' => 'Person',
- 'plural' => 'People',
- 'icon' => 'user',
- 'show_feed' => false,
- 'public' => false,
- 'show_ui' => true,
- 'hierarchical' => false,
- 'for_content' => [
- 'progress',
- ],
- 'fields' => [
- 'term_name' => [
- 'label' => 'Name',
- 'type' => 'text',
- 'quickEdit' => true,
- ]
- ]
- ];
-}
diff --git a/taxonomies/section.php b/taxonomies/section.php
deleted file mode 100644
index 3660bef..0000000
--- a/taxonomies/section.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-// /taxonomies/target.php
-function altr_section():array
-{
- return [
- 'singular' => 'Section',
- 'plural' => 'Sections',
- 'icon' => 'folder',
- 'show_feed' => false,
- 'rewrite' => [
- 'slug' => 'faq',
- 'with_front' => false,
- 'hierarchical' => true,
- ],
- 'hierarchical' => true,
- 'for_content' => [
- 'faq',
- ],
- 'fields' => [
- 'term_name' => [
- 'label' => 'Name',
- 'type' => 'text',
- 'subtype' => 'number',
- 'quickEdit' => true,
- ],
- 'common' => [ 'wiki' ]
- ]
- ];
-}
diff --git a/taxonomies/skin-type.php b/taxonomies/skin-type.php
deleted file mode 100644
index ab7e09d..0000000
--- a/taxonomies/skin-type.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-// /taxonomies/media.php
-function altr_skin_type():array
-{
- return [
- 'singular' => 'Skin Type',
- 'plural' => 'Skin Types',
- 'description' => [
- 'According to the FitzPatrick Scale (1 - 6)',
- ],
- 'icon' => 'dots-six',
- 'show_feed' => true,
- 'show_directory' => true,
- 'rewrite' => [
- 'slug' => 'skin-type',
- 'with_front' => false,
- ],
- 'for_content' => [
- 'progress'
- ],
- 'fields' => [
- 'term_name' => [
- 'label' => 'Name',
- 'type' => 'text',
- 'quickEdit' => true,
- ],
- 'common' => [ 'wiki' ]
- ]
- ];
-}
diff --git a/taxonomies/theme.php b/taxonomies/theme.php
deleted file mode 100644
index 408fdad..0000000
--- a/taxonomies/theme.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-// /taxonomies/theme.php
-function altr_theme():array
-{
- return [
- 'directory' => 'Themes',
- 'show_directory' => true,
- 'isGrouped' => true,
- 'description' => [
- 'What makes up the tattoo, asides from style.',
- 'From bees to ideas to carrots.'
- ],
- 'singular' => 'Theme',
- 'plural' => 'Themes',
- 'icon' => 'hash',
- 'show_feed' => true,
- 'rewrite' => [
- 'slug' => 'themes',
- 'with_front' => false,
- 'hierarchical' => true,
- ],
- 'hierarchical' => true,
- 'for_content' => [
- 'progress',
- ],
- 'fields' => [
- 'term_name' => [
- 'label' => 'Name',
- 'type' => 'text',
- 'quickEdit' => true,
- ],
- 'similar' => [
- 'type' => 'taxonomy',
- 'taxonomy_type' => 'reference',
- 'taxonomy' => 'theme',
- 'label' => 'Similar Themes',
- ],
- 'description' => [
- 'type' => 'textarea',
- 'quill' => true,
- 'label' => 'Description',
- ],
- 'archive_title' => [
- 'type' => 'text',
- 'label' => 'Archive Title',
- 'description' => 'If the generated title does not jive, set it here',
- ],
- 'common' => [ 'wiki', 'alternate_name', 'keywords' ]
- ]
- ];
-}
diff --git a/taxonomies/timeline.php b/taxonomies/timeline.php
deleted file mode 100644
index 84f6b05..0000000
--- a/taxonomies/timeline.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-// /taxonomies/progress.php
-function altr_timeline():array
-{
- return [
- 'singular' => 'Timeline',
- 'plural' => 'Timelines',
- 'icon' => 'hourglass',
- 'show_feed' => true,
- 'show_directory' => true,
- 'rewrite' => [
- 'slug' => 'timeline',
- 'with_front' => false,
- ],
- 'for_content' => [
- 'progress',
- ],
- 'fields' => [
- 'term_name' => [
- 'label' => 'Name',
- 'type' => 'text',
- 'quickEdit' => true,
- ],
- 'common' => [ 'wiki' ]
- ]
- ];
-}
--
Gitblit v1.10.0