<#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <#if (requestAttributes.person)?exists><#assign person = requestAttributes.person> <#if (requestAttributes.partyGroup)?exists><#assign partyGroup = requestAttributes.partyGroup> <#assign docLangAttr = locale.toString()?replace("_", "-")> <#assign langDir = "ltr"> <#if "ar.iw"?contains(docLangAttr?substring(0, 2))> <#assign langDir = "rtl"> ${layoutSettings.companyName}: <#if (page.titleProperty)?has_content>${uiLabelMap[page.titleProperty]}<#else>${(page.title)?if_exists}</#if> <#if layoutSettings.shortcutIcon?has_content> <#assign shortcutIcon = layoutSettings.shortcutIcon/> <#elseif layoutSettings.VT_SHORTCUT_ICON?has_content> <#assign shortcutIcon = layoutSettings.VT_SHORTCUT_ICON.get(0)/> <#if shortcutIcon?has_content> <#if layoutSettings.styleSheets?has_content> <#list layoutSettings.styleSheets as styleSheet> <#if userLogin?has_content> <#if layoutSettings.VT_STYLESHEET?has_content> <#list layoutSettings.VT_STYLESHEET as styleSheet> <#else> <#if layoutSettings.rtlStyleSheets?has_content && langDir == "rtl"> <#--layoutSettings.rtlStyleSheets is a list of rtl style sheets.--> <#list layoutSettings.rtlStyleSheets as styleSheet> <#if layoutSettings.VT_RTL_STYLESHEET?has_content && langDir == "rtl"> <#list layoutSettings.VT_RTL_STYLESHEET as styleSheet> ${layoutSettings.extraHead?if_exists} <#if layoutSettings.VT_EXTRA_HEAD?has_content> <#list layoutSettings.VT_EXTRA_HEAD as extraHead> ${extraHead} <#if layoutSettings.javaScripts?has_content> <#assign javaScriptsSet = Static["org.ofbiz.base.util.UtilMisc"].toSet(layoutSettings.javaScripts)/> <#list layoutSettings.javaScripts as javaScript> <#if javaScriptsSet.contains(javaScript)> <#assign nothing = javaScriptsSet.remove(javaScript)/> <#if layoutSettings.VT_HDR_JAVASCRIPT?has_content> <#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript>