HEX
Server: Apache
System: Linux pdx1-shared-a1-31 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: dh_5jabqq (6436002)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/dh_5jabqq/bermudashipwreckarchive.com/wp-content/themes/accelerate/inc/custom-header.php
<?php
/**
 * Implements a custom header for Accelerate.
 * See http://codex.wordpress.org/Custom_Headers
 *
 * @package    ThemeGrill
 * @subpackage Accelerate
 * @since      Accelerate 1.0
 */

/**
 * Setup the WordPress core custom header feature.
 */
function accelerate_custom_header_setup() {
	add_theme_support( 'custom-header', apply_filters( 'accelerate_custom_header_args', array(
		'default-image'          => '',
		'header-text'            => '',
		'default-text-color'     => '',
		'width'                  => 1100,
		'height'                 => 300,
		'flex-width'             => true,
		'flex-height'            => true,
		'video'                  => true,
		'wp-head-callback'       => '',
		'admin-head-callback'    => '',
		'admin-preview-callback' => 'accelerate_admin_header_image',
	) ) );
}

add_action( 'after_setup_theme', 'accelerate_custom_header_setup' );

if ( ! function_exists( 'accelerate_admin_header_image' ) ) :
	/**
	 * Custom header image markup displayed on the Appearance > Header admin panel.
	 */
	function accelerate_admin_header_image() {
		?>
		<div id="headimg">
			<?php if ( function_exists( 'the_custom_header_markup' ) ) {
				the_custom_header_markup();
			} else {
				if ( get_header_image() ) : ?>
					<img src="<?php header_image(); ?>" alt="<?php bloginfo( 'name' ); ?>">
				<?php endif;
			} ?>
		</div>
		<?php
	}
endif; // accelerate_admin_header_image