Astra_Update_Transparent_Header::get_input_schema()

Get input schema.


Description


Return

(array)


Source

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

	public function get_input_schema() {
		return array(
			'type'       => 'object',
			'properties' => array(
				'enabled'     => array(
					'type'        => 'boolean',
					'description' => 'Enable or disable the transparent header.',
				),
				'on_devices'  => array(
					'type'        => 'string',
					'description' => 'Show on which devices. Options: "both", "desktop", "mobile".',
					'enum'        => array( 'both', 'desktop', 'mobile' ),
				),
				'logo'        => array(
					'type'        => 'object',
					'description' => 'Logo configuration for transparent header.',
					'properties'  => array(
						'different_logo'   => array(
							'type'        => 'boolean',
							'description' => 'Use a different logo for transparent header.',
						),
						'logo_url'         => array(
							'type'        => 'string',
							'description' => 'Transparent header logo URL.',
						),
						'retina_logo_url'  => array(
							'type'        => 'string',
							'description' => 'Transparent header retina logo URL.',
						),
						'different_retina' => array(
							'type'        => 'boolean',
							'description' => 'Use a different retina logo for transparent header.',
						),
						'logo_width'       => array(
							'type'        => 'object',
							'description' => 'Logo width (responsive with desktop, tablet, mobile keys in px).',
						),
					),
				),
				'border'      => array(
					'type'        => 'object',
					'description' => 'Header bottom border settings.',
					'properties'  => array(
						'size'  => array(
							'type'        => 'string',
							'description' => 'Border size (e.g. "1" for 1px, "" for none).',
						),
						'color' => array(
							'type'        => 'string',
							'description' => 'Border color (hex value).',
						),
					),
				),
				'disable_on'  => array(
					'type'        => 'object',
					'description' => 'Disable transparent header on specific page types. Each property is a boolean (true = disabled on that page type).',
					'properties'  => array(
						'404_page'          => array(
							'type'        => 'boolean',
							'description' => 'Disable on 404 page.',
						),
						'search_page'       => array(
							'type'        => 'boolean',
							'description' => 'Disable on search results.',
						),
						'archive_pages'     => array(
							'type'        => 'boolean',
							'description' => 'Disable on archive pages.',
						),
						'blog_index'        => array(
							'type'        => 'boolean',
							'description' => 'Disable on blog index page.',
						),
						'latest_posts_index' => array(
							'type'        => 'boolean',
							'description' => 'Disable on latest posts index.',
						),
						'pages'             => array(
							'type'        => 'boolean',
							'description' => 'Disable on all pages.',
						),
						'posts'             => array(
							'type'        => 'boolean',
							'description' => 'Disable on all single posts.',
						),
					),
				),
				'colors'      => array(
					'type'        => 'object',
					'description' => 'Color settings for transparent header. All color values are responsive objects with desktop, tablet, mobile keys unless noted.',
					'properties'  => array(
						'logo_color'               => array(
							'type'        => 'string',
							'description' => 'Logo color (hex, non-responsive).',
						),
						'header_bg'                => array(
							'type'        => 'object',
							'description' => 'Header background colors with above, primary, below keys. Each is a responsive color object.',
						),
						'site_title'               => array(
							'type'        => 'object',
							'description' => 'Site title color (responsive).',
						),
						'site_title_hover'         => array(
							'type'        => 'object',
							'description' => 'Site title hover color (responsive).',
						),
						'menu_color'               => array(
							'type'        => 'object',
							'description' => 'Menu link color (responsive).',
						),
						'menu_bg_color'            => array(
							'type'        => 'object',
							'description' => 'Menu background color (responsive).',
						),
						'menu_hover_color'         => array(
							'type'        => 'object',
							'description' => 'Menu link hover color (responsive).',
						),
						'submenu_color'            => array(
							'type'        => 'object',
							'description' => 'Submenu link color (responsive).',
						),
						'submenu_bg_color'         => array(
							'type'        => 'object',
							'description' => 'Submenu background color (responsive).',
						),
						'submenu_hover_color'      => array(
							'type'        => 'object',
							'description' => 'Submenu link hover color (responsive).',
						),
						'content_link_color'       => array(
							'type'        => 'object',
							'description' => 'Content section link color (responsive).',
						),
						'content_link_hover_color' => array(
							'type'        => 'object',
							'description' => 'Content section link hover color (responsive).',
						),
					),
				),
			),
		);
	}

User Contributed Notes

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