{if empty($type.name)}[`New topic type`]{else}{$type.name|escape}{/if}

[`Type name`]
[`Glyph`]
[`Functionality`]
{foreach hubHelper::getBaseTypes() as $type_id => $type_info} {if $type_id != 'custom'}
{/if} {/foreach}
{foreach hubHelper::getBaseTypes() as $type_id => $type_info}
{if "`$smarty.current_dir`/types/`$type_id`.html"|file_exists} {include file="./types/{$type_id}.html"} {/if}
{/foreach}
{* type delete dialog*} {if !empty($type.id)}

[`Delete topic type`]

{if $type.topics_count}

{sprintf(_w('There is %d topic with the %s type.', 'There are %d topics with the %s type.', $type.topics_count, false), $type.topics_count, $type.name|escape)} {if $type.topics_count > 1} [`To delete this topic type, please either change the type for all those topics or delete them.`] {else} [`To delete this topic type, please either change the type for that topic or delete it.`] {/if}



{else}

{sprintf('[`There are no topics of %s type, so it can be easily deleted.`]', $type.name|escape)}

{/if}
[`or`] [`cancel`]
{/if}