Ticket #24128: 24128.4.diff
| File 24128.4.diff, 3.1 KB (added by , 11 years ago) |
|---|
-
wp-content/themes/twentyeleven/functions.php
251 251 ?> 252 252 #site-title, 253 253 #site-description { 254 position: absolute !important;254 position: absolute; 255 255 clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 256 256 clip: rect(1px, 1px, 1px, 1px); 257 257 } … … 261 261 ?> 262 262 #site-title a, 263 263 #site-description { 264 color: #<?php echo $text_color; ?> !important;264 color: #<?php echo $text_color; ?>; 265 265 } 266 266 <?php endif; ?> 267 267 </style> -
wp-content/themes/twentyeleven/inc/theme-customizer.js
9 9 $( '#site-description' ).text( to ); 10 10 } ); 11 11 } ); 12 13 // Header text color 14 wp.customize( 'header_textcolor', function( value ) { 15 value.bind( function( to ) { 16 if ( 'blank' === to ) { 17 $( '#site-title, #site-title a, #site-description' ).css( { 18 'clip': 'rect(1px, 1px, 1px, 1px)', 19 'position': 'absolute' 20 } ); 21 } else { 22 $( '#site-title, #site-title a, #site-description' ).css( { 23 'clip': 'auto', 24 'color': to, 25 'position': 'relative' 26 } ); 27 } 28 } ); 29 } ); 12 30 } )( jQuery ); 31 No newline at end of file -
wp-content/themes/twentyeleven/inc/theme-options.php
508 508 function twentyeleven_customize_register( $wp_customize ) { 509 509 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 510 510 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 511 $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 511 512 512 513 $options = twentyeleven_get_theme_options(); 513 514 $defaults = twentyeleven_get_default_theme_options(); … … 581 582 * @since Twenty Eleven 1.3 582 583 */ 583 584 function twentyeleven_customize_preview_js() { 584 wp_enqueue_script( 'twentyeleven-customizer', get_template_directory_uri() . '/inc/theme-customizer.js', array( 'customize-preview' ), '201 20523', true );585 wp_enqueue_script( 'twentyeleven-customizer', get_template_directory_uri() . '/inc/theme-customizer.js', array( 'customize-preview' ), '20150401', true ); 585 586 } 586 587 add_action( 'customize_preview_init', 'twentyeleven_customize_preview_js' ); 588 No newline at end of file -
wp-content/themes/twentyeleven/style.css
2452 2452 #access ul { 2453 2453 font-size: 12px; 2454 2454 } 2455 #branding .only-search + #access div { 2456 padding-right: 0; 2457 } 2455 2458 article.intro .entry-content { 2456 2459 font-size: 12px; 2457 2460 }