<?php
   if ( ! defined( 'ABSPATH' ) ) {
     exit; // Exit if accessed directly
   }
?>

<?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/inner-banner-bg-1-1.jpg"; 
   }
?>
<section class="inner-banner bg-repeat-no bg-pos-center-center bg-coveer-sz" style="background-image: url(<?php echo $img;?>);">
   <div class="container">
      <h2 class="inner-banner__title"><?php the_title();?></h2>
      <!-- /.inner-banner__title -->
      <ul class="thm-breadcrumb">
         <li class="thm-breadcrumb__item"><a class="thm-breadcrumb__link" href="<?php echo esc_url( home_url( '/' ) ); ?>">Home</a></li>
         <li class="thm-breadcrumb__item current"><a class="thm-breadcrumb__link" href="#"><?php the_title();?></a></li>
      </ul>
      <!-- /.thm-breadcrumb -->
   </div>
   <!-- /.container -->
</section>
    
<section class="blog-two blog-two__blog-grid sidebar-page">
    <div class="container">
        <div class="row high-gutters justify-content-center">
            <div class="col-lg-12">
                <?php the_content();?>
                <div class="row">
                    <?php echo do_shortcode('[BP_blog]');?>
                </div><!-- /.row -->
            </div><!-- /.col-lg-8 -->
    
        </div><!-- /.row -->
    </div><!-- /.container -->
</section><!-- /.blog-two -->
<?php get_footer(); ?>