PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.9.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.9.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 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.0, at includes/blocks/menu-child-mega/attributes.php

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