<?
/**
 * @package     Nooku_Server
 * @subpackage  Contacts
 * @copyright	Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		http://www.nooku.org
 */
?>

<!--
<script src="media://js/koowa.js" />
-->

<? if ($contact->params->get('allow_vcard', false)) : ?>
    <link href="<?= @route('format=vcard') ?>" rel="alternate" type="text/x-vcard; version=2.1" title="Vcard - <?= $contact->name; ?>"/>
<? endif; ?>

<?= @template('hcard.html') ?>

<?if ($contact->params->get('allow_vcard', false)) :?>
<p>
    <?= @text( 'Download information as a' );?>
    <a href="<?= @route('id='.$contact->id.'&format=vcard') ?>">
        <?= @text( 'VCard' );?>
    </a>
</p>
<? endif; ?>

<? if ( $contact->params->get('show_email_form', true) && $contact->email_to) : ?>
    <?= @object('com:contacts.controller.message')->render(array('contact' => $contact, 'category' => $category)); ?>
<? endif; ?>

<?
/**
 * @package     Nooku_Server
 * @subpackage  Contacts
 * @copyright	Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		http://www.nooku.org
 */
?>

<!--
<script src="media://js/koowa.js" />
-->

<? if ($contact->params->get('allow_vcard', false)) : ?>
    <link href="<?= @route('format=vcard') ?>" rel="alternate" type="text/x-vcard; version=2.1" title="Vcard - <?= $contact->name; ?>"/>
<? endif; ?>

<?= @template('hcard.html') ?>

<?if ($contact->params->get('allow_vcard', false)) :?>
<p>
    <?= @text( 'Download information as a' );?>
    <a href="<?= @route('id='.$contact->id.'&format=vcard') ?>">
        <?= @text( 'VCard' );?>
    </a>
</p>
<? endif; ?>

<? if ( $contact->params->get('show_email_form', false) && $contact->email_to) : ?>
    <?= @object('com:contacts.controller.message')->render(array('contact' => $contact, 'category' => $category)); ?>
<? endif; ?>

Hide email form by default
Hide email form by default
