{% set systemName = craft.app.getSystemName()|t('site') -%} {% set docTitle = docTitle is defined ? docTitle : title|striptags -%} {% set orientation = craft.app.locale.getOrientation() -%} {% set bodyClass = (bodyClass ?? [])|explodeClass|merge([ orientation, currentUser and currentUser.getPreference('useShapes') ? 'use-shapes', currentUser and currentUser.getPreference('underlineLinks') ? '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() }}