# ablocks/2.9.0/includes/blocks/carousel/attributes.php

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

- Page: https://pluginprobe.com/plugins/ablocks/2.9.0/code/includes/blocks/carousel/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.9.0/raw/includes/blocks/carousel/attributes.php
- Modified: 2025-12-28T14:24:12+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/carousel/attributes.php#L10-L20`.

```php
<?php

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

use ABlocks\Controls\Range;
use ABlocks\Controls\Icon;
use ABlocks\Controls\Border;
use ABlocks\Components\ButtonGroup;
use ABlocks\Controls\Dimensions;
use ABlocks\Controls\BoxShadow;
$attributes = [
	'block_id'          => [
		'type'          => 'string',
		'default'       => ''
	],
	'blockVersion' => array(
		'type' => 'number',
		'default' => '',
	),
	'effect' => [
		'type' => 'string',
		'default' => 'slide'
	],
	'reverseDirection' => [
		'type' => 'boolean',
		'default' => true
	],
	'carouselSlideLength' => [
		'type' => 'number',
		'default' => 1
	],
	'isLoop' => [
		'type' => 'boolean',
		'default' => false
	],
	'autoplay' => [
		'type' => 'boolean',
		'default' => true
	],
	'autoPlayReverse' => [
		'type' => 'boolean',
		'default' => false
	],
	'autoplayDelay' => [
		'type' => 'number',
		'default' => 3000
	],
	'autoplayProgress' => [
		'type' => 'boolean',
		'default' => true
	],
	'autoplayPauseOnHover' => [
		'type' => 'boolean',
		'default' => true
	],
	'speed' => [
		'type' => 'number',
		'default' => 800
	],
	'paginationType' => [
		'type' => 'string',
		'default' => 'default'
	],
	'pagination' => [
		'type' => 'boolean',
		'default' => true
	],
	'paginationClickable' => [
		'type' => 'boolean',
		'default' => true
	],
	'navigation' => [
		'type' => 'boolean',
		'default' => true
	],
	'navigationIconColor' => [
		'type' => 'string',
		'default' => '#686868'
	],
	'navigationIconColorH' => [
		'type' => 'string',
		'default' => ''
	],
	'navigationIconBgColor' => [
		'type' => 'string',
		'default' => '#e4e4e4'
	],
	'navigationIconBgColorH' => [
		'type' => 'string',
		'default' => ''
	],
	'navigationIconTransition' => [
		'type' => 'number',
		'default' => '',
	],
	'paginationColor' => [
		'type' => 'string',
		'default' => 'black',
	],
	'paginationHoverColor' => [
		'type' => 'string',
		'default' => 'black',
	],
	'paginationActiveColor' => [
		'type' => 'string',
		'default' => 'black',
	],
	'paginationActiveHoverColor' => [
		'type' => 'string',
		'default' => 'black',
	],
	'grabCursor' => [
		'type' => 'boolean',
		'default' => true
	],
	'mousewheel' => [
		'type' => 'boolean',
		'default' => true
	],
	'verticalAlignment' => [
		'type' => 'string',
		'default' => 'center'
	],
];

$attributes = array_merge(
	$attributes,
	ButtonGroup::get_attribute( 'verticalAlign', true, [
		'value' => 'center',
	] ),
	Border::get_attribute( 'navigationIconBorder', true ),
	Border::get_attribute( 'paginationBorder', true ),
	Border::get_attribute( 'activePaginationBorder', true ),
	Dimensions::get_attribute( 'navigationIconPadding', true ),
	BoxShadow::get_attribute( 'navigationIconBoxShadow', true ),
	Range::get_attribute([
		'attributeName' => 'carouselHeight',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
		'defaultValue' => 300,
		'defaultValueMobile' => 300,
		'defaultValueTablet' => 300,
	]),
	Range::get_attribute([
		'attributeName' => 'paginationPositionX',
		'isResponsive' => false,
		'defaultValue' => 47,
		'attributeObjectKey' => 'value',
		'hasUnit' => true,
		'unitDefaultValue' => '%',
		'copyStyle' => true
	]),
	Range::get_attribute([
		'attributeName' => 'paginationPositionY',
		'isResponsive' => false,
		'defaultValue' => 100,
		'hasUnit' => true,
		'isResponsive' => true,
		'unitDefaultValue' => '%',
		'copyStyle' => true
	]),
	Range::get_attribute([
		'attributeName' => 'paginationSize',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
		'defaultValue' => 8,
	]),
	Range::get_attribute([
		'attributeName' => 'paginationHoverSize',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
		'defaultValue' => 8,
	]),
	Range::get_attribute([
		'attributeName' => 'paginationActiveSize',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
		'defaultValue' => 8,
	]),
	Range::get_attribute([
		'attributeName' => 'paginationActiveHoverSize',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
		'defaultValue' => 8,
	]),
	Range::get_attribute([
		'attributeName' => 'navigationIconSize',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
		'defaultValue' => 35,
	]),
	Range::get_attribute([
		'attributeName' => 'slidesPerView',
		'isResponsive' => true,
		'defaultValue' => 1,
		'defaultValueMobile' => 1,
		'defaultValueTablet' => 1,
		'hasUnit' => false,
	]),
	Range::get_attribute([
		'attributeName' => 'gap',
		'isResponsive' => true,
		'defaultValue' => 0,
		'defaultValueMobile' => 0,
		'defaultValueTablet' => 0,
		'hasUnit' => false,
	]),
	Range::get_attribute([
		'attributeName' => 'navigationIconPositionY',
		'isResponsive' => true,
		'defaultValue' => 50,
		'attributeObjectKey' => 'value',
		'hasUnit' => true,
		'unitDefaultValue' => '%',
		'copyStyle' => true
	]),
	Range::get_attribute([
		'attributeName' => 'navigationIconPositionNextX',
		'isResponsive' => true,
		'defaultValue' => -3,
		'hasUnit' => true,
		'isResponsive' => true,
		'unitDefaultValue' => '%',
	]),
	Range::get_attribute([
		'attributeName' => 'navigationIconPositionPrevX',
		'isResponsive' => true,
		'defaultValue' => -3,
		'hasUnit' => true,
		'unitDefaultValue' => '%',
	]),
	Icon::get_attribute( 'leftIcon', [
		'path' => 'M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z',
		'viewBox' => '0 0 512 512',
		'hasNoSelectorOrSource' => true,
		'className' => 'far fa-arrow-alt-circle-left'
	] ),
	Icon::get_attribute( 'rightIcon', [
		'path' => 'M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm72 20v-40c0-6.6 5.4-12 12-12h116v-67c0-10.7 12.9-16 20.5-8.5l99 99c4.7 4.7 4.7 12.3 0 17l-99 99c-7.6 7.6-20.5 2.2-20.5-8.5v-67H140c-6.6 0-12-5.4-12-12z',
		'viewBox' => '0 0 512 512',
		'hasNoSelectorOrSource' => true,
		'className' => 'far fa-arrow-alt-circle-right'
	] ),
);

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


```
