PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.14.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.14.0
2.14.0 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 All 81 releases
ablocks / includes / blocks / ecm-bookmark-badge / attributes.php

attributes.php in aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder 2.14.0, at includes/blocks/ecm-bookmark-badge/attributes.php

66 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 use ABlocks\Controls\Range;
3 use ABlocks\Controls\Dimensions;
4 use ABlocks\Controls\Border;
5 use ABlocks\Controls\BoxShadow;
6 use ABlocks\Controls\Alignment;
7
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 $attributes = [
14 'block_id' => [
15 'type' => 'string',
16 'default' => '',
17 ],
18 'blockVersion' => [
19 'type' => 'number',
20 'default' => 2,
21 ],
22 'id' => [
23 'type' => 'number',
24 ],
25 'buttonColor' => [
26 'type' => 'string',
27 'default' => '',
28 ],
29 'buttonColorH' => [
30 'type' => 'string',
31 'default' => '',
32 ],
33 'buttonBackground' => [
34 'type' => 'string',
35 'default' => '',
36 ],
37 'buttonBackgroundH' => [
38 'type' => 'string',
39 'default' => '',
40 ],
41 'badgeFillColor' => [
42 'type' => 'string',
43 'default' => '',
44 ]
45
46 ];
47
48 $attributes = array_merge(
49 $attributes,
50 Dimensions::get_attribute( 'padding', true ),
51 Border::get_attribute( 'buttonBorder', true ),
52 Alignment::get_attribute( 'buttonAlignment', true, [ 'value' => 'left' ] ),
53 BoxShadow::get_attribute( 'boxShadow', true ),
54 Range::get_attribute([
55 'attributeName' => 'bandageHeight',
56 'attributeObjectKey' => 'value',
57 'isResponsive' => true,
58 'defaultValue' => 20,
59 'hasUnit' => true,
60 'unitDefaultValue' => 'px',
61 ]),
62 );
63
64 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
65
66