# ablocks/2.11.1/includes/blocks/dynamic-text/attributes.php

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

- Page: https://pluginprobe.com/plugins/ablocks/2.11.1/code/includes/blocks/dynamic-text/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.11.1/raw/includes/blocks/dynamic-text/attributes.php
- Modified: 2025-11-24T14:29:50+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.11.1/code/includes/blocks/dynamic-text/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\Alignment;

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

$attributes = [
	'block_id' => array(
		'type' => 'string',
		'default' => '',
	),
	'blockVersion' => [
		'type' => 'number',
		'default' => 2,
	],
	'metaKey' => [
		'type' => 'string',
		'default' => '',
	],
	'linkAdd' => [
		'type' => 'boolean',
		'default' => false
	],
	'trimMode' => [
		'type' => 'boolean',
		'default' => false
	],
	'dynamicTextColor' => [
		'type' => 'string',
		'default' => ''
	],

	'trimLimit' => [
		'type' => 'number',
		'default' => 0
	],
	'trimEndSymbol' => [
		'type' => 'string',
		'default' => ''
	],

];

$attributes = array_merge(
	Typography::get_attribute( 'dynamicTypography', true ),
	Alignment::get_attribute( 'alignment', true, [ 'value' => 'left' ] ),
	$attributes,
);

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

```
