Your IP : 216.73.216.165


Current Path : /var/www/html/wp-content/themes/church-event/templates/header/
Upload File :
Current File : /var/www/html/wp-content/themes/church-event/templates/header/sub-header.php

<?php
/**
 * Site sub-header. Includes a slider, page title, etc.
 *
 * @package  wpv
 */

global $title;
if(!is_404()) {
	if(wpv_has_woocommerce() && is_woocommerce() && !is_single()) {
		if(is_product_category()) {
			$title = single_cat_title( '', false );
		} elseif(is_product_tag()) {
			$title = single_tag_title( '', false );
		} else {
			$title = wc_get_page_id( 'shop' ) ? get_the_title(wc_get_page_id( 'shop' )) : '';
		}
	}
}

if( ( ! VamtamTemplates::has_breadcrumbs() && ! VamtamTemplates::has_page_header() && ! VamtamTemplates::has_post_siblings_buttons() ) || ( is_404() && ( ! function_exists( 'tribe_is_event_query' ) || ! tribe_is_event_query() ) ) ) return;
if(is_page_template('page-blank.php')) return;

$page_header_bg = VamtamTemplates::page_header_background();
$global_page_header_bg = wpv_get_option('page-title-background-image') . wpv_get_option('page-title-background-color');

?>
<div id="sub-header" class="layout-<?php echo VamtamTemplates::get_layout() ?> <?php if(!empty($page_header_bg) || !empty($global_page_header_bg)) echo 'has-background' ?>">
	<div class="meta-header" style="<?php echo $page_header_bg ?>">
		<div class="limit-wrapper">
			<div class="meta-header-inside">
				<?php
					VamtamTemplates::breadcrumbs();
					VamtamTemplates::page_header(false, $title);
				?>
			</div>
		</div>
	</div>
</div>