<DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <%-- Licensed Materials - Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2001, 2004, 2006 - All Rights reserved. --%> <%@ page session="false"%> <%@ taglib uri="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/portal-fmt" prefix="portal-fmt" %> <%@ taglib uri="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/portal-navigation" prefix="portal-navigation" %> <%@ taglib uri="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/portal-logic" prefix="portal-logic" %> <%@ taglib uri="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/portal-core" prefix="portal-core" %> <%@ taglib uri="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/portal-theme-ext" prefix="portal-theme-ext" %> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt" %> <%@ taglib uri="/WEB-INF/tld/portal-internal.tld" prefix="portal-internal" %> <jsp:useBean id="themePolicy" class="com.ibm.portal.theme.policy.ThemePolicyBean" scope="page"/> <portal-core:constants/> <portal-core:defineObjects/> <portal-theme-ext:initthemepolicy/> <% themePolicy.setValuesMap(portalThemePolicyMap); int menuItemCount=0; %> <jsp:useBean id="pageIconUrl" class="java.lang.Object" scope="page"/> <jsp:useBean id="defaultPageIconUrl" class="java.lang.String" scope="page"/> <c:set var="defaultPageIconUrl" > <portal-logic:urlFindInTheme file='clearPixel.gif' /> </c:set> <html> <body> <script type="text/javascript">function getMenuContents() { return [ <portal-logic:if portletSolo="no" navigationAvailable="yes"> <portal-navigation:navigation startLevel="${themePolicy.rootNavigationStartLevel}" stopLevel="${themePolicy.rootNavigationStopLevel}"> <portal-navigation:navigationLoop> <%-- Need to add node variable to pagemetadatatag to use inside navigation loop --%> <% boolean isNodeVisible=true; if (wpsNavNode instanceof com.ibm.portal.MetaDataProvider) { com.ibm.portal.MetaData iMetaData=((com.ibm.portal.MetaDataProvider) wpsNavNode).getMetaData(); Object hiddenValue=iMetaData.getValue("com.ibm.portal.Hidden"); if(hiddenValue != null) { if(hiddenValue.toString().equalsIgnoreCase("true")) { isNodeVisible=false; } else { isNodeVisible=true; } } else { isNodeVisible=true; } Object pageIcon=iMetaData.getValue("com.ibm.portal.PageIcon"); if(pageIcon != null && !pageIcon.toString().equals("")) { %> <c:set var="pageIconUrl" > <portal-logic:urlFindInTheme file='<%=pageIcon.toString()%>' /> </c:set> <% } else { %> <c:set var="pageIconUrl" > </c:set> <% } } if (isNodeVisible) { Object icon=(Object) pageContext.findAttribute("pageIconUrl"); if (icon.equals("") || icon.equals(null)) { icon=(String) pageContext.findAttribute("defaultPageIconUrl"); } %> <c:set var="menuTitle" > <portal-fmt:title /> </c:set> <% if (menuItemCount > 0) { %>,<% } %> "asynchDoFormSubmit('<portal-navigation:navigationUrl screenTemplate='' type='link' themeTemplate='' />');"," <c-rt:out value='${menuTitle}' escapeXml='true' />"," <%= icon %>" <% menuItemCount++; }%> </portal-navigation:navigationLoop> </portal-navigation:navigation> </portal-logic:if> <c-rt:if test="${themePolicy.renderExtensions}" > <portal-theme-ext:themeExtension id="com.ibm.portal.theme.plugin.MainContextMenuItems" > <portal-theme-ext:themeExtensionLoop> <c:set var="extensionTitle"> <portal-fmt:title varname=" <%=(com.ibm.portal.theme.plugin.ThemeItem) themeExtension%>" /> </c:set> <% if (menuItemCount > 0) { %>, <% } %>"asynchDoFormSubmit(' <portal-theme-ext:themeExtensionItemUrl />');",' <c-rt:out value="${extensionTitle}" escapeXml="true" />','' <% menuItemCount++; %> </portal-theme-ext:themeExtensionLoop> </portal-theme-ext:themeExtension> </c-rt:if> <c-rt:if test="${themePolicy.renderMainMenuActions}"> <%-- Selfcare --%> <%-- Comment out to enable edit profile using screens --%> <c-rt:if test="${themePolicy.renderSelfCare}"> <portal-logic:if loggedIn="yes" portletSolo="no"> <portal-internal:adminlinkinfo name="SELFCARE"> <portal-navigation:urlGeneration contentNode=" <%=wpsContentNode%>" layoutNode='<%= wpsCompositionNode %>' portletWindowState="Normal" themeTemplate=""> <portal-navigation:urlParam type="render" name="ao" value="thm"/> <portal-navigation:urlParam type="render" name="OCN" value=" <%= wpsContentNodeID %>" /> <c:set var="menuTitle"> <portal-fmt:text key="link.selfcare" bundle="nls.engine" /> </c:set> <% if (menuItemCount > 0) { %>, <% } %>"asynchDoFormSubmit('<% wpsURL.write(escapeXmlWriter); %>');",' <c-rt:out value="${menuTitle}" escapeXml="true" />',"${defaultPageIconUrl}" <% menuItemCount++; %> </portal-navigation:urlGeneration> </portal-internal:adminlinkinfo> </portal-logic:if> </c-rt:if> <%-- Uncomment to enable edit profile using screens <c-rt:if test="${themePolicy.renderSelfCare}"> <portal-logic:if loggedIn="yes" portletSolo="no" notScreen="SelfcareUserForm,SelfcareUserConf" > <c:set var="menuTitle"> <portal-fmt:text key="link.selfcare" bundle="nls.engine" /> </c:set> <% if (menuItemCount > 0) { %>, <% } %> "asynchDoFormSubmit('<portal-navigation:url command="PrepareSelfcare" reqid="no" themeTemplate="" />');", ' <c-rt:out value="${menuTitle}" escapeXml="true" />', "${defaultPageIconUrl}" <% menuItemCount++; %> </portal-logic:if> </c-rt:if>--%> <%-- Enrollment aka Sign Up --%> <%-- Comment out to enable sign up using screens --%> <portal-logic:if loggedIn="no" portletSolo="no"> <portal-internal:adminlinkinfo name="SELFCARE"> <portal-navigation:urlGeneration contentNode=" <%=wpsContentNode%>" layoutNode='<%= wpsCompositionNode %>' portletWindowState="Normal" themeTemplate=""> <portal-navigation:urlParam type="render" name="ao" value="thm"/> <portal-navigation:urlParam type="render" name="OCN" value="<%= wpsContentNodeID %>" /> <c:set var="menuTitle"> <portal-fmt:text key="link.enrollment" bundle="nls.engine" /> </c:set> <% if (menuItemCount > 0) { %>, <% } %>"asynchDoFormSubmit(' <% wpsURL.write(escapeXmlWriter); %>');",' <c-rt:out value="${menuTitle}" escapeXml="true" />',"${defaultPageIconUrl}" <% menuItemCount++; %> </portal-navigation:urlGeneration> </portal-internal:adminlinkinfo> </portal-logic:if> <%-- Uncomment to enable sign up using screens <portal-logic:if loggedIn="no" portletSolo="no"> <c:set var="menuTitle"> <portal-fmt:text key="link.enrollment" bundle="nls.engine" /> </c:set> <% if (menuItemCount > 0) { %>, <% } %>"asynchDoFormSubmit(' <portal-navigation:url command="PrepareEnrollment" home="public" reqid="no" themeTemplate="" />');",' <c-rt:out value="${menuTitle}" escapeXml="true" />',"${defaultPageIconUrl}" <% menuItemCount++; %> </portal-logic:if>--%> <%-- Login button --%> <%-- Comment out to enable screen login --%> <portal-logic:if loggedIn="no"> <portal-navigation:urlGeneration contentNode="wps.Login" themeTemplate=""> <c:set var="menuTitle"> <portal-fmt:text key="link.login" bundle="nls.engine" /> </c:set> <% if (menuItemCount > 0) { %>, <% } %>"asynchDoFormSubmit('<% wpsURL.write(escapeXmlWriter); %>');",' <c-rt:out value="${menuTitle}" escapeXml="true" />',"${defaultPageIconUrl}" <% menuItemCount++; %> </portal-navigation:urlGeneration> </portal-logic:if> <%-- Uncomment to allow screen login <portal-logic:if loggedIn="no"> <c:set var="menuTitle"> <portal-fmt:text key="link.login" bundle="nls.engine" /> </c:set> <% if (menuItemCount > 0) { %>, <% } %>"asynchDoFormSubmit(' <portal-navigation:url home="public" screen="Login" ssl="false" themeTemplate="" />');",' <c-rt:out value="${menuTitle}" escapeXml="true" />',"${defaultPageIconUrl}" <% menuItemCount++; %> </portal-logic:if>--%> </c-rt:if> <%-- Logout button --%> <portal-logic:if loggedIn="yes"> <c:set var="menuTitle"> <portal-fmt:text key="link.logout" bundle="nls.engine" /> </c:set> <% if (menuItemCount > 0) { %>, <% } %>"asynchDoFormSubmit('<portal-navigation:url command="LogoutUser"/>');",' <c-rt:out value="${menuTitle}" escapeXml="true" />',"${defaultPageIconUrl}" </portal-logic:if> ]; } </script> </body></html>