<a href="<?php echo($C->SITE_URL.'ads-click/a:'.$D->ads_code); ?>" class="undecorated" target="_blank">
<div class="oneAds mrg10T">
	<?php if (!empty($D->ads_image)) { ?>
	<div class="imageads"><img src="<?php echo $C->SITE_URL.$C->FOLDER_ADS.'min2/'.$D->ads_image?>" width="<?php echo $C->widthAd1?>" height="<?php echo $C->heightAd1?>"></div>
    <?php } ?>
    <div class="headline"><?php echo $D->ads_Headline?></div>
    <div class="urlvisible"><?php echo $D->ads_URLVisible?></div>
    <div class="descriptiveline"><?php echo $D->ads_Description1?></div>
    <div class="descriptiveline"><?php echo $D->ads_Description2?></div>
</div>
</a>

<?php if ($D->adsEnds == 1) { ?>
<div class="mrg5B"></div>
<?php } else { ?>
<hr class="mrg15T mrg10B grey">
<?php } ?>