PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.11.1
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.11.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 / storeengine-funnel-continue / attributes.php

attributes.php in aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder 2.11.1, at includes/blocks/storeengine-funnel-continue/attributes.php

70 lines 1.4 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\Typography;
8 use ABlocks\Controls\Background;
9 use ABlocks\Controls\Border;
10 use ABlocks\Controls\Dimensions;
11 use ABlocks\Controls\BoxShadow;
12 use ABlocks\Controls\Alignment;
13 use ABlocks\Controls\Range;
14
15
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit;
18 }
19
20 $attributes = [
21 'block_id' => [
22 'type' => 'string',
23 'default' => '',
24 ],
25 'blockVersion' => [
26 'type' => 'number',
27 'default' => 2,
28 ],
29 'label' => [
30 'type' => 'string',
31 'default' => '',
32 ],
33 'buttonColor' => [
34 'type' => 'string',
35 'default' => '',
36 ],
37 'buttonColorH' => [
38 'type' => 'string',
39 'default' => '',
40 ],
41 'buttonBackground' => [
42 'type' => 'string',
43 'default' => '',
44 ],
45 'buttonBackgroundH' => [
46 'type' => 'string',
47 'default' => '',
48 ],
49 ];
50
51 $attributes = array_merge(
52 $attributes,
53 Dimensions::get_attribute( 'padding', true ),
54 Typography::get_attribute( 'buttonTypography', true ),
55 Border::get_attribute( 'buttonBorder', true ),
56 Alignment::get_attribute( 'buttonAlignment', true, [ 'value' => 'left' ] ),
57 BoxShadow::get_attribute( 'boxShadow', true ),
58 Range::get_attribute([
59 'attributeName' => 'buttonWidth',
60 'attributeObjectKey' => 'value',
61 'isResponsive' => true,
62 'defaultValue' => 100,
63 'hasUnit' => false,
64 'unitDefaultValue' => '%',
65 ]),
66 );
67
68 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
69
70