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
2015-12-28 13:28:17 +01:00

42 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('s')}
{if="$url"}
<span class="primary icon bubble">
<img src="{$url}">
</span>
{else}
<span class="primary icon bubble color {$value->jid|stringToColor}">
<i class="zmdi zmdi-account"></i>
</span>
{/if}
<p class="normal">
{if="$value->getAge()"}
<span class="info">{$c->__('age.years', $value->getAge())}</span>
{/if}
{if="$value->getGender()"}
<span class="info">{$value->getGender()}</span>
{/if}
{$value->getTrueName()}
</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}