HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/martyknows.com/wp-content/themes/next-saturday/inc/custom-header.php
<?php
/**
 * Sample implementation of the Custom Header feature
 * http://codex.wordpress.org/Custom_Headers
 *
 * You can add an optional custom header image to header.php like so ...

	<?php $header_image = get_header_image();
	if ( ! empty( $header_image ) ) { ?>
		<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
			<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
		</a>
	<?php } // if ( ! empty( $header_image ) ) ?>

 *
 * @package Next_Saturday
 */

/**
 * Setup the WordPress core custom header feature.
 *
 * @uses next_saturday_header_style()
 * @uses next_saturday_admin_header_style()
 * @uses next_saturday_admin_header_image()
 *
 * @package Next Saturday
 */
function next_saturday_custom_header_setup() {
	add_theme_support( 'custom-header', apply_filters( 'next_saturday_custom_header_args', array(
		'default-image'          => '',
		'default-text-color'     => 'f3d769',
		'width'                  => 615,
		'height'                 => 85,
		'wp-head-callback'       => 'next_saturday_header_style',
		'admin-head-callback'    => 'next_saturday_admin_header_style',
		'admin-preview-callback' => '',
	) ) );
}
add_action( 'after_setup_theme', 'next_saturday_custom_header_setup' );

if ( ! function_exists( 'next_saturday_header_style' ) ) :
/**
 * Styles the header image and text displayed on the blog
 *
 * @see next_saturday_custom_header_setup().
 */
function next_saturday_header_style() {
	$header_text_color = get_header_textcolor();

	// If no custom options for text are set, let's bail
	// get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value
	if ( HEADER_TEXTCOLOR == $header_text_color && '' == get_header_image() )
		return;

	// If we get this far, we have custom styles. Let's do this.
	?>
	<style type="text/css">
	<?php // Do we have a custom header image?
		if ( '' != get_header_image() ) :
	?>
		#site-title {
			margin: 0;
		}
		#title-wrapper {
			background: url(<?php header_image(); ?>) no-repeat;
			min-height: 85px;
			margin: auto 0;
			padding: 25px 0 0 10px;
			width: 615px;
		}
		<?php if ( is_rtl() ) { ?>
		#title-wrapper {
			padding-left: 0;
			text-align: center;
		}
		<?php }

		endif; // Has header image?

		// Has the text been hidden?
		if ( 'blank' == $header_text_color ) :
	?>
		#site-title {
			position: absolute !important;
			clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
			clip: rect(1px, 1px, 1px, 1px);
		}
	<?php
		// If the user has set a custom color for the text use that
		else :
	?>
		#site-title a {
			background: none !important;
			border: 0 !important;
			color: #<?php echo $header_text_color; ?> !important;
		}
	<?php endif; ?>
	</style>
	<?php
}
endif; // next_saturday_header_style

if ( ! function_exists( 'next_saturday_admin_header_style' ) ) :
/**
 * Styles the header image displayed on the Appearance > Header admin panel.
 *
 * @see next_saturday_custom_header_setup().
 */
function next_saturday_admin_header_style() {
	$header_text_color = get_header_textcolor();
?>
	<style type="text/css">
		.appearance_page_custom-header #headimg {
			background-color: #6ab690;
			border: none;
			height: auto !important;
			text-align: left;

		}
		#headimg h1 {
			font-family: Verdana, sans-serif;
			line-height: 69px;
			min-height: 85px;
			padding: 25px 0 25px 10px;
			width: 615px;
		}
		#headimg h1 a {
			color: #f3d769;
			display: block;
			font-size: 64px;
			font-weight: bold;
			text-decoration: none;
			text-shadow: 0 1px 0 #4d8c6d;
		}
		#desc {
			display: none;
		}
		<?php
			// If the user has set a custom color for the text use that
			if ( HEADER_TEXTCOLOR != $header_text_color ) :
		?>
			#site-title a {
				color: #<?php echo $header_text_color; ?>;
			}
		<?php endif; ?>
	</style>
<?php
}
endif; // next_saturday_admin_header_style