<?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."assets/images/breadcrumb/breadcrumb-1.png"; 
   }
?>
<section class="breadcrumb-area" style="background-image: url(<?=$img?>);">
    <div class="banner-curve"></div>
    <div class="container">
        <div class="row">
            <div class="col-xl-12">
                <div class="inner-content clearfix text-center">
                    <div class="title wow slideInUp animated" data-wow-delay="0.3s" data-wow-duration="1500ms">
                       <h2><?php the_title();?><span class="dotted"></span></h2>
                    </div>
                    <div class="breadcrumb-menu wow slideInDown animated" data-wow-delay="0.3s" data-wow-duration="1500ms">
                        <ul class="clearfix">
                            <li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">Home</a></li>
                            <li class="active"><?php the_title();?></li>
                        </ul>    
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!--End breadcrumb area-->
<!--Start Blog Style2 Area-->
<section id="blog-area" class="blog-grid-area">
    <div class="container">
        <div class="row">
            <?php echo do_shortcode('[EAH_blog]');?>   
            
        </div>
        
        <!--<div class="row">-->
        <!--    <div class="col-xl-12">-->
        <!--        <ul class="styled-pagination gray clearfix text-center">-->
        <!--            <li class="prev"><a href="#"><i class="fa fa-angle-double-left" aria-hidden="true"></i></a></li>-->
        <!--            <li class="active"><a href="#">1</a></li>-->
        <!--            <li><a href="#">2</a></li>-->
        <!--            <li><a href="#">3</a></li>-->
        <!--            <li class="dotted"><a href="#"><span>...</span></a></li>-->
        <!--            <li><a href="#">10</a></li>-->
        <!--            <li class="next"><a href="#"><i class="fa fa-angle-double-right" aria-hidden="true"></i></a></li>-->
        <!--        </ul>-->
        <!--    </div>-->
        <!--</div>-->
            
    </div>
</section>
<!--End Blog Style2 Area-->
<?php get_footer(); ?>