<?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>
<!-- /.inner-banner -->
<section class="contact-one">
            <div class="container">
                <div class="row justify-content-between">
                    <div class="col-lg-7 col-md-12 col-sm-12">
                        <div class="contact-one__form ">
                            <div class="block-title">
                                <p class="block-title__tag-line block-title__tag-line-has-line text-uppercase">Contact</p>
                                <!-- /.block-title__title -->
                            </div><!-- /.block-title -->
                            <div class="row">
                               <?php echo do_shortcode('[contact-form-7 id="290726f" title="Contact form"]');?>
                            </div><!-- /.row -->
                        </div><!-- /.contact-one__form -->
                    </div><!-- /.col-lg-8 -->
                    <div class="col-lg-5 col-md-12 col-sm-12">
                        <div class="contact-one__info">
                            <a href="#"><div class="contact-one__info-single">
                                <i class="fas fa-home"></i>
                                <h3 class="contact-one__info-title">Address</h3><!-- /.contact-one__info-title -->
                                <p class="contact-one__info-text"><?php echo html_entity_decode( get_option( 'option_61' ) );?></p><!-- /.contact-one__info-text -->
                            </div></a><!-- /.contact-one__info-single -->
                            <a href="mailto:<?php echo html_entity_decode( get_option( 'option_71' ) );?>"><div class="contact-one__info-single">
                                <i class="fas fa-envelope"></i>
                                <h3 class="contact-one__info-title">Email</h3><!-- /.contact-one__info-title -->
                                <p class="contact-one__info-text"><?php echo html_entity_decode( get_option( 'option_71' ) );?></p><!-- /.contact-one__info-text -->
                            </div></a><!-- /.contact-one__info-single -->
                            <a href="tel:<?php echo html_entity_decode( get_option( 'option_8' ) );?>"><div class="contact-one__info-single">
                                <i class="fas fa-phone-alt"></i>
                                <h3 class="contact-one__info-title">Call Now</h3><!-- /.contact-one__info-title -->
                                <p class="contact-one__info-text"><?php echo html_entity_decode( get_option( 'option_8' ) );?></p><!-- /.contact-one__info-text -->
                            </div></a><!-- /.contact-one__info-single -->
                        </div><!-- /.contact-one__info -->
                    </div><!-- /.col-lg-3 -->
                </div><!-- /.row -->
            </div><!-- /.container -->
        </section><!-- /.contact-one -->
    
        <section class="contact-map">
                <iframe src="<?php echo html_entity_decode( get_option( 'option_9' ) );?>" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
        </section><!-- /.contact-map -->
<?php get_footer(); ?>