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 / image-hotspot-child / attributes.php

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

41 lines 738 B
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\Range;
8 use ABlocks\Controls\Border;
9 use ABlocks\Controls\Dimensions;
10
11 $attributes = [
12 'block_id' => array(
13 'type' => 'string',
14 'default' => '',
15 ),
16 'hotspotId' => array(
17 'type' => 'number',
18 'default' => 0,
19 ),
20 'backgroundColor' => array(
21 'type' => 'string',
22 'default' => '',
23 ),
24 ];
25
26 $attributes = array_merge(
27 $attributes,
28 Range::get_attribute([
29 'attributeName' => 'contentWidth',
30 'attributeObjectKey' => 'value',
31 'isResponsive' => true,
32 'defaultValue' => '',
33 'hasUnit' => true,
34 'unitDefaultValue' => 'px',
35 ]),
36 Border::get_attribute( 'contentBorder', true ),
37 Dimensions::get_attribute( 'contentPadding', true ),
38 );
39
40 return $attributes;
41