1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 01:14:24 +03:00
ifhub.club/application/frontend/components/comment/comment-list.tpl
2016-04-07 16:40:28 +07:00

26 lines
793 B
Smarty

{**
* Список комментариев
*
* @param array comments Комментарии
*}
{$component = 'ls-comment-list'}
{component_define_params params=[ 'comments', 'mods', 'classes', 'attributes' ]}
{if $comments}
<div class="{$component} {cmods name=$component mods=$mods} {$classes}" {cattr list=$attributes}>
{component 'comment' template='tree'
comments = $comments
forbidAdd = true
maxLevel = 0
commentParams = [
useFavourite => true,
useEdit => false,
useVote => false,
useScroll => false,
showPath => true
]}
</div>
{else}
{component 'blankslate' text=$aLang.common.empty}
{/if}