XylotrechusZ
<?php
global $dabble_option;
$header_width_meta = get_post_meta(get_queried_object_id(), 'header_width_custom', true);
if ($header_width_meta != ''){
$header_width = ( $header_width_meta == 'full' ) ? 'container-fluid': 'container';
}else{
$header_width = !empty($dabble_option['header-grid']) ? $dabble_option['header-grid'] : '' ;
$header_width = ( $header_width == 'full' ) ? 'container-fluid': 'container';
}
?>
<?php
$post_menu_type = get_post_meta(get_queried_object_id(), 'menu-type', true);
$post_meta_data = get_post_meta(get_queried_object_id(), 'banner_image', true);
$content_banner = get_post_meta(get_queried_object_id(), 'content_banner', true);
$post_id = get_the_id();
$author_id = get_post_field ('post_author', $post_id);
$display_name = get_the_author_meta( 'display_name' , $author_id );
?>
<div class="rs-breadcrumbs porfolio-details">
<?php if($post_meta_data !='') { ?>
<div class="breadcrumbs-single" style="background-image: url('<?php echo esc_url( $post_meta_data );?>')">
<div class="<?php echo esc_attr($header_width);?>">
<div class="row">
<div class="col-md-12">
<div class="breadcrumbs-inner bread-<?php echo esc_attr($post_menu_type); ?>">
<?php
$post_meta_title = get_post_meta(get_the_ID(), 'select-title', true);?>
<?php if( $post_meta_title != 'hide' ){
?>
<h1 class="page-title">
<?php if($content_banner !=''){
echo esc_html($content_banner);
} else {
the_title();
}
?>
</h1>
<?php }
if(!empty($dabble_option['off_breadcrumb'])){
$rs_breadcrumbs = get_post_meta(get_the_ID(), 'select-bread', true);
if( $rs_breadcrumbs != 'hide' ):
if(function_exists('bcn_display')){?>
<div class="breadcrumbs-title"> <?php bcn_display();?></div>
<?php }
endif;
}
?>
</div>
</div>
</div>
</div>
</div>
<?php }
elseif (!empty($dabble_option['blog_banner']['url'])) {?>
<div class="breadcrumbs-single" style="background-image: url('<?php echo esc_url( $dabble_option['blog_banner']['url'] );?>')">
<div class="<?php echo esc_attr($header_width);?>">
<div class="row">
<div class="col-md-12">
<div class="breadcrumbs-inner bread-<?php echo esc_attr($post_menu_type); ?>">
<?php
$post_meta_title = get_post_meta(get_the_ID(), 'select-title', true);?>
<?php if( $post_meta_title != 'hide' ){
?>
<h1 class="page-title">
<?php if($content_banner !=''){
echo esc_html($content_banner);
} else {
the_title();
}
?>
</h1>
<?php }
if(!empty($dabble_option['off_breadcrumb'])){
$rs_breadcrumbs = get_post_meta(get_the_ID(), 'select-bread', true);
if( $rs_breadcrumbs != 'hide' ):
if(function_exists('bcn_display')){?>
<div class="breadcrumbs-title"> <?php bcn_display();?></div>
<?php }
endif;
}
?>
</div>
</div>
</div>
</div>
</div>
<?php }else{?>
<div class="rs-breadcrumbs-inner">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="breadcrumbs-inner bread-<?php echo esc_attr($post_menu_type); ?>">
<?php
$post_meta_title = get_post_meta(get_the_ID(), 'select-title', true);?>
<?php if( $post_meta_title != 'hide' ){
?>
<h1 class="page-title">
<?php if($content_banner !=''){
echo esc_html($content_banner);
} else {
the_title();
}
?>
</h1>
<?php }
if(!empty($dabble_option['off_breadcrumb'])){
$rs_breadcrumbs = get_post_meta(get_the_ID(), 'select-bread', true);
if( $rs_breadcrumbs != 'hide' ):
if(function_exists('bcn_display')){?>
<div class="breadcrumbs-title"> <?php bcn_display();?></div>
<?php }
endif;
}
?>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
</div>