<?php
/**
 * Home Section 1 Template
 *
 * @package Cat Ecommerce
 */

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

$cat_ecommerce_section_one = get_theme_mod('cat_ecommerce_section_banner');
if ('Disable' == $cat_ecommerce_section_one) {
    return;
}
?>

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

    <?php if (get_theme_mod('cat_ecommerce_section_bannerimage_section_left') != '' || get_theme_mod('cat_ecommerce_section_bannerimage_section') != '') { ?>
        <div class="main-banner-main container-fluid">
            <div class="row">
                <div class="col-lg-6 col-md-6 col-12">
                    <?php if (get_theme_mod('cat_ecommerce_section_bannerimage_section_left') != '') { ?>
                        <div class="firstban-image">
                            <img src="<?php echo esc_url(get_theme_mod('cat_ecommerce_section_bannerimage_section_left')); ?>" alt="Left Image">
                        </div>
                    <?php } ?>

                    <div class="text-box">
                        <?php if (get_theme_mod('cat_ecommerce_section_bannerimage_section_title') != '') { ?>
                            <h2><?php echo esc_html(get_theme_mod('cat_ecommerce_section_bannerimage_section_title')); ?></h2>
                        <?php } ?>
                        <?php if (get_theme_mod('cat_ecommerce_section_bannerimage_section_text') != '') { ?>
                            <p><?php echo esc_html(get_theme_mod('cat_ecommerce_section_bannerimage_section_text')); ?></p>
                        <?php } ?>

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

                </div>
                <div class="col-lg-6 col-md-6 col-12">
                    <?php if (get_theme_mod('cat_ecommerce_section_bannerimage_section') != '') { ?>
                        <div class="ban-image">
                            <img src="<?php echo esc_url(get_theme_mod('cat_ecommerce_section_bannerimage_section')); ?>" alt="Right Image">
                        </div>
                    <?php } ?>
                </div>
            </div>
        </div>
    <?php } ?>
</section>
