Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/options/general/sidebar-particular.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
3
+
if (! isset($prefix)) {
4
+
$prefix = '';
5
+
$initial_prefix = '';
6
+
} else {
7
+
$initial_prefix = $prefix;
8
+
$prefix = $prefix . '_';
9
+
}
10
+
11
+
$options = [
12
+
13
+
blocksy_rand_md5() => [
14
+
'type' => 'ct-condition',
15
+
'condition' => [
16
+
$prefix . 'structure' => '!gutenberg'
17
+
],
18
+
'options' => [
19
+
$prefix . 'has_sidebar' => [
20
+
'label' => __( 'Sidebar', 'blocksy' ),
21
+
'type' => 'ct-panel',
22
+
'switch' => true,
23
+
'value' => 'no',
24
+
'sync' => blocksy_sync_whole_page([
25
+
'prefix' => $prefix,
26
+
'loader_selector' => '[class*="ct-container"]'
27
+
]),
28
+
'inner-options' => [
29
+
$prefix . 'sidebar_position' => [
30
+
'label' => __( 'Sidebar Position', 'blocksy' ),
31
+
'type' => 'ct-image-picker',
32
+
'value' => 'right',
33
+
'divider' => 'bottom',
34
+
'condition' => [ $prefix . 'has_sidebar' => 'yes' ],
35
+
'sync' => 'live',
36
+
'choices' => [
37
+
'left' => [
38
+
'src' => blocksy_image_picker_url( 'left-sidebar.svg' ),
39
+
'title' => __( 'Left Sidebar', 'blocksy' ),
40
+
],
41
+
42
+
'right' => [
43
+
'src' => blocksy_image_picker_url( 'right-sidebar.svg' ),
44
+
'title' => __( 'Right Sidebar', 'blocksy' ),
45
+
],
46
+
],
47
+
],
48
+
49
+
],
50
+
],
51
+
52
+
]
53
+
],
54
+
55
+
];
56
+