<?php
/**
 * Home Section Template
 *
 * @package CA Charity Hope
 */

// All section-specific code goes here...

$ca_charity_hope_section_one = get_theme_mod('ca_charity_hope_section_banner');
if ('Disable' == $ca_charity_hope_section_one) {
    return;
}
?>

<section id="banner-section-first">
    <?php if (get_theme_mod('ca_charity_hope_section_bannerimage_section') != '') { ?>
        <div class="main-banner-main">
            <?php if (get_theme_mod('ca_charity_hope_section_bannerimage_section') != '') { ?>
                <img src="<?php echo esc_url(get_theme_mod('ca_charity_hope_section_bannerimage_section')); ?>" alt="<?php echo esc_attr(get_theme_mod('ca_charity_hope_section_bannerimage_section_title')); ?>">
            <?php } ?>
            <div class="text-box">
                <?php if (get_theme_mod('ca_charity_hope_section_bannerimage_section_title') != '') { ?>
                    <h2><?php echo esc_html(get_theme_mod('ca_charity_hope_section_bannerimage_section_title')); ?></h2>
                <?php } ?>
                <?php if (get_theme_mod('ca_charity_hope_section_bannerimage_section_text') != '') { ?>
                    <p><?php echo esc_html(get_theme_mod('ca_charity_hope_section_bannerimage_section_text')); ?></p>
                <?php } ?>
                
                <?php if (get_theme_mod('ca_charity_hope_banner_btn_text') != '') { ?>
                    <div class="theme-btn">
                        <a href="<?php echo esc_url(get_theme_mod('ca_charity_hope_banner_btn_text_url')); ?>">
                            <?php echo esc_html(get_theme_mod('ca_charity_hope_banner_btn_text')); ?>
                        </a>
                    </div>
                <?php } ?>
            </div>
        </div>
    <?php } ?>
</section>
