2014-06-11 11:58:32 +03:00
|
|
|
{**
|
2014-06-13 09:34:12 +03:00
|
|
|
* Список комментариев
|
2014-06-11 11:58:32 +03:00
|
|
|
*
|
2014-11-06 18:51:24 +02:00
|
|
|
* @param array comments Комментарии
|
2014-06-11 11:58:32 +03:00
|
|
|
*}
|
|
|
|
|
2015-05-07 15:45:21 +03:00
|
|
|
{$component = 'ls-comment-list'}
|
2017-01-30 02:39:09 +02:00
|
|
|
{component_define_params params=[ 'hookPrefixComment', 'comments', 'mods', 'classes', 'attributes' ]}
|
2015-01-27 15:25:52 +02:00
|
|
|
|
2016-04-07 12:40:28 +03:00
|
|
|
{if $comments}
|
|
|
|
<div class="{$component} {cmods name=$component mods=$mods} {$classes}" {cattr list=$attributes}>
|
2015-10-24 19:13:41 +03:00
|
|
|
{component 'comment' template='tree'
|
2017-01-30 02:39:09 +02:00
|
|
|
hookPrefixComment = $hookPrefixComment
|
2016-04-07 12:40:28 +03:00
|
|
|
comments = $comments
|
2015-10-24 19:13:41 +03:00
|
|
|
forbidAdd = true
|
|
|
|
maxLevel = 0
|
|
|
|
commentParams = [
|
|
|
|
useFavourite => true,
|
|
|
|
useEdit => false,
|
|
|
|
useVote => false,
|
|
|
|
useScroll => false,
|
|
|
|
showPath => true
|
|
|
|
]}
|
|
|
|
</div>
|
|
|
|
{else}
|
|
|
|
{component 'blankslate' text=$aLang.common.empty}
|
|
|
|
{/if}
|