1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
| <?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',
| ];
| }
|
|