| @@ -1,8 +1,10 @@ | ||
| 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 | 10 | <h2>VdoCipher Options</h2> |
| @@ -8,40 +10,46 @@ | ||
| 8 | 10 | <h2>VdoCipher Options</h2> |
| 9 | 11 | |
| 10 | 12 | <form method="post" action="options.php"> |
| 11 | 13 | <?php |
| 12 | -settings_fields( 'vdo_option-group' ); | |
| 13 | -do_settings_sections( 'vdo_option-group' ); | |
| 14 | +settings_fields('vdo_option-group'); | |
| 15 | +do_settings_sections('vdo_option-group'); | |
| 14 | 16 | ?> |
| 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> | |
| 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> | |
| 18 | 20 | <table class="form-table"> |
| 19 | 21 | <tr valign="top"> |
| 20 | 22 | <th scope="row">Client Secret Key</th> |
| 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> | |
| 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> | |
| 22 | 26 | </tr> |
| 23 | 27 | |
| 24 | 28 | <tr valign="top"> |
| 25 | 29 | <th scope="row">Default Width</th> |
| 26 | - <td><input type="text" name="vdo_default_width" value="<?php echo esc_attr( get_option('vdo_default_width') ); ?>" /></td> | |
| 30 | + <td><input type="text" name="vdo_default_width" | |
| 31 | + value="<?php echo esc_attr(get_option('vdo_default_width')); ?>" | |
| 32 | + /></td> | |
| 27 | 33 | </tr> |
| 28 | 34 | |
| 29 | 35 | <tr valign="top"> |
| 30 | 36 | <th scope="row">Default Height</th> |
| 31 | - <td><input type="text" name="vdo_default_height" value="<?php echo esc_attr( get_option('vdo_default_height') ); ?>" /></td> | |
| 37 | + <td><input type="text" name="vdo_default_height" | |
| 38 | + value="<?php echo esc_attr(get_option('vdo_default_height')); ?>" | |
| 39 | + /></td> | |
| 32 | 40 | </tr> |
| 33 | 41 | |
| 34 | 42 | <tr valign="top"> |
| 35 | 43 | <th scope="row">Annotation Statement</th> |
| 36 | 44 | <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> | |
| 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</p> | |
| 51 | + </td> | |
| 44 | 52 | </tr> |
| 45 | 53 | </table> |
| 46 | 54 | <?php submit_button(); ?> |
| 47 | 55 | </form> |