{if !empty($topic.contact)} {if !empty($topic['contact']->getPhoto(50, 50))} {else} {/if} {$topic.contact.name|default:'[`(missing contact)`]'|escape} {/if}
{$topic.create_datetime|wa_datetime:"humandatetime"}
{if !empty($topic.type)}
{$topic.type.name|escape}
{/if} {if $possible_badges}
{if $can_edit_delete} {elseif !empty($topic.badge.id)} {* Read-only badge *} {ifset($topic.badge.name)|escape} {/if}
{/if}

{$topic.title|escape|default:'[`no title`]'}

{$topic.content}
{if !empty($topic.tags)} {/if}
{if $topic_public_url && $hub_is_public} {/if}
{if $topic.priority && $topic.priority == 1} {elseif $topic.priority && $topic.priority == '-1'} {/if} {if !empty($types[$topic.type_id].settings.voting)} {if empty($voted)}{$voted = 0}{/if} {if $topic.votes_sum > 0}+{/if}{$topic.votes_sum} {if !empty($types[$topic.type_id].settings.voting['+'])} {$topic.votes_up} {/if} {if !empty($types[$topic.type_id].settings.voting['-'])} {$topic.votes_down} {/if} {/if}
{_w("%d follower", "%d followers", count($followers))} {function follower_html f=null} user('id')} class="follower-me"{/if}> {/function} {* Own follower icon *} {* All other icons *} {foreach $followers as $f} {if $f.id != $wa->user('id')} {follower_html f=$f} {/if} {/foreach} {if !empty($follow)}[`Following`]{else}[`Not following`]{/if}
{if $allow_commenting}

[`Comments`] {$comments|@count}

{if !empty($topic.type) && ifset($topic.type.type) == 'forum'} {* forum topics offers a plan list of discussions *}
{foreach $comments as $id => $comment}
{include file="../comments/include.comment.html" inline}
{/foreach}
{if $allow_commenting} {/if}
{else} {* hierarchical comment tree *}
{if empty($comments)}
    {else} {$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="../comments/include.comment.html" comment=$comment inline} {/foreach} {section name="end-comment" loop=$depth + 1}
    {/section} {/if} {if $allow_commenting || (!empty($topic.type) && ifset($topic.type.type) == 'question')} {else} {/if}
  • {/if} {else}
    [`Posting new comments has been restricted for this topic.`]
    {/if}