# ablocks/2.13.1/includes/blocks/loop-template/attributes.php

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

- Page: https://pluginprobe.com/plugins/ablocks/2.13.1/code/includes/blocks/loop-template/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.13.1/raw/includes/blocks/loop-template/attributes.php
- Modified: 2025-08-05T15:00:28+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.13.1/code/includes/blocks/loop-template/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' => [
		'type' => 'string',
		'default' => '',
	],
	'gridStyle' => [
		'type' => 'string',
		'default' => 'grid'
	],
	'gridColumns' => [
		'type' => 'number',
		'default' => '2'
	],
	'bgColor' => [
		'type' => 'string',
		'default' => '',
	]


];
$attributes = array_merge(
	$attributes,
	Range::get_attribute( [
		'attributeName' => 'templateGridColumns',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => 2,
		'defaultValueTablet' => 2,
		'defaultValueMobile' => 1,
		'hasUnit' => false,
		'unitDefaultValue' => '',
	] ),
	Range::get_attribute([
		'attributeName' => 'itemGap',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => 20,
		'hasUnit' => false,
		'unitDefaultValue' => 'px',
	]),
	Dimensions::get_attribute( 'padding', false ),
	Border::get_attribute( 'border', true ),
);

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


```
