{$wa->csrf()} {if !$topic.id}
{/if}
{if $topic.id} {* showing based on wa_hub_new_mode_notification localStorage variable *} {/if} {if $topic.id}
{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}
{/if}

{if $topic.id}{$topic.title|escape}{/if}

{if !empty($topic.status) && $topic_public_url && !empty($hub_url_templates[$topic.hub_id])} {/if}
{if !$topic.id}
{/if}
{* * Buttons for published topic *}
{* * Buttons for draft mode and new topic *}
{* * Selecting subscribers dialog *}
{if $topic.id}
{* meta information *}
{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}
{* comments *} {if $topic.id}
{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}
    {/if}
    {* Dialog to edit meta data *}

    [`Meta`]

    [`Title`] <title>
    [`Meta description`]
    [`Meta keywords`]
    [`Custom parameters`]
    {$use_custom_settings = !isset($og.title) && !isset($og.description)}
    [`Social media tags (Open Graph)`]
    [`Social sharing`]
    [`Social sharing title`] og:title
    [`Social sharing image URL`] og:image
    [`If no value is specified, a social network will attempt to automatically determine a preview image.`]
    [`Social sharing video URL`] og:video
    [`Social sharing description`] og:description
    {include file="./include.delete_confirm.html" inline}