<?php 
    /* Template Name: Publications Page Template */ 
    get_header(); 
    include get_template_directory() . '/inc/menus/menu1.php'; 
?>
	<main role="main">
	    <?php
    // Get the featured image URL
    $featured_image_url = wp_get_attachment_url(get_post_thumbnail_id());
    ?>
    <section class="page-header" style="background-image: url('<?php echo esc_url($featured_image_url); ?>');">
        <div class="overlay"></div>
        <div class="container-fluid page-header-section">
            <div class="row page-header-content">
                <!--<div class="container col-md-12 col-sm-12">-->
                <!--    <h1 class="entry-title"><?php the_title(); ?></h1>-->
                <!--</div>-->
                <!-- Title & Excerpt !-->
                <div class="container-fluid breadcrumb-section col-md-12 col-sm-12">
                    <div class="container breadcrumb-container">
                        <?php custom_breadcrumb(); ?>
                    </div>
                </div><!-- breadcrumb !-->
            </div><!-- row !-->
        </div><!-- container !-->
    </section><!-- Header Section !-->
	<section>
		<div class="pub-content-area" data-aos="fade-up">
		    <?php if (have_posts()): while (have_posts()) : the_post(); ?>

			<!-- article -->
			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

				<?php the_content(); ?>
				
		</div>

				<?php edit_post_link(); ?>

			</article>
			<!-- /article -->

		<?php endwhile; ?>

		<?php else: ?>

			<!-- article -->
			<article>

				<h2><?php _e( 'Sorry, nothing to display.', 'kipya' ); ?></h2>

			</article>
			<!-- /article -->

		<?php endif; ?>
		    </div>
		</section>
		<!-- /section -->
 </main>


<?php get_footer(); ?>