# ablocks/2.14.0/includes/blocks/image-hotspot-child/attributes.php

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

- Page: https://pluginprobe.com/plugins/ablocks/2.14.0/code/includes/blocks/image-hotspot-child/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.14.0/raw/includes/blocks/image-hotspot-child/attributes.php
- Modified: 2025-01-29T14:07:44+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.14.0/code/includes/blocks/image-hotspot-child/attributes.php#L10-L20`.

```php
<?php

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

use ABlocks\Controls\Range;
use ABlocks\Controls\Border;
use ABlocks\Controls\Dimensions;

$attributes = [
	'block_id' => array(
		'type' => 'string',
		'default' => '',
	),
	'hotspotId' => array(
		'type' => 'number',
		'default' => 0,
	),
	'backgroundColor' => array(
		'type' => 'string',
		'default' => '',
	),
];

$attributes = array_merge(
	$attributes,
	Range::get_attribute([
		'attributeName' => 'contentWidth',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => '',
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
	]),
	Border::get_attribute( 'contentBorder', true ),
	Dimensions::get_attribute( 'contentPadding', true ),
);

return $attributes;

```
