# ablocks/2.12.0/includes/blocks/storeengine-product-gallery/attributes.php

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

- Page: https://pluginprobe.com/plugins/ablocks/2.12.0/code/includes/blocks/storeengine-product-gallery/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.12.0/raw/includes/blocks/storeengine-product-gallery/attributes.php
- Modified: 2025-11-15T06:49:48+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.12.0/code/includes/blocks/storeengine-product-gallery/attributes.php#L10-L20`.

```php
<?php

use ABlocks\Controls\Typography;
use ABlocks\Controls\Background;
use ABlocks\Controls\Border;
use ABlocks\Controls\Dimensions;
use ABlocks\Controls\Range;
use ABlocks\Controls\Alignment;
use ABlocks\Controls\BoxShadow;

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

$attributes = [
	'block_id' => array(
		'type' => 'string',
		'default' => '',
	),
	'blockVersion' => array(
		'type' => 'number',
		'default' => 2,
	),
	'product_id' => array(
		'type' => 'number',
		'default' => 0,
	),
	'isCustom' => array(
		'type' => 'boolean',
		'default' => false,
	),
	'imageOpacityH' => array(
		'type' => 'number',
		'default' => 1,
	),
	'imageOpacity' => array(
		'type' => 'number',
		'default' => 1,
	),
];

$attributes = array_merge(
	$attributes,
	Range::get_attribute([
		'attributeName' => 'imageWidth',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => 100,
		'hasUnit' => true,
		'unitDefaultValue' => '%',
	]),
	Range::get_attribute([
		'attributeName' => 'imageHeight',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => 100,
		'hasUnit' => true,
		'unitDefaultValue' => '%',
	]),
	Alignment::get_attribute( 'alignment', true, [ 'value' => 'left' ] ),
	BoxShadow::get_attribute( 'boxShadow' ),
	Border::get_attribute( 'border', true ),
);

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


```
