+

Search Tips   |   Advanced Search

banner.jspf

 

<%-- Licensed Materials - Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2001, 2004, 2006 - All Rights reserved.

        NOTE: See notes in Default.jsp for information regarding editing theme JSP fragments.   

--%>
<div class="wptheme-banner" id="banner">

        <c:if test="${portalThemePolicyMap.renderBannerTitleGraphic || renderBannerTitle}">
                <div class="wptheme-bannerTitle">
                        <c:if test="${portalThemePolicyMap.renderBannerTitleGraphic}">
                                <c:if test="${!empty portalThemePolicyMap.bannerTitleGraphic}">
                                    <img src='<portal-resolver:url uri="${portalThemePolicyMap.bannerTitleGraphic}:${themeContextInfo}" lateBinding="false" mode="download"/>' align="bottom" alt="" />        
                                </c:if>
                                <c:if test="${empty portalThemePolicyMap.bannerTitleGraphic}">
                                    <portal-logic:urlFindInTheme file="${themeConfig.defaultLogoURL}" id="graphicJSP" />
                                    <img src='<%=graphicJSP.toString()%>' align="bottom" alt="" />
                                </c:if>
                        </c:if>
                        <c:if test="${renderBannerTitle}">
                                <c:out value="${siteTitle}"/>
                        </c:if>
        
                </div>
        </c:if>

        <c-rt:if test="${themePolicy.renderMainMenu}">
                <div class="wptheme-topLevelLinks" id="topLevelLinks" >
                        <c-rt:if test="${!renderPlaceholdersOnly}">
                                <%@ include file="./banner_topLevelLinks.jspf" %>
                        </c-rt:if>      
                </div>
        </c-rt:if>      

        <%-- Global user actions at the top of the page --%>
        <div class="wptheme-toolbar" <%=bidiDirAttr%>>
                <ul>
                        <c-rt:if test = "${themePolicy.renderToolBar}">
                                <%@ include file="./banner_toolbar.jspf" %>
                        </c-rt:if>
                        <%--
                    Special note about use of class="wptheme-toolbar-last"
                    The login and logout buttons are always last and they are mutually exclusive of each other.
                    So, put class="wptheme-toolbar-last" on every one of them to guarantee that the last item
                    in the list will have the border turned off.
            --%>
                        <%-- Login button --%>
            <%-- comment this to enable screen login --%> 
            <%-- loginOnClick is provided so the client-side aggregation theme can add this link without creating a different copy of this file. --%>
            <portal-logic:if loggedIn="no">

                    <c:if test="${!empty loginOnClick}">
                            <li class="wptheme-toolbar-last"><a href='javascript:void(0);' onclick='<c:out value="${loginOnClick}" />' <%=bidiDirAttr%>><portal-fmt:text key="link.login" bundle="nls.engine"/></a></li>
                    </c:if>
                    <c:if test="${empty loginOnClick}">
                            <portal-navigation:urlGeneration contentNode="wps.Login">
                                    <li class="wptheme-toolbar-last"><a href='<% wpsURL.write(escapeXmlWriter); %>' <%=bidiDirAttr%>><portal-fmt:text key="link.login" bundle="nls.engine"/></a></li>
                            </portal-navigation:urlGeneration>
                    </c:if>

            </portal-logic:if>
            <%-- Uncomment this to enable screen login  
            <portal-logic:if loggedIn="no" notScreen="Login">
                            <li class="wptheme-toolbar-last"><a href='<portal-navigation:url home="public" screen="Login" ssl="false"/>' <%=bidiDirAttr%>><portal-fmt:text key="link.login" bundle="nls.engine" /></a></li>
            </portal-logic:if>
            --%>

            <%-- logout button --%>
            <portal-logic:if loggedIn="yes">   
                    <li class="wptheme-toolbar-last"><a href='<portal-navigation:url command="LogoutUser"/>' <%=bidiDirAttr%>><portal-fmt:text key="link.logout" bundle="nls.engine"/></a></li>
            </portal-logic:if>  
            </ul>
        </div>  
        <script type="text/javascript">
        function wptheme_showHelpWindow(){
            var newWindow = window.open('<%= wpsDocURL %>/help/index.html','PortalHelpWindow','resizable=yes,scrollbars=yes,menubar=no,toolbar=yes,status=no,width=800px,height=600px,screenX=10px,screenY=10px,top=10px,left=10px');
            newWindow.focus();
            return  false;
        }
        </script>
        <div class="wptheme-clearing"><!-- --></div>

</div> 
<!-- end banner -->