<?php
/**
 * Theme banner section
 *
 * @package Minimal Muse
 */

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

<section id="banner-section-first">
    <div class="main-banner-main">
        <!-- Display banner image if set -->
        <?php if (get_theme_mod('minimal_muse_section_bannerimage_section') != '') { ?>
            <img src="<?php echo esc_url(get_theme_mod('minimal_muse_section_bannerimage_section')); ?>" alt="Banner Image">
            <div class="text-box">
                <!-- Display banner title if set -->
                <?php if (get_theme_mod('minimal_muse_section_bannerimage_section_title') != '') { ?>
                    <h2><?php echo esc_html(get_theme_mod('minimal_muse_section_bannerimage_section_title')); ?></h2>
                <?php } ?>
                
                <!-- Display banner text if set -->
                <?php if (get_theme_mod('minimal_muse_section_bannerimage_section_text') != '') { ?>
                    <p><?php echo esc_html(get_theme_mod('minimal_muse_section_bannerimage_section_text')); ?></p>
                <?php } ?>
            </div>
        <?php } ?>
    </div>
</section>
