- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/custom-header.php
r42343 r43571 37 37 */ 38 38 add_theme_support( 39 'custom-header', apply_filters( 40 'twentyfourteen_custom_header_args', array( 39 'custom-header', 40 apply_filters( 41 'twentyfourteen_custom_header_args', 42 array( 41 43 'default-text-color' => 'fff', 42 44 'width' => 1260, … … 72 74 // Has the text been hidden? 73 75 if ( ! display_header_text() ) : 74 ?>76 ?> 75 77 .site-title, 76 78 .site-description { … … 79 81 position: absolute; 80 82 } 81 <?php82 // If the user has set a custom color for the text, use that.83 <?php 84 // If the user has set a custom color for the text, use that. 83 85 elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) : 84 ?>86 ?> 85 87 .site-title a { 86 88 color: #<?php echo esc_attr( $text_color ); ?>; … … 88 90 <?php endif; ?> 89 91 </style> 90 <?php92 <?php 91 93 } 92 94 endif; // twentyfourteen_header_style … … 102 104 */ 103 105 function twentyfourteen_admin_header_style() { 104 ?>106 ?> 105 107 <style type="text/css" id="twentyfourteen-admin-header-css"> 106 108 .appearance_page_custom-header #headimg { … … 127 129 } 128 130 </style> 129 <?php131 <?php 130 132 } 131 133 endif; // twentyfourteen_admin_header_style … … 140 142 */ 141 143 function twentyfourteen_admin_header_image() { 142 ?>144 ?> 143 145 <div id="headimg"> 144 146 <?php if ( get_header_image() ) : ?> … … 147 149 <h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( sprintf( 'color: #%s;', get_header_textcolor() ) ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1> 148 150 </div> 149 <?php151 <?php 150 152 } 151 153 endif; // twentyfourteen_admin_header_image
Note: See TracChangeset
for help on using the changeset viewer.