From 3241a281b1f854dd848156cd9ca54de0e607f08c Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 10 Nov 2025 21:05:17 +0000
Subject: [PATCH] =Update

---
 content/progress.php |  115 +++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 99 insertions(+), 16 deletions(-)

diff --git a/content/progress.php b/content/progress.php
index e06ef9b..0900884 100644
--- a/content/progress.php
+++ b/content/progress.php
@@ -1,46 +1,129 @@
 <?php
-// /content/art.php
+// /content/progress.php
 function altr_progress():array
 {
     return [
         'singular'       => 'Before & After',
         'plural'       => 'Before & Afters',
-        'dash_title'    => 'Before & Afters',
+        'dash_title'    => 'Progress',
         'dash_description' => 'Manage your before and after posts',
         'breadcrumb'    => 'Before & Afters',
-        'hide_single'  => false,
+        'capability_type' => ['progress', 'progress'],
+        'hide_children' => true,
+        'is_timeline'   => true,
         'show_feed'    => true,
-        'favouritable' => false,
-        'karma'        => false,
+        '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,
             ],
-            'featured_image' => [
-                'type'  => 'image',
-                'label' => 'Image',
+            'post_status'         => [
+                'type'      => 'radio',
+                'label'     => 'Status',
+                'hidden'    => true,
+                'options'   => [
+                    'publish'   => 'Show',
+                    'draft'     => 'Hide',
+                    'trash'     => 'Scrap',
+                    'delete'    => 'Permanently Delete'
+                ],
+                'section'   => 'progression',
+                'for_all'   => true,
             ],
-            'gallery'        => [
-                'type'  => 'gallery',
-                'label' => 'Gallery',
+            'post_thumbnail'                => [
+                'type'      => 'image',
+                'label'     => 'Image',
+                'quickEdit' => true,
+                'section'   => 'progression',
+                'for_all'   => true,
             ],
-            'price'          => [
-                'type'  => 'number',
-                'label' => 'Price',
+            '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'
+                'label' => 'Notes',
+                'section'   => 'progression',
+                'for_all'   => true,
             ]
         ],
-        'single_image' => false,
         'upload_title' => 'Upload Before & Afters',
     ];
 }

--
Gitblit v1.10.0