/
home
/
rekodeb
/
webrodez
/
wp-content
/
themes
/
calmer
/
template-parts
/
banner
/
Upload File
HOME
<?php /** * Display page banner */ $show_banner = calmor_opt('single_blog_banner_toggle', 'show'); $show_banner_in_page = calmor_page_meta('is_banner', get_the_ID(), 1); $banner_url = calmor_opt('single_blog_banner_img_upload'); $banner_url_page= calmor_page_meta('banner_background_image', get_the_ID()); $how_title = calmor_opt('is_single_blog_banner_title', 'show'); $show_breadcrumbs = calmor_opt('single_blog_banner_breadcrumb', 'show'); $banner_background_url = CALMOR_IMAGES.'/blog/banner/breadcrumb_shap.png'; if($banner_url_page && $banner_url_page != ''){ $banner_background_url = $banner_url_page; }elseif($banner_url && !empty($banner_url['url'])) { $banner_background_url = $banner_url['url']; } if(!class_exists('Redux')){ $banner_background_url = ''; } if($show_banner == 'show') : if($show_banner_in_page): ?> <?php if($banner_background_url != '') : ?> <div class="blog_breadcrumbs_area_two"> <div class="overlay_bg" data-bg-img="<?php echo esc_url($banner_background_url); ?>"></div> <?php else: ?> <div class="blog_breadcrumbs_area_two banner-with-color"> <?php endif; ?> <div class="container"> <div class="breadcrumb_content text-center"> <?php if($how_title == 'show') : ?> <h1 class="page_title"><?php single_post_title(); ?></h1> <?php endif; if($show_breadcrumbs == 'show') : calmor_breadcrumbs(); endif; ?> </div> </div> </div> <?php endif; endif;