<?php 
/* Template Name: Services Page Template */ 
get_header(); 
include get_template_directory() . '/inc/menus/menu1.php'; 
?>
<main role="main">
    <?php
    // Get the featured image URL
    $backgroundImg = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );?>
    <section class="product-header" style="background: linear-gradient(to right, rgba(10, 113, 58, 0.95), rgba(10, 113, 58, 0.05)), url('<?php echo $backgroundImg[0]; ?>') no-repeat;background-size: cover;background-position: center center; ">
        <div class="overlay">
        <div class="container page-title">
                <div class="row align-items-center">
                    <div class="col-lg-12 align-self-center" data-aos="fade-up"> 
                        <h1 class="entry-title"><?php the_title(); ?></h1>
                        <?php custom_breadcrumb(); ?>
                    </div>
                </div>
        </div>
        </div>
    </section><!-- Header Section !-->
    <section>
        <div class="product-page">
            <div class="container">
                <div class="row">
                    <div class="col-lg-9 mb-3">
                    <?php if (have_posts()): while (have_posts()) : the_post(); ?>
                        <!-- article -->
                        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

                            <?php the_content(); ?>

                            

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

                        <?php endwhile; ?>

                        <?php else: ?>

                        <!-- article -->
                        <article>

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

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

                        <?php endif; ?>
                    </div><!-- main content !-->
                    <div class="col-lg-3 mb-3 sidebar">
                        <div class="card card-body gree shadow-sm mb-md-4 mb-3" data-aos="fade-up" duration="1000"> 
                            <h3>Company Brochure</h3>
                            <p>Passions Services is Uganda's leading Compound Design, Landscaping, Stone cladding company since 2006.<br/><span class="text-warning"> Download full profile here</span></p>
                            
                            <a href="https://passionsservicesltd.com/downloads/company-profile/" class="btn btn-lg btn-warning">Download</a>
                        </div>
                        <!-- support !-->
                        <div class="card card-body ahelp shadow-sm mb-3" data-aos="fade-up">
                            <div class="text-center py-3 mb-md-4 mb-3">
                                <img src="<?= get_template_directory_uri();?>/assets/images/support.gif" alt="Passions Services" class="img-fluid">
                            </div> 
                            <h3>Need Help?</h3>
                            <div class="call">+256 782 451 967</div>
                            <a href="tel:+256782451967" class="btn btn-lg btn-success">Call Now</a>
                        </div>
                    </div><!-- sidebar !-->
                    <div class="col-md-12"><?php edit_post_link(); ?></div>
                </div>
            </div>
        </div><!-- product div !-->
    </section>
    <!-- /section -->
</main>
<?php get_footer(); ?>