Ticket #24128: 24128.diff
| File 24128.diff, 4.8 KB (added by , 13 years ago) |
|---|
-
wp-content/themes/twentyeleven/header.php
46 46 47 47 ?></title> 48 48 <link rel="profile" href="http://gmpg.org/xfn/11" /> 49 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?> " />49 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>?v=20130419" /> 50 50 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 51 51 <!--[if lt IE 9]> 52 52 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> … … 113 113 <?php endif; // end check for removed header image ?> 114 114 115 115 <?php 116 // Has the text been hidden? 117 if ( 'blank' == get_header_textcolor() ) : 116 $search_classes = array(); 117 118 if ( $header_image ) 119 $search_classes[] = 'with-image'; 120 121 if ( 'blank' == get_header_textcolor() ) 122 $search_classes[] = 'only-search'; 123 124 $search_classes = implode( ' ', $search_classes ); 118 125 ?> 119 <div class="only-search<?php if ( $header_image ) : ?> with-image<?php endif; ?>">126 <div class="<?php echo esc_attr( $search_classes ); ?>"> 120 127 <?php get_search_form(); ?> 121 </div> 122 <?php 123 else : 124 ?> 125 <?php get_search_form(); ?> 126 <?php endif; ?> 128 </div> 127 129 128 130 <nav id="access" role="navigation"> 129 131 <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3> -
wp-content/themes/twentyeleven/functions.php
231 231 ?> 232 232 #site-title, 233 233 #site-description { 234 position: absolute !important;234 position: absolute; 235 235 clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 236 236 clip: rect(1px, 1px, 1px, 1px); 237 237 } -
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 var $branding = $( '#branding' ), 16 $header = $branding.find( '#site-title, #site-title a, #site-description' ), 17 $search = $branding.find( '#searchform' ); 18 19 value.bind( function( to ) { 20 if ( 'blank' === to ) { 21 $header.hide(); 22 $header.css( { 23 'clip': 'rect(1px, 1px, 1px, 1px)', 24 'position': 'absolute' 25 } ); 26 $search.parent().addClass('only-search'); 27 } else { 28 $header.css( { 29 'clip': 'auto', 30 'color': to, 31 'position': 'relative' 32 } ); 33 $search.parent().removeClass('only-search'); 34 } 35 } ); 36 } ); 12 37 } )( jQuery ); 38 No newline at end of file -
wp-content/themes/twentyeleven/inc/theme-options.php
454 454 function twentyeleven_customize_register( $wp_customize ) { 455 455 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 456 456 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 457 $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; 457 458 458 459 $options = twentyeleven_get_theme_options(); 459 460 $defaults = twentyeleven_get_default_theme_options(); … … 526 527 * @since Twenty Eleven 1.3 527 528 */ 528 529 function twentyeleven_customize_preview_js() { 529 wp_enqueue_script( 'twentyeleven-customizer', get_template_directory_uri() . '/inc/theme-customizer.js', array( 'customize-preview' ), '201 20523', true );530 wp_enqueue_script( 'twentyeleven-customizer', get_template_directory_uri() . '/inc/theme-customizer.js', array( 'customize-preview' ), '20130419', true ); 530 531 } 531 532 add_action( 'customize_preview_init', 'twentyeleven_customize_preview_js' ); 533 No newline at end of file -
wp-content/themes/twentyeleven/style.css
681 681 #branding .only-search #s:focus { 682 682 background-color: #bbb; 683 683 } 684 #branding . with-image #searchform {684 #branding .only-search.with-image #searchform { 685 685 top: auto; 686 686 bottom: -27px; 687 687 max-width: 195px; 688 688 } 689 #branding .only-search + #access div {689 #branding .only-search + #access div ul { 690 690 padding-right: 205px; 691 691 } 692 692