1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00
ifhub.club/application/frontend/skin/synio/components/talk/talk.tpl
2016-09-06 11:33:46 +07:00

26 lines
833 B
Smarty

{**
* Диалог
*
* @param object $talk
* @param array $comments
* @param array $lastCommentId
*}
{component_define_params params=[ 'talk', 'comments', 'lastCommentId' ]}
{* Первое сообщение *}
{component 'talk' template='message-root' talk=$talk}
{if $activeParticipantsCount || $comments}
{* Вывод комментариев к сообщению *}
{component 'comment' template='comments'
comments = $comments
classes = 'js-comments-talk'
attributes = [ 'id' => 'comments' ]
targetId = $talk->getId()
targetType = 'talk'
count = $talk->getCountComment()
dateReadLast = $talk->getTalkUser()->getDateLast()
lastCommentId = $lastCommentId
forbidText = $aLang.talk.notices.deleted}
{/if}