{$has_dasboard = ($current_app === 'webasyst' && isset($activity))}
{include file="./BackendHeaderAccount.inc.html" inline} {if !$has_dasboard} {/if} {* TEASING WEBASYST GLOBAL SEARCH *}
{if !empty($show_connection_banner)}

[s`Enable sign-in with Webasyst ID, a universal authorization option that unites Webasyst Customer Center and backend sign-in on your custom domains. Webasyst ID allows you to use all Webasyst apps, sites, and services, and to avoid the use of different passwords on various domains.`]  {sprintf('[s`Enable Webasyst ID on %s — it’s free and secure!`]', $current_domain|escape|mb_strtoupper)}

{elseif !empty($webasyst_id_auth_banner)} {/if} {* Announcements *} {if $has_dasboard} {/if} {* APPS *}
    {foreach $header_items as $app_id => $app} {* Build item url *} {* pseudo-app *} {if !empty($app.app_id) && !empty($app.link)} {$_item_url = "`$backend_url``$app.app_id`/`$app.link`/"} {* real app *} {else} {$_item_url = "`$backend_url``$app_id`/"} {/if} {* Build app icon count *} {$_count = null} {if $counts && isset($counts[$app_id])} {if is_array($counts[$app_id])} {$_item_url = $counts[$app_id]['url']} {$_count = $counts[$app_id]['count']} {else} {$_count = $counts[$app_id]} {/if} {/if}
  • {if $app.img}{/if} {$app.name} {if $_count} {/if}
  • {/foreach}