Changeset 26668
- Timestamp:
- 12/05/2013 05:29:10 PM (11 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfourteen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/custom-header.php
r26619 r26668 56 56 */ 57 57 function twentyfourteen_header_style() { 58 $ header_text_color = get_header_textcolor();58 $text_color = get_header_textcolor(); 59 59 60 // If no custom options for text are set, let's bail 61 // $header_text_color options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value 62 if ( HEADER_TEXTCOLOR == $header_text_color ) 60 // If no custom color for text is set, let's bail. 61 if ( display_header_text() && $text_color === get_theme_support( 'custom-header', 'default-text-color' ) ) 63 62 return; 64 // If we get this far, we have custom styles. Let's do this. 63 64 // If we get this far, we have custom styles. 65 65 ?> 66 <style type="text/css" >66 <style type="text/css" id="twentyfourteen-header-css"> 67 67 <?php 68 68 // Has the text been hidden? 69 if ( 'blank' == $header_text_color) :69 if ( ! display_header_text() ) : 70 70 ?> 71 .site-title { 72 position: absolute !important; 73 clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 71 .site-title, 72 .site-description { 73 position: absolute; 74 clip: rect(1px 1px 1px 1px); /* IE7 */ 74 75 clip: rect(1px, 1px, 1px, 1px); 75 76 } 76 77 <?php 77 // If the user has set a custom color for the text use that78 else :78 // If the user has set a custom color for the text, use that. 79 elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) : 79 80 ?> 80 81 .site-title a { 81 color: #<?php echo $header_text_color; ?>;82 color: #<?php echo esc_attr( $text_color ); ?>; 82 83 } 83 84 <?php endif; ?> … … 98 99 function twentyfourteen_admin_header_style() { 99 100 ?> 100 <style type="text/css" >101 <style type="text/css" id="twentyfourteen-admin-header-css"> 101 102 .appearance_page_custom-header #headimg { 102 103 background-color: #000; -
trunk/src/wp-content/themes/twentyfourteen/js/customizer.js
r26591 r26668 20 20 value.bind( function( to ) { 21 21 if ( 'blank' === to ) { 22 $( '.site-title a, .site-description' ).css( {22 $( '.site-title, .site-description' ).css( { 23 23 'clip': 'rect(1px, 1px, 1px, 1px)', 24 24 'position': 'absolute' 25 25 } ); 26 26 } else { 27 $( '.site-title a, .site-description' ).css( {27 $( '.site-title, .site-description' ).css( { 28 28 'clip': 'auto', 29 'position': ' relative'29 'position': 'static' 30 30 } ); 31 31
Note: See TracChangeset
for help on using the changeset viewer.