PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.9.1
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.9.1
2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 All 80 releases
ablocks / includes / blocks / dual-button / attributes.php

attributes.php in aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder 2.9.1, at includes/blocks/dual-button/attributes.php

79 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 use ABlocks\Controls\Alignment;
8 use ABlocks\Controls\Border;
9 use ABlocks\Controls\Dimensions;
10 use ABlocks\Controls\Typography;
11 use ABlocks\Controls\TextShadow;
12 use ABlocks\Controls\GroupButton;
13 use ABlocks\Controls\Range;
14
15 $attributes = [
16 'block_id' => [
17 'type' => 'string',
18 'default' => '',
19 ],
20 'justifyItems' => [
21 'type' => 'string',
22 'default' => 'start',
23 ],
24 'buttonType' => [
25 'type' => 'string',
26 'default' => '#ddd',
27 ],
28 'buttonSize' => [
29 'type' => 'string',
30 'default' => 'small',
31 ],
32 'textColor' => [
33 'type' => 'string',
34 'default' => '#000000',
35 ],
36 'textColorH' => [
37 'type' => 'string',
38 'default' => '',
39 ],
40 'background' => [
41 'type' => 'string',
42 'default' => '',
43 ],
44 'backgroundH' => [
45 'type' => 'string',
46 'default' => '',
47 ],
48 'transition' => [
49 'type' => 'number',
50 'default' => 0,
51 ],
52 ];
53
54 $attributes = array_merge(
55 $attributes,
56 Alignment::get_attribute( 'alignment', true, [ 'value' => 'flex-start' ] ),
57 Border::get_attribute( 'border', true ),
58 Dimensions::get_attribute( 'padding', true ),
59 Typography::get_attribute( 'typography', true ),
60 TextShadow::get_attribute( 'textShadow' ),
61 GroupButton::get_attribute( 'stack', false, [
62 'value' => 'horizontal'
63 ] ),
64 Range::get_attribute([
65 'attributeName' => 'gap',
66 'attributeObjectKey' => 'value',
67 'isResponsive' => true,
68 'defaultValue' => 20,
69 'defaultValueTablet' => 20,
70 'defaultValueMobile' => 10,
71 'hasUnit' => true,
72 'unitDefaultValue' => 'px',
73 ]),
74 );
75
76 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
77
78
79