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

40 lines
1.2 KiB
Smarty
Raw Normal View History

{loop="$users"}
2015-08-19 11:28:28 +02:00
<li class="{if="$value->description != ''"}condensed{/if} block" style="background-image: url();" onclick="Contact_ajaxGetContact('{$value->jid}', {$page});">
{$url = $value->getPhoto('s')}
{if="$url"}
<span class="icon bubble">
<img src="{$url}">
</span>
{else}
<span class="icon bubble color {$value->jid|stringToColor}">
<i class="zmdi zmdi-account"></i>
</span>
{/if}
2015-08-19 11:28:28 +02:00
<span>{$value->getTrueName()}</span>
2015-08-19 11:28:28 +02:00
{if="$value->getAge()"}
<span class="info">{$c->__('age.years', $value->getAge())}</span>
{/if}
{if="$value->getGender()"}
<span class="info">{$value->getGender()}</span>
{/if}
{if="$value->description != ''"}
<p>
{$value->description|strip_tags}
</p>
{/if}
</li>
{/loop}
{if="$pages"}
<li class="block condensed">
<span class="icon gray">
<i class="zmdi zmdi-my-library-books"></i>
</span>
{loop="$pages"}
<a onclick="Contact_ajaxPublic('{$key}');" class="button flat {if="$key == $page"}on{/if}">{$key+1}</a>
{/loop}
</li>
{/if}