<?php
/**
 * Home Section 1 Template
 *
 * @package CA BiZ Startup
 */

// Check if the banner section is enabled
$ca_biz_startup_section_one = get_theme_mod('ca_biz_startup_section_banner');
if ('Disable' == $ca_biz_startup_section_one) {
    return;
}
?>

<section id="banner-section-first">

    <?php if (get_theme_mod('ca_biz_startup_section_bannerimage_section') != '') { ?>
        <div class="main-banner-main">
            <img src="<?php echo esc_url(get_theme_mod('ca_biz_startup_section_bannerimage_section')); ?>" alt="Banner Image">
            <div class="text-box">
                <?php if (get_theme_mod('ca_biz_startup_section_bannerimage_section_title') != '') { ?>
                    <h2><?php echo esc_html(get_theme_mod('ca_biz_startup_section_bannerimage_section_title')); ?></h2>
                <?php } ?>
                
                <?php if (get_theme_mod('ca_biz_startup_section_bannerimage_section_text') != '') { ?>
                    <p><?php echo esc_html(get_theme_mod('ca_biz_startup_section_bannerimage_section_text')); ?></p>
                <?php } ?>

                <?php if (get_theme_mod('ca_biz_startup_banner_btn_text') != '') { ?>
                    <div class="theme-btn">
                        <a href="<?php echo esc_url(get_theme_mod('ca_biz_startup_banner_btn_text_url')); ?>"><?php echo esc_html(get_theme_mod('ca_biz_startup_banner_btn_text')); ?></a>
                    </div>
                <?php } ?>
            </div>
        </div>
    <?php } ?>
</section>
