<?php /* Template Name: Sectors Page Template */ get_header(); ?>
	<main role="main">
	    <?php $backgroundImg = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );?>
		<div class="header-wrap" style="background:linear-gradient(90deg, rgba(7, 53, 96, 0.87), rgba(8, 8, 9, 0.37)), url('<?php echo $backgroundImg[0]; ?>') no-repeat center center; min-height: 250px; padding-top: 10%;  background-size:cover;">
        <div class="container"><div class="row"><div class="col-lg-12 align-self-baseline">
        <h1 class="entry-title"><?php the_title(); ?></h1>
        <?php
            if ( function_exists('yoast_breadcrumb') ) {
                yoast_breadcrumb( '<p id="breadcrumbs">','</p><p>' );
            }
        ?>
        </div></div></div>
    </div>
		<!-- section -->
		<section class="services-pg">
            <div class="container">
                <div class="row">
                <div class="col-lg-8">
                  <?php if (have_posts()): while (have_posts()) : the_post(); ?>

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

				<?php the_content(); ?>

				<?php comments_template( '', true ); // Remove if you don't want comments ?>

				<span class="clear"></span>

				<?php edit_post_link(); ?>

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

		<?php endwhile; ?>

		<?php else: ?>

			<!-- article -->
			<article>

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

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

		<?php endif; ?>  
                </div>
                <div class="col-lg-4"> 
                <div class=""> 
                <?php  dynamic_sidebar('servsidebar');?> 
                </div>
                </div>
            </div>
		
            </div>
		</section>
		<!-- /section -->
	</main>

<?php get_footer(); ?>
