{% set systemName = craft.app.getSystemName()|t('site') -%} {% set docTitle = docTitle is defined ? docTitle : title|striptags -%} {% set orientation = craft.app.locale.getOrientation() -%} {% set a11yDefaults = craft.app.config.general.accessibilityDefaults %} {% set bodyClass = (bodyClass ?? [])|explodeClass|merge([ orientation, not (currentUser.getPreference('alwaysShowFocusRings') ?? a11yDefaults['alwaysShowFocusRings'] ?? false) ? 'reduce-focus-visibility', (currentUser.getPreference('useShapes') ?? a11yDefaults['useShapes'] ?? false) ? 'use-shapes', (currentUser.getPreference('underlineLinks') ?? a11yDefaults['underlineLinks'] ?? false) ? 'underline-links', ])|filter -%} {% set bodyAttributes = { class: bodyClass, dir: orientation, }|merge(bodyAttributes ?? {}, recursive=true) -%} {% do view.registerAssetBundle('craft\\web\\assets\\cp\\CpAsset') -%} {% set cpAssetUrl = view.getAssetManager().getPublishedUrl('@app/web/assets/cp/dist', true) -%} {% hook "cp.layouts.base" -%} {% block head %} {{ docTitle ~ (docTitle|length and systemName|length ? ' - ') ~ systemName }} {{ head() }} {% set hasCustomIcon = false %} {% for tag in craft.app.config.general.cpHeadTags %} {{ tag(tag[0], tag[1]) }} {% if tag[0] == 'link' and (tag[1].rel ?? null) == 'icon' %} {% set hasCustomIcon = true %} {% endif %} {% endfor %} {% if not hasCustomIcon %} {% endif %} {% endblock %} {{ beginBody() }} {% block body %}{% endblock %} {% block foot %}{% endblock %} {{ endBody() }}