Si he entendido bien lo que quieres hacer, la respuesta es muy simple.
Código PHP:
<div style="text-align:center;"><a href="http://www.agregarestelink.com/<?php echo dehtml($dnn2['url']); ?>" target="_blank"><img src="<?php echo dehtml($dnn2['banner']); ?>" alt="<?php echo dehtml($dnn2['name']); ?>" style="max-width:500px;max-height:200px;" /></a></div>
Un saludo.