Astra_Update_Scroll_To_Top::get_input_schema()
Get input schema.
Description
Return
(array)
Source
File: inc/abilities/customizer/general/scroll-to-top/class-astra-update-scroll-to-top.php
public function get_input_schema() {
return array(
'type' => 'object',
'properties' => array(
'enabled' => array(
'type' => 'boolean',
'description' => 'Enable or disable the scroll-to-top button.',
),
'position' => array(
'type' => 'string',
'description' => 'Button position. Options: "right", "left".',
'enum' => array( 'right', 'left' ),
),
'on_devices' => array(
'type' => 'string',
'description' => 'Show on which devices. Options: "both", "desktop", "mobile".',
'enum' => array( 'both', 'desktop', 'mobile' ),
),
'icon_size' => array(
'type' => 'integer',
'description' => 'Icon size in pixels (1-50).',
),
'colors' => array(
'type' => 'object',
'description' => 'Color settings for the scroll-to-top button.',
'properties' => array(
'icon_color' => array(
'type' => 'string',
'description' => 'Icon color (hex value).',
),
'icon_bg_color' => array(
'type' => 'string',
'description' => 'Icon background color (hex value).',
),
'icon_h_color' => array(
'type' => 'string',
'description' => 'Icon hover color (hex value).',
),
'icon_h_bg_color' => array(
'type' => 'string',
'description' => 'Icon hover background color (hex value).',
),
),
),
'border_radius' => array(
'type' => 'object',
'description' => 'Border radius responsive fields with desktop, tablet, mobile keys. Each contains top, right, bottom, left values.',
),
),
);
}
Expand full source code Collapse full source code View on Trac