mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-31 23:28:12 +03:00
dd6e348924
* Fixes #581 * Fixes #579
39 lines
1.2 KiB
Smarty
39 lines
1.2 KiB
Smarty
{**
|
|
* Топик
|
|
*
|
|
* @param object $topic
|
|
* @param array $comments
|
|
* @param integer $lastCommentId
|
|
* @param array $pagingComments
|
|
*}
|
|
|
|
{extends 'layouts/layout.base.tpl'}
|
|
|
|
{block 'layout_options' append}
|
|
{$layoutShowSidebar = Config::Get( 'view.topic_show_sidebar' )}
|
|
{/block}
|
|
|
|
{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} |