PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.8.1
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.8.1
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 / image-hotspot / attributes.php

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

111 lines 2.1 KB
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\BoxShadow;
8 use ABlocks\Controls\Range;
9
10 $attributes = [
11 'block_id' => array(
12 'type' => 'string',
13 'default' => '',
14 ),
15 'blockVersion' => array(
16 'type' => 'number',
17 'default' => '',
18 ),
19 'backgroundImage' => array(
20 'type' => 'string',
21 'default' => '',
22 ),
23 'activeIndex' => array(
24 'type' => 'number',
25 'default' => 0,
26 ),
27 // image size option
28 'imageSizes' => array(
29 'type' => 'object',
30 'default' => array(),
31 ),
32 'selectedImageSize' => array(
33 'type' => 'string',
34 'default' => '',
35 ),
36
37
38 'pinColor' => array(
39 'type' => 'string',
40 'default' => '#d9d9d9',
41 ),
42 'pinColorEffect' => array(
43 'type' => 'string',
44 'default' => '#d9d9d9',
45 ),
46 'pinHoverColor' => array(
47 'type' => 'string',
48 'default' => '#d9d9d9',
49 ),
50 'pinSize' => array(
51 'type' => 'number',
52 'default' => 15,
53 ),
54 'pinHoverSize' => array(
55 'type' => 'number',
56 'default' => 1.5,
57 ),
58 'lists' => array(
59 'type' => 'array',
60 'default' => array(
61 array(
62 'id' => 0,
63 'text' => 'Your title here 0',
64 'xAxis' => 35,
65 'yAxis' => 32,
66 'isOpen' => false,
67 'pinColor' => '',
68 'pinColorEffect' => '',
69 'pinHoverColor' => '',
70 'pinSize' => '',
71 'pinHoverSize' => '',
72 ),
73 ),
74 ),
75 'animationType' => array(
76 'type' => 'string',
77 'default' => 'ablocks-hotspot-puls-effect 1s ease infinite',
78 ),
79 'contentAnimation' => array(
80 'type' => 'string',
81 'default' => 'ablocks-hotspot-fadeIn',
82 ),
83 'contentTrigger' => array(
84 'type' => 'string',
85 'default' => 'onClick',
86 ),
87 'contentPosition' => array(
88 'type' => 'string',
89 'default' => 'bottom',
90 ),
91 'backgroundColor' => array(
92 'type' => 'string',
93 'default' => 'white',
94 ),
95 ];
96
97 $attributes = array_merge(
98 $attributes,
99 Range::get_attribute([
100 'attributeName' => 'childWidth',
101 'attributeObjectKey' => 'value',
102 'isResponsive' => true,
103 'defaultValue' => 200,
104 'hasUnit' => true,
105 'unitDefaultValue' => 'px',
106 ]),
107 BoxShadow::get_attribute( 'commonBoxShadow' ),
108 );
109
110 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
111