Beispiel #1
0
function premise_do_header()
{
    ?>
	<div id="image-area">
<?php 
    if (premise_get_header_image_url()) {
        printf('<a href="%s"><img src="%s" alt="" /></a>', premise_get_header_image_url(), premise_get_header_image());
    } else {
        printf('<img src="%s" alt="" />', premise_get_header_image());
    }
    ?>
	</div><!-- #image-area -->
<?php 
}
Beispiel #2
0
do_action('premise_immediately_after_head');
?>
	</head>
	<body <?php 
body_class('full-width-content');
?>
>
		<div id="wrap">
			<?php 
if (premise_should_have_header_image() && premise_get_header_image()) {
    ?>
			<div id="header">
				<div class="wrap">
					<div id="image-area">
						<?php 
    if (premise_get_header_image_url()) {
        ?>
						<a href="<?php 
        premise_the_header_image_url();
        ?>
"><img src="<?php 
        premise_the_header_image();
        ?>
" alt="" /></a>
						<?php 
    } else {
        ?>
						<img src="<?php 
        premise_the_header_image();
        ?>
" alt="" />
Beispiel #3
0
function premise_the_header_image_url($postId = null)
{
    echo apply_filters('premise_the_header_image_url', premise_get_header_image_url($postId), $postId);
}