# ablocks/2.9.0/includes/blocks/progress-tracker/attributes.php

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

- Page: https://pluginprobe.com/plugins/ablocks/2.9.0/code/includes/blocks/progress-tracker/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.9.0/raw/includes/blocks/progress-tracker/attributes.php
- Modified: 2025-09-24T16:13:26+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.0/code/includes/blocks/progress-tracker/attributes.php#L10-L20`.

```php
<?php

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

use ABlocks\Controls\Alignment;
use ABlocks\Controls\TextShadow;
use ABlocks\Controls\TextStroke;
use ABlocks\Controls\Typography;
use ABlocks\Controls\Border;
use ABlocks\Controls\Range;
use ABlocks\Components\ButtonGroup;
$attributes = [
	'block_id' => [
		'type' => 'string',
	],
	'blockVersion' => [
		'type' => 'number',
		'default' => '',
	],
	'progressValue' => [
		'type' => 'number',
		'default' => 100,
	],
	'maxValue' => [
		'type' => 'number',
		'default' => 100,
	],
	'barColor' => [
		'type' => 'string',
		'default' => 'black',
	],
	'trackColor' => [
		'type' => 'string',
		'default' => '#e0e0e0',
	],
	'mediaPosition' => [
		'type' => 'string',
		'default' => 'top',
	],
	'isShowPercentage' => [
		'type' => 'boolean',
		'default' => true,
	],
	'direction' => [
		'type' => 'string',
		'default' => 'left',
	],
	'progressRelative' => [
		'type' => 'string',
		'default' => 'entire_page',
	],
	'progressRelativeSelector' => [
		'type' => 'string',
		'default' => '',
	],

	// progress bar attributes
	'barProgressColor' => [
		'type' => 'string',
		'default' => '#000000',
	],
	'barBackgroundColor' => [
		'type' => 'string',
		'default' => '#DDDDDF',
	],
	// circle
	'circleProgressColor' => [
		'type' => 'string',
		'default' => '#000000',
	],
	'circleBackgroundColor' => [
		'type' => 'string',
		'default' => '#dadada',
	],
	'circleSize' => [
		'type' => 'number',
		'default' => 110,
	],
	'circleStrokeSize' => [
		'type' => 'number',
		'default' => 10,
	],

	'contentColor' => [
		'type' => 'string',
		'default' => '#ffffff'
	]
];

$attributes = array_merge(
	$attributes,
	Alignment::get_attribute( 'alignment', true, [ 'value' => 'center' ] ),
	Typography::get_attribute( 'contentTypography', true ),
	TextShadow::get_attribute( 'contentTextShadow' ),
	TextStroke::get_attribute( 'contentTextStroke', true ),
	Border::get_attribute( 'barBorder', true ),
	ButtonGroup::get_attribute( 'layout', false, [
		'value' => 'bar',
	] ),
	Range::get_attribute( [
		'attributeName' => 'barHeightSize',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => 40,
		'defaultValueMobile' => 30,
		'defaultValueTablet' => 30,
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
	] ),
);

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



```
