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

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

$ca_biz_startup_section_one = get_theme_mod('ca_biz_startup_features_enable');
if ('Disable' == $ca_biz_startup_section_one) {
    return;
}
?>

<section id="features" class="features-section">
    <div class="container">
        <div class="row">

            <div class="col-lg-4 col-12">
                <?php if (get_theme_mod('ca_biz_startup_featureimage1_section') != '' || get_theme_mod('ca_biz_startup_feature1_title') != '' || get_theme_mod('ca_biz_startup_feature1_text') != '') { ?>
                    <div class="feature-box">
                        <?php if (get_theme_mod('ca_biz_startup_featureimage1_section') != '') { ?>
                            <img src="<?php echo esc_url(get_theme_mod('ca_biz_startup_featureimage1_section')); ?>" alt="<?php echo esc_attr(get_theme_mod('ca_biz_startup_feature1_title')); ?>">
                        <?php } ?>
                        <h3><?php echo esc_html(get_theme_mod('ca_biz_startup_feature1_title')); ?></h3>
                        <p><?php echo esc_html(get_theme_mod('ca_biz_startup_feature1_text')); ?></p>
                    </div>
                <?php } ?>
            </div>

            <div class="col-lg-4 col-12">
                <?php if (get_theme_mod('ca_biz_startup_featureimage2_section') != '' || get_theme_mod('ca_biz_startup_feature2_title') != '' || get_theme_mod('ca_biz_startup_feature2_text') != '') { ?>
                    <div class="feature-box">
                        <?php if (get_theme_mod('ca_biz_startup_featureimage2_section') != '') { ?>
                            <img src="<?php echo esc_url(get_theme_mod('ca_biz_startup_featureimage2_section')); ?>" alt="<?php echo esc_attr(get_theme_mod('ca_biz_startup_feature2_title')); ?>">
                        <?php } ?>
                        <h3><?php echo esc_html(get_theme_mod('ca_biz_startup_feature2_title')); ?></h3>
                        <p><?php echo esc_html(get_theme_mod('ca_biz_startup_feature2_text')); ?></p>
                    </div>
                <?php } ?>
            </div>

            <div class="col-lg-4 col-12">
                <?php if (get_theme_mod('ca_biz_startup_featureimage3_section') != '' || get_theme_mod('ca_biz_startup_feature3_title') != '' || get_theme_mod('ca_biz_startup_feature3_text') != '') { ?>
                    <div class="feature-box">
                        <?php if (get_theme_mod('ca_biz_startup_featureimage3_section') != '') { ?>
                            <img src="<?php echo esc_url(get_theme_mod('ca_biz_startup_featureimage3_section')); ?>" alt="<?php echo esc_attr(get_theme_mod('ca_biz_startup_feature3_title')); ?>">
                        <?php } ?>
                        <h3><?php echo esc_html(get_theme_mod('ca_biz_startup_feature3_title')); ?></h3>
                        <p><?php echo esc_html(get_theme_mod('ca_biz_startup_feature3_text')); ?></p>
                    </div>
                <?php } ?>
            </div>

        </div>
    </div>
</section>
