{*
CUSTOM topic type:
This is when magic comes and makes Hub app even more special!
Add your custom layout here.
*}
CUSTOM TOPIC TYPE
{$topic.title|escape}
{* @event frontend_topic.%plugin_id%.title_suffix *}
{foreach $frontend_topic as $_}{$_.title_suffix}{/foreach}
{if $topic.badge}
{$topic.badge.name}
{/if}
[`This topic is in the archive. Posting new comments is disabled.`]
{else}[`Posting new comments is disabled for this topic.`]
{/if} {/if}
{_w('%d answer', '%d answers', $comments_count)}
-
[`votes`]
-
[`newest`]
-
[`oldest`]
{$depth=-1} {foreach $comments as $comment} {if $comment.depth < $depth} {$loop=($depth-$comment.depth)} {section name="end-comment" loop=$loop}{/section} {$depth=$comment.depth} {/if} {if $comment.depth == $depth}
-
{$depth=$comment.depth}
{/if}
{include file="comment.html" comment=$comment inline}
{/foreach}
{section name="end-comment" loop=$depth + 1}
{/section} {else} {/if}