Astra_Update_Header_Builder::get_input_schema()

Get input schema.


Description


Return

(array)


Source

File: inc/abilities/customizer/header/class-astra-update-header-builder.php

	public function get_input_schema() {
		return array(
			'type'       => 'object',
			'properties' => array(
				'desktop' => array(
					'type'        => 'object',
					'description' => 'Desktop header layout configuration with popup, above, primary, and below sections. Each section contains zones with arrays of component IDs.',
					'properties'  => array(
						'popup'   => array(
							'type'        => 'object',
							'description' => 'Popup section for desktop (typically contains mobile-menu for mobile view).',
							'properties'  => array(
								'popup_content' => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
							),
						),
						'above'   => array(
							'type'        => 'object',
							'description' => 'Above header section zones.',
							'properties'  => array(
								'above_left'         => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'above_left_center'  => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'above_center'       => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'above_right_center' => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'above_right'        => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
							),
						),
						'primary' => array(
							'type'        => 'object',
							'description' => 'Primary header section zones.',
							'properties'  => array(
								'primary_left'         => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'primary_left_center'  => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'primary_center'       => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'primary_right_center' => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'primary_right'        => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
							),
						),
						'below'   => array(
							'type'        => 'object',
							'description' => 'Below header section zones.',
							'properties'  => array(
								'below_left'         => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'below_left_center'  => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'below_center'       => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'below_right_center' => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'below_right'        => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
							),
						),
					),
				),
				'mobile'  => array(
					'type'        => 'object',
					'description' => 'Mobile header layout configuration with popup, above, primary, and below sections. The popup section contains the mobile drawer/hamburger menu content.',
					'properties'  => array(
						'popup'   => array(
							'type'        => 'object',
							'description' => 'Popup section for mobile drawer menu (opened by mobile-trigger).',
							'properties'  => array(
								'popup_content' => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
							),
						),
						'above'   => array(
							'type'        => 'object',
							'description' => 'Above header section zones for mobile.',
							'properties'  => array(
								'above_left'   => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'above_center' => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'above_right'  => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
							),
						),
						'primary' => array(
							'type'        => 'object',
							'description' => 'Primary header section zones for mobile.',
							'properties'  => array(
								'primary_left'   => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'primary_center' => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'primary_right'  => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
							),
						),
						'below'   => array(
							'type'        => 'object',
							'description' => 'Below header section zones for mobile.',
							'properties'  => array(
								'below_left'   => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'below_center' => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
								'below_right'  => array(
									'type'  => 'array',
									'items' => array( 'type' => 'string' ),
								),
							),
						),
					),
				),
			),
		);
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.