<?php get_header(); ?>
<?php $template_url = get_bloginfo ( 'template_url' ) . '/'; ?>
<?php 
   //to check if there is a post regarding the url access the page
   if (have_posts ()) :
     the_post(); 
   endif;
   $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'thumbnail' );
   if($url != "")
   {
   $img = $url; 
   }else{
   $img = $template_url."images/background/page-title.jpg"; 
   }
?>
<section class="page_title page_title__img-03">
    <div class="page_title__padding">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="page_title__content">
                        <h1>Team Details</h1>
                        <div class="page_title__bread-crumb">
                            <ul>
                                <li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">Home</a></li>
                                <li><a href="#">Team Details</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- |==========================================| -->
        <!-- |=====|| Profile Start ||===============| -->
        <section class="profile1">
            <div class="content_box_100">
                <div class="container">
                    <div class="row">
                        <div class="col-lg-4 order-2 order-lg-0">
                            <div class="sidebar1">
                                <div class="sidebar1__info mb-40">
                                    <div class="sidebar1__info--thumb">
                                        <img class="img_100" src="<?php echo get_the_post_thumbnail_url( get_the_ID(),'full');?>" alt="OilyTheme">
                                    </div>
                                    <div class="sidebar1__info--content text-center">
                                        <h3><a href="#"><?php echo get_the_title();?></a></h3>
                                        <p class="m-0"><?php echo get_the_excerpt();?></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-8">
                            <div class="profile1__Wrapper">
                                <div class="profile1__title mb-30">
                                    <h2><?php echo get_the_title();?></h2>
                                    <h6><?php echo get_the_excerpt();?></h6>
                                </div>
                                <div class="profile1__content">
                                   <?php echo get_the_content();?>
                                </div>
                           
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- |=====|| Profile End ||=================| -->
        <!-- |==========================================| -->
    </main>

<?php get_footer(); ?>