/**
     * Styles the header image and text displayed on the blog
     *
     * @see elegant_grunge_custom_header_setup().
     *
     */
    function elegant_grunge_header_style()
    {
        ?>

	<style type="text/css">
	<?php 
        if ('blank' != get_header_textcolor()) {
            ?>
		#header div a,
		#header h1,
		#header h2,
		#blog-description {
			color: #<?php 
            header_textcolor();
            ?>
;
		}
	<?php 
        } else {
            ?>
		#header h1,
		#header h2,
		#blog-description {
			display: none;
		}
	<?php 
        }
        ?>
	</style>
<?php 
    }
Example #2
0
    function SLUG_custom_header()
    {
        ?>
<style type="text/css">
            #branding {
                background: url(<?php 
        header_image();
        ?>
);
            }
                
            #branding, #branding a, #branding a:hover {
                color: #<?php 
        header_textcolor();
        ?>
 !important;
            }
            #branding a:hover {
                text-decoration: none; 
            }
            #description { 
                filter: alpha(opacity=60);
                opacity: 0.6;
            }
        
        </style><?php 
    }
Example #3
0
function header_style()
{
    ?>

<style type="text/css">
#header{
background: url(<?php 
    header_image();
    ?>
)  no-repeat;
height: <?php 
    echo HEADER_IMAGE_HEIGHT;
    ?>
px;
width: <?php 
    echo HEADER_IMAGE_WIDTH;
    ?>
px;
}
#header h1 a{color:#<?php 
    header_textcolor();
    ?>
;}
</style>
<?php 
}
Example #4
0
    function oulipo_header_style()
    {
        ?>
    <style type="text/css">
        span.header_image { background: url(<?php 
        header_image();
        ?>
) no-repeat;
                  width: <?php 
        echo HEADER_IMAGE_WIDTH;
        ?>
px;
                  height: <?php 
        echo HEADER_IMAGE_HEIGHT;
        ?>
px;
                  display: block;
                  margin-bottom: 30px;
                 }
        #main_nav h1.masthead a { color:#<?php 
        header_textcolor();
        ?>
; }
    </style><?php 
    }
/**
 * Styling included at the top of the site page for a custom header.
 * 
 * @author StudioPress
 */
function prose_custom_header_style()
{
    if (get_header_image()) {
        ?>
<!-- custom-header styling --><style type="text/css">
#header{background:url(<?php 
        header_image();
        ?>
) scroll no-repeat 0 0;}
<?php 
        if (get_theme_mod('header_textcolor') && get_theme_mod('header_textcolor') != 'blank') {
            ?>
#title-area #title a, #title-area #title a:hover{color:#<?php 
            header_textcolor();
            ?>
;}
#title-area #description{color: #<?php 
            header_textcolor();
            ?>
;}
<?php 
        }
        ?>
</style>
<?php 
    }
}
function digg3_header_style()
{
    ?>
<style type="text/css">
<?php 
    if ('blank' == get_header_textcolor()) {
        ?>
#header h1 a, #header .description {
display: none;
}
<?php 
    } else {
        ?>
#header h1 a, #header h1 a:hover, #header .description {
color: #<?php 
        header_textcolor();
        ?>
;
}
<?php 
    }
    ?>
</style>
<?php 
}
function redo_header_style()
{
    ?>
<style type="text/css">
#header_content {
	background:#900 url(<?php 
    header_image();
    ?>
) center repeat-y;
}
<?php 
    if ('blank' == get_header_textcolor()) {
        ?>
#header_content #title {
	display: none;
}
<?php 
    } else {
        ?>
#header_content h1 a, #header_content h1 a:hover {
	color: #<?php 
        header_textcolor();
        ?>
;
}	
<?php 
    }
    ?>
</style>
<?php 
}
Example #8
0
define('HEADER_IMAGE_WIDTH', 1000);
// use width and height appropriate for your theme
define('HEADER_IMAGE_HEIGHT', 138);
/** -----------------------------------------------
		 * LOCALIZATION
	*/
load_theme_textdomain('Summ', get_template_directory() . '/languages');
/** -----------------------------------------------
		 * gets included in the site header
	*/
function header_style()
{
Example #9
0
function theme_header_style()
{
    ?>
<style type="text/css">
#header-image {background-image:url(<?php 
    header_image();
    ?>
);}
#header h1,#header h1 a,#header h1 small {color:#<?php 
    header_textcolor();
    ?>
;}
</style>
<?php 
}
Example #10
0
function enlightenment_header_style()
{
    if ('' != get_header_image()) {
        add_filter('enlightenment_archive_location_args', 'enlightenment_custom_header_archive_location_args');
        add_action('enlightenment_after_header', 'enlightenment_entry_header_background', 1);
    }
    if ('' != get_header_image() || 'blank' == get_header_textcolor() || get_header_textcolor() != get_theme_support('custom-header', 'default-text-color')) {
        ?>
<style type="text/css">
<?php 
        if ('' != get_header_image()) {
            ?>
.archive-header .background-parallax {
	background-image: url(<?php 
            header_image();
            ?>
);
}
<?php 
        }
        if (!is_singular() && get_header_textcolor() != get_theme_support('custom-header', 'default-text-color') && 'blank' != get_header_textcolor()) {
            ?>
.archive-title {
	color: #<?php 
            header_textcolor();
            ?>
;
}
<?php 
        }
        ?>

<?php 
        if (is_singular() && current_theme_supports('enlightenment-post-thumbnail-header')) {
            ?>
@media (min-width: 768px) {
	.single .site-content,
	.page .site-content {
		margin-top: 0;
	}
}
<?php 
        }
        ?>
</style>
	<?php 
    }
}
Example #11
0
function rubric_admin_header_style()
{
    ?>
<style type="text/css">
#header{
	background: url(<?php 
    header_image();
    ?>
) no-repeat top right;
	width: 550px;
	height: 160px;
	font-family: Georgia;
	font-weight: normal;
}
#header h1{
font-size: 32px;
font-weight: normal;
padding-top: 20px;
text-align: left;
}
#header h1 a{
	color:#<?php 
    header_textcolor();
    ?>
;
	text-decoration: none;
	border-bottom: none;
}

<?php 
    if ('blank' == get_header_textcolor()) {
        ?>
#headimg h1 {
	display: none;
}
<?php 
    }
    ?>

</style>
<?php 
}
Example #12
0
    function consulta_custom_header()
    {
        $custom_header = get_custom_header();
        ?>
        <style type="text/css">
                    
            #branding { background: url(<?php 
        header_image();
        ?>
) no-repeat; height: <?php 
        echo $custom_header->height;
        ?>
px;}
            <?php 
        if ('blank' == get_header_textcolor()) {
            ?>
                #branding a { height: <?php 
            echo $custom_header->height;
            ?>
px; }
                #branding a:hover { background: none !important; }    
            <?php 
        } else {
            ?>
       
                #branding, #branding a, #branding a:hover { color: #<?php 
            header_textcolor();
            ?>
 !important; }
                #branding a:hover { text-decoration: none; }
                #description { filter: alpha(opacity=60); opacity: 0.6; }
            <?php 
        }
        ?>
        
        </style>
        <?php 
    }
function header_style()
{
    $test = HEADER_IMAGE;
    if (!strstr(get_theme_mod('header_image', HEADER_IMAGE), $test)) {
        ?>
	<style type="text/css">
		#title  { margin: 0; height: 180px; vertical-align: middle; display: table-cell; width: 920px; overflow: hidden; margin-bottom: 15px; text-align: center;}
		#title { background: url(<?php 
        header_image();
        ?>
) no-repeat top;}
	<?php 
        if ('blank' == get_theme_mod('header_textcolor', HEADER_TEXTCOLOR)) {
            ?>
		h1#title, div#title {
			text-indent: -1000em !important;
		}
	<?php 
        } else {
            ?>
		h1#title a, div#title a,
		h1#title a:hover, div#title a:hover {
			color: #<?php 
            header_textcolor();
            ?>
 !important;
			font-size: 48px;
			height: 100%;
			overflow: auto; 
			text-align: center;
		}
	<?php 
        }
        ?>
	</style>
<?php 
    }
}
    function header_style()
    {
        ?>
	<style type="text/css">
        #header {
            background: url(<?php 
        header_image();
        ?>
) scroll no-repeat 0 0;
			height: <?php 
        echo genesis_get_option('header_height');
        ?>
px;
        }
		.header-image #title-area, .header-image #title-area #title, .header-image #title-area #title a {
            height: <?php 
        echo genesis_get_option('header_height');
        ?>
px;
		}
	<?php 
        if (get_theme_mod('header_textcolor') && get_theme_mod('header_textcolor') != 'blank') {
            ?>
		#title-area #title a, #title-area #title a:hover {color: #<?php 
            header_textcolor();
            ?>
}
		#title-area #description {color: #<?php 
            header_textcolor();
            ?>
}
	<?php 
        }
        ?>
    </style>
<?php 
    }
Example #15
0
/**
 * Shows the header image preview in the admin panel.
 *
 * @since Pinboard 1.0
 */
function pinboard_admin_header_style() {
	$header_image = get_header_image(); ?>
<style type="text/css">
	@import url("<?php echo ( is_ssl() ? 'https' : 'http' ); ?>://fonts.googleapis.com/css?family=Oswald:300|Open+Sans:normal&subset=latin");
	.appearance_page_custom-header #headimg {
		max-width:1132px;
		width:100%;
		border:none;
	}
	#headimg {
		padding:0 20px;
		background:#F8F8F8;
	}
	#headimg h1 {
		float:left;
		margin:0;
		font-family:"Oswald", sans-serif;
		font-size:32px;
		font-weight:bold;
		line-height:120px;
	}
	#headimg h1 a {
		text-decoration:none;
	}
	#desc {
		float:left;
		margin-left:20px;
		font-family:"Open Sans", sans-serif;
		font-size:12px;
		font-weight:normal;
		line-height:120px;
	}
	#headimg img {
		max-width: 100%;
		vertical-align:middle;
	}
	#headimg h1 a,
	#desc {
		color:#<?php header_textcolor() ?>;
	}
</style>
<?php
}
Example #16
0
    /**
     * Display first step of custom header image page.
     *
     * @since unknown
     */
    function step_1()
    {
        if ($_GET['updated']) {
            ?>
<div id="message" class="updated fade">
<p><?php 
            _e('Header updated.');
            ?>
</p>
</div>
		<?php 
        }
        ?>

<div class="wrap">
<?php 
        screen_icon();
        ?>
<h2><?php 
        _e('Your Header Image');
        ?>
</h2>
<p><?php 
        _e('This is your header image. You can change the text color or upload and crop a new image.');
        ?>
</p>

<div id="headimg" style="background-image: url(<?php 
        esc_url(header_image());
        ?>
);">
<h1><a onclick="return false;" href="<?php 
        bloginfo('url');
        ?>
" title="<?php 
        bloginfo('name');
        ?>
" id="name"><?php 
        bloginfo('name');
        ?>
</a></h1>
<div id="desc"><?php 
        bloginfo('description');
        ?>
</div>
</div>
<?php 
        if (!defined('NO_HEADER_TEXT')) {
            ?>
<form method="post" action="<?php 
            echo admin_url('themes.php?page=custom-header&amp;updated=true');
            ?>
">
<input type="button" class="button" value="<?php 
            esc_attr_e('Hide Text');
            ?>
" onclick="hide_text()" id="hidetext" />
<input type="button" class="button" value="<?php 
            esc_attr_e('Select a Text Color');
            ?>
" id="pickcolor" /><input type="button" class="button" value="<?php 
            esc_attr_e('Use Original Color');
            ?>
" onclick="colorDefault()" id="defaultcolor" />
<?php 
            wp_nonce_field('custom-header');
            ?>
<input type="hidden" name="textcolor" id="textcolor" value="#<?php 
            esc_attr(header_textcolor());
            ?>
" /><input name="submit" type="submit" class="button" value="<?php 
            esc_attr_e('Save Changes');
            ?>
" /></form>
<?php 
        }
        ?>

<div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;display:none;"> </div>
</div>
<div class="wrap">
<h2><?php 
        _e('Upload New Header Image');
        ?>
</h2><p><?php 
        _e('Here you can upload a custom header image to be shown at the top of your blog instead of the default one. On the next screen you will be able to crop the image.');
        ?>
</p>
<p><?php 
        printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT);
        ?>
</p>

<form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php 
        echo esc_attr(add_query_arg('step', 2));
        ?>
" style="margin: auto; width: 50%;">
<label for="upload"><?php 
        _e('Choose an image from your computer:');
        ?>
</label><br /><input type="file" id="upload" name="import" />
<input type="hidden" name="action" value="save" />
<?php 
        wp_nonce_field('custom-header');
        ?>
<p class="submit">
<input type="submit" value="<?php 
        esc_attr_e('Upload');
        ?>
" />
</p>
</form>

</div>

		<?php 
        if (get_theme_mod('header_image') || get_theme_mod('header_textcolor')) {
            ?>
<div class="wrap">
<h2><?php 
            _e('Reset Header Image and Color');
            ?>
</h2>
<p><?php 
            _e('This will restore the original header image and color. You will not be able to retrieve any customizations.');
            ?>
</p>
<form method="post" action="<?php 
            echo esc_attr(add_query_arg('step', 1));
            ?>
">
<?php 
            wp_nonce_field('custom-header');
            ?>
<input type="submit" class="button" name="resetheader" value="<?php 
            esc_attr_e('Restore Original Header');
            ?>
" />
</form>
</div>
		<?php 
        }
    }
Example #17
0
?>
;
	}
	
	header div.placeholder span.description, 
	footer,
	footer h2 {
		color: #<?php 
header_textcolor();
?>
;
	}

	header div.placeholder span.description {
		border-color: #<?php 
header_textcolor();
?>
;
	}
</style>
</head>
<body <?php 
body_class();
?>
>
<a href="#primary_content" class="screen-reader-text"><?php 
_e('Skip to content', 'enigma-2015');
?>
</a>
<a href="#primary_navigation" class="screen-reader-text"><?php 
_e('Skip to Navigation', 'enigma-2015');
    /**
     * Display header area sections.
     */
    function rookie_header_area()
    {
        $options = get_option('themeboy', array());
        if (array_key_exists('logo_url', $options) && !empty($options['logo_url'])) {
            $logo = $options['logo_url'];
            $logo = esc_url($logo);
        }
        $sections = apply_filters('rookie_header_area_sections', array('widgets', 'menu'));
        ?>
	<?php 
        if (get_header_image()) {
            ?>
	<div class="header-area header-area-custom<?php 
            if (isset($logo)) {
                ?>
 header-area-has-logo<?php 
            }
            ?>
" style="background-image: url(<?php 
            header_image();
            ?>
);">
	<?php 
        } else {
            ?>
	<div class="header-area<?php 
            if (isset($logo)) {
                ?>
 header-area-has-logo<?php 
            }
            ?>
">
	<?php 
        }
        ?>
		<?php 
        foreach ($sections as $section) {
            ?>
			<?php 
            if ('widgets' == $section) {
                ?>
				<?php 
                if (is_active_sidebar('header-1')) {
                    ?>
				<div id="tertiary" class="site-widgets" role="complementary">
					<div class="site-widget-region">
						<?php 
                    dynamic_sidebar('header-1');
                    ?>
					</div>
				</div>
				<?php 
                }
                ?>
			<?php 
            } elseif ('branding' == $section) {
                ?>
				<div class="site-branding">
					<?php 
                if (isset($logo)) {
                    ?>
					<a class="site-logo" href="<?php 
                    echo esc_url(home_url('/'));
                    ?>
" rel="home"><img src="<?php 
                    echo $logo;
                    ?>
" alt="<?php 
                    bloginfo('name');
                    ?>
"></a>
					<?php 
                }
                ?>
					<?php 
                if (display_header_text()) {
                    ?>
					<hgroup style="color: #<?php 
                    header_textcolor();
                    ?>
">
						<h1 class="site-title"><a href="<?php 
                    echo esc_url(home_url('/'));
                    ?>
" rel="home"><?php 
                    bloginfo('name');
                    ?>
</a></h1>
						<h2 class="site-description"><?php 
                    bloginfo('description');
                    ?>
</h2>
					</hgroup>
					<?php 
                }
                ?>
				</div><!-- .site-branding -->
			<?php 
            } elseif ('menu' == $section) {
                ?>
				<nav id="site-navigation" class="main-navigation" role="navigation">
					<button class="menu-toggle" aria-controls="menu" aria-expanded="false"><?php 
                _e('Primary Menu', 'rookie');
                ?>
</button>
					<a id="site-logo-anchor" href="<?php 
                echo esc_url(home_url('/'));
                ?>
" rel="home">
						<img id="site-logo-img" src="<?php 
                echo $logo;
                ?>
" alt="<?php 
                bloginfo('name');
                ?>
">
					</a>

					<?php 
                wp_nav_menu(array('theme_location' => 'primary'));
                ?>
					<?php 
                if (array_key_exists('nav_menu_search', $options) && $options['nav_menu_search']) {
                    get_search_form();
                }
                ?>
				</nav><!-- #site-navigation -->
			<?php 
            } else {
                ?>
				<?php 
                do_action('rookie_header_area_section_' . $section);
                ?>
			<?php 
            }
            ?>
		<?php 
        }
        ?>
	</div>
	<?php 
    }
Example #19
0
    /**
     * The styles for the post thumbnails / custom page headers.
     *
     * Referenced via add_custom_image_header() in bp_dtheme_setup().
     *
     * @global WP_Query $post The current WP_Query object for the current post or page
     * @since BuddyPress (1.2)
     */
    function bp_dtheme_header_style()
    {
        global $post;
        $header_image = '';
        if (is_singular() && current_theme_supports('post-thumbnails') && has_post_thumbnail($post->ID)) {
            $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'post-thumbnail');
            // $src, $width, $height
            if (!empty($image) && $image[1] >= HEADER_IMAGE_WIDTH) {
                $header_image = $image[0];
            } else {
                $header_image = get_header_image();
            }
        } else {
            $header_image = get_header_image();
        }
        ?>

	<style type="text/css">
		<?php 
        if (!empty($header_image)) {
            ?>
			#header { background-image: url(<?php 
            echo $header_image;
            ?>
); }
		<?php 
        }
        ?>

		<?php 
        if ('blank' == get_header_textcolor()) {
            ?>
		#header h1, #header #desc { display: none; }
		<?php 
        } else {
            ?>
		#header h1 a, #desc { color:#<?php 
            header_textcolor();
            ?>
; }
		<?php 
        }
        ?>
	</style>

<?php 
    }
Example #20
0
function p2_header_style()
{
    ?>
	<style type="text/css">
		<?php 
    if (1) {
        ?>
		#header {
			background: url(<?php 
        echo get_bloginfo('stylesheet_directory') . '/images/header.jpg';
        /* tikirobot change */
        ?>
) ;
			height: <?php 
        echo HEADER_IMAGE_HEIGHT;
        ?>
px;
		}
		#header a.secondary {
			height: <?php 
        echo HEADER_IMAGE_HEIGHT;
        ?>
px;
			width:<?php 
        echo HEADER_IMAGE_WIDTH;
        ?>
px;
			display: block;
			position: absolute;
			top: 0;
		}
		#header a.secondary:hover {
			border: 0;
		}
		#header .sleeve {
			position: relative;
			margin-top: 0;
			margin-right: 0;
			background-color: transparent;
			box-shadow: none !important;
			-webkit-box-shadow: none !important;
			-moz-box-shadow: none !important;
			height: <?php 
        echo HEADER_IMAGE_HEIGHT;
        ?>
px;
		}
        <?php 
        /* tikirobot change - comment out box-shadow
        		#header {
        			box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2) !important;
        			-webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2) !important;
        			-moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2) !important;
        		} */
        ?>
		<?php 
    }
    ?>
		<?php 
    if ('blank' == get_header_textcolor()) {
        ?>
		#header h1, #header small {
			padding: 0;
			text-indent: -1000em;
		}
		<?php 
    } else {
        ?>
		#header h1 a, #header small {
			color: #<?php 
        header_textcolor();
        ?>
;
		}
		<?php 
    }
    ?>
	</style>
<?php 
}
Example #21
0
/**
 * Customizer hook
 */
function casper_customizer_head()
{
    if (get_theme_mod('casper_custom_meta') != false) {
        echo get_theme_mod('casper_custom_meta');
    }
    ?>

   	<style type="text/css">
		<?php 
    if (get_header_textcolor()) {
        ?>
			.blog-title a, .blog-description, .social-icons a { color: #<?php 
        header_textcolor();
        ?>
; }
		<?php 
    }
    ?>

		<?php 
    if ('blank' === get_header_textcolor()) {
        ?>
			.blog-description { display: none; }
		<?php 
    }
    ?>
		<?php 
    if (false != get_theme_mod('casper_header_textcolor') && false != get_theme_mod('casper_display_header')) {
        ?>
        	body:not(.home) .blog-title a, body:not(.home) .blog-description, body:not(.home) .social-icons a {
        		color: <?php 
        echo get_theme_mod('casper_header_textcolor');
        ?>
;
        	}
        <?php 
    }
    ?>
		<?php 
    if (get_theme_mod('casper_header_color')) {
        ?>
		    .site-head { background-color: <?php 
        echo get_theme_mod('casper_header_color');
        ?>
; }
		<?php 
    }
    ?>
        <?php 
    if (false != get_theme_mod('casper_display_header')) {
        ?>
        	body:not(.home) #masthead{ background: none; }
        <?php 
    }
    ?>
        <?php 
    if (false != get_theme_mod('casper_display_header_all')) {
        ?>
        	body:not(.home) .site-head:after { display: none; }
        	body:not(.home) #masthead{ height: auto; border: none; }
        	body:not(.home) .blog-title, body:not(.home) .blog-description { display: none; }
        	body:not(.home) .inner { padding-top: 1em; }
        	body:not(.home) .main-navigation { position: relative; }
        <?php 
    }
    ?>

		<?php 
    if (get_theme_mod('casper_link_color')) {
        ?>
			section a { color: <?php 
        echo get_theme_mod('casper_link_color');
        ?>
; }
		<?php 
    }
    ?>

		<?php 
    if (get_theme_mod('casper_hover_color')) {
        ?>
			a:hover, body .blog-title a:hover, body .social-icons a:hover { color: <?php 
        echo get_theme_mod('casper_hover_color');
        ?>
; }
		<?php 
    }
    ?>

        <?php 
    if (get_theme_mod('casper_menu_color')) {
        ?>
        	.main-navigation a { color: <?php 
        echo get_theme_mod('casper_menu_color');
        ?>
; }
        <?php 
    }
    ?>
        <?php 
    if (get_theme_mod('casper_home_menu_color')) {
        ?>
        	.home .main-navigation a { color: <?php 
        echo get_theme_mod('casper_home_menu_color');
        ?>
; }
        	 <?php 
        if (!get_theme_mod('casper_display_header')) {
            ?>
        	 	.main-navigation a { color: <?php 
            echo get_theme_mod('casper_home_menu_color');
            ?>
; }
        	 <?php 
        }
        ?>
        <?php 
    }
    ?>
        <?php 
    if (false != get_theme_mod('casper_logo_circle')) {
        ?>
			.blog-logo img {
				-webkit-border-radius: 50%;
			    -moz-border-radius: 50%;
			    border-radius: 50%;
			}
        <?php 
    }
    ?>
        <?php 
    if (false != get_theme_mod('casper_logo_frame')) {
        ?>
			.blog-logo img {
			    border: 3px solid white;
			    -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.3);
			    -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.3);
			    box-shadow: 0 1px 1px rgba(0,0,0,0.3);
			}
        <?php 
    }
    ?>
        <?php 
    if (false != get_theme_mod('casper_hide_page_header_dot')) {
        ?>
			.site-head:after {
			    display: none;
			}
        <?php 
    }
    ?>
    </style>
    <?php 
}
Example #22
0
function header_style()
{
    ?>
<style type="text/css">
#header {
	background: #8EBAFD url(<?php 
    header_image();
    ?>
) left repeat-y;
}
<?php 
    if ('blank' == get_header_textcolor()) {
        ?>
#header h1 a, #header #desc {
	display: none;
}
<?php 
    } else {
        ?>
#header h1 a, #header h1 a:hover, #header #desc {
	color: #<?php 
        header_textcolor();
        ?>
;
}	
<?php 
    }
    ?>
</style>
<?php 
}
Example #23
0
function admin_header_style()
{
    ?>
<style type="text/css">

#header {
	text-align: left;
	background: url(<?php 
    header_image();
    ?>
) no-repeat top left;
 	width: <?php 
    echo HEADER_IMAGE_WIDTH;
    ?>
px;
 	height: <?php 
    echo HEADER_IMAGE_HEIGHT;
    ?>
px;
	margin: 0px;
}

#header h1 {
	font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
	color: #<?php 
    header_textcolor();
    ?>
;
	font-size: 28px;
	margin: 0 0 5px 15px;
	padding-top: 10px;
}

#header .description {
	font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
	color: #<?php 
    header_textcolor();
    ?>
;
	font-size: 14px;
	margin-left: 15px;
}
#header a, #header a:active, #header a:hover, #header a:visited {
	font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
	color: #<?php 
    header_textcolor();
    ?>
;
	border-bottom: none;
}

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

</style>
<?php 
}
Example #24
0
function connections_admin_header_style()
{
    ?>
<style type="text/css">
#headimg {
	height: <?php 
    echo HEADER_IMAGE_HEIGHT;
    ?>
px;
	width: <?php 
    echo HEADER_IMAGE_WIDTH;
    ?>
px;
}
#headimg h1
{
	margin: 0;
	font-size: 1.6em;
	padding:10px 20px 0 0;
	text-align:right;
}
#headimg h1 a {
	color:#<?php 
    header_textcolor();
    ?>
;
	border: none;
	font-family: Georgia, "Lucida Sans Unicode", lucida, Verdana, sans-serif;
	font-weight: normal;
	letter-spacing: 1px;
	text-decoration: none;
}
#headimg a:hover
{
	text-decoration:underline;
}
#headimg #desc
{
	font-weight:normal;
	font-style:italic;
	font-size:1em;
	color:#<?php 
    header_textcolor();
    ?>
;
	text-align:right;
	margin:0;
	padding:0 20px 0 0;
}

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

</style>
<?php 
}
Example #25
0
    function output_admin_header_css()
    {
        ?>
		<style type="text/css">
		#headimg {
			height: <?php 
        echo HEADER_IMAGE_HEIGHT;
        ?>
px;
			width: <?php 
        echo HEADER_IMAGE_WIDTH;
        ?>
px;
			background-color: #3371A3 !important;
		}

		#headimg h1 {
			font-size: 30px;
			font-weight: bold;
			letter-spacing: -1px;
			margin: 0;
			padding: 75px 40px 0;
			border: none;
		}

		#headimg h1 a {
			text-decoration: none;
			border: none;
		}

		#headimg h1 a:hover {
			text-decoration: underline;
		}

		#headimg #desc {
			font-size: 10px;
			margin: 0 40px;
		}

		<?php 
        if ('blank' == get_header_textcolor()) {
            ?>
		#headimg h1, #headimg #desc {
			display: none;
		}
		<?php 
        } else {
            ?>
		#headimg h1 a, #headimg #desc {
			color: #<?php 
            header_textcolor();
            ?>
;
		}
		<?php 
        }
        ?>
		</style>
		<?php 
    }
Example #26
0
function daydream_admin_header_style()
{
    ?>
<style type="text/css">
#headimg {
	height: <?php 
    echo HEADER_IMAGE_HEIGHT;
    ?>
px;
	width: <?php 
    echo HEADER_IMAGE_WIDTH;
    ?>
px;
}
#headimg h1 {
padding: 160px 20px 0 20px;
margin: 0;
font-size: 44px;
font-weight: normal;
}

#headimg h1 a {
	color:#<?php 
    header_textcolor();
    ?>
;
	border: none;
	font-family: Georgia, "Lucida Sans Unicode", lucida, Verdana, sans-serif;
	font-weight: normal;
	letter-spacing: 1px;
	text-decoration: none;
}
#headimg #desc {
font-family: Georgia, "Lucida Sans Unicode", lucida, Verdana, sans-serif;
margin: 0 35px 0 35px;
color: #<?php 
    header_textcolor();
    ?>
;
font-size: 17px;
}

#headimg h1, #desc {
	text-align: left;
}

<?php 
    if (get_theme_mod('dd_title') == "centre") {
        ?>

#headimg h1, #desc { text-align: center; }

<?php 
    } else {
        if (get_theme_mod('dd_title') == "right") {
            ?>

#headimg h1, #desc { text-align: right; }

<?php 
        }
    }
    ?>

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

</style>
<?php 
}
    /**
     * Shows the header image preview in the admin panel.
     *
     * @since Esplanade 1.0
     */
    function esplanade_admin_header_style()
    {
        $header_image = get_header_image();
        ?>
<style type="text/css">
	@import url("http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold|Droid+Serif:regular,italic,bold,bolditalic&subset=latin");
	.appearance_page_custom-header #headimg {
		width:<?php 
        echo get_custom_header()->width;
        ?>
px;
		border:none;
	}
	#headimg {
		padding:<?php 
        echo 'blank' == get_header_textcolor() ? '20px' : 0;
        ?>
 20px<?php 
        if (!empty($header_image)) {
            ?>
 20px<?php 
        }
        ?>
;
		background:#e9e9e9;
	}
	#headimg h1,
	#desc {
		font-family:"Droid Sans", sans-serif;
	}
	#headimg h1 {
		float:left;
		margin:0;
	}
	#headimg h1 a {
		font-size:28px;
		font-weight:bold;
		line-height:100px;
		text-decoration:none;
	}
	#desc {
		float:left;
		margin-left:20px;
		font-size:12px;
		font-weight:normal;
		line-height:100px;
	}
	#headimg img {
		display:block;
		clear:both;
		max-width:99.1%;
		padding:0.45%;
		box-shadow:0 0 3px #999;
		background:#fff;
	}
<?php 
        if ('333' != get_header_textcolor()) {
            ?>
	#headimg h1 a,
	#desc {
		color:#<?php 
            header_textcolor();
            ?>
;
	}
<?php 
        }
        ?>
</style>
<?php 
    }
Example #28
0
	function bp_dtheme_admin_header_style() { ?>
		<style type="text/css">
			#headimg {
				position: relative;
				color: #fff;
				background: url(<?php header_image() ?>);
				-moz-border-radius-bottomleft: 6px;
				-webkit-border-bottom-left-radius: 6px;
				-moz-border-radius-bottomright: 6px;
				-webkit-border-bottom-right-radius: 6px;
				margin-bottom: 20px;
				height: 100px;
				padding-top: 25px;
			}

			#headimg h1{
				position: absolute;
				bottom: 15px;
				left: 15px;
				width: 44%;
				margin: 0;
				font-family: Arial, Tahoma, sans-serif;
			}
			#headimg h1 a{
				color:#<?php header_textcolor() ?>;
				text-decoration: none;
				border-bottom: none;
			}
			#headimg #desc{
				color:#<?php header_textcolor() ?>;
				font-size:1em;
				margin-top:-0.5em;
			}

			#desc {
				display: none;
			}

			<?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
	}
Example #29
0
function admin_header_style()
{
    ?>

<style type="text/css">
#headimg {
	height: <?php 
    echo HEADER_IMAGE_HEIGHT;
    ?>
px;
	width: <?php 
    echo HEADER_IMAGE_WIDTH;
    ?>
px;
}

#headimg h1 {
font-family: "Lucida Grande",Tahoma,Arial,sans-serif;
font-size: 17px;
font-weight: bold;
margin-left: 15px;
padding-top: 15px;
}
#headimg h1 a {
	color:#<?php 
    header_textcolor();
    ?>
;
	border: none;
	text-decoration: none;
}
#headimg a:hover
{
	text-decoration:underline;
}
#headimg #desc
{
	font-weight:normal;
	color:#<?php 
    header_textcolor();
    ?>
;
	margin-left: 15px;
	padding: 0;
	margin-top: -10px;
font-family: "Lucida Grande",Tahoma,Arial,sans-serif;
	font-size: 11px;
}

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


</style>

<?php 
}
Example #30
0
/**
 * Custom Image Header Front-End Callback
 *
 * Defines the front-end style definitions for 
 * the custom image header.
 *
 * @link http://codex.wordpress.org/Function_Reference/get_header_image get_header_image()
 * @link http://codex.wordpress.org/Function_Reference/get_header_textcolor get_header_textcolor()
 */
function childtheme_header_style()
{
    ?>
	
	<style type="text/css">
	/* Sets header image as background for div#branding */
	<?php 
    if (get_header_image() && HEADER_IMAGE != get_header_image()) {
        ?>
		#branding {
			background:url('<?php 
        header_image();
        ?>
') no-repeat center top;
			overflow: hidden;
		}
		<?php 
        if ('blank' != get_header_textcolor()) {
            ?>
		#blog-title, #blog-title a {
			color:#000;
		}
		<?php 
        }
    }
    ?>
	/* Sets text color for #blog-title and #blog-description */
	<?php 
    if (get_header_textcolor()) {
        ?>
		#blog-title, #blog-title a, #blog-description {
			color:#<?php 
        header_textcolor();
        ?>
;
		}
		<?php 
    }
    ?>
	</style>
	<?php 
}