*
 * @package wpv
 * @subpackage church-event
 */
global $wp_embed;
$post_id = wpv_get_the_ID();
$content = WpvTemplates::has_header_slider() ? '' : do_shortcode($wp_embed->run_shortcode(wpv_post_meta($post_id, 'page-middle-header-content', true)));
$fullwidth = wpv_post_meta($post_id, 'page-middle-header-content-fullwidth', true) === 'true';
$min_height = wpv_post_meta($post_id, 'page-middle-header-min-height', true);
if (!WpvTemplates::has_header_slider() && empty($content) && empty($min_height) && !WpvFancyPortfolio::has('disabled')) {
    return;
}
if (is_page_template('page-blank.php')) {
    return;
}
$style = WpvTemplates::get_title_style();
if (!WpvTemplates::has_header_slider()) {
    $style .= "min-height:{$min_height}px";
}
$type = WpvTemplates::has_header_slider() ? 'type-slider' : 'type-featured';
?>
<header class="header-middle row <?php 
echo $fullwidth ? 'fullwidth' : 'normal';
?>
 <?php 
echo $type;
?>
" style="<?php 
echo $style;
?>
">