Only show the admin colour scheme picker if there is more than one theme to pick from. Fixes #7399.

git-svn-id: https://develop.svn.wordpress.org/trunk@8461 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-07-26 07:54:02 +00:00
parent 8867258f87
commit 3f76f09b36

View File

@ -173,6 +173,7 @@ include ('admin-header.php');
<td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', $profileuser->rich_editing); ?> /> <?php _e('Use the visual editor when writing'); ?></label></td> <td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', $profileuser->rich_editing); ?> /> <?php _e('Use the visual editor when writing'); ?></label></td>
</tr> </tr>
<?php endif; ?> <?php endif; ?>
<?php if (count($_wp_admin_css_colors) > 1 ) : ?>
<tr> <tr>
<th scope="row"><?php _e('Admin Color Scheme')?></th> <th scope="row"><?php _e('Admin Color Scheme')?></th>
<td><fieldset><legend class="hidden"><?php _e('Admin Color Scheme')?></legend> <td><fieldset><legend class="hidden"><?php _e('Admin Color Scheme')?></legend>
@ -184,8 +185,7 @@ foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
<div class="color-option"><input name="admin_color" id="admin_color_<?php echo $color; ?>" type="radio" value="<?php echo $color ?>" class="tog" <?php checked($color, $current_color); ?> /> <div class="color-option"><input name="admin_color" id="admin_color_<?php echo $color; ?>" type="radio" value="<?php echo $color ?>" class="tog" <?php checked($color, $current_color); ?> />
<table class="color-palette"> <table class="color-palette">
<tr> <tr>
<?php <?php foreach ( $color_info->colors as $html_color ): ?>
foreach ( $color_info->colors as $html_color ): ?>
<td style="background-color: <?php echo $html_color ?>" title="<?php echo $color ?>">&nbsp;</td> <td style="background-color: <?php echo $html_color ?>" title="<?php echo $color ?>">&nbsp;</td>
<?php endforeach; ?> <?php endforeach; ?>
</tr> </tr>
@ -193,12 +193,12 @@ foreach ( $_wp_admin_css_colors as $color => $color_info ): ?>
<label for="admin_color_<?php echo $color; ?>"><?php echo $color_info->name ?></label> <label for="admin_color_<?php echo $color; ?>"><?php echo $color_info->name ?></label>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
</fieldset></td> </fieldset></td>
</tr> </tr>
</table> </table>
<?php endif;
<?php
if ( $is_profile_page ) { if ( $is_profile_page ) {
do_action('profile_personal_options'); do_action('profile_personal_options');
} }