Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/options/general/colors.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
/**
3
+
* Colors 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
+
'colors_section_options' => [
12
+
'type' => 'ct-options',
13
+
'setting' => [ 'transport' => 'postMessage' ],
14
+
'inner-options' => [
15
+
16
+
[
17
+
'colorPalette' => [
18
+
'label' => __( 'Global Color Palette', 'blocksy' ),
19
+
'type' => 'ct-color-palettes-picker',
20
+
'design' => 'block',
21
+
// translators: The interpolations addes a html link around the word.
22
+
'desc' => blocksy_safe_sprintf(
23
+
__('Learn more about palettes and colors %shere%s.', 'blocksy'),
24
+
'<a href="https://creativethemes.com/blocksy/docs/general-options/colors/" target="_blank">',
25
+
'</a>'
26
+
),
27
+
'setting' => [ 'transport' => 'postMessage' ],
28
+
'predefined' => true,
29
+
'wrapperAttr' => [
30
+
'data-label' => 'heading-label'
31
+
],
32
+
33
+
'value' => [
34
+
'color1' => [
35
+
'color' => '#2872fa',
36
+
],
37
+
38
+
'color2' => [
39
+
'color' => '#1559ed',
40
+
],
41
+
42
+
'color3' => [
43
+
'color' => '#3A4F66',
44
+
],
45
+
46
+
'color4' => [
47
+
'color' => '#192a3d',
48
+
],
49
+
50
+
'color5' => [
51
+
'color' => '#e1e8ed',
52
+
],
53
+
54
+
'color6' => [
55
+
'color' => '#f2f5f7',
56
+
],
57
+
58
+
'color7' => [
59
+
'color' => '#FAFBFC',
60
+
],
61
+
62
+
'color8' => [
63
+
'color' => '#ffffff',
64
+
]
65
+
],
66
+
67
+
'palettes' => apply_filters('blocksy:options:colors:palette:palettes', [])
68
+
],
69
+
70
+
],
71
+
72
+
apply_filters('blocksy:options:colors:palette:after', []),
73
+
74
+
blocksy_rand_md5() => [
75
+
'type' => 'ct-title',
76
+
'label' => __( 'Global Colors', 'blocksy' ),
77
+
],
78
+
79
+
'fontColor' => [
80
+
'label' => __( 'Base Text', 'blocksy' ),
81
+
'type' => 'ct-color-picker',
82
+
'skipEditPalette' => true,
83
+
'design' => 'inline',
84
+
'setting' => [ 'transport' => 'postMessage' ],
85
+
86
+
'value' => [
87
+
'default' => [
88
+
'color' => 'var(--theme-palette-color-3)',
89
+
],
90
+
],
91
+
92
+
'pickers' => [
93
+
[
94
+
'title' => __( 'Initial', 'blocksy' ),
95
+
'id' => 'default',
96
+
],
97
+
],
98
+
],
99
+
100
+
'linkColor' => [
101
+
'label' => __( 'Links', 'blocksy' ),
102
+
'type' => 'ct-color-picker',
103
+
'skipEditPalette' => true,
104
+
'design' => 'inline',
105
+
'setting' => [ 'transport' => 'postMessage' ],
106
+
107
+
'value' => [
108
+
'default' => [
109
+
'color' => 'var(--theme-palette-color-1)',
110
+
],
111
+
112
+
'hover' => [
113
+
'color' => 'var(--theme-palette-color-2)',
114
+
],
115
+
],
116
+
117
+
'pickers' => [
118
+
[
119
+
'title' => __( 'Initial', 'blocksy' ),
120
+
'id' => 'default',
121
+
],
122
+
123
+
[
124
+
'title' => __( 'Hover', 'blocksy' ),
125
+
'id' => 'hover',
126
+
],
127
+
],
128
+
],
129
+
130
+
'selectionColor' => [
131
+
'label' => __( 'Text Selection', 'blocksy' ),
132
+
'type' => 'ct-color-picker',
133
+
'skipEditPalette' => true,
134
+
'design' => 'inline',
135
+
'setting' => [ 'transport' => 'postMessage' ],
136
+
137
+
'value' => [
138
+
'default' => [
139
+
'color' => '#ffffff',
140
+
],
141
+
142
+
'hover' => [
143
+
'color' => 'var(--theme-palette-color-1)',
144
+
],
145
+
],
146
+
147
+
'pickers' => [
148
+
[
149
+
'title' => __( 'Text', 'blocksy' ),
150
+
'id' => 'default',
151
+
],
152
+
153
+
[
154
+
'title' => __( 'Background', 'blocksy' ),
155
+
'id' => 'hover',
156
+
],
157
+
],
158
+
],
159
+
160
+
'border_color' => [
161
+
'label' => __( 'Borders', 'blocksy' ),
162
+
'type' => 'ct-color-picker',
163
+
'design' => 'inline',
164
+
'setting' => [ 'transport' => 'postMessage' ],
165
+
166
+
'value' => [
167
+
'default' => [
168
+
'color' => 'var(--theme-palette-color-5)',
169
+
],
170
+
],
171
+
172
+
'pickers' => [
173
+
[
174
+
'title' => __( 'Initial', 'blocksy' ),
175
+
'id' => 'default',
176
+
],
177
+
],
178
+
],
179
+
180
+
'headingColor' => [
181
+
'label' => __( 'All Headings (H1 - H6)', 'blocksy' ),
182
+
'type' => 'ct-color-picker',
183
+
'skipEditPalette' => true,
184
+
'divider' => 'top',
185
+
'design' => 'inline',
186
+
'setting' => [ 'transport' => 'postMessage' ],
187
+
188
+
'value' => [
189
+
'default' => [
190
+
'color' => 'var(--theme-palette-color-4)',
191
+
],
192
+
],
193
+
194
+
'pickers' => [
195
+
[
196
+
'title' => __( 'Initial', 'blocksy' ),
197
+
'id' => 'default',
198
+
],
199
+
],
200
+
],
201
+
202
+
'heading_1_color' => [
203
+
'label' => __( 'Heading 1 (H1)', 'blocksy' ),
204
+
'type' => 'ct-color-picker',
205
+
'skipEditPalette' => true,
206
+
'design' => 'inline',
207
+
'setting' => [ 'transport' => 'postMessage' ],
208
+
209
+
'value' => [
210
+
'default' => [
211
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
212
+
],
213
+
],
214
+
215
+
'pickers' => [
216
+
[
217
+
'title' => __( 'Initial', 'blocksy' ),
218
+
'id' => 'default',
219
+
'inherit' => 'var(--theme-headings-color)',
220
+
],
221
+
],
222
+
],
223
+
224
+
'heading_2_color' => [
225
+
'label' => __( 'Heading 2 (H2)', 'blocksy' ),
226
+
'type' => 'ct-color-picker',
227
+
'skipEditPalette' => true,
228
+
'design' => 'inline',
229
+
'setting' => [ 'transport' => 'postMessage' ],
230
+
231
+
'value' => [
232
+
'default' => [
233
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
234
+
],
235
+
],
236
+
237
+
'pickers' => [
238
+
[
239
+
'title' => __( 'Initial', 'blocksy' ),
240
+
'id' => 'default',
241
+
'inherit' => 'var(--theme-headings-color)',
242
+
],
243
+
],
244
+
],
245
+
246
+
'heading_3_color' => [
247
+
'label' => __( 'Heading 3 (H3)', 'blocksy' ),
248
+
'type' => 'ct-color-picker',
249
+
'skipEditPalette' => true,
250
+
'design' => 'inline',
251
+
'setting' => [ 'transport' => 'postMessage' ],
252
+
253
+
'value' => [
254
+
'default' => [
255
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
256
+
],
257
+
],
258
+
259
+
'pickers' => [
260
+
[
261
+
'title' => __( 'Initial', 'blocksy' ),
262
+
'id' => 'default',
263
+
'inherit' => 'var(--theme-headings-color)',
264
+
],
265
+
],
266
+
],
267
+
268
+
'heading_4_color' => [
269
+
'label' => __( 'Heading 4 (H4)', 'blocksy' ),
270
+
'type' => 'ct-color-picker',
271
+
'skipEditPalette' => true,
272
+
'design' => 'inline',
273
+
'setting' => [ 'transport' => 'postMessage' ],
274
+
275
+
'value' => [
276
+
'default' => [
277
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
278
+
],
279
+
],
280
+
281
+
'pickers' => [
282
+
[
283
+
'title' => __( 'Initial', 'blocksy' ),
284
+
'id' => 'default',
285
+
'inherit' => 'var(--theme-headings-color)',
286
+
],
287
+
],
288
+
],
289
+
290
+
'heading_5_color' => [
291
+
'label' => __( 'Heading 5 (H5)', 'blocksy' ),
292
+
'type' => 'ct-color-picker',
293
+
'skipEditPalette' => true,
294
+
'design' => 'inline',
295
+
'setting' => [ 'transport' => 'postMessage' ],
296
+
297
+
'value' => [
298
+
'default' => [
299
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
300
+
],
301
+
],
302
+
303
+
'pickers' => [
304
+
[
305
+
'title' => __( 'Initial', 'blocksy' ),
306
+
'id' => 'default',
307
+
'inherit' => 'var(--theme-headings-color)',
308
+
],
309
+
],
310
+
],
311
+
312
+
'heading_6_color' => [
313
+
'label' => __( 'Heading 6 (H6)', 'blocksy' ),
314
+
'type' => 'ct-color-picker',
315
+
'skipEditPalette' => true,
316
+
'design' => 'inline',
317
+
'setting' => [ 'transport' => 'postMessage' ],
318
+
319
+
'value' => [
320
+
'default' => [
321
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
322
+
],
323
+
],
324
+
325
+
'pickers' => [
326
+
[
327
+
'title' => __( 'Initial', 'blocksy' ),
328
+
'id' => 'default',
329
+
'inherit' => 'var(--theme-headings-color)',
330
+
],
331
+
],
332
+
],
333
+
334
+
'site_background' => [
335
+
'label' => __( 'Site Background', 'blocksy' ),
336
+
'type' => 'ct-background',
337
+
'design' => 'block:right',
338
+
'responsive' => true,
339
+
'divider' => 'top',
340
+
'setting' => [ 'transport' => 'postMessage' ],
341
+
'value' => blocksy_background_default_value([
342
+
'backgroundColor' => [
343
+
'default' => [
344
+
'color' => 'var(--theme-palette-color-7)'
345
+
],
346
+
],
347
+
])
348
+
],
349
+
350
+
],
351
+
],
352
+
];
353
+