Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/options/woocommerce/archive-main.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 +
3 + $page_title_options = blocksy_get_options('general/page-title', [
4 + 'prefix' => 'woo_categories',
5 + 'is_woo' => true,
6 + 'location_name' => __('Product Archives', 'blocksy'),
7 + ]);
8 +
9 + $options = [
10 + 'woo_categories_section_options' => [
11 + 'type' => 'ct-options',
12 + 'setting' => [ 'transport' => 'postMessage' ],
13 + 'inner-options' => [
14 + blocksy_manager()->get_prefix_title_actions([
15 + 'prefix' => 'woo_categories',
16 + 'areas' => [
17 + [
18 + 'title' => __('Page Title', 'blocksy'),
19 + 'options' => $page_title_options,
20 + 'sources' => array_merge(
21 + blocksy_manager()
22 + ->screen
23 + ->get_archive_prefixes_with_human_labels([
24 + 'has_categories' => true,
25 + 'has_author' => true,
26 + 'has_search' => true,
27 + 'has_woocommerce' => true,
28 + ]),
29 +
30 + blocksy_manager()
31 + ->screen
32 + ->get_single_prefixes_with_human_labels([
33 + 'has_woocommerce' => true,
34 + ])
35 + )
36 + ]
37 + ]
38 + ]),
39 +
40 + $page_title_options,
41 +
42 + [
43 + blocksy_rand_md5() => [
44 + 'type' => 'ct-title',
45 + 'label' => __( 'Shop Settings', 'blocksy' ),
46 + ],
47 +
48 + blocksy_rand_md5() => [
49 + 'title' => __( 'General', 'blocksy' ),
50 + 'type' => 'tab',
51 + 'options' => [
52 +
53 + [
54 + 'shop_cards_type' => [
55 + 'label' => false,
56 + 'type' => 'ct-image-picker',
57 + 'value' => 'type-1',
58 + 'divider' => 'bottom',
59 + 'setting' => [ 'transport' => 'postMessage' ],
60 + 'choices' =>
61 + apply_filters(
62 + 'blocksy:options:woocommerce:archive:card-type:choices',
63 + [
64 + 'type-1' => [
65 + 'src' => blocksy_image_picker_url( 'woo-type-1.svg' ),
66 + 'title' => __( 'Type 1', 'blocksy' ),
67 + ],
68 +
69 + 'type-2' => [
70 + 'src' => blocksy_image_picker_url( 'woo-type-2.svg' ),
71 + 'title' => __( 'Type 2', 'blocksy' ),
72 + ],
73 + ]
74 + ),
75 +
76 + 'sync' => blocksy_sync_whole_page([
77 + 'prefix' => 'woo_categories',
78 + 'loader_selector' => '.products > li'
79 + ]),
80 + ],
81 +
82 + 'blocksy_woo_columns' => [
83 + 'label' => __('Columns & Rows', 'blocksy'),
84 + 'type' => 'ct-woocommerce-columns-and-rows',
85 + 'value' => [
86 + 'desktop' => 4,
87 + 'tablet' => 3,
88 + 'mobile' => 1,
89 + '__changed' => ['tablet', 'mobile']
90 + ],
91 + 'min' => 1,
92 + 'max' => 6,
93 + 'responsive' => true,
94 + 'setting' => [
95 + 'transport' => 'postMessage'
96 + ],
97 + ],
98 +
99 + 'woocommerce_catalog_columns' => [
100 + 'type' => 'hidden',
101 + 'value' => 4,
102 + 'setting' => [
103 + 'type' => 'option',
104 + 'transport' => 'postMessage'
105 + ],
106 + ],
107 +
108 + 'woocommerce_catalog_rows' => [
109 + 'type' => 'hidden',
110 + 'value' => 4,
111 + 'setting' => [
112 + 'type' => 'option',
113 + ],
114 +
115 + 'sync' => blocksy_sync_whole_page([
116 + 'prefix' => 'woo_categories',
117 + 'loader_selector' => '.products > li'
118 + ]),
119 + ],
120 +
121 + blocksy_rand_md5() => [
122 + 'type' => 'ct-divider',
123 + 'attr' => [ 'data-type' => 'small' ]
124 + ],
125 + ],
126 +
127 + blocksy_get_options('woocommerce/card-product-elements'),
128 +
129 + 'woo_categories_content_area_spacing' => [
130 + 'label' => __( 'Content Area Vertical Spacing', 'blocksy' ),
131 + 'type' => 'ct-radio',
132 + 'value' => 'both',
133 + 'view' => 'text',
134 + 'design' => 'block',
135 + 'divider' => 'top:full',
136 + 'attr' => [ 'data-type' => 'content-spacing' ],
137 + 'choice_attr' => [ 'data-tooltip-reveal' => 'top' ],
138 + 'sync' => "live",
139 + 'choices' => [
140 + 'both' => '<span></span>
141 + <i class="ct-tooltip">' . __( 'Top & Bottom', 'blocksy' ) . '</i>',
142 +
143 + 'top' => '<span></span>
144 + <i class="ct-tooltip">' . __( 'Only Top', 'blocksy' ) . '</i>',
145 +
146 + 'bottom' => '<span></span>
147 + <i class="ct-tooltip">' . __( 'Only Bottom', 'blocksy' ) . '</i>',
148 +
149 + 'none' => '<span></span>
150 + <i class="ct-tooltip">' . __( 'Disabled', 'blocksy' ) . '</i>',
151 + ],
152 + 'desc' => blocksy_safe_sprintf(
153 + // translators: placeholder here means the actual URL.
154 + __( 'You can customize the global spacing value in General ➝ Layout ➝ %sContent Area Spacing%s.', 'blocksy' ),
155 + blocksy_safe_sprintf(
156 + '<a data-trigger-section="general:layout_panel" href="%s">',
157 + admin_url('/customize.php?autofocus[section]=general&ct_autofocus=general:layout_panel')
158 + ),
159 + '</a>'
160 + ),
161 + ],
162 +
163 + ],
164 + ],
165 +
166 + blocksy_rand_md5() => [
167 + 'title' => __( 'Design', 'blocksy' ),
168 + 'type' => 'tab',
169 + 'options' => [
170 + 'shop_archive_background' => [
171 + 'label' => __('Page Background', 'blocksy'),
172 + 'type' => 'ct-background',
173 + 'design' => 'block:right',
174 + 'responsive' => true,
175 + 'sync' => 'live',
176 + 'divider' => 'bottom',
177 + 'value' => blocksy_background_default_value([
178 + 'backgroundColor' => [
179 + 'default' => [
180 + 'color' => Blocksy_Css_Injector::get_skip_rule_keyword(),
181 + ],
182 + ],
183 + ]),
184 + 'desc' => blocksy_safe_sprintf(
185 + // translators: placeholder here means the actual URL.
186 + __( 'Please note, by default this option is inherited from Colors ➝ %sSite Background%s.', 'blocksy' ),
187 + blocksy_safe_sprintf(
188 + '<a data-trigger-section="color" href="%s">',
189 + admin_url('/customize.php?autofocus[section]=color')
190 + ),
191 + '</a>'
192 + ),
193 + ],
194 + ],
195 + ],
196 +
197 + blocksy_rand_md5() => [
198 + 'type' => 'ct-title',
199 + 'label' => __( 'Page Elements', 'blocksy' ),
200 + ],
201 + ],
202 +
203 + apply_filters(
204 + 'blocksy:options:woocommerce:archive:filters-canvas',
205 + []
206 + ),
207 +
208 + apply_filters(
209 + 'blocksy:options:woocommerce:archive:active-filters',
210 + []
211 + ),
212 +
213 + blocksy_get_options('woocommerce/results-count'),
214 +
215 + blocksy_get_options('woocommerce/products-sorting'),
216 +
217 + blocksy_get_options('general/sidebar-particular', [
218 + 'prefix' => 'woo_categories',
219 + ]),
220 +
221 + blocksy_get_options('general/pagination', [
222 + 'prefix' => 'woo_categories',
223 + ]),
224 +
225 + [
226 + blocksy_rand_md5() => [
227 + 'type' => 'ct-title',
228 + 'label' => __( 'Functionality Options', 'blocksy' ),
229 + ],
230 + ],
231 +
232 + apply_filters(
233 + 'blocksy:options:woocommerce:archive:ajax-filtering',
234 + []
235 + ),
236 +
237 + [
238 + 'product_catalog_panel' => [
239 + 'label' => __( 'Product Catalog', 'blocksy' ),
240 + 'type' => 'ct-panel',
241 + 'wrapperAttr' => [ 'data-panel' => 'only-arrow' ],
242 + 'setting' => [ 'transport' => 'postMessage' ],
243 + 'inner-options' => [
244 +
245 + 'woocommerce_shop_page_display' => [
246 + 'label' => __( 'Shop page display', 'blocksy' ),
247 + 'type' => 'ct-select',
248 + 'value' => '',
249 + 'view' => 'text',
250 + 'placeholder' => __('Show products', 'blocksy'),
251 + 'design' => 'block',
252 + 'setting' => [
253 + 'type' => 'option'
254 + ],
255 + 'desc' => __( 'Choose what to display on the main shop page.', 'blocksy' ),
256 + 'choices' => blocksy_ordered_keys(
257 + [
258 + '' => __('Show products', 'blocksy'),
259 + 'subcategories' => __('Show categories', 'blocksy'),
260 + 'both' => __('Show categories & products', 'blocksy'),
261 + ]
262 + ),
263 + ],
264 +
265 + 'woocommerce_category_archive_display' => [
266 + 'label' => __( 'Category display', 'blocksy' ),
267 + 'type' => 'ct-select',
268 + 'value' => '',
269 + 'view' => 'text',
270 + 'placeholder' => __('Show products', 'blocksy'),
271 + 'design' => 'block',
272 + 'setting' => [
273 + 'type' => 'option'
274 + ],
275 + 'desc' => __( 'Choose what to display on product category pages.', 'blocksy' ),
276 + 'choices' => blocksy_ordered_keys(
277 + [
278 + '' => __('Show products', 'blocksy'),
279 + 'subcategories' => __('Show subcategories', 'blocksy'),
280 + 'both' => __('Show subcategories & products', 'blocksy'),
281 + ]
282 + ),
283 + ],
284 +
285 + 'woocommerce_default_catalog_orderby' => [
286 + 'label' => __( 'Default product sorting', 'blocksy' ),
287 + 'type' => 'ct-select',
288 + 'value' => 'menu_order',
289 + 'view' => 'text',
290 + 'design' => 'block',
291 + 'desc' => __( 'How should products be sorted in the catalog by default?', 'blocksy' ),
292 + 'setting' => [
293 + 'type' => 'option'
294 + ],
295 + 'choices' => blocksy_ordered_keys(
296 + apply_filters(
297 + 'woocommerce_default_catalog_orderby_options',
298 + [
299 + 'menu_order' => __('Default sorting (custom ordering + name)', 'blocksy'),
300 + 'popularity' => __('Popularity (sales)', 'blocksy'),
301 + 'rating' => __('Average rating', 'blocksy'),
302 + 'date' => __('Sort by most recent', 'blocksy'),
303 + 'price' => __('Sort by price (asc)', 'blocksy'),
304 + 'price-desc' => __('Sort by price (desc)', 'blocksy'),
305 + ]
306 + )
307 + ),
308 + ],
309 +
310 + ],
311 + ],
312 +
313 + ],
314 +
315 + ],
316 + ],
317 + ];
318 +