<?php 
/**
 * Template part for displaying Call to action Section
 *
 *@package Spirit Business
 */
?>
    <?php 
        $spirit_business_call_to_action_title              = spirit_business_get_option( 'call_to_action_title' );
        $spirit_business_call_to_action_content            = spirit_business_get_option( 'call_to_action_content' );
        $spirit_business_call_to_action_button_label       = spirit_business_get_option( 'call_to_action_button_label' );
        $spirit_business_call_to_action_button_url         = spirit_business_get_option( 'call_to_action_button_url' );
    ?>

    <section id="call-to-action" class="section-gap">
        <div class="wrapper">
            <?php if ( !empty($spirit_business_call_to_action_title ) )  :?>
                <header class="entry-header">
                    <h2 class="entry-title"><?php echo esc_html($spirit_business_call_to_action_title); ?></h2>
                    <p class="entry-content"><?php echo esc_html($spirit_business_call_to_action_content); ?></p>
                </header><!-- .entry-header -->
            <?php endif;?>

            <?php if ( !empty($spirit_business_call_to_action_button_label ) )  :?>
                <div class="read-more">
                    <a href="<?php echo esc_url($spirit_business_call_to_action_button_url); ?>" class="btn"><?php echo esc_html($spirit_business_call_to_action_button_label); ?></a>
                </div><!-- .read-more -->
            <?php endif;?>
        </div><!-- .wrapper -->
    </section>

