flyout.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.	

--%>
<%-- !! Changed the left postion to display the bar <div id="wpsFLYflyout" style="position: absolute; top: 150; left: -293; width: 280"> --%>
	<portal-logic:if portletSolo="no">   
	<ul>
		<%-- slide-out palettes --%>    
        <%{
               int arrayPosition = 0;
         	   java.util.Map pageIndexMap = new java.util.HashMap();
                %>
                    
                        <c-rt:if test = "${themePolicy.renderContentPalette}">
                        <portal-navigation:urlGeneration contentNode='ibm.portal.Content Palette' layoutNode='ibm.portal.Content Palette Control' newWindow='true' portletWindowState='Maximized'>
                            <portal-navigation:urlParam name='WCN' value='<%=pageOidStr%>' type='render' />
                                <li>
                                        <%-- In CSA, we need to update the url since the selection changes and the portlet palette needs to know this value
                                        	 so it can render the correct list of portlets --%>
                                        <a id="globalActionLink<%=arrayPosition%>" 
                                           href="<% wpsURL.write(out); %>" 
                                           onclick="wptheme_InlinePalettes.show(<%=arrayPosition%>); return false;" 
                                           <%=bidiDirAttr%>>
                                           <c:out value='${linkPortlets}' escapeXml='true' />
                                        </a>
                                        
                                </li>   
                               <%pageIndexMap.put("ibm.portal.Content Palette", Integer.toString(arrayPosition));
                                arrayPosition++;%>
                        </portal-navigation:urlGeneration>
                        </c-rt:if>
                <c-rt:if test = "${themePolicy.renderPeoplePalette}">
        <portal-navigation:urlGeneration contentNode='ibm.portal.People Palette' layoutNode='ibm.portal.People Palette Control' newWindow='true' portletWindowState='Maximized'>
                                <li>|</li>
                                <li>
                                        <a id="globalActionLink<%=arrayPosition%>" 
                                           href="<% wpsURL.write(out); %>" 
                                           onclick="wptheme_InlinePalettes.show(<%=arrayPosition%>); return false;" <%=bidiDirAttr%>>
                                           <c:out value='${linkPeople}' escapeXml='true' />
                                        </a>
                                </li>
                               <%pageIndexMap.put("ibm.portal.People Palette", Integer.toString(arrayPosition));                               
                                arrayPosition++;%>
        </portal-navigation:urlGeneration>
                </c-rt:if>
                <c-rt:if test = "${themePolicy.renderExtensions}">
                <portal-theme-ext:themeExtension id="com.ibm.portal.theme.plugin.Flyouts" >
                        <portal-theme-ext:themeExtensionLoop>   
                        <li>
                                <a id="globalActionLink<%=arrayPosition%>" href="<portal-theme-ext:themeExtensionItemUrl />" onclick="wptheme_InlinePalettes.toggle(this.href, true, this.id); return false;" <%=bidiDirAttr%>><portal-fmt:title varname='<%=(com.ibm.portal.theme.plugin.ThemeItem) themeExtension%>' /></a>
                        </li>
                        <%arrayPosition++;%>
                        </portal-theme-ext:themeExtensionLoop>                          
                </portal-theme-ext:themeExtension>              
                </c-rt:if>
                
        
	</ul>
	<portal-logic:if loggedIn="yes">
		<script type="text/javascript">
		if(<%=pageIndexMap.get("ibm.portal.Content Palette")%> != null){
			wptheme_InlinePalettes.addPalette( {
				url: document.getElementById( 'globalActionLink<%=pageIndexMap.get("ibm.portal.Content Palette")%>' ).href,
				page: 'ibm.portal.Content Palette',
				portlet: 'ibm.portal.Content Palette Control',
				newWindow: true,
				portletWindowState: ibm.portal.portlet.WindowState.MAXIMIZED,
				selectionDependent: true
			} );
		}
		
		if(<%=pageIndexMap.get("ibm.portal.People Palette")%> != null){
			wptheme_InlinePalettes.addPalette( {
				url: document.getElementById( 'globalActionLink<%=pageIndexMap.get("ibm.portal.People Palette")%>' ).href,
				page: 'ibm.portal.People Palette',
				portlet: 'ibm.portal.People Palette Control',
				newWindow: true,
				portletWindowState: ibm.portal.portlet.WindowState.MAXIMIZED,
				selectionDependent: false
			} );
		}
	
			//This sets up the loading screen which overlays the palette while the iframe is loading. The image and text
			//specified here is displayed centered in the overlaid partially opaque div. In the default case it will read "Loading...".
			//The wptheme_DarkTransparentLoadingDecorator used here is defined in InlinePalettes.js.
			wptheme_InlinePalettes.loadingDecorator = new wptheme_DarkTransparentLoadingDecorator( /*String - cssClassName*/"wptheme-flyoutLoading",
																								   /*String - imageURL*/"<portal-logic:urlFindInTheme file='images/loading-dk.gif' />",
																								   /*String - imageText*/"<portal-fmt:text key='loading' bundle='nls.v3theme' />" );
		</script>
	</portal-logic:if>
	<%} %>
	</portal-logic:if>
	<iframe allowTransparency="true" style="height: 100%" class="wptheme-flyoutIframe" id="wpsFLY_flyoutIFrame" frameborder="0" width="380px" title="<portal-fmt:text key='title' bundle='nls.engine' /> Flyout" name="wpsFLY_flyoutIFrame" src="<portal-logic:urlFindInTheme file="./flyoutInit.html" />" scrolling="auto" onload="wptheme_InlinePalettes._doPostShow();"></iframe>