- Timestamp:
- 09/14/2023 11:23:59 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/inc/custom-header.php
r55420 r56583 152 152 } 153 153 endif; // twentyfourteen_admin_header_image() 154 155 156 if ( ! function_exists( 'twentyfourteen_header_image' ) ) : 157 /** 158 * Create the custom header image markup displayed. 159 * 160 * @see twentyfourteen_custom_header_setup() 161 * 162 * @since Twenty Fourteen 3.8 163 */ 164 function twentyfourteen_header_image() { 165 $custom_header = get_custom_header(); 166 $attrs = array( 167 'alt' => get_bloginfo( 'name', 'display' ), 168 'height' => $custom_header->height, 169 'width' => $custom_header->width, 170 ); 171 if ( function_exists( 'the_header_image_tag' ) ) { 172 the_header_image_tag( $attrs ); 173 return; 174 } 175 ?> 176 <img src="<?php header_image(); ?>" width="<?php echo esc_attr( $attrs['width'] ); ?>" height="<?php echo esc_attr( $attrs['height'] ); ?>" alt="<?php echo esc_attr( $attrs['alt'] ); ?>" /> 177 <?php 178 } 179 endif; // twentyfourteen_header_image()
Note: See TracChangeset
for help on using the changeset viewer.