<div class="featured-box-area">

    <?php if(get_theme_mod('ct_promo1_title') || get_theme_mod('ct_promo1_image')) : ?>
        <div class="featured-box-item" style="background-image:url(<?php if(get_theme_mod('ct_promo1_image')) { echo get_theme_mod('ct_promo1_image'); } else { echo get_template_directory_uri() . '/img/slider-default.png'; } ?>)">
            <?php if(get_theme_mod('ct_promo1_url')) : ?><a href="<?php echo get_theme_mod('ct_promo1_url'); ?>" class="featured-box-link"></a><?php endif; ?>
            <div class="featured-box-overlay">
                <?php if(get_theme_mod('ct_promo1_title')) : ?>
                    <h4><?php echo get_theme_mod('ct_promo1_title'); ?></h4>
                <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>

    <?php if(get_theme_mod('ct_promo2_title') || get_theme_mod('ct_promo2_image')) : ?>
        <div class="featured-box-item" style="background-image:url(<?php if(get_theme_mod('ct_promo2_image')) { echo get_theme_mod('ct_promo2_image'); } else { echo get_template_directory_uri() . '/img/slider-default.png'; } ?>)">
            <?php if(get_theme_mod('ct_promo2_url')) : ?><a href="<?php echo get_theme_mod('ct_promo2_url'); ?>" class="featured-box-link"></a><?php endif; ?>
            <div class="featured-box-overlay">
                <?php if(get_theme_mod('ct_promo2_title')) : ?>
                    <h4><?php echo get_theme_mod('ct_promo2_title'); ?></h4>
                <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>

    <?php if(get_theme_mod('ct_promo3_title') || get_theme_mod('ct_promo3_image')) : ?>
        <div class="featured-box-item" style="background-image:url(<?php if(get_theme_mod('ct_promo3_image')) { echo get_theme_mod('ct_promo3_image'); } else { echo get_template_directory_uri() . '/img/slider-default.png'; } ?>)">
            <?php if(get_theme_mod('ct_promo3_url')) : ?><a href="<?php echo get_theme_mod('ct_promo3_url'); ?>" class="featured-box-link"></a><?php endif; ?>
            <div class="featured-box-overlay">
                <?php if(get_theme_mod('ct_promo3_title')) : ?>
                    <h4><?php echo get_theme_mod('ct_promo3_title'); ?></h4>
                <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>


    <?php if(get_theme_mod('ct_promo4_title') || get_theme_mod('ct_promo4_image')) : ?>
        <div class="featured-box-item" style="background-image:url(<?php if(get_theme_mod('ct_promo4_image')) { echo get_theme_mod('ct_promo4_image'); } else { echo get_template_directory_uri() . '/img/slider-default.png'; } ?>)">
            <?php if(get_theme_mod('ct_promo4_url')) : ?><a href="<?php echo get_theme_mod('ct_promo4_url'); ?>" class="featured-box-link"></a><?php endif; ?>
            <div class="featured-box-overlay">
                <?php if(get_theme_mod('ct_promo4_title')) : ?>
                    <h4><?php echo get_theme_mod('ct_promo4_title'); ?></h4>
                <?php endif; ?>
            </div>
        </div>
    <?php endif; ?>

</div>