| 294 | | echo '<div class="available-headers">'; |
| 295 | | foreach ( $headers as $header_key => $header ) { |
| 296 | | $header_thumbnail = $header['thumbnail_url']; |
| 297 | | $header_url = $header['url']; |
| 298 | | $header_alt_text = empty( $header['alt_text'] ) ? '' : $header['alt_text']; |
| 299 | | echo '<div class="default-header">'; |
| 300 | | echo '<label><input name="default-header" type="radio" value="' . esc_attr( $header_key ) . '" ' . checked( $header_url, get_theme_mod( 'header_image' ), false ) . ' />'; |
| 301 | | $width = ''; |
| 302 | | if ( ! empty( $header['attachment_id'] ) ) { |
| 303 | | $width = ' width="230"'; |
| | 293 | echo '<div class="available-headers">'; |
| | 294 | foreach ( $headers as $header_key => $header ) { |
| | 295 | $header_thumbnail = $header['thumbnail_url']; |
| | 296 | $header_url = $header['url']; |
| | 297 | $header_alt_text = empty( $header['alt_text'] ) ? '' : $header['alt_text']; |
| | 298 | echo '<div class="default-header">'; |
| | 299 | echo '<label><input name="default-header" type="radio" value="' . esc_attr( $header_key ) . '" ' . checked( $header_url, get_theme_mod( 'header_image' ), false ) . ' />'; |
| | 300 | $width = ''; |
| | 301 | if ( ! empty( $header['attachment_id'] ) ) { |
| | 302 | $width = ' width="230"'; |
| | 303 | } |
| | 304 | echo '<img src="' . set_url_scheme( $header_thumbnail ) . '" alt="' . esc_attr( $header_alt_text ) . '"' . $width . ' /></label>'; |
| | 305 | echo '</div>'; |