# ablocks/2.9.1/includes/blocks/image-hotspot/attributes.php

aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder &amp; Animation Builder, version 2.9.1. 107 lines.

- Page: https://pluginprobe.com/plugins/ablocks/2.9.1/code/includes/blocks/image-hotspot/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.9.1/raw/includes/blocks/image-hotspot/attributes.php
- Modified: 2025-04-22T12:59:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ablocks/2.9.1/code/includes/blocks/image-hotspot/attributes.php#L10-L20`.

```php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

use ABlocks\Controls\BoxShadow;
use ABlocks\Controls\Range;

$attributes = [
	'block_id' => array(
		'type' => 'string',
		'default' => '',
	),
	'backgroundImage' => array(
		'type' => 'string',
		'default' => '',
	),
	'activeIndex' => array(
		'type' => 'number',
		'default' => 0,
	),
	// image size option
	'imageSizes' => array(
		'type' => 'object',
		'default' => array(),
	),
	'selectedImageSize' => array(
		'type' => 'string',
		'default' => '',
	),


	'pinColor' => array(
		'type' => 'string',
		'default' => '#d9d9d9',
	),
	'pinColorEffect' => array(
		'type' => 'string',
		'default' => '#d9d9d9',
	),
	'pinHoverColor' => array(
		'type' => 'string',
		'default' => '#d9d9d9',
	),
	'pinSize' => array(
		'type' => 'number',
		'default' => 15,
	),
	'pinHoverSize' => array(
		'type' => 'number',
		'default' => 1.5,
	),
	'lists' => array(
		'type' => 'array',
		'default' => array(
			array(
				'id' => 0,
				'text' => 'Your title here 0',
				'xAxis' => 35,
				'yAxis' => 32,
				'isOpen' => false,
				'pinColor' => '',
				'pinColorEffect' => '',
				'pinHoverColor' => '',
				'pinSize' => '',
				'pinHoverSize' => '',
			),
		),
	),
	'animationType' => array(
		'type' => 'string',
		'default' => 'ablocks-hotspot-puls-effect 1s ease infinite',
	),
	'contentAnimation' => array(
		'type' => 'string',
		'default' => 'ablocks-hotspot-fadeIn',
	),
	'contentTrigger' => array(
		'type' => 'string',
		'default' => 'onClick',
	),
	'contentPosition' => array(
		'type' => 'string',
		'default' => 'bottom',
	),
	'backgroundColor' => array(
		'type' => 'string',
		'default' => 'white',
	),
];

$attributes = array_merge(
	$attributes,
	Range::get_attribute([
		'attributeName' => 'childWidth',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => 200,
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
	]),
	BoxShadow::get_attribute( 'commonBoxShadow' ),
);

return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );

```
