Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/options/meta/post.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
3
+
$options = [
4
+
[
5
+
'post_title_panel' => [
6
+
'label' => __( 'Post Title', 'blocksy' ),
7
+
'type' => 'ct-panel',
8
+
'wrapperAttr' => [ 'data-label' => 'heading-label' ],
9
+
'setting' => [ 'transport' => 'postMessage' ],
10
+
'inner-options' => [
11
+
blocksy_get_options('general/page-title', [
12
+
'has_default' => true,
13
+
'is_single' => true
14
+
]),
15
+
]
16
+
],
17
+
18
+
blocksy_rand_md5() => [
19
+
'type' => 'ct-title',
20
+
'label' => __( 'Post Structure', 'blocksy' ),
21
+
],
22
+
23
+
blocksy_rand_md5() => [
24
+
'title' => __( 'General', 'blocksy' ),
25
+
'type' => 'tab',
26
+
'options' => [
27
+
'page_structure_type' => [
28
+
'label' => false,
29
+
'type' => 'ct-image-picker',
30
+
'value' => 'default',
31
+
'design' => 'block',
32
+
'attr' => [
33
+
'data-type' => 'background',
34
+
'data-state' => 'sync',
35
+
],
36
+
'setting' => [ 'transport' => 'postMessage' ],
37
+
'choices' => [
38
+
'default' => [
39
+
'src' => blocksy_image_picker_url( 'default.svg' ),
40
+
'title' => __( 'Inherit from customizer', 'blocksy' ),
41
+
],
42
+
43
+
'type-3' => [
44
+
'src' => blocksy_image_picker_url( 'narrow.svg' ),
45
+
'title' => __( 'Narrow Width', 'blocksy' ),
46
+
],
47
+
48
+
'type-4' => [
49
+
'src' => blocksy_image_picker_url( 'normal.svg' ),
50
+
'title' => __( 'Normal Width', 'blocksy' ),
51
+
],
52
+
53
+
'type-2' => [
54
+
'src' => blocksy_image_picker_url( 'left-single-sidebar.svg' ),
55
+
'title' => __( 'Left Sidebar', 'blocksy' ),
56
+
],
57
+
58
+
'type-1' => [
59
+
'src' => blocksy_image_picker_url( 'right-single-sidebar.svg' ),
60
+
'title' => __( 'Right Sidebar', 'blocksy' ),
61
+
],
62
+
],
63
+
],
64
+
65
+
blocksy_rand_md5() => [
66
+
'type' => 'ct-divider',
67
+
],
68
+
69
+
'content_style_source' => [
70
+
'label' => __('Content Area Style Source', 'blocksy'),
71
+
'type' => 'ct-radio',
72
+
'value' => 'inherit',
73
+
'view' => 'text',
74
+
'choices' => [
75
+
'inherit' => __('Inherit', 'blocksy'),
76
+
'custom' => __('Custom', 'blocksy'),
77
+
],
78
+
],
79
+
80
+
blocksy_rand_md5() => [
81
+
'type' => 'ct-condition',
82
+
'condition' => ['content_style_source' => 'custom'],
83
+
'options' => [
84
+
'content_style' => [
85
+
'label' => __('Content Area Style', 'blocksy'),
86
+
'type' => 'ct-radio',
87
+
'value' => 'wide',
88
+
'view' => 'text',
89
+
'design' => 'block',
90
+
'responsive' => true,
91
+
'choices' => [
92
+
'wide' => __( 'Wide', 'blocksy' ),
93
+
'boxed' => __( 'Boxed', 'blocksy' ),
94
+
],
95
+
],
96
+
]
97
+
],
98
+
99
+
blocksy_rand_md5() => [
100
+
'type' => 'ct-divider',
101
+
],
102
+
103
+
'vertical_spacing_source' => [
104
+
'label' => __('Content Area Vertical Spacing', 'blocksy'),
105
+
'type' => 'ct-radio',
106
+
'value' => 'inherit',
107
+
'view' => 'text',
108
+
'choices' => [
109
+
'inherit' => __('Inherit', 'blocksy'),
110
+
'custom' => __('Custom', 'blocksy'),
111
+
],
112
+
],
113
+
114
+
blocksy_rand_md5() => [
115
+
'type' => 'ct-condition',
116
+
'condition' => [ 'vertical_spacing_source' => 'custom' ],
117
+
'options' => [
118
+
119
+
'content_area_spacing' => [
120
+
'label' => false,
121
+
'desc' => __( 'You can customize the spacing value in general settings panel.', 'blocksy' ),
122
+
'type' => 'ct-radio',
123
+
'value' => 'both',
124
+
'view' => 'text',
125
+
'design' => 'block',
126
+
'disableRevertButton' => true,
127
+
'attr' => [ 'data-type' => 'content-spacing' ],
128
+
'choice_attr' => [ 'data-tooltip-reveal' => 'top' ],
129
+
'setting' => [ 'transport' => 'postMessage' ],
130
+
'choices' => [
131
+
'both' => '<span></span>
132
+
<i class="ct-tooltip">' . __( 'Top & Bottom', 'blocksy' ) . '</i>',
133
+
134
+
'top' => '<span></span>
135
+
<i class="ct-tooltip">' . __( 'Only Top', 'blocksy' ) . '</i>',
136
+
137
+
'bottom' => '<span></span>
138
+
<i class="ct-tooltip">' . __( 'Only Bottom', 'blocksy' ) . '</i>',
139
+
140
+
'none' => '<span></span>
141
+
<i class="ct-tooltip">' . __( 'Disabled', 'blocksy' ) . '</i>',
142
+
],
143
+
'desc' => blocksy_safe_sprintf(
144
+
// translators: placeholder here means the actual URL.
145
+
__( 'You can customize the global spacing value in General ➝ Layout ➝ %sContent Area Spacing%s.', 'blocksy' ),
146
+
blocksy_safe_sprintf(
147
+
'<a data-trigger-section="general" href="%s">',
148
+
admin_url('/customize.php?autofocus[section]=general&ct_autofocus=general:layout_panel')
149
+
),
150
+
'</a>'
151
+
),
152
+
],
153
+
],
154
+
],
155
+
],
156
+
],
157
+
158
+
blocksy_rand_md5() => [
159
+
'title' => __('Design', 'blocksy'),
160
+
'type' => 'tab',
161
+
'options' => [
162
+
blocksy_get_options('single-elements/structure-design', [
163
+
'options_conditions' => [
164
+
'content_style_source' => 'custom'
165
+
]
166
+
])
167
+
],
168
+
],
169
+
170
+
blocksy_rand_md5() => [
171
+
'type' => 'ct-title',
172
+
'label' => __('Post Elements', 'blocksy'),
173
+
],
174
+
175
+
'disable_featured_image' => [
176
+
'label' => __( 'Disable Featured Image', 'blocksy' ),
177
+
'type' => 'ct-switch',
178
+
'value' => 'no',
179
+
],
180
+
181
+
'disable_post_tags' => [
182
+
'label' => __( 'Disable Post Tags', 'blocksy' ),
183
+
'type' => 'ct-switch',
184
+
'value' => 'no',
185
+
],
186
+
187
+
'disable_share_box' => [
188
+
'label' => __( 'Disable Share Box', 'blocksy' ),
189
+
'type' => 'ct-switch',
190
+
'value' => 'no',
191
+
],
192
+
193
+
'disable_author_box' => [
194
+
'label' => __( 'Disable Author Box', 'blocksy' ),
195
+
'type' => 'ct-switch',
196
+
'value' => 'no',
197
+
],
198
+
199
+
'disable_posts_navigation' => [
200
+
'label' => __( 'Disable Posts Navigation', 'blocksy' ),
201
+
'type' => 'ct-switch',
202
+
'value' => 'no',
203
+
],
204
+
],
205
+
206
+
apply_filters(
207
+
'blocksy_extensions_metabox_post:elements:before',
208
+
[]
209
+
),
210
+
211
+
[
212
+
blocksy_rand_md5() => [
213
+
'type' => 'ct-title',
214
+
'label' => __( 'Page Elements', 'blocksy' ),
215
+
],
216
+
217
+
'disable_related_posts' => [
218
+
'label' => __( 'Disable Related Posts', 'blocksy' ),
219
+
'type' => 'ct-switch',
220
+
'value' => 'no',
221
+
],
222
+
223
+
'disable_header' => [
224
+
'label' => __( 'Disable Header', 'blocksy' ),
225
+
'type' => 'ct-switch',
226
+
'value' => 'no',
227
+
],
228
+
229
+
'disable_footer' => [
230
+
'label' => __( 'Disable Footer', 'blocksy' ),
231
+
'type' => 'ct-switch',
232
+
'value' => 'no',
233
+
],
234
+
],
235
+
236
+
apply_filters(
237
+
'blocksy_extensions_metabox_post_bottom',
238
+
[]
239
+
),
240
+
];
241
+