1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-07 17:04:24 +03:00
ifhub.club/application/frontend/skin/developer/actions/ActionBlog/topic.tpl

35 lines
1.1 KiB
Smarty

{**
* Топик
*
* @param object $topic
* @param array $comments
* @param integer $lastCommentId
* @param array $pagingComments
*}
{extends 'layouts/layout.base.tpl'}
{block 'layout_content'}
{* Топик *}
{component 'topic' topic=$topic}
{* Комментарии *}
{component 'comment' template='comments'
comments = $comments
count = $topic->getCountComment()
classes = 'js-comments-topic'
attributes = [ 'id' => 'comments' ]
targetId = $topic->getId()
targetType = 'topic'
authorId = $topic->getUserId()
authorText = $aLang.topic.author
dateReadLast = $topic->getDateRead()
forbidAdd = $topic->getForbidComment()
forbidText = $aLang.topic.comments.notices.not_allowed
useSubscribe = true
isSubscribed = $topic->getSubscribeNewComment() && $topic->getSubscribeNewComment()->getStatus()
lastCommentId = $lastCommentId
pagination = $pagingComments
useVote = true
useFavourite = true}
{/block}