| 1 |
<?php |
| 2 |
|
| 3 |
if(empty($_POST['team_hidden'])) |
| 4 |
{ |
| 5 |
$team_ribbons = get_option( 'team_ribbons' ); |
| 6 |
|
| 7 |
|
| 8 |
} |
| 9 |
else |
| 10 |
{ |
| 11 |
|
| 12 |
|
| 13 |
if($_POST['team_hidden'] == 'Y') { |
| 14 |
//Form data sent |
| 15 |
|
| 16 |
$team_ribbons = stripslashes_deep($_POST['team_ribbons']); |
| 17 |
update_option('team_ribbons', $team_ribbons); |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
?> |
| 24 |
<div class="updated"><p><strong><?php _e('Changes Saved.' ); ?></strong></p></div> |
| 25 |
|
| 26 |
<?php |
| 27 |
} |
| 28 |
} |
| 29 |
?> |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
<div class="wrap"> |
| 36 |
|
| 37 |
<div id="icon-tools" class="icon32"><br></div><?php echo "<h2>".__('team Settings')."</h2>";?> |
| 38 |
<form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"> |
| 39 |
<input type="hidden" name="team_hidden" value="Y"> |
| 40 |
<?php settings_fields( 'team_plugin_options' ); |
| 41 |
do_settings_sections( 'team_plugin_options' ); |
| 42 |
|
| 43 |
?> |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
<table class="form-table"> |
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
<tr valign="top"> |
| 55 |
<td style="vertical-align:middle;"> |
| 56 |
<strong>Ribbons</strong><br /><br /> |
| 57 |
<span style=" color:#22aa5d;font-size: 12px;">You can use your own ribbons icon by inserting ribbon url to text field, image size for ribbons must be same as 90px × 24px</span> |
| 58 |
<table> |
| 59 |
|
| 60 |
<tr> |
| 61 |
<td>Best</td> |
| 62 |
<td><img title="size - 90px * 24px " src="<?php if(empty($team_ribbons["best"])) echo team_plugin_url."css/ribbons/best.png"; else echo $team_ribbons["best"]; ?>" /></td> |
| 63 |
<td><input class="team_ribbons" size="50%" name="team_ribbons[best]" type="text" value="<?php if(empty($team_ribbons["best"])) echo team_plugin_url."css/ribbons/best.png"; else echo $team_ribbons["best"]; ?>" /></td> |
| 64 |
</tr> |
| 65 |
|
| 66 |
</table> |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
</td> |
| 72 |
</tr> |
| 73 |
</table> |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
<p class="submit"> |
| 81 |
<input class="button button-primary" type="submit" name="Submit" value="<?php _e('Save Changes' ) ?>" /> |
| 82 |
</p> |
| 83 |
</form> |
| 84 |
|
| 85 |
|
| 86 |
</div> |
| 87 |
|