mirror of https://github.com/movim/movim
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							46 lines
						
					
					
						
							1.6 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							46 lines
						
					
					
						
							1.6 KiB
						
					
					
				
								<li
							 | 
						|
								    id="{$contact->jid}_chat_item"
							 | 
						|
								    data-jid="{$contact->jid}"
							 | 
						|
								    class="
							 | 
						|
								        {if="isset($message)"}condensed{/if}
							 | 
						|
								        {if="$contact->last > 60"} inactive{/if}
							 | 
						|
								        {if="$caps && in_array($caps->type, array('handheld', 'phone', 'web'))"}
							 | 
						|
								            action
							 | 
						|
								        {/if}
							 | 
						|
								        "
							 | 
						|
								    title="{$contact->jid}">
							 | 
						|
								    {if="$caps && in_array($caps->type, array('handheld', 'phone'))"}
							 | 
						|
								        <div class="action">
							 | 
						|
								            <i class="zmdi zmdi-smartphone"></i>
							 | 
						|
								        </div>
							 | 
						|
								    {/if}
							 | 
						|
								    {if="$caps && $caps->type == 'web'"}
							 | 
						|
								        <div class="action">
							 | 
						|
								            <i class="zmdi zmdi-globe-alt"></i>
							 | 
						|
								        </div>
							 | 
						|
								    {/if}
							 | 
						|
								    <span data-key="chat|{$contact->jid}" class="counter bottom"></span>
							 | 
						|
								    {$url = $contact->getPhoto('s')}
							 | 
						|
								    {if="$url"}
							 | 
						|
								        <span class="icon bubble {if="isset($presence)"}status {$presence}{/if}">
							 | 
						|
								            <img src="{$url}">
							 | 
						|
								        </span>
							 | 
						|
								    {else}
							 | 
						|
								        <span class="icon bubble color {$contact->jid|stringToColor} {if="isset($presence)"}status {$presence}{/if}">
							 | 
						|
								            <i class="zmdi zmdi-account"></i>
							 | 
						|
								        </span>
							 | 
						|
								    {/if}
							 | 
						|
								    <span>{$contact->getTrueName()}</span>
							 | 
						|
								    {if="isset($status)"}
							 | 
						|
								        <p>{$status}</p>
							 | 
						|
								    {else}
							 | 
						|
								        {if="isset($message)"}
							 | 
						|
								            <span class="info">{$message->published|strtotime|prepareDate}</span>
							 | 
						|
								            {if="preg_match('#^\?OTR#', $message->body)"}
							 | 
						|
								                <p><i class="zmdi zmdi-lock"></i> {$c->__('message.encrypted')}</p>
							 | 
						|
								            {else}
							 | 
						|
								                <p>{$message->body|prepareString|stripTags}</p>
							 | 
						|
								            {/if}
							 | 
						|
								        {/if}
							 | 
						|
								    {/if}
							 | 
						|
								</li>
							 |