2015-08-03 11:35:01 +02:00
|
|
|
<li
|
|
|
|
id="{$contact->jid}_chat_item"
|
|
|
|
data-jid="{$contact->jid}"
|
|
|
|
class="
|
|
|
|
{if="isset($message)"}condensed{/if}
|
|
|
|
{if="$contact->last > 60"} inactive{/if}
|
2015-11-13 13:37:39 +01:00
|
|
|
{if="$caps && in_array($caps->type, array('handheld', 'phone', 'web'))"}
|
2015-08-03 11:35:01 +02:00
|
|
|
action
|
|
|
|
{/if}
|
|
|
|
"
|
|
|
|
title="{$contact->jid}">
|
|
|
|
{$url = $contact->getPhoto('s')}
|
|
|
|
{if="$url"}
|
2015-12-21 22:59:03 +01:00
|
|
|
<span class="primary icon bubble {if="isset($presence)"}status {$presence}{/if}">
|
2015-08-03 11:35:01 +02:00
|
|
|
<img src="{$url}">
|
|
|
|
</span>
|
|
|
|
{else}
|
2015-12-21 22:59:03 +01:00
|
|
|
<span class="primary icon bubble color {$contact->jid|stringToColor} {if="isset($presence)"}status {$presence}{/if}">
|
2015-08-03 11:35:01 +02:00
|
|
|
<i class="zmdi zmdi-account"></i>
|
|
|
|
</span>
|
|
|
|
{/if}
|
2015-12-21 22:59:03 +01:00
|
|
|
|
|
|
|
{if="$caps && in_array($caps->type, array('handheld', 'phone'))"}
|
|
|
|
<span class="control icon gray">
|
|
|
|
<i class="zmdi zmdi-smartphone"></i>
|
|
|
|
</span>
|
|
|
|
{/if}
|
|
|
|
{if="$caps && $caps->type == 'web'"}
|
|
|
|
<span class="control icon gray">
|
|
|
|
<i class="zmdi zmdi-globe-alt"></i>
|
|
|
|
</span>
|
|
|
|
{/if}
|
|
|
|
<span data-key="chat|{$contact->jid}" class="counter bottom"></span>
|
|
|
|
<p class="normal">
|
|
|
|
<span class="info">{$message->published|strtotime|prepareDate}</span>
|
|
|
|
{$contact->getTrueName()}
|
|
|
|
</p>
|
2015-08-24 17:50:34 +02:00
|
|
|
{if="isset($status)"}
|
|
|
|
<p>{$status}</p>
|
|
|
|
{else}
|
|
|
|
{if="isset($message)"}
|
|
|
|
{if="preg_match('#^\?OTR#', $message->body)"}
|
|
|
|
<p><i class="zmdi zmdi-lock"></i> {$c->__('message.encrypted')}</p>
|
2015-12-21 22:59:03 +01:00
|
|
|
{elseif="stripTags(prepareString($message->body)) != ''"}
|
2015-11-13 13:37:39 +01:00
|
|
|
<p>{$message->body|prepareString|stripTags}</p>
|
2015-08-24 17:50:34 +02:00
|
|
|
{/if}
|
2015-08-03 11:35:01 +02:00
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
</li>
|