| 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 |
'xAxisTab' => 30, |
| 67 |
'yAxisTab' => 28, |
| 68 |
'xAxisMob' => 22, |
| 69 |
'yAxisMob' => 16, |
| 70 |
'isOpen' => false, |
| 71 |
'pinColor' => '', |
| 72 |
'pinColorEffect' => '', |
| 73 |
'pinHoverColor' => '', |
| 74 |
'pinSize' => '', |
| 75 |
'pinHoverSize' => '', |
| 76 |
), |
| 77 |
), |
| 78 |
), |
| 79 |
'animationType' => array( |
| 80 |
'type' => 'string', |
| 81 |
'default' => 'ablocks-hotspot-puls-effect 1s ease infinite', |
| 82 |
), |
| 83 |
'contentAnimation' => array( |
| 84 |
'type' => 'string', |
| 85 |
'default' => 'ablocks-hotspot-fadeIn', |
| 86 |
), |
| 87 |
'contentTrigger' => array( |
| 88 |
'type' => 'string', |
| 89 |
'default' => 'onClick', |
| 90 |
), |
| 91 |
'contentPosition' => array( |
| 92 |
'type' => 'string', |
| 93 |
'default' => 'bottom', |
| 94 |
), |
| 95 |
'backgroundColor' => array( |
| 96 |
'type' => 'string', |
| 97 |
'default' => 'white', |
| 98 |
), |
| 99 |
]; |
| 100 |
|
| 101 |
$attributes = array_merge( |
| 102 |
$attributes, |
| 103 |
Range::get_attribute([ |
| 104 |
'attributeName' => 'childWidth', |
| 105 |
'attributeObjectKey' => 'value', |
| 106 |
'isResponsive' => true, |
| 107 |
'defaultValue' => 200, |
| 108 |
'hasUnit' => true, |
| 109 |
'unitDefaultValue' => 'px', |
| 110 |
]), |
| 111 |
BoxShadow::get_attribute( 'commonBoxShadow' ), |
| 112 |
); |
| 113 |
|
| 114 |
return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); |
| 115 |
|