* Declarative settings schema for the Aurora Admin settings page.
* Each category renders as an item in the left nav; its fields render in
* the right panel. Field `key`s map directly into the aurora_admin_settings
* option, saved via the wp/v2/settings REST route.
*/
exportconstsettingsCategories=[
{
id:'general',
title:'General',
subtitle:'Core plugin settings and license management',
icon:'dashicons-admin-settings',
fields:[
{
key:'license_key',
type:'text',
label:'License key',
description:'Enter your license key to enable automatic updates.',
placeholder:'AA-XXXX-XXXX-XXXX',
},
{
key:'logo',
type:'image',
label:'Logo',
description:'Optional logo to be displayed in the menu.',
},
{
key:'dark_logo',
type:'image',
label:'Dark mode logo',
description:
"Set an alternative logo to use in dark mode. If one isn't set it will fall back to the standard logo.",
},
{
key:'remote_sites',
type:'remote-sites',
label:'Remote Sites',
description:'Configure remote WordPress sites for cross-site operations.',
},
{
key:'remote_site_switcher_capability',
type:'text',
label:'Remote Site Switcher Capability',
description:
'WordPress capability required to see the remote site switcher in the toolbar. Defaults to "manage_options" (admin users). Users with this capability or below will see the switcher.',
placeholder:'manage_options',
},
{
key:'disable_theme',
type:'multiselect',
label:'Disable theme',
description:'Choose roles to disable the theme for.',
optionsSource:'roles',
},
{
key:'search_post_types',
type:'multiselect',
label:'Search post types',
description:'Choose which post types are available in the global search.',
optionsSource:'postTypes',
},
{
key:'disable_global_search',
type:'segmented',
label:'Disable global search',
description:'Disable global search for all users.',
},
],
},
{
id:'login',
title:'Login',
subtitle:'Customize login page appearance and security',
icon:'dashicons-lock',
fields:[
{
key:'style_login',
type:'toggle',
label:'Style login page',
description:'Apply the Aurora theme to the WordPress login screen.',
},
{
key:'login_logo',
type:'image',
label:'Login logo',
description:'Replace the WordPress logo on the login screen.',
},
],
},
{
id:'theme',
title:'Theme',
subtitle:'Colors, styling, and visual customization',