3 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
5 * This library is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License as published by the Free
7 * Software Foundation; either version 2.1 of the License, or (at your option)
10 * This library is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
17 <%@ include file="/html/common/init.jsp" %>
19 <%@ page import="com.liferay.portal.security.ldap.LDAPSettingsUtil" %>
20 <%@ page import="com.liferay.taglib.aui.ScriptTag" %>
23 List<Portlet> portlets = (List<Portlet>)request.getAttribute(WebKeys.LAYOUT_PORTLETS);
26 <%-- Portlet CSS References --%>
28 <%@ include file="/html/common/themes/bottom_portlet_resources_css.jspf" %>
30 <%-- Portlet JavaScript References --%>
32 <%@ include file="/html/common/themes/bottom_portlet_resources_js.jspf" %>
35 Set<String> runtimePortletIds = (Set<String>)request.getAttribute(WebKeys.RUNTIME_PORTLET_IDS);
37 if ((runtimePortletIds != null) && !runtimePortletIds.isEmpty()) {
38 List<Portlet> runtimePortlets = new ArrayList<Portlet>();
40 for (String runtimePortletId : runtimePortletIds) {
41 Portlet runtimePortlet = PortletLocalServiceUtil.getPortletById(runtimePortletId);
43 if (runtimePortlet != null) {
44 runtimePortlets.add(runtimePortlet);
48 portlets = runtimePortlets;
51 <%-- Portlet CSS References --%>
53 <%@ include file="/html/common/themes/top_portlet_resources_css.jspf" %>
54 <%@ include file="/html/common/themes/bottom_portlet_resources_css.jspf" %>
56 <%-- Portlet JavaScript References --%>
58 <%@ include file="/html/common/themes/top_portlet_resources_js.jspf" %>
59 <%@ include file="/html/common/themes/bottom_portlet_resources_js.jspf" %>
65 <c:if test="<%= PropsValues.JAVASCRIPT_LOG_ENABLED %>">
66 <%@ include file="/html/common/themes/bottom_js_logging.jspf" %>
69 <%@ include file="/html/common/themes/bottom_js.jspf" %>
71 <%@ include file="/html/common/themes/password_expiring_soon.jspf" %>
73 <%@ include file="/html/common/themes/session_timeout.jspf" %>
76 ScriptTag.flushScriptData(pageContext);
82 StringBundler pageBottomSB = (StringBundler)request.getAttribute(WebKeys.PAGE_BOTTOM);
85 <c:if test="<%= pageBottomSB != null %>">
88 pageBottomSB.writeTo(out);
93 <%-- Theme JavaScript --%>
95 <script src="<%= HtmlUtil.escape(PortalUtil.getStaticResourceURL(request, themeDisplay.getPathThemeJavaScript() + "/main.js")) %>" type="text/javascript"></script>
97 <c:if test="<%= layout != null %>">
99 <%-- User Inputted Layout and LayoutSet JavaScript --%>
102 LayoutSet layoutSet = themeDisplay.getLayoutSet();
104 UnicodeProperties layoutSetSettings = layoutSet.getSettingsProperties();
106 UnicodeProperties layoutTypeSettings = layout.getTypeSettingsProperties();
109 <script type="text/javascript">
111 <%= GetterUtil.getString(layoutSetSettings.getProperty("javascript"), "") %>
113 <%= GetterUtil.getString(layoutTypeSettings.getProperty("javascript"), "") %>
118 <c:if test="<%= PropsValues.MONITORING_PORTAL_REQUEST %>">
119 <%@ include file="/html/common/themes/bottom_monitoring.jspf" %>
122 <liferay-util:include page="/html/common/themes/bottom-ext.jsp" />