$shopid,); $content = assistant_api_call('/getShopData', $data,'get'); if(empty($accessibility_url)) { update_option('accessibility_url',sanitize_text_field($content['data']['url'])); } if(isset($_POST['btnAdd'])) { if ( ! isset( $_POST['accessibility_nonce'] ) || ! wp_verify_nonce( $_POST['accessibility_nonce'], 'accessibility_nonce' ) ) { print 'Sorry, You can not update....'; exit; } else { $widget_enable =0; $position = $paddingrangeInput = $backgroundcolor = $fontcolor = $iconcolor = $keybaord_nav = $curson = $big_curson = $reading_guide = $desaturate = $contrast = $invert_contrast = $dark_contrast = $light_contrast= $bigger_text = $highlight_links = $reset_all = ""; $error = array(); $jsChecked = "off"; if(isset($_POST['jsChecked'])) { $widget_enable = sanitize_text_field($_POST['jsChecked']); if ($widget_enable == 1) { $jsChecked = "on"; } } $position = sanitize_text_field($_POST['position']); if(empty($position)){ $error[] = "Position shoud not empty."; } $paddingrangeInput = sanitize_text_field($_POST['bottom_padding']); //if(is_numeric($paddingrangeInput)){ $error[] = "Padding shoud be number."; } $backgroundcolor = sanitize_hex_color($_POST['backgroundcolor']); if(empty($backgroundcolor)){ $error[] = "Background Color shoud not empty."; } $fontcolor = sanitize_hex_color($_POST['fontcolor']); if(empty($fontcolor)){ $error[] = "Front Color shoud not empty."; } $iconcolor = sanitize_hex_color($_POST['iconcolor']); if(empty($iconcolor)){ $error[] = "Icon Color shoud not empty."; } $keybaord_nav = sanitize_text_field($_POST['keybaord_nav']); if(empty($keybaord_nav)){ $error[] = "Keybaord shoud not empty."; } $curson = sanitize_text_field($_POST['curson']); if(empty($curson)){ $error[] = "Cursor shoud not empty."; } $big_curson = sanitize_text_field($_POST['big_curson']); if(empty($big_curson)){ $error[] = "Big Cursor shoud not empty."; } $reading_guide = sanitize_text_field($_POST['reading_guide']);if(empty($reading_guide)){ $error[] = "Reading Guide Color shoud not empty."; } $desaturate = sanitize_text_field($_POST['desaturate']);if(empty($desaturate)){ $error[] = "Desaturate shoud not empty."; } $contrast = sanitize_text_field($_POST['contrast']);if(empty($contrast)){ $error[] = "Contrast shoud not empty."; } $invert_contrast = sanitize_text_field($_POST['invert_contrast']);if(empty($invert_contrast)){ $error[] = "Invert Colors shoud not empty."; } $dark_contrast = sanitize_text_field($_POST['dark_contrast']);if(empty($dark_contrast)){ $error[] = "Dark Contrast shoud not empty."; } $light_contrast = sanitize_text_field($_POST['light_contrast']);if(empty($light_contrast)){ $error[] = "Light Contrast shoud not empty."; } $bigger_text = sanitize_text_field($_POST['bigger_text']);if(empty($bigger_text)){ $error[] = "Bigger Text shoud not empty."; } $highlight_links = sanitize_text_field($_POST['highlight_links']);if(empty($highlight_links)){ $error[] = "Highlight Links shoud not empty."; } $reset_all = sanitize_text_field($_POST['reset_all']);if(empty($reset_all)){ $error[] = "Reset all shoud not empty."; } if($backgroundcolor == $iconcolor ) { $error[] = "Background Color and Icon Color should not same."; } if(empty($error)) { $send_data = array( 'shopid' => $shopid, 'position' => $position, 'jsChecked' => $jsChecked, 'backgroundcolor' => $backgroundcolor, 'fontcolor' => $fontcolor, 'iconcolor' => $iconcolor, 'bottom_padding' => $paddingrangeInput, 'keybaord_nav' => $keybaord_nav, 'curson' => $curson, 'big_curson' => $big_curson, 'reading_guide' => $reading_guide, 'desaturate' => $desaturate, 'contrast' => $contrast, 'invert_contrast' => $invert_contrast, 'dark_contrast' => $dark_contrast, 'light_contrast' => $light_contrast, 'bigger_text' => $bigger_text, 'highlight_links' => $highlight_links, 'reset_all' => $reset_all, ); }else{ echo '
× Error! '; foreach($error as $err) { echo ' '.$err.', ' ; } echo '
'; } $returnsenddata = assistant_api_call('/updateShopData', $send_data,'post'); if($returnsenddata['status'] == 200){ echo '
× Success!
'; $data = array('shopid' => $returnsenddata['data']['shopid'],); $content = assistant_api_call('/getShopData', $data,'get'); }else{ echo '
× Error! '; echo $returnsenddata['messages']; echo '
'; } } } ?>

Widget Optinon

0
step=1 list="numbers" oninput="amount.value=rangeInput.value" class="form-control" />
This will be only Works on Position for "Bottom Left" and "Bottom Right"

Color Schema


Text Schema

Preview