- Timestamp:
- 09/14/2023 11:23:59 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwelve/inc/custom-header.php
r55420 r56583 167 167 <?php 168 168 } 169 170 171 /** 172 * Output markup to be displayed. 173 * 174 * @since Twenty Twelve 4.1 175 */ 176 function twentytwelve_header_image() { 177 $custom_header = get_custom_header(); 178 $attrs = array( 179 'alt' => get_bloginfo( 'name', 'display' ), 180 'class' => 'header-image', 181 'height' => $custom_header->height, 182 'width' => $custom_header->width, 183 ); 184 185 if ( function_exists( 'the_header_image_tag' ) ) { 186 the_header_image_tag( $attrs ); 187 return; 188 } 189 ?> 190 <img src="<?php header_image(); ?>" class="<?php echo esc_attr( $attrs['class'] ); ?>" width="<?php echo esc_attr( $attrs['width'] ); ?>" height="<?php echo esc_attr( $attrs['height'] ); ?>" alt="<?php echo esc_attr( $attrs['alt'] ); ?>" /> 191 <?php 192 }
Note: See TracChangeset
for help on using the changeset viewer.