| @@ -1,26 +1,37 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { |
| 3 | 3 | header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'); |
| 4 | - exit("<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\r\n<html><head>\r\n<title>404 Not Found</title>\r\n</head><body>\r\n<h1>Not Found</h1>\r\n<p>The requested URL " . $_SERVER['SCRIPT_NAME'] . " was not found on this server.</p>\r\n</body></html>"); | |
| 4 | + exit("<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\r\n<html><head>\r\n<title>404 Not Found</title>\r\n". | |
| 5 | + "</head><body>\r\n<h1>Not Found</h1>\r\n<p>The requested URL " . $_SERVER['SCRIPT_NAME'] . " was not found on ". | |
| 6 | + "this server.</p>\r\n</body></html>"); | |
| 5 | 7 | } |
| 6 | 8 | ?> |
| 7 | 9 | <div class="wrap"> |
| 8 | -<form method="post" action="options.php"> | |
| 10 | +<form method="post" action="options.php"> | |
| 9 | 11 | <?php |
| 10 | -settings_fields( 'vdo_option-group' ); | |
| 11 | -do_settings_sections( 'vdo_option-group' ); | |
| 12 | +settings_fields('vdo_option-group'); | |
| 13 | +do_settings_sections('vdo_option-group'); | |
| 12 | 14 | ?> |
| 13 | - <h2>Please enter your VdoCipher CLIENT_SECRET_KEY</h2> | |
| 15 | + <h2>Please enter your VdoCipher API Secret Key</h2> | |
| 14 | 16 | |
| 15 | 17 | <table class="form-table"> |
| 16 | 18 | <tbody><tr> |
| 17 | - <td style="width: 160px;">VdoCipher secret key :</td> | |
| 19 | + <td style="width: 160px;">API Secret key :</td> | |
| 18 | 20 | <td> |
| 19 | - <input name="vdo_client_key" style="width: 400px;" value="<?php echo esc_attr( get_option('vdo_client_key') ); ?>" type="text"> | |
| 21 | + <div style="display: inline-flex;"> | |
| 22 | + <input id="vdo_client_key" name="vdo_client_key" style="width: 400px;" | |
| 23 | + value="<?php echo esc_attr(get_option('vdo_client_key')); ?>" | |
| 24 | + type="password"> | |
| 25 | + <p style="margin-left:20px; position: relative"> | |
| 26 | + <span id="toggle_span" style="display:none"><button id="toggle_API_visibility" href="#" data-protected="On"></button></span> | |
| 27 | + </p> | |
| 28 | + </div> | |
| 20 | 29 | </td> |
| 21 | 30 | </tr> |
| 22 | 31 | |
| 23 | 32 | </tbody></table> |
| 33 | +<?php wp_enqueue_script('vdo_hide_api_key', plugin_dir_url(__FILE__).'js/showkey.js'); | |
| 34 | + ?> | |
| 24 | 35 | <?php submit_button(); ?> |
| 25 | 36 | </form> |
| 26 | 37 | </div> |