# ablocks/2.9.1/includes/blocks/container/attributes.php

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

- Page: https://pluginprobe.com/plugins/ablocks/2.9.1/code/includes/blocks/container/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.9.1/raw/includes/blocks/container/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/container/attributes.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
use ABlocks\Controls\Range;
use ABlocks\Controls\BackgroundOverlay;
use ABlocks\Components\ButtonGroup;

$attributes = [
	'block_id' => array(
		'type' => 'string',
		'default' => ''
	),
	'className' => [
		'type' => 'string',
		'default' => '',
	],
	'isRootContainer' => [
		'type' => 'boolean',
		'default' => false,
	],
	'variationSelected' => [
		'type' => 'boolean',
		'default' => false,
	],

	'direction' => [
		'type' => 'string',
		'default' => 'column',
	],
	'directionTablet' => [
		'type' => 'string',
		'default' => '',
	],
	'directionMobile' => [
		'type' => 'string',
		'default' => '',
	],
	'justify' => [
		'type' => 'string',
		'default' => '',
	],
	'justifyTablet' => [
		'type' => 'string',
		'default' => '',
	],
	'justifyMobile' => [
		'type' => 'string',
		'default' => '',
	],
	'align' => [
		'type' => 'string',
		'default' => '',
	],
	'alignTablet' => [
		'type' => 'string',
		'default' => '',
	],
	'alignMobile' => [
		'type' => 'string',
		'default' => '',
	],
	'wrap' => [
		'type' => 'string',
		'default' => '',
	],
	'wrapTablet' => [
		'type' => 'string',
		'default' => '',
	],
	'wrapMobile' => [
		'type' => 'string',
		'default' => '',
	],

];

$columnGap = Range::get_attribute([
	'attributeName' => 'gap',
	'attributeObjectKey' => 'columnGap',
	'isResponsive' => true,
	'defaultValue' => 0,
	'hasUnit' => true,
	'unitDefaultValue' => 'px',
]);
$rowGap = Range::get_attribute([
	'attributeName' => 'gap',
	'attributeObjectKey' => 'rowGap',
	'isResponsive' => true,
	'defaultValue' => 0,
	'hasUnit' => true,
	'unitDefaultValue' => 'px',
]);


$attributes = array_merge(
	$attributes,
	[
		'gap' => [
			'type' => 'object',
			'default' => array_merge( $columnGap['gap']['default'], $rowGap['gap']['default'] ),
		]
	],
	ButtonGroup::get_attribute( 'containerWidthType', false, [
		'value' => 'boxed',
	] ),
	ButtonGroup::get_attribute( 'overflow', false, [
		'value' => 'visible',
	] ),
	ButtonGroup::get_attribute( 'dir', true, [
		'value' => 'column',
	] ),
	ButtonGroup::get_attribute( 'justification', true, [
		'value' => '',
	] ),
	ButtonGroup::get_attribute( 'alignment', true, [
		'value' => '',
	] ),
	ButtonGroup::get_attribute( 'wrapping', true, [
		'value' => '',
	] ),
	Range::get_attribute( [
		'attributeName' => 'minimumHeight',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => null,
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
	] ),
	Range::get_attribute([
		'attributeName' => 'containerWidth',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => 100,
		'hasUnit' => true,
		'unitDefaultValue' => '%',
	]),
	Range::get_attribute([
		'attributeName' => 'containerContentWidth',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => '',
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
	]),
	BackgroundOverlay::get_attribute( '_backgroundOverlay', true ),
);

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

```
