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-item / attributes.php

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

37 lines 578 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 use ABlocks\Controls\Link;
3 $attributes = [
4 'block_id' => [
5 'type' => 'string',
6 'default' => '',
7 ],
8 'label' => [
9 'type' => 'string',
10 'default' => 'Menu',
11 ],
12 'isSubMenu' => [
13 'type' => 'boolean',
14 'default' => false,
15 ],
16 'hasMegaMenu' => [
17 'type' => 'boolean',
18 'default' => false
19 ],
20 'hasLink' => [
21 'type' => 'boolean',
22 'default' => false,
23 ],
24 'link' => [
25 'type' => 'string',
26 'default' => '#',
27 ],
28 ];
29
30 $attributes = array_merge(
31 $attributes,
32 // Adding attributes from various controls
33 Link::get_attribute( 'link' ),
34 );
35
36 return $attributes;
37