Beispiel #1
0
    function output_header_css()
    {
        $image_url = K2Header::get_header_image_url();
        ?>
		<style type="text/css">
		<?php 
        if (!empty($image_url)) {
            ?>
		#header {
			background-image: url("<?php 
            echo $image_url;
            ?>
");
		}
		<?php 
        }
        ?>

		<?php 
        if ('blank' == get_header_textcolor()) {
            ?>
		#header .blog-title,
		#header .description {
			position: absolute !important;
			left: 0px;
			top: -500px !important;
			width: 1px;
			height: 1px;
			overflow: hidden;
		}
		<?php 
        } else {
            ?>
		#header .blog-title a,
		#header .description {
			color: #<?php 
            header_textcolor();
            ?>
;
		}
		<?php 
        }
        ?>
		</style>
		<?php 
    }
Beispiel #2
0
    /**
     * Output custom header background image and text color CSS classes if set by the user.
     */
    function output_header_css()
    {
        $image_url = K2Header::get_header_image_url();
        if (get_header_textcolor() != HEADER_TEXTCOLOR || !empty($image_url)) {
            // Do we need to insert anything?
            ?>

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

		<?php 
            if ('blank' == get_header_textcolor()) {
                ?>
			#site-title,
			#site-description {
				display: none;
			}

		<?php 
            } elseif (get_header_textcolor() != HEADER_TEXTCOLOR) {
                ?>
			#site-title a,
			#site-description {
				color: #<?php 
                header_textcolor();
                ?>
;
			}
		<?php 
            }
            ?>
		</style>

		<?php 
        }
    }