<?php
/**
* The Template for displaying all single posts
*/
$logistek_redux_demo = get_option('redux_demo');
get_header(); ?>
<?php
while (have_posts()): the_post();
$team_facebook = get_post_meta(get_the_ID(),'_cmb_team_facebook', true);
$team_twitter = get_post_meta(get_the_ID(),'_cmb_team_twitter', true);
$team_instagram = get_post_meta(get_the_ID(),'_cmb_team_linkedin', true);
$team_google = get_post_meta(get_the_ID(),'_cmb_team_instagram', true);
$team_job = get_post_meta(get_the_ID(),'_cmb_team_job', true);
$team_info = get_post_meta(get_the_ID(),'_cmb_team_info', true);
?>
<?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 the_title(); ?></li>
</ol>
</nav>
</div>
</div>
</div>
</div>
</section>
<!-- Page Title End -->
<!-- Team Details Section Start -->
<section class="team-details-page pdt-110 pdb-90" data-background="<?php echo get_template_directory_uri();?>/assets/images/bg/abs-bg4.png">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 col-lg-4">
<?php if (has_post_thumbnail()) { ?>
<div class="single-team-img">
<img class="img-full" src="<?php echo wp_get_attachment_url(get_post_thumbnail_id());?>" alt="">
</div>
<?php } ?>
<div class="team-member-info mrt-20">
<h4 class="team-title mrb-5"><a><?php the_title();?></a></h4>
<h6 class="designation text-gray f-weight-400"><?php echo htmlspecialchars_decode(esc_attr($team_job));?></h6>
<ul class="list-items mrt-15 mrb-25">
<?php echo htmlspecialchars_decode(esc_attr($team_info));?>
</ul>
<ul class="social-list list-primary-color clearfix mrt-20 mrb-md-50">
<li><a href="<?php echo esc_url($team_facebook); ?>"><i class="fab fa-facebook"></i></a></li>
<li><a href="<?php echo esc_url($team_twitter); ?>"><i class="fab fa-twitter"></i></a></li>
<li><a href="<?php echo esc_url($team_instagram); ?>"><i class="fab fa-instagram"></i></a></li>
<li><a href="<?php echo esc_url($team_google); ?>"><i class="fab fa-google-plus"></i></a></li>
</ul>
</div>
</div>
<div class="col-md-12 col-sm-12 col-lg-8">
<div class="personal-details">
<?php the_content(); ?>
<?php wp_link_pages(); ?>
</div>
</div>
</div>
</div>
</section>
<!-- Team Details Section End -->
<?php endwhile; ?>
<?php
get_footer();
?>