{* @event frontend_header.%plugin_id% *} {foreach $frontend_header as $_}{$_}{/foreach}
{if empty($topics) && $wa->currentUrl() == $wa_app_url} {if $wa->setting('welcome')} {* * User went to frontend before completing the 'welcome' setup in backend. *}

[`Welcome to your new hub!`]

{sprintf('[`Please complete the initial setup in app backend.`]', $wa_backend_url|cat:'hub/?action=welcome')}

{* Disable navigation since all links show 404 until the initial setup is done. *} {elseif waRequest::param('hub_id')} {* * This is a new empty hub. *}

[`Welcome to your new hub!`]

{sprintf('[`Start by writing a topic.`]', $wa_app_url|cat:'add/')}

{else} {* * There is no 'hub_id' parameter in this settlement's routing setup. Something's badly wrong. *} {/if} {else} {if isset($breadcrumbs)} {/if} {$content} {/if}