public function show_header_selector( $type = 'default'
) { if ( 'default' ===
$type ) { $headers =
$this->default_headers;
} else { $headers =
get_uploaded_header_images();
$type = 'uploaded';
} if ( 1 <
count( $headers ) ) { echo '<div class="random-header">';
echo '<label><input name="default-header" type="radio" value="random-' .
$type . '-image"' .
checked( is_random_header_image( $type ), true, false
) . ' />';
_e( '<strong>Random:</strong> Show a different image on each page.'
);
echo '</label>';
echo '</div>';
} echo '<div class="available-headers">';
foreach ( $headers as $header_key =>
$header ) { $header_thumbnail =
$header['thumbnail_url'
];
$header_url =
$header['url'
];
$header_alt_text =
empty( $header['alt_text'
] ) ? '' :
$header['alt_text'
];