Changeset 17754
- Timestamp:
- 04/28/2011 07:01:51 PM (12 years ago)
- Location:
- trunk/wp-content/themes/twentyeleven/inc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/inc/theme-options.css
r17737 r17754 22 22 } 23 23 #link-color-example { 24 padding: 4px 14px;25 margin: 0 7px 0 3px;26 24 -moz-border-radius: 4px; 27 -khtml-border-radius: 4px;28 25 -webkit-border-radius: 4px; 29 26 border-radius: 4px; 30 27 border: 1px solid #dfdfdf; 28 margin: 0 7px 0 3px; 29 padding: 4px 14px; 31 30 } -
trunk/wp-content/themes/twentyeleven/inc/theme-options.js
r17737 r17754 6 6 $('#link-color').val(a); 7 7 $('#link-color-example').css('background-color', a); 8 } 8 }; 9 9 10 10 $(document).ready( function() { … … 13 13 pickColor( $('#link-color').val() ); 14 14 15 $(' #pickcolor').click( function(e) {15 $('.pickcolor').click( function(e) { 16 16 $('#colorPickerDiv').show(); 17 17 e.preventDefault(); -
trunk/wp-content/themes/twentyeleven/inc/theme-options.php
r17740 r17754 193 193 <fieldset><legend class="screen-reader-text"><span><?php _e( 'Link Color', 'twentyeleven' ); ?></span></legend> 194 194 <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' ); ?>"> 196 197 <div id="colorPickerDiv" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div> 197 198 <br /> … … 284 285 285 286 $default_options = twentyeleven_get_default_theme_options(); 286 287 287 288 // Don't do anything if the current link color is the default. 288 289 if ( $default_options['link_color'] == $link_color )
Note: See TracChangeset
for help on using the changeset viewer.