OFBIZ-3621 - XHTML validation errors (themes)
XHTML validation errors
* Unclosed INPUT
* attributes without values (checked, selected, disabled, etc)
* attribute values without "
* Uppercase tags or attributes.
* Unencoded ampersands in urls.
Other errors:
Header.ftl (tomahawk & droppingcrumbs)
Line 108. Wrong markup. Div can't be inside <a>
<a href="<@ofbizUrl>${logoLinkURL}</@ofbizUrl>" title="${layoutSettings.companyName}"><div> </div></a>
Style.css (tomahawk & droppingcrumbs)
Line 945. The logo is used as the background of the logo area, but because the size of the background image means nothing for dimensioning, it will be clipped.
background: url(../images/ofbiz_logo.png) no-repeat;
Solution: This is a hack to put the logo in the style sheet as the background. If the logo is only in the stylesheet without any trick, the logo will be clipped and disappears.
The logo can be loaded as an image directly in header.ftl and it will appear without clip and without any hack in header.ftl.
appbarOpen.ftl (droppingcrumbs)
Line 99, unclosed <li> and <ul>
header.ftl (bizznesstime)
Line 111. div can't be inside span.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931665 13f79535-47bb-0310-9956-ffa450edef68
132 lines
6.8 KiB
Plaintext
132 lines
6.8 KiB
Plaintext
<#--
|
|
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>
|
|
<#if (requestAttributes.partyGroup)?exists><#assign partyGroup = requestAttributes.partyGroup></#if>
|
|
<#assign docLangAttr = locale.toString()?replace("_", "-")>
|
|
<#assign langDir = "ltr">
|
|
<#if "ar.iw"?contains(docLangAttr?substring(0, 2))>
|
|
<#assign langDir = "rtl">
|
|
</#if>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${docLangAttr}" lang="${docLangAttr}" dir="${langDir}">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<meta http-equiv="Content-Language" content="en" />
|
|
<meta http-equiv="Content-Style-Type" content="text/css" />
|
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
<meta http-equiv="pragma" content="no-cache" />
|
|
<meta http-equiv="cache-control" content="no-cache" />
|
|
<meta http-equiv="expires" content="0" />
|
|
<meta http-equiv="imagetoolbar" content="false" />
|
|
|
|
<title>${layoutSettings.companyName}: <#if (page.titleProperty)?has_content>${uiLabelMap[page.titleProperty]}<#else>${(page.title)?if_exists}</#if></title>
|
|
|
|
<meta name="robots" content="index, follow" />
|
|
<meta name="googlebot" content="index,follow" />
|
|
<meta name="description" content="" />
|
|
<meta name="keywords" content="" />
|
|
<meta name="copyright" content="" />
|
|
<meta name="MSSmartTagsPreventParsing" content="true" />
|
|
<meta name="author" content="" />
|
|
|
|
<link rel="start" href="" title="" />
|
|
<#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>
|
|
<#if shortcutIcon?has_content>
|
|
<link rel="shortcut icon" href="<@ofbizContentUrl>${StringUtil.wrapString(shortcutIcon)}</@ofbizContentUrl>" />
|
|
</#if>
|
|
<#if layoutSettings.styleSheets?has_content>
|
|
<#list layoutSettings.styleSheets as styleSheet>
|
|
<link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" media="screen,projection" type="text/css" charset="UTF-8"/>
|
|
</#list>
|
|
</#if>
|
|
<#if userLogin?has_content>
|
|
<#if layoutSettings.VT_STYLESHEET?has_content>
|
|
<#list layoutSettings.VT_STYLESHEET as styleSheet>
|
|
<link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" media="screen,projection" type="text/css" charset="UTF-8"/>
|
|
</#list>
|
|
</#if>
|
|
<#else>
|
|
<link rel="stylesheet" href="/bizznesstime/css/login.css" type="text/css"/>
|
|
</#if>
|
|
<#if layoutSettings.rtlStyleSheets?has_content && langDir == "rtl">
|
|
<#--layoutSettings.rtlStyleSheets is a list of rtl style sheets.-->
|
|
<#list layoutSettings.rtlStyleSheets as styleSheet>
|
|
<link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" media="screen,projection" type="text/css" charset="UTF-8"/>
|
|
</#list>
|
|
</#if>
|
|
<#if layoutSettings.VT_RTL_STYLESHEET?has_content && langDir == "rtl">
|
|
<#list layoutSettings.VT_RTL_STYLESHEET as styleSheet>
|
|
<link rel="stylesheet" href="<@ofbizContentUrl>${StringUtil.wrapString(styleSheet)}</@ofbizContentUrl>" media="screen,projection" type="text/css" charset="UTF-8"/>
|
|
</#list>
|
|
</#if>
|
|
${layoutSettings.extraHead?if_exists}
|
|
<#if layoutSettings.VT_EXTRA_HEAD?has_content>
|
|
<#list layoutSettings.VT_EXTRA_HEAD as extraHead>
|
|
${extraHead}
|
|
</#list>
|
|
</#if>
|
|
|
|
<#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)/>
|
|
<script src="<@ofbizContentUrl>${StringUtil.wrapString(javaScript)}</@ofbizContentUrl>" type="text/javascript"></script>
|
|
</#if>
|
|
</#list>
|
|
</#if>
|
|
<#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>
|
|
</head>
|
|
<body>
|
|
<div id="wrap">
|
|
<div id="header">
|
|
<div id="logo"></div>
|
|
<div id="shelf"></div>
|
|
<div id="controls">
|
|
<span id="prefBtn">
|
|
<a href="#" class="contracted">${uiLabelMap.CommonPreferences}</a>
|
|
<span id="preferences" style="display:none">
|
|
<a href="<@ofbizUrl>ListLocales</@ofbizUrl>" id="language">${uiLabelMap.CommonLanguageTitle} - ${locale.getDisplayName(locale)}</a>
|
|
<a href="<@ofbizUrl>ListTimezones</@ofbizUrl>" id="timezone">${nowTimestamp?datetime?string.short} - ${timeZone.getDisplayName(timeZone.useDaylightTime(), Static["java.util.TimeZone"].LONG, locale)}</a>
|
|
<a href="<@ofbizUrl>ListVisualThemes</@ofbizUrl>" id="theme">${uiLabelMap.CommonVisualThemes}</a>
|
|
</span>
|
|
</span>
|
|
<span>
|
|
<#if person?has_content>
|
|
${uiLabelMap.CommonWelcome}, ${person.firstName?if_exists} ${person.lastName?if_exists} ( ${userLogin.userLoginId} )
|
|
<#elseif partyGroup?has_content>
|
|
${uiLabelMap.CommonWelcome}, ${partyGroup.groupName?if_exists} ( ${userLogin.userLoginId} )
|
|
<#else>
|
|
${uiLabelMap.CommonWelcome}
|
|
</#if>
|
|
</span>
|
|
<span><a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a></span>
|
|
<#if webSiteId?exists && requestAttributes._CURRENT_VIEW_?exists>
|
|
<#include "component://common/webcommon/includes/helplink.ftl" />
|
|
<span><a href="javascript:lookup_popup2('showHelp?helpTopic=${helpTopic}&portalPageId=${parameters.portalPageId?if_exists}','help' ,500,500);">${uiLabelMap.CommonHelp}</a></span>
|
|
</#if>
|
|
</div>
|
|
</div> |