term_id); $location_descriptions = []; foreach ($location_names as $location_name) { $location_descriptions[] = $location_name; } $location_string = implode(', ', $location_descriptions); $menu_location_pairs[$menu->name] = $menu->name . (empty($location_string) ? '' : " (Location: $location_string)"); } // Check if the form has been submitted and handle the general settings if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['bame1-general-settings-nonce'])) { if (wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['bame1-general-settings-nonce'])), 'bame1-general-settings-save')) { if (isset($_POST['ampro_primary'])) { // Update the option with the sanitized menu name update_option('ampro_primary', sanitize_text_field($_POST['ampro_primary'])); $settings_updated = true; } } } if ($settings_updated) { echo '

Settings updated.

'; } // HTML form for general settings ?>

General Settings

Description

Accessibility Menu Pro replaces the standard menus in your WordPress theme with an American Disabilities Association (ADA) AA-compliant menu. All HTML semantics are compliant with accessibility standards, ensuring that your site is more accessible to users with disabilities.

Features

Setup

  1. If you haven't done so already, create your menu(s) using the default WordPress menu editor (Dashboard > Appearance > Menus or click here'; ?>).
  2. Select your primary navigation menu below. The primary/main navigation menu usually appears at the top of your website on every page. This is the menu that will show when users tap the Menu button on mobile devices.
  3. Once saved, go to the Appearance & Style tab to configure your menu(s).
  4. If this is a fresh install, you must "Save Changes" on the Appearance & Style tab to initialize menu correctly (even if you don't make any changes).
'; echo ''; echo ''; echo ''; // Add the null/empty/unset radio button echo '
'; foreach ($menu_location_pairs as $menu_name => $menu_description) { echo '
'; } echo ''; echo ''; echo ''; ?>