<?php 
/**
 * Template part for displaying Call to action Section
 *
 *@package Rock Singer
 */
?>
    <?php 
        $call_to_action_title              = rock_singer_get_option( 'call_to_action_title' );
        $call_to_action_button_label       = rock_singer_get_option( 'call_to_action_button_label' );
        $call_to_action_button_url         = rock_singer_get_option( 'call_to_action_button_url' );
    ?>

    <div class="wrapper">
        <div class="cta-wrapper clear">
            <?php if ( !empty($call_to_action_title ) )  :?>
                <header class="entry-header">
                    <h2 class="entry-title"><?php echo esc_html($call_to_action_title); ?></h2>
                </header><!-- .entry-header -->
            <?php endif;?>

            <?php if ( !empty($call_to_action_button_label ) )  :?>
                <div class="read-more">
                    <a href="<?php echo esc_url($call_to_action_button_url); ?>" class="btn"><?php echo esc_html($call_to_action_button_label); ?><i class="fa-solid fa-arrow-up-right-from-square"></i></a>
                </div><!-- .read-more -->
            <?php endif;?>
        </div><!-- .cta-wrapper -->
    </div><!-- .wrapper -->

