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

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

- Page: https://pluginprobe.com/plugins/ablocks/2.11.1/code/includes/blocks/text-path/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.11.1/raw/includes/blocks/text-path/attributes.php
- Modified: 2025-07-14T14:48:20+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/text-path/attributes.php#L10-L20`.

```php
<?php

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

use ABlocks\Classes\BlockBaseAbstract;
use ABlocks\Classes\CssGenerator;
use ABlocks\Controls\Typography;
use ABlocks\Controls\Dimensions;
use ABlocks\Controls\Border;
use ABlocks\Controls\Icon;
use ABlocks\Controls\BoxShadow;
use ABlocks\Controls\Range;
use ABlocks\Controls\Alignment;
use ABlocks\Controls\TextStroke;
use ABlocks\Controls\Responsive;
use ABlocks\Controls\Color;
use ABlocks\Controls\Link;
use ABlocks\Controls\TextShadow;


$attributes = [
	'block_id' => [
		'type' => 'string',
		'default' => '',
	],
	'blockVersion' => array(
		'type' => 'number',
		'default' => '',
	),
	'text' => [
		'type' => 'string',
		'default' => 'Add Your Curvy Text Here',
	],
	'pathType' => [
		'type' => 'string',
		'default' => 'wave',
	],
	'isShowIcon' => [
		'type' => 'boolean',
		'default' => true,
	],
	'strokeColor' => [
		'type' => 'string',
		'default' => 'blue',
	],
	'textColor' => [
		'type' => 'string',
		'default' => 'black',
		'copyStyle' => true,
	],
	'textColorH' => [
		'type' => 'string',
		'default' => '',
		'copyStyle' => true,
	],
	'textStrokeShow' => [
		'type' => 'boolean',
		'default' => false,
	],
	'textStroke' => [
		'type' => 'number',
		'default' => 0,
	],
	'strokeTextColor' => [
		'type' => 'string',
		'default' => 'black',
		'copyStyle' => true,
	],
	'offsetControl' => [
		'type' => 'number',
		'default' => 0,
	],
	'transition' => [
		'type' => 'number',
		'default' => 1,
		'copyStyle' => true,
	],
	'strokeWidth' => [
		'type' => 'number',
		'default' => 1,
	],
	'rotate' => [
		'type' => 'number',
		'default' => 0,
		'copyStyle' => true,
	],
	'iconSize' => [
		'type' => 'number',
		'default' => 250,
	],
	'iconSvgPath' => [
		'type' => 'string',
		'default' => '',
	],
	'iconSvgViewBox' => [
		'type' => 'string',
		'default' => '',
	],
	'iconClass' => [
		'type' => 'string',
		'default' => ''
	],
];

$attributes = array_merge(
	$attributes,
	Alignment::get_attribute( 'alignment', true, [ 'value' => 'left' ] ),
	Typography::get_attribute( 'typography', true ),
	TextShadow::get_attribute( 'textShadow' ),
	Link::get_attribute( 'link' ),
);
return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );

```
