1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-31 23:28:12 +03:00
ifhub.club/application/frontend/skin/developer/actions/ActionBlog/topic.tpl
Denis Shakhov dd6e348924 Мелкие исправления
* Fixes #581
* Fixes #579
2014-12-07 21:13:27 +07:00

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}