Файл: content/themes/default/templates/ajax.live.messages.tpl
Строк: 66
{foreach $conversations as $conversation}
    <li
class="navMenuItem {if $notification.Viewed == 'N'}active{/if}
id="{$conversation.ID}">
        <a
href="{$SITE_URL}/message/{$conversation.ID}/"
class="navDataContainer">
            <div
class="dataSideWrapper medium">
                {if
!$conversation.MixedAvatar}
                    <img
src="{$SITE_URL}/{$conversation.AvatarPath}" />
             
  {else}
                    <span class="uiMixedAvatars
small">
                        <span
class="uiSplitAvatars leftAvatar small"><img
src="{$SITE_URL}/{$conversation.LeftAvatarPath}"
/></span>
                        <span
class="uiSplitAvatars small"><img
src="{$SITE_URL}/{$conversation.RightAvatarPath}"
/></span>
                    </span>
               
{/if}
            </div>
            
            <div
class="navDataWrapper ml5">
                <div
class="dataContent">
                    <span
class="blue">
                        {foreach
$conversation.users as $recipient}
                           
<strong>{$recipient.UserFirstName}
{$recipient.UserLastName}</strong>{if !$recipient@last},{/if}
      
                 {/foreach}
                        {if
$conversation.hasOthers}
                           
<strong>& {$conversation.others} others</strong>
     
                  {/if}
                    </span>
               
</div>
                
                <div
class="dataContent" style="margin-top: 2px;">
     
              {if $conversation.LastSenderID == $userArray.UserID}<span
class="msgButtonSent
mr5"></span>{/if}<small><span
class="timeago"
data-time="{$conversation.LastUpdate}"></span></small>
               </div>
            </div>
        </a>
   </li>
{/foreach}
<li class="hidden msgCounter"
id="{$userArray.UserNewMessages}"></li>
<script>jQuery("span[class*=timeago]").timeago();</script>