<?php if(!empty(get_theme_mod( 'anews_home_ads1_select'))) : ?>
<div class="anews-home-advertisement-wrapper">
    <div class="container">
        <div class="row justify-content-md-center">
            <div class="col col-lg-8">
                <div class="anews-home-ads-inner">
                    <?php if( 'link' == get_theme_mod( 'anews_home_ads1_select', true )) { ?>
                    <a href="<?php echo esc_url(get_theme_mod( 'anews_home_ads1_link' )); ?>">
                        <img src="<?php echo esc_url(get_theme_mod('anews_home_ads1_img','')); ?>" alt="<?php esc_attr_e('anews Banner','anews') ?>">
                    </a>
                    <?php } else {
                        echo get_theme_mod('anews_home_ads1_code');
                    } 
                    ?>
                </div>
            </div>
        </div>
    </div>
</div>
<?php endif; ?>