diff --git a/admin/class-divi-accessibility-admin.php b/admin/class-divi-accessibility-admin.php
index 28a3db6..76b3536 100755
--- a/admin/class-divi-accessibility-admin.php
+++ b/admin/class-divi-accessibility-admin.php
@@ -163,21 +163,21 @@ public function display_options_page() {
public static function get_options_list() {
$options = array(
- 'aria_support' => 1,
- 'dropdown_keyboard_navigation' => 1,
- 'fix_labels' => 1,
- 'focusable_modules' => 1,
- 'keyboard_navigation_outline' => 1,
- 'outline_color' => '#2ea3f2',
- 'screen_reader_text' => 1,
- 'skip_navigation_link' => 1,
- 'aria_hidden_icons' => 1,
- 'aria_mobile_menu' => 1,
- 'fix_duplicate_menu_ids' => 1,
- 'underline_urls' => 0,
- 'underline_urls_not_title' => 0,
- 'tota11y' => 0,
- 'developer_mode' => 0,
+ 'aria_support' => 1,
+ 'dropdown_keyboard_navigation' => 1,
+ 'fix_labels' => 1,
+ 'focusable_modules' => 1,
+ 'keyboard_navigation_outline' => 1,
+ 'outline_color' => '#2ea3f2',
+ 'screen_reader_text' => 1,
+ 'skip_navigation_link' => 1,
+ 'aria_hidden_icons' => 1,
+ 'aria_mobile_menu' => 1,
+ 'fix_duplicate_menu_ids' => 1,
+ 'underline_urls' => 0,
+ 'underline_urls_not_title' => 0,
+ 'tota11y' => 0,
+ 'developer_mode' => 0,
);
return $options;
@@ -210,196 +210,196 @@ public function register_settings() {
// ARIA support.
add_settings_field(
- $this->da11y . '_aria_support',
+ $this->da11y . '_aria_support',
__( 'ARIA support', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'aria_support',
- 'label_for' => $this->da11y . '_aria_support',
- 'label_text' => __( 'Add appropriate ARIA attributes across Divi elements & modules.', 'divi-accessibility' ),
- 'label_subtext' => '',
+ 'name' => 'aria_support',
+ 'label_for' => $this->da11y . '_aria_support',
+ 'label_text' => __( 'Add appropriate ARIA attributes across Divi elements & modules.', 'divi-accessibility' ),
+ 'label_subtext' => '',
)
);
// Dropdown keyboard navigation.
add_settings_field(
- $this->da11y . '_dropdown_keyboard_navigation',
+ $this->da11y . '_dropdown_keyboard_navigation',
__( 'Dropdown keyboard navigation', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'dropdown_keyboard_navigation',
- 'label_for' => $this->da11y . '_dropdown_keyboard_navigation',
- 'label_text' => __( 'Allow easier navigation of Divi dropdown menus with the keyboard.', 'divi-accessibility' ),
- 'label_subtext' => '',
+ 'name' => 'dropdown_keyboard_navigation',
+ 'label_for' => $this->da11y . '_dropdown_keyboard_navigation',
+ 'label_text' => __( 'Allow easier navigation of Divi dropdown menus with the keyboard.', 'divi-accessibility' ),
+ 'label_subtext' => '',
)
);
// Fix labels.
add_settings_field(
- $this->da11y . '_fix_labels',
+ $this->da11y . '_fix_labels',
__( 'Fix labels', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'fix_labels',
- 'label_for' => $this->da11y . '_fix_labels',
- 'label_text' => __( 'Fix missing labels & incorrect or missing assignments to their corresponding inputs.', 'divi-accessibility' ),
- 'label_subtext' => '',
+ 'name' => 'fix_labels',
+ 'label_for' => $this->da11y . '_fix_labels',
+ 'label_text' => __( 'Fix missing labels & incorrect or missing assignments to their corresponding inputs.', 'divi-accessibility' ),
+ 'label_subtext' => '',
)
);
// Focusable modules.
add_settings_field(
- $this->da11y . '_focusable_modules',
+ $this->da11y . '_focusable_modules',
__( 'Focusable modules', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'focusable_modules',
- 'label_for' => $this->da11y . '_focusable_modules',
- 'label_text' => __( 'Allow Divi modules such as Toggle & Accordion to be focusable with keyboard navigation. Hitting enter will open/close when focused.', 'divi-accessibility' ),
- 'label_subtext' => '',
+ 'name' => 'focusable_modules',
+ 'label_for' => $this->da11y . '_focusable_modules',
+ 'label_text' => __( 'Allow Divi modules such as Toggle & Accordion to be focusable with keyboard navigation. Hitting enter will open/close when focused.', 'divi-accessibility' ),
+ 'label_subtext' => '',
)
);
// Keyboard navigation outline.
add_settings_field(
- $this->da11y . '_keyboard_navigation_outline',
+ $this->da11y . '_keyboard_navigation_outline',
__( 'Keyboard navigation outline', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'keyboard_navigation_outline',
- 'label_for' => $this->da11y . '_keyboard_navigation_outline',
- 'label_text' => __( 'Add an outline to focused elements when navigation with the keyboard.', 'divi-accessibility' ),
- 'label_subtext' => '',
+ 'name' => 'keyboard_navigation_outline',
+ 'label_for' => $this->da11y . '_keyboard_navigation_outline',
+ 'label_text' => __( 'Add an outline to focused elements when navigation with the keyboard.', 'divi-accessibility' ),
+ 'label_subtext' => '',
)
);
// Outline color.
add_settings_field(
- $this->da11y . '_outline_color',
+ $this->da11y . '_outline_color',
__( 'Outline color', 'divi-accessibility' ),
array( $this, 'divi_accessibility_color_picker_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'outline_color',
- 'label_for' => $this->da11y . '_outline_color',
- 'label_text' => '',
- 'label_subtext' => __( 'Keyboard navigation outline', 'divi-accessibility' ),
+ 'name' => 'outline_color',
+ 'label_for' => $this->da11y . '_outline_color',
+ 'label_text' => '',
+ 'label_subtext' => __( 'Keyboard navigation outline', 'divi-accessibility' ),
)
);
// Screen reader text.
add_settings_field(
- $this->da11y . '_screen_reader_text',
+ $this->da11y . '_screen_reader_text',
__( 'Screen reader text', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'screen_reader_text',
- 'label_for' => $this->da11y . '_screen_reader_text',
- 'label_text' => __( 'Add plugin screen reader class used on certain labels & reverses Divi incorrectly applying display: none; on its own screen reader classes.', 'divi-accessibility' ),
- 'label_subtext' => '',
+ 'name' => 'screen_reader_text',
+ 'label_for' => $this->da11y . '_screen_reader_text',
+ 'label_text' => __( 'Add plugin screen reader class used on certain labels & reverses Divi incorrectly applying display: none; on its own screen reader classes.', 'divi-accessibility' ),
+ 'label_subtext' => '',
)
);
// Skip navigation link.
add_settings_field(
- $this->da11y . '_skip_navigation_link',
+ $this->da11y . '_skip_navigation_link',
__( 'Skip navigation link', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'skip_navigation_link',
- 'label_for' => $this->da11y . '_skip_navigation_link',
- 'label_text' => __( 'Allow user to skip over Divi navigation when using keyboard and go straight to content.', 'divi-accessibility' ),
- 'label_subtext' => __( 'Requires screen reader text option to be on', 'divi-accessibility' ),
+ 'name' => 'skip_navigation_link',
+ 'label_for' => $this->da11y . '_skip_navigation_link',
+ 'label_text' => __( 'Allow user to skip over Divi navigation when using keyboard and go straight to content.', 'divi-accessibility' ),
+ 'label_subtext' => __( 'Requires screen reader text option to be on', 'divi-accessibility' ),
)
);
// Aria-hidden on icons.
add_settings_field(
- $this->da11y . '_aria_hidden_icons',
+ $this->da11y . '_aria_hidden_icons',
__( 'Hide icons', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'aria_hidden_icons',
- 'label_for' => $this->da11y . '_aria_hidden_icons',
- 'label_text' => __( 'Hide all icons to screen readers so text is read normally.', 'divi-accessibility' ),
- 'label_subtext' => __( 'This may not work for all icons', 'divi-accessibility' ),
+ 'name' => 'aria_hidden_icons',
+ 'label_for' => $this->da11y . '_aria_hidden_icons',
+ 'label_text' => __( 'Hide all icons to screen readers so text is read normally.', 'divi-accessibility' ),
+ 'label_subtext' => __( 'This may not work for all icons', 'divi-accessibility' ),
)
);
// Aria support for mobile menu.
add_settings_field(
- $this->da11y . '_aria_mobile_menu',
+ $this->da11y . '_aria_mobile_menu',
__( 'Aria support for mobile menu', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'aria_mobile_menu',
- 'label_for' => $this->da11y . '_aria_mobile_menu',
- 'label_text' => __( 'Apply Aria attributes to the mobile (burger) menu to make it accessible.', 'divi-accessibility' ),
- 'label_subtext' => '',
+ 'name' => 'aria_mobile_menu',
+ 'label_for' => $this->da11y . '_aria_mobile_menu',
+ 'label_text' => __( 'Apply Aria attributes to the mobile (burger) menu to make it accessible.', 'divi-accessibility' ),
+ 'label_subtext' => '',
)
);
// Fix duplicate menu ids.
add_settings_field(
- $this->da11y . '_fix_duplicate_menu_ids',
+ $this->da11y . '_fix_duplicate_menu_ids',
__( 'Fix duplicate menu ids', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'fix_duplicate_menu_ids',
- 'label_for' => $this->da11y . '_fix_duplicate_menu_ids',
- 'label_text' => __( 'Because Divi uses the same menu twice (Once for the primary menu and again for the mobile menu), the unique ID\'s are duplicated causing validation issues. This option prevents WordPress from adding a unique ID to the menu list items.', 'divi-accessibility' ),
- 'label_subtext' => '',
+ 'name' => 'fix_duplicate_menu_ids',
+ 'label_for' => $this->da11y . '_fix_duplicate_menu_ids',
+ 'label_text' => __( 'Because Divi uses the same menu twice (Once for the primary menu and again for the mobile menu), the unique ID\'s are duplicated causing validation issues. This option prevents WordPress from adding a unique ID to the menu list items.', 'divi-accessibility' ),
+ 'label_subtext' => '',
)
);
// Add underline to all links in #et-main-area
add_settings_field(
- $this->da11y . '_underline_urls',
+ $this->da11y . '_underline_urls',
__( 'Underline URLs', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'underline_urls',
- 'label_for' => $this->da11y . '_underline_urls',
- 'label_text' => __( 'Easily find out URLs when they are underlined' ),
- 'label_subtext' => '',
+ 'name' => 'underline_urls',
+ 'label_for' => $this->da11y . '_underline_urls',
+ 'label_text' => __( 'Easily find out URLs when they are underlined' ),
+ 'label_subtext' => '',
)
);
// Remove underline from .entry-title
add_settings_field(
- $this->da11y . '_underline_urls_not_title',
+ $this->da11y . '_underline_urls_not_title',
__( 'Exclude underlines from titles and buttons', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$general_section,
array(
- 'name' => 'underline_urls_not_title',
- 'label_for' => $this->da11y . '_underline_urls_not_title',
- 'label_text' => __( 'If you don\'t like title, headings or buttons to be underlined you can disable it from here' ),
- 'label_subtext' => '',
+ 'name' => 'underline_urls_not_title',
+ 'label_for' => $this->da11y . '_underline_urls_not_title',
+ 'label_text' => __( 'If you don\'t like title, headings or buttons to be underlined you can disable it from here' ),
+ 'label_subtext' => '',
)
);
@@ -413,31 +413,31 @@ public function register_settings() {
// Tota11y.
add_settings_field(
- $this->da11y . '_tota11y',
+ $this->da11y . '_tota11y',
__( 'Tota11y', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$tools_section,
array(
- 'name' => 'tota11y',
- 'label_for' => $this->da11y . '_tota11y',
- 'label_text' => __( 'Add a small button to the bottom corner of site to visualize how your site performs with assistive technology.', 'divi-accessibility' ),
- 'label_subtext' => __( 'Admin users only', 'divi-accessibility' ),
+ 'name' => 'tota11y',
+ 'label_for' => $this->da11y . '_tota11y',
+ 'label_text' => __( 'Add a small button to the bottom corner of site to visualize how your site performs with assistive technology.', 'divi-accessibility' ),
+ 'label_subtext' => __( 'Admin users only', 'divi-accessibility' ),
)
);
// Developer mode.
add_settings_field(
- $this->da11y . '_developer_mode',
+ $this->da11y . '_developer_mode',
__( 'Developer mode', 'divi-accessibility' ),
array( $this, 'divi_accessibility_checkbox_cb' ),
$this->da11y,
$tools_section,
array(
- 'name' => 'developer_mode',
- 'label_for' => $this->da11y . '_developer_mode',
- 'label_text' => __( 'Log plugin info to console.', 'divi-accessibility' ),
- 'label_subtext' => __( 'Admin users only', 'divi-accessibility' ),
+ 'name' => 'developer_mode',
+ 'label_for' => $this->da11y . '_developer_mode',
+ 'label_text' => __( 'Log plugin info to console.', 'divi-accessibility' ),
+ 'label_subtext' => __( 'Admin users only', 'divi-accessibility' ),
)
);
@@ -531,10 +531,10 @@ public function divi_accessibility_checkbox_cb( $arg ) {
@@ -572,11 +572,11 @@ public function divi_accessibility_color_picker_cb( $arg ) {