WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/28/11 19:01:51 (3 years ago)
Author:
lancewillett
Message:

Twenty Eleven: theme options - see #17198

  • Make color swatch clickable to open palette
  • Change color picker link to a submit button to match existing UI
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/inc/theme-options.php

    r17740 r17754  
    193193                        <fieldset><legend class="screen-reader-text"><span><?php _e( 'Link Color', 'twentyeleven' ); ?></span></legend> 
    194194                            <input type="text" name="twentyeleven_theme_options[link_color]" id="link-color" value="<?php echo esc_attr( $options['link_color'] ); ?>" /> 
    195                             <span id="link-color-example"></span> <a class="hide-if-no-js" href="#" id="pickcolor"><?php _e( 'Select a Color', 'twentyeleven' ); ?></a> 
     195                            <a href="#" class="pickcolor hide-if-no-js" id="link-color-example"></a> 
     196                            <input type="button" class="pickcolor button hide-if-no-js" value="<?php esc_attr_e( 'Select a Color', 'twentyeleven' ); ?>"> 
    196197                            <div id="colorPickerDiv" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div> 
    197198                            <br /> 
     
    284285 
    285286    $default_options = twentyeleven_get_default_theme_options(); 
    286      
     287 
    287288    // Don't do anything if the current link color is the default. 
    288289    if ( $default_options['link_color'] == $link_color ) 
Note: See TracChangeset for help on using the changeset viewer.