{* 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} isMobile() && $_info.name} data-wa-tooltip-content="{$_info.name|ifempty}"{/if}> {if isset($_info.img)} {/if} {if $_count} {/if}
  • {/function} {* @event backend_header *} {* $return[%app_id%]['header_top'] *} {if !empty($header_top)}{foreach $header_top as $_}{$_}{/foreach}{/if} {if !empty($include_wa_push)} {/if}
    {* Account name *} {include file="./BackendLogo.inc.html" backend_url=$backend_url company_name=$company_name position="header" inline}
    {* App list *} {* custom params injection: inject custom content *}
    {* Current user *} {$dashboards = strpos($request_uri, "/webasyst/dashboard/")} {$dashboard_url = strpos($request_uri, "/webasyst/dashboard/dashboard/")} {$is_dashboards = false} {$is_dashboard = false} {if $dashboards !== false} {$is_dashboards = true} {/if} {if $dashboard_url !== false} {$is_dashboard = true} {/if} {strip} {* user quick action tools *} {if $custom_params.aux || $header_user_area.aux} {/if} {if $request_uri == $backend_url || $request_uri == "`$backend_url`/" || $is_dashboards} {* EXPERIMENTAL wa_header lock/unlock on the main dashboard *} {else} {/if} {if $request_uri == $backend_url || $request_uri == "`$backend_url`/" || $is_dashboard} {/if} {if isset($app_info['ui']) && $app_info['ui'] === '2.0'} {/if} {** wa2ui showcase box in case the wa1 legacy ui is supported by the app **} {if !$wa->debug() && ifset($app_info, 'ui', '1.3') === '1.3,2.0' && $app_info.id != 'webasyst' } {/if} {** / wa2ui showcase box **} {* TEASING WEBASYST GLOBAL SEARCH *} {* Current user *} {/strip}
    {$_request_uri = $request_uri|rtrim:'/'} {$_bashend_url = $backend_url|rtrim:'/'} {if $_request_uri == $_bashend_url || $_request_uri == "`$_bashend_url`/webasyst" || $dashboards} {/if} {/strip}