# ablocks/2.9.1/includes/blocks/news-ticker/attributes.php

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

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

```php
<?php

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

use ABlocks\Controls\TextShadow;
use ABlocks\Controls\TextStroke;
use ABlocks\Controls\Typography;
use ABlocks\Controls\Range;

$attributes = [
	'block_id' => [
		'type' => 'string',
		'default' => '',
	],
	'stickyLabel' => [
		'type' => 'string',
		'default' => 'Breaking News',
	],
	'stickyLabelTag' => [
		'type' => 'string',
		'default' => 'div',
	],
	'labelPosition' => [
		'type' => 'string',
		'default' => 'left',
	],
	'queryType' => [
		'type' => 'string',
		'default' => 'customText',
	],
	'selectedPosts' => [
		'type' => 'array',
		'default' => [],
	],
	'postLink' => [
		'type' => 'boolean',
		'default' => false,
	],
	'selectedPages' => [
		'type' => 'array',
		'default' => [],
	],
	'pageLink' => [
		'type' => 'boolean',
		'default' => false,
	],
	'customText' => [
		'type' => 'string',
		'default' => ''
	],
	'lists' => [
		'type' => 'array',
		'default' => [
			[
				'id' => 0,
				'text' => 'Stay updated with the latest trends!',
				'link' => [
					'linkDestination' => '',
					'href' => '',
					'lightbox' => '',
					'linkTarget' => '',
					'rel' => '',
					'noFollow' => '',
					'keyValue' => '',
					'linkClass' => '',
				],
				'isOpen' => false,
			]
		]
	],
	'markerType' => [
		'type' => 'string',
		'default' => 'icon',
	],
	'listIconsClasses' => [
		'type' => 'array',
		'default' => [],
	],
	'slideDirection' => [
		'type' => 'string',
		'default' => 'ltr',
	],
	'slideSpeed' => [
		'type' => 'number',
		'default' => 2,
	],
	'labelColor' => [
		'type' => 'string',
		'default' => 'white',
	],
	'labelBackgroundColor' => [
		'type' => 'string',
		'default' => 'black',
	],
	'labelColorH' => [
		'type' => 'string',
		'default' => '',
	],
	'labelBackgroundColorH' => [
		'type' => 'string',
		'default' => '',
	],
	'labelColorTransition' => [
		'type' => 'number',
		'default' => '',
	],
	'tickerColor' => [
		'type' => 'string',
		'default' => 'black',
	],
	'tickerBgColor' => [
		'type' => 'string',
		'default' => '#E5E5E6',
	],
	'tickerColorH' => [
		'type' => 'string',
		'default' => '',
	],
	'tickerBgColorH' => [
		'type' => 'string',
		'default' => '',
	],
	'tickerColorTransition' => [
		'type' => 'number',
		'default' => '',
	],
	'tickerType' => [
		'type' => 'string',
		'default' => 'marquee',
	],
	'navigatorBgColor' => [
		'type' => 'string',
		'default' => ''
	],
	'navigatorColor' => [
		'type' => 'string',
		'default' => 'black'
	],
	'showTickerNavigator' => [
		'type' => 'boolean',
		'default' => false,
	],
	'navigatorPosition' => [
		'type' => 'string',
		'default' => 'right'
	],
	'tickerListStyle' => [
		'type' => 'string',
		'default' => 'none',
	],
	'isPauseOnOver' => [
		'type' => 'boolean',
		'default' => false,
	],
	'isPositionSticky' => [
		'type' => 'boolean',
		'default' => false
	],
	'stickyPosition' => [
		'type' => 'string',
		'default' => 'up'
	],
	'isShowLabel' => [
		'type' => 'boolean',
		'default' => true,
	],
	'tickerLabelShape' => [
		'type' => 'string',
		'default' => 'normal',
	],
	'labelPadding' => [
		'type' => 'number',
		'default' => 10,
	],
	'isShowTime' => [
		'type' => 'boolean',
		'default' => false,
	],
];
$attributes = array_merge(
	$attributes,
	Range::get_attribute([
		'attributeName' => 'labelPadding',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
		'defaultValue' => 10,
	]),
	Range::get_attribute([
		'attributeName' => 'tickerHeight',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
		'defaultValue' => 50,
	]),
	Typography::get_attribute( 'labelTypography', true ),
	TextShadow::get_attribute( 'labelTextShadow' ),
	TextStroke::get_attribute( 'labelTextStroke', true ),
	Typography::get_attribute( 'tickerTypography', true ),
	TextShadow::get_attribute( 'tickerTextShadow' ),
	TextStroke::get_attribute( 'tickerTextStroke', true ),
);

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

```
