| @@ -41,9 +41,9 @@ | ||
| 41 | 41 | </tr> |
| 42 | 42 | |
| 43 | 43 | <!-- Version Number --> |
| 44 | 44 | <?php |
| 45 | - if ((get_option('vdo_embed_version')) == false) { | |
| 45 | + if (empty(get_option('vdo_embed_version'))) { | |
| 46 | 46 | update_option('vdo_embed_version', '0.5'); |
| 47 | 47 | } |
| 48 | 48 | ?> |
| 49 | 49 | <tr valign="top"> |
| @@ -48,9 +48,9 @@ | ||
| 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'); ?> | |
| 52 | + <?php $vdo_embed_version_vars = array('0.5', '1.0.0'); ?> | |
| 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 | ?> |
| @@ -59,12 +59,13 @@ | ||
| 59 | 59 | if ($vdo_embed_version_str == $vdo_embed_version_var) { |
| 60 | 60 | $selected = 'selected="selected"'; } |
| 61 | 61 | else { $selected = ''; } |
| 62 | 62 | |
| 63 | - if($vdo_embed_version_var === '0.5') { | |
| 63 | + if($vdo_embed_version_var == '0.5') { | |
| 64 | 64 | $version_old_new = ' (old player)' ; } |
| 65 | - else { | |
| 65 | + elseif ($vdo_embed_version_var == '1.0.0') { | |
| 66 | 66 | $version_old_new = ' (new player)' ; } |
| 67 | + else {'' ; } | |
| 67 | 68 | ?> |
| 68 | 69 | <option value="<?php echo $vdo_embed_version_var; ?>" <?php echo $selected; ?> > |
| 69 | 70 | <?php echo $vdo_embed_version_var . $version_old_new ; ?> |
| 70 | 71 | </option> |
| @@ -74,9 +75,9 @@ | ||
| 74 | 75 | </tr> |
| 75 | 76 | |
| 76 | 77 | <!-- Player Theme Options --> |
| 77 | 78 | <?php |
| 78 | - if ((get_option('vdo_player_theme')) == false) { | |
| 79 | + if (empty(get_option('vdo_player_theme'))) { | |
| 79 | 80 | update_option('vdo_player_theme','9ae8bbe8dd964ddc9bdb932cca1cb59a'); |
| 80 | 81 | } |
| 81 | 82 | ?> |
| 82 | 83 | <tr valign="top"> |