{* Announcements *} {function name="_renderAnnouncement" _app_id="" _texts=[]} {strip} ×

{implode('
', $_texts)}

{/strip} {/function} {* Header item *} {strip} {function name="_renderHeaderItem" _id="" _info=[]} {* Build item url *} {* pseudo-app *} {if !empty($_info.app_id) && !empty($_info.link)} {$_item_url = "`$backend_url``$_info.app_id`/`$_info.link`/"} {* real app *} {else} {$_item_url = "`$backend_url``$_id`/"} {/if} {* Version *} {if !empty($_info.version)} {$_version = "?v=`$_info.version|escape`"} {else} {$_version = null} {/if}
  • {* Build app icon count *} {$_count = null} {if $counts && isset($counts[$_id])} {if is_array($counts[$_id])} {$_item_url = $counts[$_id]['url']} {$_count = $counts[$_id]['count']} {else} {$_count = $counts[$_id]} {/if} {/if} {if isset($_info.img)} {/if} {$_info.name|ifempty} {if $_count} {$_count} {/if}
  • {/function} {/strip} {strip} {* @event backend_header *} {* $return[%app_id%]['header_top'] *} {if !empty($header_top)}{foreach $header_top as $_}{$_}{/foreach}{/if} {if !empty($include_wa_push)} {/if} {* Announcements *} {if !empty($announcements)}
    {foreach $announcements as $_app_id => $_texts} {_renderAnnouncement _app_id=$_app_id _texts=$_texts} {/foreach}
    {/if}
    {* Account name *}
    {* App list *}
    {strip} {/strip} {if $request_uri == $backend_url || $request_uri == "`$backend_url`/"}
    {/if}
    {* Current user *}
    {* @event backend_header *} {* $return[%app_id%] *} {if !empty($header_middle)}{foreach $header_middle as $_}{$_}{/foreach}{/if} {* @event backend_header *} {* $return[%app_id%]['header_bottom'] *} {if !empty($header_bottom)}{foreach $header_bottom as $_}{$_}{/foreach}{/if} {/strip}