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

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