mirror of
https://github.com/Oreolek/ifhub-skin.git
synced 2024-07-06 00:34:21 +03:00
42 lines
1.4 KiB
Smarty
42 lines
1.4 KiB
Smarty
|
{**
|
||
|
* Топик
|
||
|
*
|
||
|
* @param object $topic
|
||
|
* @param array $comments
|
||
|
* @param integer $lastCommentId
|
||
|
* @param array $pagingComments
|
||
|
*}
|
||
|
|
||
|
{extends 'layouts/layout.base.tpl'}
|
||
|
|
||
|
{block 'layout_content'}
|
||
|
{* Топик *}
|
||
|
{component 'topic' template='topic-type' topic=$topic}
|
||
|
|
||
|
{* Комментарии *}
|
||
|
{component 'comment' template='comments'
|
||
|
comments = $comments
|
||
|
count = $topic->getCountComment()
|
||
|
classes = 'js-topic-comments'
|
||
|
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 = [
|
||
|
total => +$pagingComments.iCountPage,
|
||
|
current => +$pagingComments.iCurrentPage,
|
||
|
url => "{$pagingComments.sGetParams}{($pagingComments.sGetParams) ? '&' : '?'}cmtpage=__page__"
|
||
|
]
|
||
|
commentParams = [
|
||
|
useVote => true,
|
||
|
useEdit => true,
|
||
|
useFavourite => true
|
||
|
]}
|
||
|
{/block}
|