Changeset 22030 for trunk/wp-admin/custom-background.php
- Timestamp:
- 09/27/2012 01:57:38 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-background.php
r21944 r22030 109 109 wp_enqueue_script('media-upload'); 110 110 wp_enqueue_script('custom-background'); 111 wp_enqueue_style(' farbtastic');111 wp_enqueue_style('wp-color-picker'); 112 112 } 113 113 … … 328 328 <th scope="row"><?php _e( 'Background Color' ); ?></th> 329 329 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Color' ); ?></span></legend> 330 <?php $show_clear = get_theme_mod('background_color') ? '' : ' style="display:none"'; ?> 331 <input type="text" name="background-color" id="background-color" value="#<?php echo esc_attr(get_background_color()) ?>" /> 332 <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 current_theme_supports( 'custom-background', 'default-color' ) ? _e( 'Default' ) : _e( 'Clear' ); ?></a>)</span> 333 <input type="hidden" id="defaultcolor" value="<?php if ( current_theme_supports( 'custom-background', 'default-color' ) ) echo '#' . esc_attr( get_theme_support( 'custom-background', 'default-color' ) ); ?>" /> 334 <div id="colorPickerDiv" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div> 330 <?php 331 $default_color = ''; 332 if ( current_theme_supports( 'custom-background', 'default-color' ) ) 333 $default_color = ' data-default-color="#' . esc_attr( get_theme_support( 'custom-background', 'default-color' ) ) . '"'; 334 ?> 335 <input type="text" name="background-color" id="background-color" value="#<?php echo esc_attr( get_background_color() ); ?>"<?php echo $default_color ?> /> 335 336 </fieldset></td> 336 337 </tr>
Note: See TracChangeset
for help on using the changeset viewer.