# ablocks/2.9.1/includes/blocks/menu-child-sub/attributes.php

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

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

```php
<?php


use ABlocks\Controls\Dimensions;
use ABlocks\Controls\Typography;
use ABlocks\Controls\Border;
use ABlocks\Controls\Range;
use ABlocks\Controls\BoxShadow;
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$attributes = [
	'block_id' => [
		'type' => 'string',
		'default' => '',
	],
	'background' => [
		'type' => 'string',
		'default' => 'white'
	],

	// flex direction start
	'direction' => [
		'type' => 'string',
		'default' => 'column',
	],
	'directionTablet' => [
		'type' => 'string',
		'default' => '',
	],
	'directionMobile' => [
		'type' => 'string',
		'default' => '',
	],
	// flex direction end
	// flex 'justify content' start
	'justify' => [
		'type' => 'string',
		'default' => '',
	],
	'justifyTablet' => [
		'type' => 'string',
		'default' => '',
	],
	'justifyMobile' => [
		'type' => 'string',
		'default' => '',
	],
	// flex 'justify content' end
	// flex 'align items" start
	'align' => [
		'type' => 'string',
		'default' => '',
	],
	'alignTablet' => [
		'type' => 'string',
		'default' => '',
	],
	'alignMobile' => [
		'type' => 'string',
		'default' => '',
	],
	// flex 'align items" end

	'menuItemTextColor' => [
		'type' => 'string',
		'default' => ''
	],
	'menuItemTextColorH' => [
		'type' => 'string',
		'default' => '#000000',
	],
	'menuItemBackground' => [
		'type' => 'string',
		'default' => '',
	],
	'menuItemBackgroundH' => [
		'type' => 'string',
		'default' => '',
	],
	'menuItemTransition' => [
		'type' => 'number',
		'default' => 0
	],
	'menuItemAlign' => [
		'type' => 'string',
		'default' => '',
		'copyStyle' => true,
	],
	'menuItemAlignTablet' => [
		'type' => 'string',
		'default' => '',
		'copyStyle' => true,
	],
	'menuItemAlignMobile' => [
		'type' => 'string',
		'default' => '',
		'copyStyle' => true,
	],
	'menuItemDirection' => [
		'type' => 'string',
		'default' => 'row',
		'copyStyle' => true,
	],
	'menuItemDirectionTablet' => [
		'type' => 'string',
		'default' => '',
		'copyStyle' => true,
	],
	'menuItemDirectionMobile' => [
		'type' => 'string',
		'default' => '',
		'copyStyle' => true,
	],
	'menuItemJustify' => [
		'type' => 'string',
		'default' => 'space-between',
		'copyStyle' => true,
	],
	'menuItemJustifyTablet' => [
		'type' => 'string',
		'default' => 'space-between',
		'copyStyle' => true,
	],
	'menuItemJustifyMobile' => [
		'type' => 'string',
		'default' => 'space-between',
		'copyStyle' => true,
	],

];

$attributes = array_merge(
	$attributes,
	BoxShadow::get_attribute( 'boxShadow', true ),
	Dimensions::get_attribute( 'padding', false ),
	Dimensions::get_attribute( 'menuItemPadding', false ),
	Dimensions::get_attribute( 'menuItemMargin', false ),
	Border::get_attribute( 'menuItemBorder', true ),
	Border::get_attribute( 'border', true ),
	Typography::get_attribute( 'menuItemTypography', true ),
	Range::get_attribute([
		'attributeName' => 'width',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'hasUnit' => true,
		'unitDefaultValue' => 'px',
	]),
	Range::get_attribute([
		'attributeName' => 'positionX',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => 0,

	]),
	Range::get_attribute([
		'attributeName' => 'positionY',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => 0,
	]),
);
return $attributes;

```
