1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 17:34:26 +03:00
ifhub.club/application/frontend/skin/developer/components/talk/talk.tpl

34 lines
1.2 KiB
Smarty

{**
* Диалог
*
* @param object $talk
* @param array $comments
*}
{$talk = $smarty.local.talk}
{* Первое сообщение *}
{include './talk-message-root.tpl' talk=$talk}
{if ! $bNoComments}
{* Участники личного сообщения *}
{include './participants/participants.tpl'
users = $talk->getTalkUsers()
classes = 'message-users js-message-users'
attributes = [ 'data-param-i-target-id' => $talk->getId() ]
editable = $talk->getUserId() == $oUserCurrent->getId() || $oUserCurrent->isAdministrator()
title = $aLang.talk.users.title
excludeRemove = [ $oUserCurrent->getId() ]}
{* Вывод комментариев к сообщению *}
{include 'components/comment/comments.tpl'
comments = $smarty.local.comments
classes = 'js-comments-talk'
attributes = [ 'id' => 'comments' ]
targetId = $talk->getId()
targetType = 'talk'
count = $talk->getCountComment()
dateReadLast = $talk->getTalkUser()->getDateLast()
lastCommentId = $iMaxIdComment
forbidText = $aLang.talk.notices.deleted}
{/if}