topNav.jspf
<%-- See notes in Default.jsp for information regarding editing theme JSP fragments. --%> <c:if test = "${renderTopNavigation}"> <portal-logic:if navigationAvailable="yes" screen="Home,LoggedIn,LoggedOut"> <c:forEach var="i" begin="${topNavStartLevelParam}" end="${topNavStopLevelParam}" step="1"> <portal-navigation:navigation startLevel="${i}" stopLevel="${i}"> <c:if test="${!topNavFirstParam}"><div class="wptheme-fullHorizontalNav"></c:if> <ul class='wpsPageBar<c:if test="${topNavFirstParam}">FirstRow</c:if>'> <portal-navigation:navigationLoop> <c:set var="topNavItemTitle"><portal-fmt:title/></c:set> <portal-logic:if nodeInSelectionPath="yes"> <% boolean isNodeSelected = wpsSelectionModel.isNodeSelected(wpsNavNode); %> <li class="wpsSelectedPage" <%if (isNodeSelected) { %> id="portalSelectedNode" onmouseover="wptheme_ContextMenuUtils.topNavPageMenu.showAffordance(); return false;" onmouseout="wptheme_ContextMenuUtils.topNavPageMenu.hideAffordance(); return false;" <% } %> > <a href="<portal-navigation:navigationUrl type='launch' />" <% if (isNodeSelected) { %>onfocus="wptheme_ContextMenuUtils.topNavPageMenu.showAffordance();" <% } %> > <c:out value='${topNavItemTitle}' escapeXml='true' /> </a> <c:if test = "${themePolicy.renderContextMenus}"> <% if(isNodeSelected){%> <a id='wptheme_selected_page_menu' class="wptheme-tabMenuLink" href="javascript:void(0);" onclick="javascript:wptheme_ContextMenuUtils.topNavPageMenu.show(); return false;" onkeypress="javascript:wptheme_ContextMenuUtils.topNavPageMenu.show(event); return true;" style="cursor: default;" > <img id='wptheme_selected_page_menu_img' class="wptheme-tabMenuLink" 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 type="text/javascript"> //Register the context menu so that the menu can easily be enabled/disabled. javascriptEventController.register( "wptheme_selected_page_menu" ); 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' />"><c:out value='${topNavItemTitle}' escapeXml='true' /></a> </li> </portal-logic:if> </portal-navigation:navigationLoop> </ul> <c:if test="${!topNavFirstParam}"><div class="wptheme-clearing"><!-- --></div></div></c:if> </portal-navigation:navigation> </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>