| @@ -1,10 +1,8 @@ | ||
| 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". | |
| 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>"); | |
| 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>"); | |
| 7 | 5 | } |
| 8 | 6 | ?> |
| 9 | 7 | <div class="wrap"> |
| 10 | 8 | <h2>VdoCipher Options</h2> |
| @@ -10,46 +8,40 @@ | ||
| 10 | 8 | <h2>VdoCipher Options</h2> |
| 11 | 9 | |
| 12 | 10 | <form method="post" action="options.php"> |
| 13 | 11 | <?php |
| 14 | -settings_fields('vdo_option-group'); | |
| 15 | -do_settings_sections('vdo_option-group'); | |
| 12 | +settings_fields( 'vdo_option-group' ); | |
| 13 | +do_settings_sections( 'vdo_option-group' ); | |
| 16 | 14 | ?> |
| 17 | - <div class="updated"> | |
| 18 | - <p><strong>Status : </strong> Ready to use. You can now embed your videos inside posts and pages.</p> | |
| 19 | - </div> | |
| 15 | + <div class="updated"> | |
| 16 | + <p><strong>Status : </strong> Ready to use. You can now embed your videos inside posts and pages.</p> | |
| 17 | + </div> | |
| 20 | 18 | <table class="form-table"> |
| 21 | 19 | <tr valign="top"> |
| 22 | 20 | <th scope="row">Client Secret Key</th> |
| 23 | - <td><input type="text" name="vdo_client_key" | |
| 24 | - value="<?php echo esc_attr(get_option('vdo_client_key')); ?>" | |
| 25 | - max-length="64" size="60" id="vdo_client_key" /></td> | |
| 21 | + <td><input type="text" name="vdo_client_key" value="<?php echo esc_attr( get_option('vdo_client_key') ); ?>" max-length="64" size="60" id="vdo_client_key" /></td> | |
| 26 | 22 | </tr> |
| 27 | 23 | |
| 28 | 24 | <tr valign="top"> |
| 29 | 25 | <th scope="row">Default Width</th> |
| 30 | - <td><input type="text" name="vdo_default_width" | |
| 31 | - value="<?php echo esc_attr(get_option('vdo_default_width')); ?>" | |
| 32 | - /></td> | |
| 26 | + <td><input type="text" name="vdo_default_width" value="<?php echo esc_attr( get_option('vdo_default_width') ); ?>" /></td> | |
| 33 | 27 | </tr> |
| 34 | 28 | |
| 35 | 29 | <tr valign="top"> |
| 36 | 30 | <th scope="row">Default Height</th> |
| 37 | - <td><input type="text" name="vdo_default_height" | |
| 38 | - value="<?php echo esc_attr(get_option('vdo_default_height')); ?>" | |
| 39 | - /></td> | |
| 31 | + <td><input type="text" name="vdo_default_height" value="<?php echo esc_attr( get_option('vdo_default_height') ); ?>" /></td> | |
| 40 | 32 | </tr> |
| 41 | 33 | |
| 42 | 34 | <tr valign="top"> |
| 43 | 35 | <th scope="row">Annotation Statement</th> |
| 44 | 36 | <td> |
| 45 | - <textarea name="vdo_annotate_code" type="textarea" rows="5" cols="60"><?php | |
| 46 | - if (get_option('vdo_annotate_code') != "") { | |
| 47 | - echo get_option('vdo_annotate_code'); | |
| 48 | - } | |
| 49 | - ?></textarea> | |
| 50 | - <p class="description">Leave this text blank in case you do not need watermark over all Videos. For details on writing the annotation code <a href="https://www.vdocipher.com/blog/2014/12/add-text-to-videos-with-watermark/" target="_blank">check this out</a></p> | |
| 51 | - </td> | |
| 37 | + <textarea name="vdo_annotate_code" type="textarea" rows="5" cols="60"><?php | |
| 38 | + if (get_option(vdo_annotate_code) != "") { | |
| 39 | + echo get_option(vdo_annotate_code); | |
| 40 | + } | |
| 41 | + ?></textarea> | |
| 42 | + <p class="description">Leave this text blank in case you do not need watermark over all Videos</p> | |
| 43 | + </td> | |
| 52 | 44 | </tr> |
| 53 | 45 | </table> |
| 54 | 46 | <?php submit_button(); ?> |
| 55 | 47 | </form> |