Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/panel-builder/header/button/options.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
3
+
$options = [
4
+
blocksy_rand_md5() => [
5
+
'title' => __( 'General', 'blocksy' ),
6
+
'type' => 'tab',
7
+
'options' => array_merge(
8
+
[
9
+
'header_button_type' => [
10
+
'label' => false,
11
+
'type' => 'ct-image-picker',
12
+
'value' => 'type-1',
13
+
'choices' => [
14
+
15
+
'type-1' => [
16
+
'src' => blocksy_image_picker_file( 'button-1' ),
17
+
'title' => __( 'Default', 'blocksy' ),
18
+
],
19
+
20
+
'type-2' => [
21
+
'src' => blocksy_image_picker_file( 'button-2' ),
22
+
'title' => __( 'Ghost', 'blocksy' ),
23
+
],
24
+
25
+
],
26
+
],
27
+
28
+
'header_button_size' => [
29
+
'label' => __('Size', 'blocksy'),
30
+
'type' => 'ct-select',
31
+
'value' => 'small',
32
+
'view' => 'text',
33
+
'design' => 'inline',
34
+
'divider' => 'top',
35
+
'choices' => blocksy_ordered_keys(
36
+
[
37
+
'default' => __( 'Default', 'blocksy' ),
38
+
'small' => __( 'Small', 'blocksy' ),
39
+
'medium' => __( 'Medium', 'blocksy' ),
40
+
'large' => __( 'Large', 'blocksy' ),
41
+
]
42
+
),
43
+
],
44
+
45
+
'header_button_text' => [
46
+
'label' => __( 'Label Text', 'blocksy' ),
47
+
'type' => 'text',
48
+
'design' => 'inline',
49
+
'divider' => 'top',
50
+
'value' => __( 'Download', 'blocksy' ),
51
+
],
52
+
53
+
'has_header_button_secondary_text' => [
54
+
'label' => __( 'Secondary Label', 'blocksy' ),
55
+
'type' => 'ct-switch',
56
+
'value' => 'no',
57
+
'divider' => 'top',
58
+
],
59
+
60
+
blocksy_rand_md5() => [
61
+
'type' => 'ct-condition',
62
+
'condition' => [ 'has_header_button_secondary_text' => 'yes' ],
63
+
'options' => [
64
+
65
+
'header_button_secondary_text' => [
66
+
'label' => __( 'Label Text', 'blocksy' ),
67
+
'type' => 'text',
68
+
'design' => 'inline',
69
+
'value' => __( 'Hurry Up!', 'blocksy' ),
70
+
'divider' => 'bottom',
71
+
],
72
+
73
+
'header_button_text_horizontal_alignment' => [
74
+
'type' => 'ct-radio',
75
+
'label' => __( 'Text Alignment', 'blocksy' ),
76
+
'view' => 'text',
77
+
'design' => 'block',
78
+
'responsive' => true,
79
+
'attr' => [ 'data-type' => 'alignment' ],
80
+
'setting' => [ 'transport' => 'postMessage' ],
81
+
'value' => 'CT_CSS_SKIP_RULE',
82
+
'choices' => [
83
+
'left' => '',
84
+
'center' => '',
85
+
'right' => '',
86
+
],
87
+
],
88
+
89
+
],
90
+
],
91
+
92
+
blocksy_rand_md5() => [
93
+
'type' => 'ct-divider',
94
+
],
95
+
96
+
'header_button_open' => [
97
+
'label' => __('Click Behavior', 'blocksy'),
98
+
'type' => (
99
+
function_exists('blc_site_has_feature')
100
+
&&
101
+
blc_site_has_feature('base_pro')
102
+
) ? 'ct-select' : 'hidden',
103
+
'value' => 'link',
104
+
'view' => 'text',
105
+
'design' => 'inline',
106
+
'choices' => [
107
+
'link' => __('Open Link', 'blocksy'),
108
+
'popup' => __('Open Popup', 'blocksy'),
109
+
],
110
+
],
111
+
112
+
blocksy_rand_md5() => [
113
+
'type' => 'ct-condition',
114
+
'condition' => [ 'header_button_open' => '!popup' ],
115
+
'options' => [
116
+
117
+
'header_button_link' => [
118
+
'label' => __( 'Link/URL', 'blocksy' ),
119
+
'type' => 'text',
120
+
'design' => 'inline',
121
+
'value' => '#',
122
+
],
123
+
124
+
'header_button_target' => [
125
+
'label' => __( 'Open in new tab', 'blocksy' ),
126
+
'type' => 'ct-switch',
127
+
'value' => 'no',
128
+
'divider' => 'top',
129
+
],
130
+
131
+
'header_button_nofollow' => [
132
+
'type' => 'ct-switch',
133
+
'label' => __( 'Set link to nofollow', 'blocksy' ),
134
+
'value' => 'no',
135
+
],
136
+
137
+
'header_button_sponsored' => [
138
+
'type' => 'ct-switch',
139
+
'label' => __( 'Set link to sponsored', 'blocksy' ),
140
+
'value' => 'no',
141
+
],
142
+
143
+
],
144
+
],
145
+
146
+
blocksy_rand_md5() => [
147
+
'type' => 'ct-condition',
148
+
'condition' => [ 'header_button_open' => 'popup' ],
149
+
'options' => (
150
+
function_exists('blc_get_content_blocks')
151
+
&&
152
+
! empty(blc_get_content_blocks([
153
+
'template_type' => 'popup'
154
+
]))
155
+
) ? [
156
+
'header_button_select_popup' => [
157
+
'label' => __('Popup Template', 'blocksy' ),
158
+
'type' => 'ct-select',
159
+
'design' => 'inline',
160
+
'value' => '',
161
+
'search' => true,
162
+
'defaultToFirstItem' => false,
163
+
'placeholder' => __('None', 'blocksy'),
164
+
'choices' => blocksy_ordered_keys(blc_get_content_blocks([
165
+
'template_type' => 'popup'
166
+
])),
167
+
],
168
+
] : [
169
+
blocksy_rand_md5() => [
170
+
'type' => 'html',
171
+
'label' => __('Popup Template', 'blocksy'),
172
+
'value' => '',
173
+
'design' => 'inline',
174
+
'html' => '<a href="' . admin_url('/edit.php?post_type=ct_content_block') .'" target="_blank" class="button" style="width: 130px; text-align: center;">' . __('Create Popup', 'blocksy') . '</a>',
175
+
],
176
+
],
177
+
],
178
+
],
179
+
180
+
apply_filters(
181
+
'blocksy:header:button:options:after-link-options',
182
+
[]
183
+
),
184
+
185
+
$panel_type === 'header' ? [
186
+
blocksy_rand_md5() => [
187
+
'type' => 'ct-condition',
188
+
'condition' => [ 'wp_customizer_current_view' => 'tablet|mobile' ],
189
+
'options' => [
190
+
'visibility' => [
191
+
'label' => __( 'Element Visibility', 'blocksy' ),
192
+
'type' => 'ct-visibility',
193
+
'design' => 'block',
194
+
'divider' => 'top:full',
195
+
'allow_empty' => true,
196
+
'value' => blocksy_default_responsive_value([
197
+
'tablet' => true,
198
+
'mobile' => true,
199
+
]),
200
+
'choices' => blocksy_ordered_keys([
201
+
'tablet' => __( 'Tablet', 'blocksy' ),
202
+
'mobile' => __( 'Mobile', 'blocksy' ),
203
+
]),
204
+
'setting' => [ 'transport' => 'postMessage' ],
205
+
],
206
+
],
207
+
],
208
+
] : [],
209
+
210
+
$panel_type === 'footer' ? [
211
+
'footer_button_horizontal_alignment' => [
212
+
'type' => 'ct-radio',
213
+
'label' => __( 'Horizontal Alignment', 'blocksy' ),
214
+
'view' => 'text',
215
+
'design' => 'block',
216
+
'divider' => 'top:full',
217
+
'responsive' => true,
218
+
'attr' => [ 'data-type' => 'alignment' ],
219
+
'setting' => [ 'transport' => 'postMessage' ],
220
+
'value' => 'CT_CSS_SKIP_RULE',
221
+
'choices' => [
222
+
'flex-start' => '',
223
+
'center' => '',
224
+
'flex-end' => '',
225
+
],
226
+
],
227
+
228
+
'footer_button_vertical_alignment' => [
229
+
'type' => 'ct-radio',
230
+
'label' => __( 'Vertical Alignment', 'blocksy' ),
231
+
'view' => 'text',
232
+
'design' => 'block',
233
+
'divider' => 'top',
234
+
'responsive' => true,
235
+
'attr' => [ 'data-type' => 'vertical-alignment' ],
236
+
'setting' => [ 'transport' => 'postMessage' ],
237
+
'value' => 'CT_CSS_SKIP_RULE',
238
+
'choices' => [
239
+
'flex-start' => '',
240
+
'center' => '',
241
+
'flex-end' => '',
242
+
],
243
+
],
244
+
245
+
'visibility' => [
246
+
'label' => __( 'Element Visibility', 'blocksy' ),
247
+
'type' => 'ct-visibility',
248
+
'design' => 'block',
249
+
'sync' => 'live',
250
+
'divider' => 'top',
251
+
'value' => blocksy_default_responsive_value([
252
+
'desktop' => true,
253
+
'tablet' => true,
254
+
'mobile' => true,
255
+
]),
256
+
'choices' => blocksy_ordered_keys([
257
+
'desktop' => __( 'Desktop', 'blocksy' ),
258
+
'tablet' => __( 'Tablet', 'blocksy' ),
259
+
'mobile' => __( 'Mobile', 'blocksy' ),
260
+
]),
261
+
],
262
+
] : [],
263
+
264
+
[
265
+
'user_visibility' => [
266
+
'label' => __( 'User Visibility', 'blocksy' ),
267
+
'type' => 'ct-checkboxes',
268
+
'design' => 'block',
269
+
'view' => 'text',
270
+
'divider' => 'top:full',
271
+
'value' => [
272
+
'logged_in' => true,
273
+
'logged_out' => true,
274
+
],
275
+
'choices' => blocksy_ordered_keys([
276
+
'logged_in' => __( 'Logged In', 'blocksy' ),
277
+
'logged_out' => __( 'Logged Out', 'blocksy' ),
278
+
]),
279
+
],
280
+
],
281
+
282
+
[
283
+
'header_button_class' => [
284
+
'label' => __( 'CSS Class', 'blocksy' ),
285
+
'type' => 'text',
286
+
'design' => 'block',
287
+
'divider' => 'top:full',
288
+
'value' => '',
289
+
'desc' => __( 'Separate multiple classes with spaces.', 'blocksy' ),
290
+
],
291
+
292
+
'button_aria_label' => [
293
+
'label' => __( 'Custom Aria Label', 'blocksy' ),
294
+
'type' => 'text',
295
+
'design' => 'block',
296
+
'divider' => 'top',
297
+
'value' => '',
298
+
'desc' => blocksy_safe_sprintf(
299
+
// translators: placeholder here means the actual URL.
300
+
__( 'Add a custom %saria label%s attribute.', 'blocksy' ),
301
+
blocksy_safe_sprintf(
302
+
'<a href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label" target="_blank">'
303
+
),
304
+
'</a>'
305
+
),
306
+
],
307
+
]
308
+
)
309
+
],
310
+
311
+
blocksy_rand_md5() => [
312
+
'title' => __( 'Design', 'blocksy' ),
313
+
'type' => 'tab',
314
+
'options' => [
315
+
316
+
'headerButtonFont' => [
317
+
'type' => 'ct-typography',
318
+
'label' => __( 'Label Text Font', 'blocksy' ),
319
+
'value' => blocksy_typography_default_values([]),
320
+
'setting' => [ 'transport' => 'postMessage' ],
321
+
],
322
+
323
+
blocksy_rand_md5() => [
324
+
'type' => 'ct-labeled-group',
325
+
'label' => __( 'Label Text Color', 'blocksy' ),
326
+
'divider' => 'bottom',
327
+
'responsive' => true,
328
+
'choices' => [
329
+
[
330
+
'id' => 'headerButtonFontColor',
331
+
'label' => __('Default State', 'blocksy')
332
+
],
333
+
334
+
[
335
+
'id' => 'transparentHeaderButtonFontColor',
336
+
'label' => __('Transparent State', 'blocksy'),
337
+
'condition' => [
338
+
'row' => '!offcanvas',
339
+
'builderSettings/has_transparent_header' => 'yes',
340
+
],
341
+
],
342
+
343
+
[
344
+
'id' => 'stickyHeaderButtonFontColor',
345
+
'label' => __('Sticky State', 'blocksy'),
346
+
'condition' => [
347
+
'row' => '!offcanvas',
348
+
'builderSettings/has_sticky_header' => 'yes',
349
+
],
350
+
],
351
+
],
352
+
'options' => [
353
+
354
+
'headerButtonFontColor' => [
355
+
'label' => __( 'Label Text Color', 'blocksy' ),
356
+
'type' => 'ct-color-picker',
357
+
'design' => 'block:right',
358
+
'responsive' => true,
359
+
'value' => [
360
+
'default' => [
361
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
362
+
],
363
+
364
+
'hover' => [
365
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
366
+
],
367
+
368
+
'default_2' => [
369
+
'color' => 'var(--theme-button-background-initial-color)',
370
+
],
371
+
372
+
'hover_2' => [
373
+
'color' => '#ffffff',
374
+
],
375
+
],
376
+
377
+
'pickers' => [
378
+
[
379
+
'title' => __( 'Initial', 'blocksy' ),
380
+
'id' => 'default',
381
+
'inherit' => 'var(--theme-button-text-initial-color)',
382
+
'condition' => [ 'header_button_type' => 'type-1' ]
383
+
],
384
+
385
+
[
386
+
'title' => __( 'Hover', 'blocksy' ),
387
+
'id' => 'hover',
388
+
'inherit' => 'var(--theme-button-text-hover-color)',
389
+
'condition' => [ 'header_button_type' => 'type-1' ]
390
+
],
391
+
392
+
[
393
+
'title' => __( 'Initial', 'blocksy' ),
394
+
'id' => 'default_2',
395
+
'condition' => [ 'header_button_type' => 'type-2' ]
396
+
],
397
+
398
+
[
399
+
'title' => __( 'Hover', 'blocksy' ),
400
+
'id' => 'hover_2',
401
+
'condition' => [ 'header_button_type' => 'type-2' ]
402
+
],
403
+
],
404
+
],
405
+
406
+
'transparentHeaderButtonFontColor' => [
407
+
'label' => __( 'Label Text Color', 'blocksy' ),
408
+
'type' => 'ct-color-picker',
409
+
'design' => 'block:right',
410
+
'responsive' => true,
411
+
'value' => [
412
+
'default' => [
413
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
414
+
],
415
+
416
+
'hover' => [
417
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
418
+
],
419
+
420
+
'default_2' => [
421
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
422
+
],
423
+
424
+
'hover_2' => [
425
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
426
+
],
427
+
],
428
+
429
+
'pickers' => [
430
+
[
431
+
'title' => __( 'Initial', 'blocksy' ),
432
+
'id' => 'default',
433
+
'condition' => [ 'header_button_type' => 'type-1' ]
434
+
],
435
+
436
+
[
437
+
'title' => __( 'Hover', 'blocksy' ),
438
+
'id' => 'hover',
439
+
'condition' => [ 'header_button_type' => 'type-1' ]
440
+
],
441
+
442
+
[
443
+
'title' => __( 'Initial', 'blocksy' ),
444
+
'id' => 'default_2',
445
+
'condition' => [ 'header_button_type' => 'type-2' ]
446
+
],
447
+
448
+
[
449
+
'title' => __( 'Hover', 'blocksy' ),
450
+
'id' => 'hover_2',
451
+
'condition' => [ 'header_button_type' => 'type-2' ]
452
+
],
453
+
],
454
+
],
455
+
456
+
'stickyHeaderButtonFontColor' => [
457
+
'label' => __( 'Label Text Color', 'blocksy' ),
458
+
'type' => 'ct-color-picker',
459
+
'design' => 'block:right',
460
+
'responsive' => true,
461
+
'value' => [
462
+
'default' => [
463
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
464
+
],
465
+
466
+
'hover' => [
467
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
468
+
],
469
+
470
+
'default_2' => [
471
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
472
+
],
473
+
474
+
'hover_2' => [
475
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
476
+
],
477
+
],
478
+
479
+
'pickers' => [
480
+
[
481
+
'title' => __( 'Initial', 'blocksy' ),
482
+
'id' => 'default',
483
+
'condition' => [ 'header_button_type' => 'type-1' ]
484
+
],
485
+
486
+
[
487
+
'title' => __( 'Hover', 'blocksy' ),
488
+
'id' => 'hover',
489
+
'condition' => [ 'header_button_type' => 'type-1' ]
490
+
],
491
+
492
+
[
493
+
'title' => __( 'Initial', 'blocksy' ),
494
+
'id' => 'default_2',
495
+
'condition' => [ 'header_button_type' => 'type-2' ]
496
+
],
497
+
498
+
[
499
+
'title' => __( 'Hover', 'blocksy' ),
500
+
'id' => 'hover_2',
501
+
'condition' => [ 'header_button_type' => 'type-2' ]
502
+
],
503
+
],
504
+
],
505
+
],
506
+
],
507
+
508
+
509
+
blocksy_rand_md5() => [
510
+
'type' => 'ct-condition',
511
+
'condition' => [ 'has_header_button_secondary_text' => 'yes' ],
512
+
'options' => [
513
+
514
+
'headerButtonSecondaryLabelFont' => [
515
+
'type' => 'ct-typography',
516
+
'label' => __( 'Secondary Label Text Font', 'blocksy' ),
517
+
'value' => blocksy_typography_default_values([
518
+
'size' => '12px',
519
+
]),
520
+
'setting' => [ 'transport' => 'postMessage' ],
521
+
],
522
+
523
+
blocksy_rand_md5() => [
524
+
'type' => 'ct-labeled-group',
525
+
'label' => __( 'Secondary Label Text Color', 'blocksy' ),
526
+
'divider' => 'bottom',
527
+
'responsive' => true,
528
+
'choices' => [
529
+
[
530
+
'id' => 'headerButtonSecondaryFontColor',
531
+
'label' => __('Default State', 'blocksy')
532
+
],
533
+
534
+
[
535
+
'id' => 'transparentHeaderButtonSecondaryFontColor',
536
+
'label' => __('Transparent State', 'blocksy'),
537
+
'condition' => [
538
+
'row' => '!offcanvas',
539
+
'builderSettings/has_transparent_header' => 'yes',
540
+
],
541
+
],
542
+
543
+
[
544
+
'id' => 'stickyHeaderButtonSecondaryFontColor',
545
+
'label' => __('Sticky State', 'blocksy'),
546
+
'condition' => [
547
+
'row' => '!offcanvas',
548
+
'builderSettings/has_sticky_header' => 'yes',
549
+
],
550
+
],
551
+
],
552
+
'options' => [
553
+
554
+
'headerButtonSecondaryFontColor' => [
555
+
'label' => __( 'Label Text Color', 'blocksy' ),
556
+
'type' => 'ct-color-picker',
557
+
'design' => 'block:right',
558
+
'responsive' => true,
559
+
'value' => [
560
+
'default' => [
561
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
562
+
],
563
+
564
+
'hover' => [
565
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
566
+
],
567
+
568
+
'default_2' => [
569
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
570
+
],
571
+
572
+
'hover_2' => [
573
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
574
+
],
575
+
],
576
+
577
+
'pickers' => [
578
+
[
579
+
'title' => __( 'Initial', 'blocksy' ),
580
+
'id' => 'default',
581
+
'condition' => [ 'header_button_type' => 'type-1' ]
582
+
],
583
+
584
+
[
585
+
'title' => __( 'Hover', 'blocksy' ),
586
+
'id' => 'hover',
587
+
'condition' => [ 'header_button_type' => 'type-1' ]
588
+
],
589
+
590
+
[
591
+
'title' => __( 'Initial', 'blocksy' ),
592
+
'id' => 'default_2',
593
+
'condition' => [ 'header_button_type' => 'type-2' ]
594
+
],
595
+
596
+
[
597
+
'title' => __( 'Hover', 'blocksy' ),
598
+
'id' => 'hover_2',
599
+
'condition' => [ 'header_button_type' => 'type-2' ]
600
+
],
601
+
],
602
+
],
603
+
604
+
'transparentHeaderButtonSecondaryFontColor' => [
605
+
'label' => __( 'Label Text Color', 'blocksy' ),
606
+
'type' => 'ct-color-picker',
607
+
'design' => 'block:right',
608
+
'responsive' => true,
609
+
'value' => [
610
+
'default' => [
611
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
612
+
],
613
+
614
+
'hover' => [
615
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
616
+
],
617
+
618
+
'default_2' => [
619
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
620
+
],
621
+
622
+
'hover_2' => [
623
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
624
+
],
625
+
],
626
+
627
+
'pickers' => [
628
+
[
629
+
'title' => __( 'Initial', 'blocksy' ),
630
+
'id' => 'default',
631
+
'condition' => [ 'header_button_type' => 'type-1' ]
632
+
],
633
+
634
+
[
635
+
'title' => __( 'Hover', 'blocksy' ),
636
+
'id' => 'hover',
637
+
'condition' => [ 'header_button_type' => 'type-1' ]
638
+
],
639
+
640
+
[
641
+
'title' => __( 'Initial', 'blocksy' ),
642
+
'id' => 'default_2',
643
+
'condition' => [ 'header_button_type' => 'type-2' ]
644
+
],
645
+
646
+
[
647
+
'title' => __( 'Hover', 'blocksy' ),
648
+
'id' => 'hover_2',
649
+
'condition' => [ 'header_button_type' => 'type-2' ]
650
+
],
651
+
],
652
+
],
653
+
654
+
'stickyHeaderButtonSecondaryFontColor' => [
655
+
'label' => __( 'Label Text Color', 'blocksy' ),
656
+
'type' => 'ct-color-picker',
657
+
'design' => 'block:right',
658
+
'responsive' => true,
659
+
'value' => [
660
+
'default' => [
661
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
662
+
],
663
+
664
+
'hover' => [
665
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
666
+
],
667
+
668
+
'default_2' => [
669
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
670
+
],
671
+
672
+
'hover_2' => [
673
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
674
+
],
675
+
],
676
+
677
+
'pickers' => [
678
+
[
679
+
'title' => __( 'Initial', 'blocksy' ),
680
+
'id' => 'default',
681
+
'condition' => [ 'header_button_type' => 'type-1' ]
682
+
],
683
+
684
+
[
685
+
'title' => __( 'Hover', 'blocksy' ),
686
+
'id' => 'hover',
687
+
'condition' => [ 'header_button_type' => 'type-1' ]
688
+
],
689
+
690
+
[
691
+
'title' => __( 'Initial', 'blocksy' ),
692
+
'id' => 'default_2',
693
+
'condition' => [ 'header_button_type' => 'type-2' ]
694
+
],
695
+
696
+
[
697
+
'title' => __( 'Hover', 'blocksy' ),
698
+
'id' => 'hover_2',
699
+
'condition' => [ 'header_button_type' => 'type-2' ]
700
+
],
701
+
],
702
+
],
703
+
],
704
+
],
705
+
706
+
],
707
+
],
708
+
709
+
710
+
blocksy_rand_md5() => [
711
+
'type' => 'ct-labeled-group',
712
+
'label' => __( 'Button Color', 'blocksy' ),
713
+
'responsive' => true,
714
+
'choices' => [
715
+
[
716
+
'id' => 'headerButtonForeground',
717
+
'label' => __('Default State', 'blocksy')
718
+
],
719
+
720
+
[
721
+
'id' => 'transparentHeaderButtonForeground',
722
+
'label' => __('Transparent State', 'blocksy'),
723
+
'condition' => [
724
+
'row' => '!offcanvas',
725
+
'builderSettings/has_transparent_header' => 'yes',
726
+
],
727
+
],
728
+
729
+
[
730
+
'id' => 'stickyHeaderButtonForeground',
731
+
'label' => __('Sticky State', 'blocksy'),
732
+
'condition' => [
733
+
'row' => '!offcanvas',
734
+
'builderSettings/has_sticky_header' => 'yes',
735
+
],
736
+
],
737
+
],
738
+
'options' => [
739
+
740
+
'headerButtonForeground' => [
741
+
'label' => __( 'Button Color', 'blocksy' ),
742
+
'type' => 'ct-color-picker',
743
+
'design' => 'block:right',
744
+
'responsive' => true,
745
+
'value' => [
746
+
'default' => [
747
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
748
+
],
749
+
750
+
'hover' => [
751
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
752
+
],
753
+
],
754
+
755
+
'pickers' => [
756
+
[
757
+
'title' => __( 'Initial', 'blocksy' ),
758
+
'id' => 'default',
759
+
'inherit' => 'var(--theme-button-background-initial-color)'
760
+
],
761
+
762
+
[
763
+
'title' => __( 'Hover', 'blocksy' ),
764
+
'id' => 'hover',
765
+
'inherit' => 'var(--theme-button-background-hover-color)'
766
+
],
767
+
],
768
+
],
769
+
770
+
'transparentHeaderButtonForeground' => [
771
+
'label' => __( 'Button Color', 'blocksy' ),
772
+
'type' => 'ct-color-picker',
773
+
'design' => 'block:right',
774
+
'responsive' => true,
775
+
'value' => [
776
+
'default' => [
777
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
778
+
],
779
+
780
+
'hover' => [
781
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
782
+
],
783
+
],
784
+
785
+
'pickers' => [
786
+
[
787
+
'title' => __( 'Initial', 'blocksy' ),
788
+
'id' => 'default',
789
+
],
790
+
791
+
[
792
+
'title' => __( 'Hover', 'blocksy' ),
793
+
'id' => 'hover',
794
+
],
795
+
],
796
+
],
797
+
798
+
'stickyHeaderButtonForeground' => [
799
+
'label' => __( 'Button Color', 'blocksy' ),
800
+
'type' => 'ct-color-picker',
801
+
'design' => 'block:right',
802
+
'responsive' => true,
803
+
'value' => [
804
+
'default' => [
805
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
806
+
],
807
+
808
+
'hover' => [
809
+
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
810
+
],
811
+
],
812
+
813
+
'pickers' => [
814
+
[
815
+
'title' => __( 'Initial', 'blocksy' ),
816
+
'id' => 'default',
817
+
],
818
+
819
+
[
820
+
'title' => __( 'Hover', 'blocksy' ),
821
+
'id' => 'hover',
822
+
],
823
+
],
824
+
],
825
+
],
826
+
],
827
+
828
+
829
+
blocksy_rand_md5() => [
830
+
'type' => 'ct-divider',
831
+
],
832
+
833
+
'headerCtaRadius' => [
834
+
'label' => __( 'Border Radius', 'blocksy' ),
835
+
'type' => 'ct-spacing',
836
+
'value' => blocksy_spacing_value(),
837
+
'min' => 0,
838
+
'responsive' => true
839
+
],
840
+
841
+
'headerCtaPadding' => [
842
+
'label' => __( 'Padding', 'blocksy' ),
843
+
'type' => 'ct-spacing',
844
+
'divider' => 'top',
845
+
'value' => blocksy_spacing_value(),
846
+
'min' => 0,
847
+
'responsive' => true
848
+
],
849
+
850
+
'headerCtaMargin' => [
851
+
'label' => __( 'Margin', 'blocksy' ),
852
+
'type' => 'ct-spacing',
853
+
'divider' => 'top',
854
+
'value' => blocksy_spacing_value(),
855
+
'responsive' => true,
856
+
],
857
+
858
+
],
859
+
],
860
+
];
861
+