Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/options/meta/page.php

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