Files
ofbiz-framework/framework/example/webapp/example/includes/appheader.ftl
T

40 lines
2.1 KiB
Plaintext

<#--
$Id: appheader.ftl 7423 2006-04-26 22:36:00Z jonesde $
Copyright 2001-2006 The Apache Software Foundation
Licensed 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.
-->
<#--
*@author David E. Jones (jonesde@ofbiz.org)
*@since 3.5
-->
<#assign unselectedLeftClassName = "headerButtonLeft">
<#assign unselectedRightClassName = "headerButtonRight">
<#assign selectedLeftClassMap = {headerItem?default("void") : "headerButtonLeftSelected"}>
<#assign selectedRightClassMap = {headerItem?default("void") : "headerButtonRightSelected"}>
<div class="apptitle">${uiLabelMap.ExampleApplication}</div>
<div class="row">
<div class="col"><a href="<@ofbizUrl>main</@ofbizUrl>" class="${selectedLeftClassMap.main?default(unselectedLeftClassName)}">${uiLabelMap.CommonMain}</a></div>
<div class="col"><a href="<@ofbizUrl>FindExample</@ofbizUrl>" class="${selectedLeftClassMap.Example?default(unselectedLeftClassName)}">${uiLabelMap.ExampleExample}</a></div>
<div class="col"><a href="<@ofbizUrl>FindExampleFeature</@ofbizUrl>" class="${selectedLeftClassMap.ExampleFeature?default(unselectedLeftClassName)}">${uiLabelMap.ExampleFeature}</a></div>
<#if userLogin?has_content>
<div class="col-right"><a href="<@ofbizUrl>logout</@ofbizUrl>" class="${selectedRightClassMap.logout?default(unselectedRightClassName)}">${uiLabelMap.CommonLogout}</a></div>
<#else>
<div class="col-right"><a href='<@ofbizUrl>${checkLoginUrl?if_exists}</@ofbizUrl>' class='${selectedRightClassMap.login?default(unselectedRightClassName)}'>${uiLabelMap.CommonLogin}</a></div>
</#if>
<div class="col-fill">&nbsp;</div>
</div>