<?php if (!empty($SC['modules']['contact']['settings']['vCards_Enabled']) && is_numeric($selected_rn)): ?>
<div class="vcard_button_outer">
<button class="vcard_button" type="button" onclick="window.location='<?php print $SC['modules']['contact']['dyn_root'] ?>/vcard.php?type=user&rn=<?php print $selected_rn ?>'; return false;">
	<img src="<?php print $SC['modules']['contact']['dyn_root'] ?>/images/vcard.png" alt="vcard" /><span>Download vCard</span>
</button>
</div>
<?php endif; ?>