topNav.jspf
<%-- Licensed Materials - Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2001, 2004, 2006 - All Rights reserved. See notes in Default.jsp for information regarding editing theme JSP fragments. --%> <c:if test = "${themePolicy.renderTopNavigation}"> <portal-logic:if navigationAvailable="yes" screen="Home,LoggedIn,LoggedOut"> <c:if test = "${themePolicy.renderBannerTitle}"> <portal-logic:pageMetaData varname="titlePageMetaData"> <c:set var="bannerTitle" scope="request"> <c:out value="${titlePageMetaData.bannerTitle}"/> </c:set> </portal-logic:pageMetaData> <c:if test = "${!empty bannerTitle}"> <h1 class="bannerTitle"><c:out value="${bannerTitle}" escapeXml="false"/></h1> </c:if> </c:if> <c:forEach var="i" begin="${themePolicy.topNavigationStartLevel}" end="${themePolicy.topNavigationStopLevel}" step="1"> <portal-navigation:navigation startLevel="${i}" stopLevel="${i}"> <ul class="wpsPageBar<c:if test="${i eq themePolicy.topNavigationStartLevel}">FirstRow</c:if>"> <portal-navigation:navigationLoop> <portal-logic:if nodeInSelectionPath="yes"> <% boolean isNodeSelected = wpsSelectionModel.isNodeSelected(wpsNavNode); %> <li class="wpsSelectedPage" <%if (isNodeSelected) { %> id="portalSelectedNode" onmouseover="showPageAffordance(); return false;" onmouseout="hidePageAffordance(); return false;" <% } %> > <a href="<portal-navigation:navigationUrl type='launch' />" <% if (isNodeSelected) { %>onfocus="showPageAffordance()" <% } %> > <portal-fmt:title/> </a> <c:if test = "${themePolicy.renderContextMenus}"> <% if(isNodeSelected){%> <a id='menu_<%=pageOidStr%>' class="menuLink" href="javascript:void(0);" onclick="javascript:showPageMenu(this); return false;" onkeypress="javascript:accessibleShowPageMenu(event);" style="cursor: default;" > <img id='menu_<%=pageOidStr%>_img' class="menuLink" src='<portal-logic:urlFindInTheme file="images/topNav/menu_selected_disabled.gif"/>' alt="<portal-fmt:text bundle='nls.engine' key='link.page.actions' />" title="<portal-fmt:text bundle='nls.engine' key='link.page.actions' />"/> </a> <script> //Register the context menu so that the menu can be enabled/disabled. javascriptEventController.register( "menu_<%=pageOidStr%>" ); javascriptEventController.register( "portalSelectedNode" ); </script> <%-- Show icon for closing transient pages --%> <portal-dynamicui:closePage> <a href="<% closePageURL.write(escapeXmlWriter); %>" > <img class="wpsNavNodeIcon" src="<portal-logic:urlFindInTheme file='images/NavigationClose.gif'/>" align="absmiddle" alt="" /> </a> </portal-dynamicui:closePage> <%}%> </c:if> </li> </portal-logic:if> <portal-logic:if nodeInSelectionPath="no"> <li class="wpsUnSelectedPage"> <a href="<portal-navigation:navigationUrl type='link' />"><portal-fmt:title/></a> </li> </portal-logic:if> </portal-navigation:navigationLoop> </portal-navigation:navigation> </ul> <div class="pageBarSeparator<c:if test="${themePolicy.topNavigationStartLevel ne themePolicy.topNavigationStopLevel}">1</c:if>"><!-- <%--this comment fixes IE empty div sizing bug--%> --></div> </c:forEach> </portal-logic:if> <portal-theme-ext:themeExtension id="com.ibm.portal.theme.plugin.HorizontalPageBarItems" > <portal-theme-ext:themeExtensionLoop> <portal-theme-ext:themeExtensionRenderInclude /> </portal-theme-ext:themeExtensionLoop> </portal-theme-ext:themeExtension> </c:if>