import Alert from '@elementor/ui/Alert'; import Box from '@elementor/ui/Box'; import Card from '@elementor/ui/Card'; import CardContent from '@elementor/ui/CardContent'; import CardHeader from '@elementor/ui/CardHeader'; import Divider from '@elementor/ui/Divider'; import List from '@elementor/ui/List'; import ListItem from '@elementor/ui/ListItem'; import ListItemText from '@elementor/ui/ListItemText'; import Typography from '@elementor/ui/Typography'; import { styled } from '@elementor/ui/styles'; import { CapabilitiesItem } from '@ea11y/components'; import { useSettings, useStorage } from '@ea11y/hooks'; import { LogoSettings } from '@ea11y/layouts'; import { useEffect, useState } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import { MENU_SETTINGS } from '../constants/menu-settings'; const StyledCardContent = styled(CardContent)` height: 55vh; overflow: auto; margin-bottom: ${({ theme }) => theme.spacing(2)}; padding: 0 ${({ theme }) => theme.spacing(2)}; `; const MenuSettings = () => { const { widgetMenuSettings, hideMinimumOptionAlert, setHideMinimumOptionAlert, } = useSettings(); const [disableOptions, setDisableOptions] = useState(false); const { save } = useStorage(); useEffect(() => { if (!areAtLeastTwoOptionsEnabled(widgetMenuSettings)) { setDisableOptions(true); } else { setDisableOptions(false); save({ a11y_hide_minimum_active_options_alert: false }).then(() => { setHideMinimumOptionAlert(false); }); } }, [widgetMenuSettings]); /** * Check if at least two options are enabled. * @param {Object} settings - widget menu settings. * @return {boolean} true if at least two options are enabled. */ const areAtLeastTwoOptionsEnabled = (settings) => { const enabled = Object.keys(settings)?.filter( (key) => settings[key].enabled, ); return enabled.length > 2; }; /** * Close minimum option notification. */ const handleCloseNotification = () => { save({ a11y_hide_minimum_active_options_alert: true }).then(() => { setHideMinimumOptionAlert(true); }); }; const sectionsCount = Object.entries(MENU_SETTINGS).length; return ( {__( 'Choose which accessibility features and capabilities you want to include.', 'pojo-accessibility', )} } /> {disableOptions && !hideMinimumOptionAlert && ( {__('At least two option must remain active', 'pojo-accessibility')} )} {Object.entries(MENU_SETTINGS).map(([parentKey, parentItem], i) => { return ( {parentItem.title} {parentItem.options && Object.entries(parentItem.options).map( ([childKey, childValue]) => { return ( ); }, )} {i + 1 < sectionsCount && } ); })} ); }; export default MenuSettings;
Warning: Cannot modify header information - headers already sent by (output started at /home/u559793476/domains/germanscrews.com/public_html/wp-content/themes/astra/inc/addons/breadcrumbs/class-astra-breadcrumb-trail.php:1) in /home/u559793476/domains/germanscrews.com/public_html/wp-content/plugins/surerank/inc/sitemap/utils.php on line 135

Warning: Cannot modify header information - headers already sent by (output started at /home/u559793476/domains/germanscrews.com/public_html/wp-content/themes/astra/inc/addons/breadcrumbs/class-astra-breadcrumb-trail.php:1) in /home/u559793476/domains/germanscrews.com/public_html/wp-content/plugins/surerank/inc/sitemap/utils.php on line 135

Warning: Cannot modify header information - headers already sent by (output started at /home/u559793476/domains/germanscrews.com/public_html/wp-content/themes/astra/inc/addons/breadcrumbs/class-astra-breadcrumb-trail.php:1) in /home/u559793476/domains/germanscrews.com/public_html/wp-content/plugins/surerank/inc/sitemap/utils.php on line 135
https://germanscrews.com/post-type-page-sitemap-1.xml 2026-09-07T23:59:42+00:00 https://germanscrews.com/post-type-post-sitemap-1.xml 2026-09-07T23:59:42+00:00 https://germanscrews.com/post-type-sureforms_form-sitemap-1.xml 2026-09-07T23:59:42+00:00 https://germanscrews.com/taxonomy-type-category-sitemap-1.xml 2026-09-07T23:59:42+00:00