2015-08-03 11:35:01 +02:00
|
|
|
<section class="scroll">
|
|
|
|
<h3>{$c->__('chats.add')}</h3>
|
2015-12-21 22:59:03 +01:00
|
|
|
<ul class="list active" id="add_extend">
|
|
|
|
<li class="subheader">
|
|
|
|
<p>{$c->__('chats.frequent')}</p>
|
|
|
|
</li>
|
2015-08-03 11:35:01 +02:00
|
|
|
{loop="$top"}
|
|
|
|
{if="!in_array($value->jid, $chats)"}
|
2015-12-21 22:59:03 +01:00
|
|
|
<li class="{if="$value->last > 60"} inactive{/if}"
|
2015-08-03 11:35:01 +02:00
|
|
|
onclick="Chats_ajaxOpen('{$value->jid}'); Dialog.clear()">
|
|
|
|
{$url = $value->getPhoto('s')}
|
|
|
|
{if="$url"}
|
2015-12-21 22:59:03 +01:00
|
|
|
<span class="primary icon bubble
|
2015-08-03 11:35:01 +02:00
|
|
|
{if="$value->value"}
|
|
|
|
status {$presencestxt[$value->value]}
|
|
|
|
{/if}">
|
|
|
|
<img src="{$url}">
|
|
|
|
</span>
|
|
|
|
{else}
|
2015-12-21 22:59:03 +01:00
|
|
|
<span class="primary icon bubble color {$value->jid|stringToColor}
|
2015-08-03 11:35:01 +02:00
|
|
|
{if="$value->value"}
|
|
|
|
status {$presencestxt[$value->value]}
|
|
|
|
{/if}">
|
|
|
|
<i class="zmdi zmdi-account"></i>
|
|
|
|
</span>
|
|
|
|
{/if}
|
2015-12-21 22:59:03 +01:00
|
|
|
<p class="line">{$value->getTrueName()}</p>
|
|
|
|
<p class="line">{$value->jid}</p>
|
2015-08-03 11:35:01 +02:00
|
|
|
</li>
|
|
|
|
{/if}
|
|
|
|
{/loop}
|
|
|
|
<li onclick="Chats_ajaxAddExtend()">
|
2015-12-21 22:59:03 +01:00
|
|
|
<span class="primary icon">
|
2015-08-03 11:35:01 +02:00
|
|
|
<i class="zmdi zmdi-plus"></i>
|
|
|
|
</span>
|
2015-12-21 22:59:03 +01:00
|
|
|
<p class="normal">{$c->__('chats.more')}</p>
|
2015-08-03 11:35:01 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<br />
|
|
|
|
<!--<div id="search_results">
|
|
|
|
|
|
|
|
</div>-->
|
|
|
|
</section>
|
|
|
|
<div>
|
|
|
|
<a onclick="Dialog.clear()" class="button flat">
|
|
|
|
{$c->__('button.close')}
|
|
|
|
</a>
|
|
|
|
</div>
|