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/contempt/functions.php
<?php
/**
 * @package WordPress
 * @subpackage Contempt
 */

$themecolors = array(
	'bg' => 'ffffff',
	'text' => '333333',
	'link' => '0066cc',
	'border' => '5581C0',
	'url' => '114477',
);

$content_width = 450;

add_theme_support( 'automatic-feed-links' );

add_custom_background();

add_theme_support( 'print-style' );

define('HEADER_TEXTCOLOR', 'E5F2E9');
define('HEADER_IMAGE', '%s/images/blue_flower/head.jpg'); // %s is theme dir uri
define('HEADER_IMAGE_WIDTH', 750);
define('HEADER_IMAGE_HEIGHT', 140);

function header_style() {
?>
<style type="text/css">
#headerimg{
	background: url(<?php header_image() ?>) no-repeat;
}
<?php if ( 'blank' == get_header_textcolor() ) { ?>
#header h1, #header .description {
	display: none;
}
<?php } else { ?>
#header h1 a, .description {
	color:#<?php header_textcolor() ?>;
}
<?php } ?>
</style>
<?php
}

function contempt_admin_header_style() {
?>
<style type="text/css">
#headimg{
	background: url(<?php header_image() ?>) no-repeat;
	background-repeat: no-repeat;
	height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
	width:<?php echo HEADER_IMAGE_WIDTH; ?>px;
	font-family: 'Trebuchet MS','Lucida Grande',Verdana,Arial,Sans-Serif
}
#headimg h1{
font-family: 'Trebuchet MS','Lucida Grande',Verdana,Arial,Sans-Serif;
font-size: 40px;
font-weight: bold;
padding-top: 40px;
text-align: center;
margin: 0;
}
#headimg h1 a{
	color:#<?php header_textcolor() ?>;
	text-decoration: none;
	border-bottom: none;
}
#headimg #desc{
	color:#<?php header_textcolor() ?>;
font-size: 12px;
margin-top: -5px;
text-align: center;
}

<?php if ( 'blank' == get_header_textcolor() ) { ?>
#headimg h1, #headimg #desc {
	display: none;
}
#headimg h1 a, #headimg #desc {
	color:#<?php echo HEADER_TEXTCOLOR ?>;
}
<?php } ?>

</style>
<?php
}

add_custom_image_header('header_style', 'contempt_admin_header_style');

if ( function_exists('register_sidebars') )
	register_sidebars(1);

// Header navigation menu
register_nav_menus( array(
	'primary' => __( 'Primary Navigation', 'contempt' ),
) );

function contempt_page_menu() { // fallback for primary navigation ?>
<ul id="pagebar" class="menu" style="background: url(<?php bloginfo('stylesheet_directory'); ?>/images/blue_flower/pagebar.jpg);">
	<li class="page_item<?php if ( is_home() ) { echo ' current_page_item'; } ?>"><a href="<?php echo home_url( '/' ); ?>"><?php _e( 'Home', 'contempt' ); ?></a></li>
	<?php wp_list_pages( 'depth=1&title_li=' ); ?>
</ul>
<?php } ?>