<?php
/**
* The Template for displaying all single posts
*/
$logistek_redux_demo = get_option('redux_demo');
get_header(); ?>
<?php
while (have_posts()): the_post();
?>
<?php if(isset($logistek_redux_demo['blog_image']['url']) && $logistek_redux_demo['blog_image']['url'] != ''){?>
<section class="page-title-section" style="background-color: #f8f8f8;
background-image: url(<?php echo esc_url($logistek_redux_demo['blog_image']['url']);?>);
color: #fff;">
<?php }else{?>
<section class="page-title-section" style="background-color: #f8f8f8;
background-image: url(<?php echo get_template_directory_uri();?>/assets/images/bg/page-title-bg.jpg);
color: #fff;">
<?php } ?>
<div class="container">
<div class="row">
<div class="col-xl-12 text-center">
<div class="page-title-content">
<h3 class="title text-white"><?php the_title();?></h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?php echo esc_url(home_url('/')); ?>"><?php echo esc_html__( 'Home', 'logistek' );?></a></li>
<li class="breadcrumb-item active" aria-current="page"><?php if(isset($logistek_redux_demo['blog_details_title']) && $logistek_redux_demo['blog_details_title'] != ''){?>
<?php echo htmlspecialchars_decode(esc_attr($logistek_redux_demo['blog_details_title']));?>
<?php }else{?>
<?php echo esc_html__( 'Single News', 'logistek' );
}
?></li>
</ol>
</nav>
</div>
</div>
</div>
</div>
</section>
<!-- Page Title End -->
<!-- Service Details Section Start -->
<section class="blog-single-news pdt-110 pdb-90">
<div class="container">
<div class="row">
<div class="col-xl-8 col-lg-7">
<div class="single-news-details news-wrapper mrb-30">
<?php if (has_post_thumbnail()) { ?>
<div class="news-thumb">
<img src="<?php echo wp_get_attachment_url(get_post_thumbnail_id());?>" class="img-full" alt="blog">
</div>
<?php } ?>
<div class="single-news-content">
<div class="news-bottom-meta mrt-20 mrb-15">
<span class="entry-author mrr-20"><i class="far fa-user mrr-10 text-primary-color"></i><?php the_author_posts_link(); ?></span>
<span class="entry-date"><i class="far fa-calendar-alt mrr-10 text-primary-color"></i><?php the_time(get_option( 'date_format'));?></span>
</div>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages(); ?>
</div>
<div class="single-news-tags f-left f-left-none mrb-lg-30">
<h5 class="mrb-15"><?php echo esc_html__( 'Tags:', 'avitore' )?></h5>
<ul class="list">
<?php echo get_the_tag_list('<li>','</li><li>','</li>'); ?>
</ul>
</div>
<div class="comments-area">
<?php comments_template();?>
</div>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-5 sidebar-right">
<aside class="news-sidebar-widget">
<?php get_sidebar();?>
</aside>
</div>
</div>
</div>
</section>
<!-- blog-area end -->
<?php endwhile; ?>
<?php
get_footer();
?>