{if $type != 'search'} {/if}

{if !empty($hub_context) && $type != 'hub'} ← {$hub_context.name|default:'[`(no name)`]'|escape} {/if} {$title|default:'[`(no name)`]'|escape}

{if $type == 'category'} {if $is_admin} {/if} {elseif $type == 'filter'} {if $is_admin || (-$filter.contact_id == $wa->userId())} {/if} {elseif $type == 'tag'} {elseif $type == 'hub'} {if $is_admin} {/if} {/if} {if $type == 'hub' && !empty($tags)} {/if}
{if $type == 'hub' && $hub.status && !$hub_context.urls }

{sprintf('[`This hub is not visible on your sites now, because there were no routing rules added for Hub app with this particular hub. To make this hub visible on your site, create a route for Hub app and this hub in your Site app routing settings.`]', "../site/#/routing/")}

{/if}
{if !empty($topics)} {if (!empty($hub_full_access) || $wa->user()->isAdmin('hub')) && $order != 'manual'}

× {if empty($category.id) || $category.type} [`Manual sort for topics is not available in dynamic topic lists. If you want to activate the ability to sort topics, create a Folder category first.`] {else} {sprintf_wp("Manual sort for topics is not available in this view because current sort order is set to %s. To activate the ability to sort topics in this category, set current sort order to “Manual sort”.", ifset($sorts[$order], $order))} {/if}

{/if} {if isset($pages_count) && $pages_count > 1}
{wa_pagination total=$pages_count attrs=['class' => "menu-h"]}
{/if} {else}

[`There are no topics in this view.`]

{/if}
{if $topics_count} {/if}