<?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=order&rn=<?php print $selected_rn ?>&addr_type=billing'; return false;">
	<img src="<?php print $SC['modules']['contact']['dyn_root'] ?>/images/vcard.png" alt="vcard" /><span>Download Billing Address vCard</span>
</button>
<button class="vcard_button" type="button" onclick="window.location='<?php print $SC['modules']['contact']['dyn_root'] ?>/vcard.php?type=order&rn=<?php print $selected_rn ?>&addr_type=shipping'; return false;">
	<img src="<?php print $SC['modules']['contact']['dyn_root'] ?>/images/vcard.png" alt="vcard" /><span>Download Shipping Address vCard</span>
</button>
</div>
<?php endif; ?>