<?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
//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."img/breatcome_bg.jpg"; 
   } 
?>
<!-- Start Breadcrumbs -->
<div class="breadcrumbs overlay" style="background-image:url(<?=$img?>)">
   <div class="container">
      <div class="bread-inner">
         <div class="row">
            <div class="col-12">
               <h2><?php the_title();?></h2>
               <ul class="bread-list">
                  <li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">Home</a></li>
                  <li><i class="icofont-simple-right"></i></li>
                  <li class="active"><?php the_title();?></li>
               </ul>
            </div>
         </div>
      </div>
   </div>
</div>
<!-- End Breadcrumbs -->

<section class="aon-med-future-area bg-white" id="achievements">
      <div class="container">
        <div class="row">
          <div class="col-lg-12 col-md-12 col-sm-12 col-12">
            <div class="section-head left text-center">
              <?php the_content();?>
            </div>
          </div>
		<?php if(have_rows('first_section_logos')): ?>
            <?php $i=0; while(have_rows('first_section_logos')): ?>
                <?php the_row(); ?> 	
			<div class="col-lg-4 col-md-4 col-sm-12 col-12">
			   <div class="awards1"><img src="<?php the_sub_field('image'); ?>"></div>
			  </div>
		<?php $i++; endwhile; ?>
          <?php endif; ?>
        </div>
      </div>
    </section>
	  

    <section class="aon-med-appoint-area3" id="achievementspic" style="background-color: #ebebeb;">
      <div class="container">
        <div class="row">
          <div class="col-md-7 col-sm-12 col-12">
            <div class="aon-med-appoint-area2-content">
              <div class="section-head white">
                <h2 class="aon-title"><?php the_field('second_section_title');?></h2>
                <?php the_field('second_section_content');?></div>
            </div>
          </div>
          <div class="col-md-5 col-sm-12 col-12 pr-0">
            <div class="medalexcellence">
              <img src="<?php the_field('second_section_image');?>" alt="">
            </div>
          </div>
        </div>
      </div>
    </section>
	  
    <section class="aon-med-future-area bg-white" id="achievements">
      <div class="container">
        <div class="row">
          <div class="col-lg-12 col-md-12 col-sm-12 col-12">
            <div class="section-head left text-center">
              <h2 class="aon-title"><?php the_field('third_section_title');?></h2>
              <p><?php the_field('third_section_content');?></p>
            </div>
          </div>
			<?php if(have_rows('third_section_certificates')): ?>
            <?php $i=0; while(have_rows('third_section_certificates')): ?>
                <?php the_row(); ?> 
		
			<div class="col-lg-4 col-md-6 col-sm-12 col-12">
			   <div class="awards"><img src="<?php the_sub_field('image'); ?>"></div>
			  </div>
			  <?php $i++; endwhile; ?>
          <?php endif; ?>
        </div>
      </div>
    </section>
	 
<?php get_footer(); ?>