function wpv_get_header_sidebars($title = null)
{
    $result = false;
    global $wpv_has_header_sidebars;
    if ($wpv_has_header_sidebars) {
        ?>
		<div class="pane">
			<div class="row">
			<?php 
        $result = true;
        WpvTemplates::page_header(false, $title);
        WpvTemplates::header_sidebars();
        ?>
			</div>
		</div>
		<?php 
    }
    return $result;
}
$global_page_header_bg = wpv_get_option('page-title-background-image') . wpv_get_option('page-title-background-color');
if (!WpvTemplates::has_breadcrumbs() && !WpvTemplates::has_page_header() && !WpvTemplates::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;
}
?>
<div id="sub-header" class="layout-<?php 
echo WpvTemplates::get_layout();
?>
 <?php 
if (!empty($page_header_bg) || !empty($global_page_header_bg)) {
    echo 'has-background';
}
?>
">
	<div class="meta-header clearfix" style="<?php 
echo $page_header_bg;
?>
">
		<div class="limit-wrapper">
			<div class="meta-header-inside">
				<?php 
WpvTemplates::breadcrumbs();
WpvTemplates::page_header(false, $wpv_title);
?>
			</div>
		</div>
	</div>
</div>
Exemple #3
0
function wpv_ajaxed_post_portfolio()
{
    if (wpv_is_reduced_response()) {
        echo 'title|';
        WpvTemplates::site_title();
        wpv_reduced_delim();
        echo 'hsidebars|';
        $header_placed = wpv_get_header_sidebars();
        wpv_reduced_delim();
        echo 'ptitle|';
        WpvTemplates::page_header($header_placed);
        wpv_reduced_delim();
        echo 'breadcrumbs|';
        WpvTemplates::breadcrumbs();
        wpv_reduced_delim();
        echo 'content|';
    }
}
$content = apply_filters('the_content', $content);
$has_right_column = !empty($logo) || !empty($client);
$left_column_width = $has_right_column ? 'grid-4-5' : 'grid-1-1 last';
?>

<div class="row portfolio-content">
	<div class="<?php 
echo $left_column_width;
?>
">
		<?php 
if ($is_ajax) {
    ?>
			<?php 
    WpvTemplates::breadcrumbs();
    WpvTemplates::page_header(false, get_the_title());
    ?>
		<?php 
}
?>
		<?php 
echo $content;
?>
		<?php 
WpvTemplates::share('portfolio');
?>
	</div>

	<?php 
if ($has_right_column) {
    ?>