Astra_Update_Site_Title_Logo::get_input_schema()
Get input schema.
Description
Return
(array)
Source
File: inc/abilities/customizer/siteidentity/class-astra-update-site-title-logo.php
public function get_input_schema() {
return array(
'type' => 'object',
'properties' => array(
'site_title' => array(
'type' => 'string',
'description' => __( 'Site title text.', 'astra' ),
),
'tagline' => array(
'type' => 'string',
'description' => __( 'Site tagline/description.', 'astra' ),
),
'logo_url' => array(
'type' => 'string',
'description' => __( 'Logo image URL.', 'astra' ),
),
'logo_id' => array(
'type' => 'integer',
'description' => __( 'Logo attachment ID (preferred over URL).', 'astra' ),
),
'retina_logo_url' => array(
'type' => 'string',
'description' => __( 'Retina logo image URL.', 'astra' ),
),
'mobile_logo_url' => array(
'type' => 'string',
'description' => __( 'Mobile logo image URL.', 'astra' ),
),
'logo_width' => array(
'type' => 'object',
'description' => __( 'Logo width (responsive).', 'astra' ),
'properties' => array(
'desktop' => array(
'type' => 'number',
'description' => __( 'Desktop width in px.', 'astra' ),
),
'tablet' => array(
'type' => 'number',
'description' => __( 'Tablet width in px.', 'astra' ),
),
'mobile' => array(
'type' => 'number',
'description' => __( 'Mobile width in px.', 'astra' ),
),
'desktop-unit' => array(
'type' => 'string',
'description' => __( 'Desktop unit.', 'astra' ),
),
'tablet-unit' => array(
'type' => 'string',
'description' => __( 'Tablet unit.', 'astra' ),
),
'mobile-unit' => array(
'type' => 'string',
'description' => __( 'Mobile unit.', 'astra' ),
),
),
),
'display_site_title' => array(
'type' => 'object',
'description' => __( 'Site title visibility (responsive).', 'astra' ),
'properties' => array(
'desktop' => array(
'type' => 'boolean',
'description' => __( 'Show on desktop.', 'astra' ),
),
'tablet' => array(
'type' => 'boolean',
'description' => __( 'Show on tablet.', 'astra' ),
),
'mobile' => array(
'type' => 'boolean',
'description' => __( 'Show on mobile.', 'astra' ),
),
),
),
'display_tagline' => array(
'type' => 'object',
'description' => __( 'Tagline visibility (responsive).', 'astra' ),
'properties' => array(
'desktop' => array(
'type' => 'boolean',
'description' => __( 'Show on desktop.', 'astra' ),
),
'tablet' => array(
'type' => 'boolean',
'description' => __( 'Show on tablet.', 'astra' ),
),
'mobile' => array(
'type' => 'boolean',
'description' => __( 'Show on mobile.', 'astra' ),
),
),
),
'logo_title_inline' => array(
'type' => 'boolean',
'description' => __( 'Display logo and title inline.', 'astra' ),
),
'different_retina_logo' => array(
'type' => 'boolean',
'description' => __( 'Use different retina logo.', 'astra' ),
),
'different_mobile_logo' => array(
'type' => 'boolean',
'description' => __( 'Use different mobile logo.', 'astra' ),
),
),
);
}
Expand full source code Collapse full source code View on Trac