| <#-- |
| 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. |
| --> |
| <#assign docLangAttr = locale.toString()?replace("_", "-")> |
| <#assign langDir = "ltr"> |
| <#if "ar.iw"?contains(docLangAttr?substring(0, 2))> |
| <#assign langDir = "rtl"> |
| </#if> |
| <html lang="${docLangAttr}" dir="${langDir}" xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta charset="utf-8" /> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| <title>${applicationTitle!}</title> |
| <#if layoutSettings.VT_HDR_JAVASCRIPT?has_content> |
| <#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript> |
| <script src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="text/javascript"></script> |
| </#list> |
| </#if> |
| <#if layoutSettings.javaScripts?has_content> |
| <#assign javaScriptsSet = Static["org.apache.ofbiz.base.util.UtilMisc"].toSet(layoutSettings.javaScripts)/> |
| <#list layoutSettings.javaScripts as javaScript> |
| <#if javaScriptsSet.contains(javaScript)> |
| <#assign nothing = javaScriptsSet.remove(javaScript)/> |
| <script src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="text/javascript"></script> |
| </#if> |
| </#list> |
| </#if> |
| |
| </head> |
| <body> |
| <div data-role="header"> |
| <a href="<@ofbizUrl>/menu?facilityId=${parameters.facilityId!}</@ofbizUrl>">Main</a> |
| <h1>${title!}</h1> |
| </div> |