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 / menu-child-mega / attributes.php

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

38 lines 718 B
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
4 $attributes = [
5 'block_id' => [
6 'type' => 'string',
7 'default' => '',
8 ]
9 ];
10
11 return array_merge(
12 $attributes,
13 Range::get_attribute([
14 'attributeName' => 'width',
15 'attributeObjectKey' => 'value',
16 'isResponsive' => true,
17 'defaultValue' => 100,
18 'hasUnit' => true,
19 'unitDefaultValue' => '%',
20 ]),
21 Range::get_attribute([
22 'attributeName' => 'height',
23 'attributeObjectKey' => 'value',
24 'isResponsive' => true,
25 'hasUnit' => true,
26 'unitDefaultValue' => 'px',
27 ]),
28 Range::get_attribute([
29 'attributeName' => 'positionX',
30 'attributeObjectKey' => 'value',
31 'isResponsive' => true,
32 'defaultValue' => 0,
33 'unitDefaultValue' => '%',
34 'hasUnit' => true,
35
36 ]),
37 );
38