{* 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}

{$topic.votes_sum}
{$topic.content}
{* @event frontend_topic.%plugin_id%.body *} {foreach $frontend_topic as $_}{$_.body}{/foreach}
{if !empty($topic.author)} {/if}
[`Posted`]: {$topic.create_datetime|wa_date:'humandate'}
{foreach $tags as $tag}{if !$tag@first}, {/if}{$tag.name|escape}{/foreach}
{if !empty($topic.editable) || !empty($topic.deletable)} {/if}
{* @event frontend_topic.%plugin_id%.comments *} {foreach $frontend_topic as $_}{$_.comments}{/foreach} {if !empty($comments)}

{_w('%d answer', '%d answers', $comments_count)}

{$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}
  • {/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}
      • {* Add comment form *} {if $comments_allowed}
        {if 1} [`New answers will be sent to you by email`] {else} [`%d more users are following this topic`] {/if}

        [`Add comment`]

        {include file="comment.add.html" inline} {else} {if $topic.badge == 'archived'}

        [`This topic is in the archive. Posting new comments is disabled.`]

        {else}

        [`Posting new comments is disabled for this topic.`]

        {/if} {/if}