Astra_Update_Breadcrumb::get_input_schema()

Get input schema.


Description


Return

(array)


Source

File: inc/abilities/customizer/general/breadcrumb/class-astra-update-breadcrumb.php

	public function get_input_schema() {
		return array(
			'type'       => 'object',
			'properties' => array(
				'position'         => array(
					'type'        => 'string',
					'description' => 'Breadcrumb position. Options: "none" (None), "astra_header_primary_container_after" (Inside), "astra_header_after" (After), "astra_entry_top" (Before Title).',
					'enum'        => array( 'none', 'astra_header_primary_container_after', 'astra_header_after', 'astra_entry_top' ),
				),
				'alignment'        => array(
					'type'        => 'string',
					'description' => 'Breadcrumb alignment. Options: "left", "center", "right".',
					'enum'        => array( 'left', 'center', 'right' ),
				),
				'separator_type'   => array(
					'type'        => 'string',
					'description' => 'Breadcrumb separator type. Options: "\003E" (>), "\00BB" (»), "\002F" (/), "unicode" (Custom).',
					'enum'        => array( '\003E', '\00BB', '\002F', 'unicode' ),
				),
				'separator_custom' => array(
					'type'        => 'string',
					'description' => 'Custom breadcrumb separator text (only applies when separator_type is "unicode").',
				),
				'enable_on'        => array(
					'type'        => 'object',
					'description' => 'Enable breadcrumb on specific page types. Each property is a boolean.',
					'properties'  => array(
						'home_page'   => array(
							'type'        => 'boolean',
							'description' => 'Enable on home page',
						),
						'blog_page'   => array(
							'type'        => 'boolean',
							'description' => 'Enable on blog/posts page',
						),
						'search'      => array(
							'type'        => 'boolean',
							'description' => 'Enable on search results',
						),
						'archive'     => array(
							'type'        => 'boolean',
							'description' => 'Enable on archive pages',
						),
						'single_page' => array(
							'type'        => 'boolean',
							'description' => 'Enable on single pages',
						),
						'single_post' => array(
							'type'        => 'boolean',
							'description' => 'Enable on single posts',
						),
						'singular'    => array(
							'type'        => 'boolean',
							'description' => 'Enable on singular (all pages, posts, attachments)',
						),
						'404_page'    => array(
							'type'        => 'boolean',
							'description' => 'Enable on 404 page',
						),
					),
				),
				'typography'       => array(
					'type'        => 'object',
					'description' => 'Typography settings for breadcrumb.',
					'properties'  => array(
						'font_family' => array(
							'type'        => 'string',
							'description' => 'Font family',
						),
						'font_weight' => array(
							'type'        => 'string',
							'description' => 'Font weight',
						),
						'font_size'   => array(
							'type'        => 'object',
							'description' => 'Responsive font size with desktop, tablet, mobile keys',
						),
						'font_extras' => array(
							'type'        => 'object',
							'description' => 'Font extras with line-height, text-transform, letter-spacing',
						),
					),
				),
				'colors'           => array(
					'type'        => 'object',
					'description' => 'Color settings for breadcrumb.',
					'properties'  => array(
						'background'  => array(
							'type'        => 'object',
							'description' => 'Background color (responsive)',
						),
						'text'        => array(
							'type'        => 'object',
							'description' => 'Text color (responsive)',
						),
						'separator'   => array(
							'type'        => 'object',
							'description' => 'Separator color (responsive)',
						),
						'link_normal' => array(
							'type'        => 'object',
							'description' => 'Link normal color (responsive)',
						),
						'link_hover'  => array(
							'type'        => 'object',
							'description' => 'Link hover color (responsive)',
						),
					),
				),
				'spacing'          => array(
					'type'        => 'object',
					'description' => 'Spacing (padding/margin) with desktop, tablet, mobile keys. Each contains top, right, bottom, left values.',
				),
			),
		);
	}

User Contributed Notes

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