<?php get_header(); ?>

	<main role="main">
    <?php $backgroundImg = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );?>
		<div class="header-wrap newspg-blog-header">
        <div class=""><div class="row"><div class="col-lg-12 align-self-baseline">
       <!-- <h3 class="entry-title text-white"><?php the_title(); ?></h3>-->
       <?php
            if ( function_exists('yoast_breadcrumb') ) {
                yoast_breadcrumb( '<p id=“breadcrumbs”>','' );
            }
        ?>
        </div></div></div>
    </div>
	    <section class="services section-bg">
            <div class="container servpages pt-5">
	        <div class="row">
	            <div class="col-lg-8 gblog">
	            <?php if (have_posts()): while (have_posts()) : the_post(); ?>
		<!-- article -->
		<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

			<!-- post thumbnail -->
			<div class="blogpg-image">
			<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
					<?php the_post_thumbnail(); // Fullsize image for the single post ?>
			<?php endif; ?>
			<!-- /post thumbnail -->
			</div>
			<div class="kipya-blog-meta">
			 <!-- post title -->
			<h1 class="blogpg-heading">
				<?php the_title(); ?>
			</h1>
			<!-- /post title -->
			<div class="blogpg-meta-box">
        		<span class="date"><i class="bi bi-calendar-check"></i> <?php the_time('F j, Y'); ?> </span> &nbsp;&nbsp;
        	
        		 &nbsp;&nbsp;
        		<span class="author"><i class="bi bi-folder-fill"></i> <?php the_category(', '); // Separated by commas ?></span>
        		</div>
                </div>
                <hr>

			<?php the_content(); // Dynamic Content ?>
			
				<?php the_tags( __( 'Tags: ', 'html5blank' ), ', ', '<br>'); // Separated by commas with a line break at the end ?>
			<?php edit_post_link(); // Always handy to have Edit Post Links available ?>
			<h3>Share this</h3>
			<hr>

		<div class="sharethis-inline-share-buttons py-2"></div>

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

	<?php endwhile; ?>

	<?php else: ?>

		<!-- article -->
		<article>

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

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

	<?php endif; ?>

			
	            </div>
	            <div class="col-lg-4 psidebar">
	                <?php  dynamic_sidebar('widget-area-2');?>
	            </div>
	        </div>
	    </div>

	</main>



<?php get_footer(); ?>
