<?php

/**
 * The template for displaying Our Stone.
 *
 * 
 */


$pageField = get_fields();
$showHide = $pageField['show_hide_ss_our_stone'];
$heading = $pageField['heading_our_stone'];
$des = $pageField['des_our_stone'];
$ctaButton = $pageField['cta_button_our_stone'];

?>
<?php if( !empty($showHide) ): ?>
    <section class="our-stone-section section">
        <div class="container">
            <div class="wrapper">
            <?php if( !empty($heading) ): ?>
                <h2 class="heading-section"><?php echo $heading; ?></h2>
            <?php endif; ?>
            <?php if( !empty($des) ): ?>
                <div class="des-section"><?php echo $des; ?></div>
            <?php endif; ?>
            <?php if( !empty($ctaButton['title']) ): ?>
                <div class="cta-button-wrap">
                    <a href="<?php echo $ctaButton['url']; ?>" class="cta-button" target="<?php echo $ctaButton['target']; ?>">
                        <span><?php echo $ctaButton['title']; ?></span>
                    </a>
                </div>
            <?php endif; ?>
            </div>
        </div>
    </section>
<?php endif; ?>
