Astra_Get_Scroll_To_Top::get_output_schema()
Get output schema.
Description
Return
(array)
Source
File: inc/abilities/customizer/general/scroll-to-top/class-astra-get-scroll-to-top.php
public function get_output_schema() {
return $this->build_output_schema(
array(
'enabled' => array(
'type' => 'boolean',
'description' => 'Whether the scroll-to-top button is enabled.',
),
'position' => array(
'type' => 'string',
'description' => 'Button position (left or right).',
),
'on_devices' => array(
'type' => 'string',
'description' => 'Device visibility (both, desktop, or mobile).',
),
'icon_size' => array(
'type' => 'integer',
'description' => 'Icon size in pixels.',
),
'colors' => array(
'type' => 'object',
'description' => 'Color settings (icon, background, hover variants).',
),
'border_radius' => array(
'type' => 'object',
'description' => 'Border radius settings.',
),
'available_positions' => array(
'type' => 'object',
'description' => 'Available position options.',
),
'available_devices' => array(
'type' => 'object',
'description' => 'Available device visibility options.',
),
)
);
}
Expand full source code Collapse full source code View on Trac