* Performance tab (owned by the Disable Unnecessary Features module) -- * this module must therefore boot after that one; see * `ModuleManager::built_in_modules()`. */ final class Module implements ModuleInterface { /** * {@inheritDoc} */ public function get_id(): string { return 'accessibility'; } /** * {@inheritDoc} */ public function register(): void { $settings = aiou()->settings(); $settings->add_section( 'performance', 'accessibility', __( 'Accessibility', 'all-in-one-utilities' ), '', 100 ); $settings->add_field( 'performance', 'accessibility', new Field( id: 'remove_tag_cloud_titles', label: __( 'Remove tag cloud title attributes', 'all-in-one-utilities' ), type: 'checkbox', default: 0, args: array( 'toggle_label' => __( 'Remove the redundant title="..." attribute WordPress adds to tag/category cloud links', 'all-in-one-utilities' ) ), priority: 10 ) ); $settings->add_field( 'performance', 'accessibility', new Field( id: 'visible_focus', label: __( 'Visible keyboard focus', 'all-in-one-utilities' ), type: 'checkbox', default: 0, args: array( 'toggle_label' => __( 'Add a clearly visible outline to links and buttons when they receive keyboard focus', 'all-in-one-utilities' ) ), priority: 20 ) ); $settings->add_field( 'performance', 'accessibility', new Field( id: 'underline_links', label: __( 'Underline links in content', 'all-in-one-utilities' ), type: 'checkbox', default: 0, args: array( 'toggle_label' => __( 'Force links inside post/page content to be underlined, so they\'re not distinguished by color alone', 'all-in-one-utilities' ) ), priority: 30 ) ); $settings->add_field( 'performance', 'accessibility', new Field( id: 'skip_link', label: __( 'Skip to content link', 'all-in-one-utilities' ), type: 'checkbox', default: 0, args: array( 'toggle_label' => __( 'Add a "Skip to content" link, visible on keyboard focus, as the first focusable element on the page', 'all-in-one-utilities' ) ), doc: new Doc( title: __( 'Skip to content link', 'all-in-one-utilities' ), detailed: __( 'Lets keyboard and screen-reader users jump straight past the header/navigation to the main content. The link finds the page\'s main content area itself (whatever id the theme gives it), and is left out on pages that already have a working skip link, such as the default WordPress themes.', 'all-in-one-utilities' ) ), priority: 40 ) ); ( new Feature() )->register(); } }