$display_button_checkbox, 'background_color' => $background_color, 'button_width' => $button_width, 'button_height' => $button_height, 'button_movment' => $button_movment, 'horizontal_position' => $horizontal_position, 'horizontal_spacing' => $horizontal_spacing, 'vertical_position' => $vertical_position, 'vertical_spacing' => $vertical_spacing, 'icon_image_url' => $icon_image_url, 'hide_on_mobile_checkbox' => $hide_on_mobile_checkbox, 'hide_on_desktop_checkbox' => $hide_on_desktop_checkbox, 'mobile_width' => $mobile_width, 'mobile_button_position_checkbox' => $mobile_button_position_checkbox, 'mobile_horizontal_position' => $mobile_horizontal_position, 'mobile_horizontal_spacing' => $mobile_horizontal_spacing, 'mobile_vertical_position' => $mobile_vertical_position, 'mobile_vertical_spacing' => $mobile_vertical_spacing, 'accessibility_background_color' => $accessibility_background_color, 'accessibility_page_url' => $accessibility_page_url, 'accessibility_page_text' => $accessibility_page_text, 'z_index' => $z_index, 'exclude_option' => $exclude_option, 'exclude_ids' => $exclude_ids, ); // $creating_data_array = array( // ---------------------------------------------- // creating a value with all the array data // ---------------------------------------------- $array_key_name = ''; $array_item_value = ''; foreach($plugin_data_array as $key=>$item) { $array_key_name .= "####" . $key; $array_item_value .= "####" . $item; } // foreach($medical_form_array as $key=>$item) { // ---------------------------------------------- // inserting all the data to datbase // ---------------------------------------------- $plugin_data = $array_key_name . "***" . $array_item_value; $plugin_data = sanitize_text_field($plugin_data); // update optuon on the database into wp_options update_option($wp_options_name, $plugin_data); $success_message = "The data was updated successfully"; } else { // if( wp_verify_nonce($_POST['yydev_accessibility_nonce'], 'yydev_accessibility_action') ) { $error_message = "Form nonce was incorrect"; } // } else { // if( wp_verify_nonce($_POST['yydev_accessibility_nonce'], 'yydev_accessibility_action') ) { } // if( isset($_POST['yydev_accessibility_nonce']) ) { // ======================================================================================================== // Get all the data and ouput it into the page // ======================================================================================================== $getting_plugin_data = get_option($wp_options_name); if( !empty($getting_plugin_data) ) { // ---------------------------------------------- // breaking the string into to 2 variables. the array namd and vakue // ---------------------------------------------- $break_array = explode("***", $getting_plugin_data); $item_name = explode("####", $break_array[0]); $key_name = explode("####", $break_array[1]); $array_count = count($key_name); // ---------------------------------------------- // creating an organized array with all values // ---------------------------------------------- for($count_number = 0; $count_number < $array_count; $count_number++) { $plugin_data_array[ $item_name[$count_number] ] = $key_name[$count_number]; } // for($count_number = 0; $count_number < $array_count; $count_number++) { } // if( !empty($getting_plugin_data) ) { ?>
Below you will be able to edit and make change to the accessibility icon output:
Note: You can stop changes to elements on the site by adding the class no-accessibility to it