| @@ -19,12 +19,21 @@ | ||
| 19 | 19 | <p><strong>Status : </strong> Ready to use. You can now embed your videos inside posts and pages.</p> |
| 20 | 20 | </div> |
| 21 | 21 | <table class="form-table"> |
| 22 | 22 | <tr valign="top"> |
| 23 | - <th scope="row">Client Secret Key</th> | |
| 24 | - <td><input type="text" name="vdo_client_key" | |
| 23 | + <th scope="row">API Secret Key</th> | |
| 24 | + <td> | |
| 25 | + <div style="display: inline-flex;"> | |
| 26 | + <input type="password" name="vdo_client_key" | |
| 25 | 27 | value="<?php echo esc_attr(get_option('vdo_client_key')); ?>" |
| 26 | - max-length="64" style="width: 640px" id="vdo_client_key" /></td> | |
| 28 | + max-length="64" style="width: 640px" id="vdo_client_key" /> | |
| 29 | + <p style="margin-left:20px; position: relative"> | |
| 30 | + <span id="toggle_span"> | |
| 31 | + <button id="toggle_API_visibility" href="#" data-protected="On">Show API Secret Key</button> | |
| 32 | + </span> | |
| 33 | + </p> | |
| 34 | + </div> | |
| 35 | + </td> | |
| 27 | 36 | </tr> |
| 28 | 37 | |
| 29 | 38 | <tr valign="top"> |
| 30 | 39 | <th scope="row">Default Width</th> |
| @@ -42,9 +51,9 @@ | ||
| 42 | 51 | |
| 43 | 52 | <!-- Version Number --> |
| 44 | 53 | <?php |
| 45 | 54 | if ((get_option('vdo_embed_version')) == false) { |
| 46 | - update_option('vdo_embed_version', '1.6.4'); | |
| 55 | + update_option('vdo_embed_version', VDOCIPHER_PLAYER_VERSION); | |
| 47 | 56 | } |
| 48 | 57 | ?> |
| 49 | 58 | <tr valign="top"> |
| 50 | 59 | <th scope="row">Player Version</th> |
| @@ -52,13 +61,13 @@ | ||
| 52 | 61 | <div style="display: inline-flex"> |
| 53 | 62 | <select id="vdo_embed_version"> |
| 54 | 63 | <?php |
| 55 | 64 | $vdo_embed_version_vars = array( |
| 56 | - '0.5', '1.0.0', '1.1.0', '1.1.3', '1.2.7', '1.3.3', '1.4.5','1.5.0','1.6.4' | |
| 65 | + '0.5', '1.0.0', '1.1.0', '1.1.3', '1.2.7', '1.3.3', '1.4.5','1.5.0','1.6.4','1.6.10' | |
| 57 | 66 | ); |
| 58 | - $vdo_embed_version_str = get_option('vdo_embed_version'); | |
| 67 | + $vdo_embed_version_string = get_option('vdo_embed_version'); | |
| 59 | 68 | foreach ($vdo_embed_version_vars as $vdo_embed_version_var) { |
| 60 | - if ($vdo_embed_version_str == $vdo_embed_version_var) { | |
| 69 | + if ($vdo_embed_version_string == $vdo_embed_version_var) { | |
| 61 | 70 | $selected = 'selected'; |
| 62 | 71 | } else { |
| 63 | 72 | $selected = ''; |
| 64 | 73 | } |
| @@ -65,9 +74,9 @@ | ||
| 65 | 74 | switch ($vdo_embed_version_var) { |
| 66 | 75 | case '0.5': |
| 67 | 76 | $version_old_new = ' (old player)'; |
| 68 | 77 | break; |
| 69 | - case '1.6.4': | |
| 78 | + case VDOCIPHER_PLAYER_VERSION: | |
| 70 | 79 | $version_old_new = ' (newest player)' ; |
| 71 | 80 | break; |
| 72 | 81 | default: |
| 73 | 82 | $version_old_new = ' (new player)'; |
| @@ -72,9 +81,9 @@ | ||
| 72 | 81 | default: |
| 73 | 82 | $version_old_new = ' (new player)'; |
| 74 | 83 | break; |
| 75 | 84 | } |
| 76 | - ?> | |
| 85 | + ?> | |
| 77 | 86 | <option value="<?php echo $vdo_embed_version_var; ?>" <?php echo $selected; ?> > |
| 78 | 87 | <?php echo $vdo_embed_version_var . $version_old_new ; ?> |
| 79 | 88 | </option> |
| 80 | 89 | <?php } ?> |
| @@ -91,9 +100,9 @@ | ||
| 91 | 100 | </tr> |
| 92 | 101 | |
| 93 | 102 | <!-- Player Theme Options --> |
| 94 | 103 | <?php |
| 95 | - if ((get_option('vdo_player_theme')) == false) { | |
| 104 | + if (!(get_option('vdo_player_theme'))) { | |
| 96 | 105 | update_option('vdo_player_theme', '9ae8bbe8dd964ddc9bdb932cca1cb59a'); |
| 97 | 106 | } |
| 98 | 107 | ?> |
| 99 | 108 | <tr valign="top"> |
| @@ -98,14 +107,25 @@ | ||
| 98 | 107 | ?> |
| 99 | 108 | <tr valign="top"> |
| 100 | 109 | <th scope="row">Player Theme</th> |
| 101 | 110 | <td> |
| 102 | - <input type="text" name="vdo_player_theme" | |
| 103 | - value="<?php echo esc_attr(get_option('vdo_player_theme')); ?>" max-length = "32" style="width: 320px" | |
| 111 | + <div style="display:inline-flex; margin-bottom:10px;"> | |
| 112 | + <input | |
| 113 | + type="text" | |
| 114 | + name="vdo_player_theme" | |
| 115 | + value="<?php echo esc_attr(get_option('vdo_player_theme')); ?>" | |
| 116 | + max-length = "32" | |
| 117 | + style="width: 320px" | |
| 118 | + readonly | |
| 104 | 119 | /> |
| 120 | + <p style="margin-left:20px; position: relative"> | |
| 121 | + <span><a href="<?php menu_page_url('themesvdo', 1); ?> " >Select Custom Player Theme</a><br/> | |
| 122 | + </p> | |
| 123 | + </div> | |
| 105 | 124 | <p class="description"> |
| 106 | 125 | Player theme is not available for old player version(0.5). The default theme will be applied for old player. |
| 107 | 126 | </p> |
| 127 | + | |
| 108 | 128 | </td> |
| 109 | 129 | </tr> |
| 110 | 130 | <!-- Player Theme Options end--> |
| 111 | 131 | |
| @@ -113,12 +133,12 @@ | ||
| 113 | 133 | <tr id="vdo_watermark_html_flash" valign="top"> |
| 114 | 134 | <th scope="row"> Choice of Watermark </th> |
| 115 | 135 | <td> |
| 116 | 136 | <?php |
| 117 | - if ((get_option(vdo_watermark_flash_html) == 'html5')) { | |
| 137 | + if ((get_option('vdo_watermark_flash_html') == 'html5')) { | |
| 118 | 138 | $vdocheckedhtml5 = 'checked'; |
| 119 | 139 | $vdocheckedflash = ''; |
| 120 | - } elseif ((get_option(vdo_watermark_flash_html) == 'flash')) { | |
| 140 | + } elseif ((get_option('vdo_watermark_flash_html') == 'flash')) { | |
| 121 | 141 | $vdocheckedhtml5 = ''; |
| 122 | 142 | $vdocheckedflash = 'checked'; |
| 123 | 143 | } |
| 124 | 144 | ?> |
| @@ -133,10 +153,8 @@ | ||
| 133 | 153 | <label for="vdo_flash">Flash (Hard-Coded)</label> |
| 134 | 154 | </td> |
| 135 | 155 | </tr> |
| 136 | 156 | <!-- Player Watermark option - Flash/ HTML5 ends --> |
| 137 | - | |
| 138 | - | |
| 139 | 157 | <tr valign="top"> |
| 140 | 158 | <th scope="row">Annotation Statement</th> |
| 141 | 159 | <td> |
| 142 | 160 | <div style="display: inline-flex;"> |
| @@ -164,8 +182,15 @@ | ||
| 164 | 182 | </a> |
| 165 | 183 | </p> |
| 166 | 184 | </td> |
| 167 | 185 | </tr> |
| 186 | + <tr style="display:none;"> | |
| 187 | + <td>Plugin version no.: </td> | |
| 188 | + <td><input | |
| 189 | + id="vdo_plugin_version" name="vdo_plugin_version" | |
| 190 | + value="<?php echo esc_attr(get_option('vdo_plugin_version')); ?>" readonly> | |
| 191 | + </td> | |
| 192 | + </tr> | |
| 168 | 193 | </table> |
| 169 | 194 | <?php |
| 170 | 195 | wp_enqueue_script('vdo_validate_watermark', plugin_dir_url(__FILE__).'js/validatewatermark.js'); |
| 171 | 196 | wp_localize_script('vdo_validate_watermark', 'vdoValidateWatermark', array( |
| @@ -171,11 +196,12 @@ | ||
| 171 | 196 | wp_localize_script('vdo_validate_watermark', 'vdoValidateWatermark', array( |
| 172 | 197 | 'vdoWatermark' => $vdo_annotation_code |
| 173 | 198 | )); |
| 174 | 199 | wp_enqueue_script('vdo_html_flash_choice', plugin_dir_url(__FILE__).'js/flashhtml5choice.js'); |
| 200 | + wp_enqueue_script('vdo_hide_key', plugin_dir_url(__FILE__).'js/showkey.js'); | |
| 175 | 201 | wp_localize_script('vdo_html_flash_choice', 'vdoVD', array( |
| 176 | 202 | 'vdoAV' => $vdo_embed_version_vars, |
| 177 | - 'vdoSV' => $vdo_embed_version_str | |
| 203 | + 'vdoSV' => $vdo_embed_version_string | |
| 178 | 204 | )); |
| 179 | 205 | ?> |
| 180 | 206 | <?php submit_button(); ?> |
| 181 | 207 | </form> |