mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
7d58820f2a
Сайдбар теперь автоматом скрывается если нет блоков
35 lines
1.1 KiB
Smarty
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'}
|
|
{* Топик *}
|
|
{include 'components/topic/topic.tpl' topic=$topic}
|
|
|
|
{* Комментарии *}
|
|
{include 'components/comment/comments.tpl'
|
|
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} |