Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/options/general/buttons.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
/**
3
+
* Buttons options
4
+
*
5
+
* @copyright 2019-present Creative Themes
6
+
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
7
+
* @package Blocksy
8
+
*/
9
+
10
+
$options = [
11
+
12
+
'buttons_panel' => [
13
+
'label' => __( 'Buttons', 'blocksy' ),
14
+
'type' => 'ct-panel',
15
+
'setting' => [ 'transport' => 'postMessage' ],
16
+
'inner-options' => [
17
+
18
+
blocksy_rand_md5() => [
19
+
'title' => __( 'General', 'blocksy' ),
20
+
'type' => 'tab',
21
+
'options' => [
22
+
23
+
'buttonMinHeight' => [
24
+
'label' => __( 'Min Height', 'blocksy' ),
25
+
'type' => 'ct-slider',
26
+
'min' => 30,
27
+
'max' => 100,
28
+
'value' => 40,
29
+
'responsive' => true,
30
+
'setting' => [ 'transport' => 'postMessage' ],
31
+
],
32
+
33
+
'buttonHoverEffect' => [
34
+
'label' => __( 'Hover Effect', 'blocksy' ),
35
+
'type' => 'ct-switch',
36
+
'value' => 'no',
37
+
'divider' => 'top',
38
+
'setting' => [ 'transport' => 'postMessage' ],
39
+
],
40
+
41
+
],
42
+
],
43
+
44
+
blocksy_rand_md5() => [
45
+
'title' => __( 'Design', 'blocksy' ),
46
+
'type' => 'tab',
47
+
'options' => [
48
+
49
+
'buttonTextColor' => [
50
+
'label' => __( 'Font Color', 'blocksy' ),
51
+
'type' => 'ct-color-picker',
52
+
'design' => 'inline',
53
+
'skipEditPalette' => true,
54
+
'setting' => [ 'transport' => 'postMessage' ],
55
+
56
+
'value' => [
57
+
'default' => [
58
+
'color' => '#ffffff',
59
+
],
60
+
61
+
'hover' => [
62
+
'color' => '#ffffff',
63
+
],
64
+
],
65
+
66
+
'pickers' => [
67
+
[
68
+
'title' => __( 'Initial', 'blocksy' ),
69
+
'id' => 'default',
70
+
],
71
+
72
+
[
73
+
'title' => __( 'Hover', 'blocksy' ),
74
+
'id' => 'hover',
75
+
],
76
+
],
77
+
],
78
+
79
+
'buttonColor' => [
80
+
'label' => __( 'Background Color', 'blocksy' ),
81
+
'type' => 'ct-color-picker',
82
+
'design' => 'inline',
83
+
'skipEditPalette' => true,
84
+
'setting' => [ 'transport' => 'postMessage' ],
85
+
86
+
'value' => [
87
+
'default' => [
88
+
'color' => 'var(--theme-palette-color-1)',
89
+
],
90
+
91
+
'hover' => [
92
+
'color' => 'var(--theme-palette-color-2)',
93
+
],
94
+
],
95
+
96
+
'pickers' => [
97
+
[
98
+
'title' => __( 'Initial', 'blocksy' ),
99
+
'id' => 'default',
100
+
],
101
+
102
+
[
103
+
'title' => __( 'Hover', 'blocksy' ),
104
+
'id' => 'hover',
105
+
],
106
+
],
107
+
],
108
+
109
+
'buttonBorder' => [
110
+
'label' => __( 'Border', 'blocksy' ),
111
+
'type' => 'ct-border',
112
+
'design' => 'inline',
113
+
'sync' => 'live',
114
+
'divider' => 'top',
115
+
'secondColor' => true,
116
+
'value' => [
117
+
'width' => 1,
118
+
'style' => 'none',
119
+
'color' => [
120
+
'color' => 'rgba(224, 229, 235, 0.5)',
121
+
],
122
+
123
+
'secondColor' => [
124
+
'color' => 'rgba(224, 229, 235, 0.7)',
125
+
],
126
+
],
127
+
],
128
+
129
+
'buttonPadding' => [
130
+
'label' => __( 'Padding', 'blocksy' ),
131
+
'type' => 'ct-spacing',
132
+
'divider' => 'top',
133
+
'setting' => [ 'transport' => 'postMessage' ],
134
+
'value' => blocksy_spacing_value([
135
+
'top' => '5px',
136
+
'left' => '20px',
137
+
'right' => '20px',
138
+
'bottom' => '5px',
139
+
]),
140
+
'min' => 0,
141
+
'responsive' => true
142
+
],
143
+
144
+
'buttonRadius' => [
145
+
'label' => __( 'Border Radius', 'blocksy' ),
146
+
'type' => 'ct-spacing',
147
+
'divider' => 'top',
148
+
'setting' => [ 'transport' => 'postMessage' ],
149
+
'value' => blocksy_spacing_value(),
150
+
'inputAttr' => [
151
+
'placeholder' => '3'
152
+
],
153
+
'min' => 0,
154
+
'responsive' => true
155
+
],
156
+
157
+
],
158
+
],
159
+
],
160
+
],
161
+
];
162
+