<?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/crumbs/about-us.jpg"; 
   }
?>
<!-- breadcrumb start -->
<section class="page_breadcrumb position-relative" style="background-image: url(<?php echo $img;?>);">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <div class="breadcrumb_wrapper d-flex flex-column align-items-center justify-content-center">
                    <h2 class="breadcrumb_title text-white"><?php the_title();?></h2>
                    <nav aria-label="breadcrumb">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="<?php echo esc_url( home_url( '/' ) ); ?>">Home</a></li>
                            <li class="breadcrumb-item active" aria-current="page"><?php the_title();?></li>
                        </ol>
                    </nav>
                </div>
            </div>
        </div>
    </div>
</section>
<section id="aboutus" class="padding_b padding_t page_about_us">
    <div class="container">
        <div class="row align-items-stretch">
            <?php the_content()?>
        </div>
    </div>
</section>  

<?php get_footer(); ?>