/** * Styles the header image and text displayed on the blog * * @see catchadaptive_custom_header_setup(). */ function catchadaptive_header_style() { $header_image = catchadaptive_featured_overall_image(); // Has a Custom Header been added? if (!empty($header_image)) { echo '<!-- Header Image CSS -->' . "\n"; echo '<style> #masthead { background: url(' . $header_image . ') no-repeat 50% 50%; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } </style>'; } }
/** * Start Header id #masthead and class .wrapper * * @since Catch Adaptive 0.1 * */ function catchadaptive_header_start() { $header_image = catchadaptive_featured_overall_image(); ?> <header id="masthead" <?php echo '' != $header_image ? 'class="with-background"' : ''; ?> role="banner"> <div class="wrapper"> <?php }