Make WordPress Core


Ignore:
Timestamp:
05/12/2011 03:31:01 AM (15 years ago)
Author:
nacin
Message:

Add clear to custom background color field. props lancewillett for initial patch. fixes #15755.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-background.php

    r17793 r17886  
    295295<th scope="row"><?php _e( 'Color' ); ?></th>
    296296<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Color' ); ?></span></legend>
     297<?php $show_clear = get_background_color() ? '' : ' style="display:none"'; ?>
    297298<input type="text" name="background-color" id="background-color" value="#<?php echo esc_attr(get_background_color()) ?>" />
    298 <a class="hide-if-no-js" href="#" id="pickcolor"><?php _e('Select a Color'); ?></a>
     299<a class="hide-if-no-js" href="#" id="pickcolor"><?php _e('Select a Color'); ?></a> <span <?php echo $show_clear; ?>class="hide-if-no-js" id="clearcolor"> (<a href="#"><?php _e( 'Clear' ); ?></a>)</span>
    299300<div id="colorPickerDiv" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div>
    300301</fieldset></td>
Note: See TracChangeset for help on using the changeset viewer.