1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/app/widgets/Contact/_contact_public.tpl
2016-03-17 13:44:43 +01:00

41 lines
1.3 KiB
Smarty

{loop="$users"}
<li class="block" style="background-image: url();" onclick="Contact_ajaxGetContact('{$value->jid}', {if="$page"}{$page}{else}0{/if});">
{$url = $value->getPhoto('l')}
{if="$url"}
<span class="primary icon thumb" style="background-image: url({$url});">
</span>
{else}
<span class="primary icon thumb color {$value->jid|stringToColor}">
<i class="zmdi zmdi-account"></i>
</span>
{/if}
<p class="normal">
{$value->getTrueName()}
{if="$value->getAge()"}
<span class="second">{$c->__('age.years', $value->getAge())}</span>
{/if}
{if="$value->getGender()"}
<span class="second">{$value->getGender()}</span>
{/if}
</p>
{if="$value->description != ''"}
<p>
{$value->description|strip_tags}
</p>
{/if}
</li>
{/loop}
{if="$pages"}
<li class="block">
<span class="primary icon gray">
<i class="zmdi zmdi-book"></i>
</span>
<p>
{loop="$pages"}
<a onclick="Contact_ajaxPublic({$key});" class="button flat {if="$key == $page"}on{/if}">{$key+1}</a>
{/loop}
</p>
</li>
{/if}