#* Copyright 2004 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. *# ## ## Calculate the URI for the logo ## #if ($config.getString("topnav.logo.file")) #set ($LogoFile = $config.getString("topnav.logo.file")) #set ($BgImage = $config.getString("topnav.bg.image")) #set ($BgColor = $config.getString("topnav.bg.color")) #set ($FontFace = $config.getString("topnav.font.face")) #set ($FontSize = $config.getString("topnav.font.size")) #set ($FontColor = $config.getString("topnav.font.color")) #set ($LogoURI = $clink.setURI("$LogoFile").Absolute) #else #set ($LogoURI = $config.getString("topnav.logo.url")) #set ($BgImage = $config.getString("topnav.bg.image")) #set ($BgColor = $config.getString("topnav.bg.color")) #set ($FontFace = $config.getString("topnav.font.face")) #set ($FontSize = $config.getString("topnav.font.size")) #set ($FontColor = $config.getString("topnav.font.color")) #end #if($FontColor && $FontColor != "") #set($FontStyle="style=color:$FontColor; ") #end #if(($FontSize && $FontColor) && ($FontSize!="" && $FontColor!="")) #set($FontStyle="style=color:$FontColor; font-size:$FontSize;") #elseif ($FontSize && $FontSize !="") #set($FontStyle="style=font-size:$FontSize;") #else #set($FontStyle="style=font-size:10;") #end
#if ($data.User.hasLoggedIn()) ## ## This is the top naviation bar displayed for a logged in user ## ## ## Display the company logo with link back to the the portal home page ## ## ## Display the welcome message. This is typicaly where a Banner AD is displayed ## ## ## Right column of top navigation bar. Here we are displaying the ## user's name, link(s) to page customizers, link to account editor, logout ##
$l10n.HOME #if( $config.getBoolean("topnav.my_pages.enable") == true) #end ## Leave space between last line and content
$l10n.TOP_USERWELCOMEMSG $!data.User.FirstName $!data.User.LastName  
$l10n.PSML_MANAGER_MY_PAGES $jetspeed.getParameter($data, "MyPagesListBox", "mypages", "", "")
$l10n.TOP_CUSTOMIZE: HTML WML
$l10n.TOP_EDITACCOUNT $data.User.UserName
$l10n.TOP_LOGOUT
 
#else ## ## This is the top naviation bar displayed for the anonymous user, i.e. they are not logged in ## ## ## Display the company logo with link back to the the portal home page ## ## ## Display the welcome message. This is typicaly where a Banner AD is displayed ## ## ## Right column of top navigation bar. ## Optionally allow user login. Required for user creation ## Optionally allow user creation. ## #if( $config.getBoolean("topnav.user_login.enable") == true) #end
$l10n.HOME
#if ( $config.getBoolean("automatic.logon.enable") == true ) #end ## Leave space between last line and content
$l10n.USERFORM_USERNAMEMSG  
$l10n.USERFORM_PASSWORDMSG
$l10n.USERFORM_REMEMBERME
#if( $config.getBoolean("topnav.user_creation.enable") == true && $config.getBoolean("newuser.confirm.enable") == true) $l10n.TOP_CREATENEWACCOUNT  |  #end $l10n.TOP_LOGINHELP
$l10n.TOP_TITLE
 
#end