| @@ -42,15 +42,15 @@ | ||
| 42 | 42 | |
| 43 | 43 | <!-- Version Number --> |
| 44 | 44 | <?php |
| 45 | 45 | if ((get_option('vdo_embed_version')) == false) { |
| 46 | - update_option('vdo_embed_version', '1.5.0'); | |
| 46 | + update_option('vdo_embed_version', '0.5'); | |
| 47 | 47 | } |
| 48 | 48 | ?> |
| 49 | 49 | <tr valign="top"> |
| 50 | 50 | <th scope="row">Player Version</th> |
| 51 | 51 | <td> |
| 52 | - <?php $vdo_embed_version_vars = array('0.5', '1.0.0', '1.1.0', '1.1.3', '1.2.7', '1.3.3', '1.4.5','1.5.0'); ?> | |
| 52 | + <?php $vdo_embed_version_vars = array('0.5', '1.0.0', '1.1.0', '1.1.3', '1.2.7', '1.3.3', '1.4.4'); ?> | |
| 53 | 53 | <select name="vdo_embed_version" id="vdo_embed_version"> |
| 54 | 54 | <?php |
| 55 | 55 | $vdo_embed_version_str = get_option('vdo_embed_version'); |
| 56 | 56 | ?> |
| @@ -61,12 +61,10 @@ | ||
| 61 | 61 | else { $selected = ''; } |
| 62 | 62 | |
| 63 | 63 | if($vdo_embed_version_var === '0.5') { |
| 64 | 64 | $version_old_new = ' (old player)' ; } |
| 65 | - elseif ($vdo_embed_version_var === '1.5.0'){ | |
| 66 | - $version_old_new = ' (newest player)' ; } | |
| 67 | - else { | |
| 68 | - $version_old_new = ' (new player)' ; } | |
| 65 | + else { | |
| 66 | + $version_old_new = ' (new player)' ; } | |
| 69 | 67 | ?> |
| 70 | 68 | <option value="<?php echo $vdo_embed_version_var; ?>" <?php echo $selected; ?> > |
| 71 | 69 | <?php echo $vdo_embed_version_var . $version_old_new ; ?> |
| 72 | 70 | </option> |
| @@ -71,9 +69,8 @@ | ||
| 71 | 69 | <?php echo $vdo_embed_version_var . $version_old_new ; ?> |
| 72 | 70 | </option> |
| 73 | 71 | <?php } ?> |
| 74 | 72 | </select> |
| 75 | - <p class="description">It is recommended that you use the latest player version for best video playback.</p> | |
| 76 | 73 | </td> |
| 77 | 74 | </tr> |
| 78 | 75 | |
| 79 | 76 | <!-- Player Theme Options --> |
| @@ -94,34 +91,16 @@ | ||
| 94 | 91 | |
| 95 | 92 | <tr valign="top"> |
| 96 | 93 | <th scope="row">Annotation Statement</th> |
| 97 | 94 | <td> |
| 98 | - <div style="display: inline-flex;"> | |
| 99 | - <textarea name="vdo_annotate_code" id="vdo_watermarkjson" type="textarea" rows="6" cols="55" style="display: float-left"> <?php | |
| 95 | + <textarea name="vdo_annotate_code" type="textarea" rows="5" cols="60"><?php | |
| 100 | 96 | if (get_option('vdo_annotate_code') != "") { |
| 101 | - echo get_option('vdo_annotate_code'); | |
| 102 | - $vdo_annotation_code = get_option('vdo_annotate_code'); | |
| 103 | - } | |
| 104 | - ?> | |
| 105 | - </textarea> | |
| 106 | - <p class="description" style="margin-left:20px; position: relative"> | |
| 107 | - <span style="color:purple"><b>Sample Code for Dynamic Watermark</b></span><br/> | |
| 108 | - [{'type':'rtext', 'text':' {name}', 'alpha':'0.60', 'color':'0xFF0000','size':'17','interval':'5000'}] <br/> | |
| 109 | - <span style="color:purple"><b>Sample Code for Static Watermark</b></span><br/> | |
| 110 | - [{'type':'text', 'text':'{ip}', 'alpha':'0.5' , 'x':'10', 'y':'100', 'color':'0xFF0000', 'size':'12'}] <br/> | |
| 111 | - </p> | |
| 112 | - </div> | |
| 113 | - <p class="description" id="vdojsonvalidator"></p> | |
| 114 | - <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> | |
| 97 | + echo get_option('vdo_annotate_code'); | |
| 98 | + } | |
| 99 | + ?></textarea> | |
| 100 | + <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> | |
| 115 | 101 | </td> |
| 116 | 102 | </tr> |
| 117 | 103 | </table> |
| 118 | - <?php | |
| 119 | - wp_enqueue_script('vdo_change_player_version',plugin_dir_url(__FILE__).'js/validatewatermark.js'); | |
| 120 | - wp_localize_script('vdo_change_player_version', 'vdoVersionData', array( | |
| 121 | - 'vdoWatermark' => $vdo_annotation_code | |
| 122 | - ) | |
| 123 | - ); | |
| 124 | - ?> | |
| 125 | 104 | <?php submit_button(); ?> |
| 126 | 105 | </form> |
| 127 | 106 | </div> |