| | |
| | | <?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', |
| | | ]; |
| | | } |