--- /dev/null
+<%--
+/**
+ * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ */
+--%>
+
+<%@ include file="/html/common/init.jsp" %>
+
+<%@ page import="com.liferay.portal.security.ldap.LDAPSettingsUtil" %>
+<%@ page import="com.liferay.taglib.aui.ScriptTag" %>
+
+<%
+List<Portlet> portlets = (List<Portlet>)request.getAttribute(WebKeys.LAYOUT_PORTLETS);
+%>
+
+<%-- Portlet CSS References --%>
+
+<%@ include file="/html/common/themes/bottom_portlet_resources_css.jspf" %>
+
+<%-- Portlet JavaScript References --%>
+
+<%@ include file="/html/common/themes/bottom_portlet_resources_js.jspf" %>
+
+<%
+Set<String> runtimePortletIds = (Set<String>)request.getAttribute(WebKeys.RUNTIME_PORTLET_IDS);
+
+if ((runtimePortletIds != null) && !runtimePortletIds.isEmpty()) {
+ List<Portlet> runtimePortlets = new ArrayList<Portlet>();
+
+ for (String runtimePortletId : runtimePortletIds) {
+ Portlet runtimePortlet = PortletLocalServiceUtil.getPortletById(runtimePortletId);
+
+ if (runtimePortlet != null) {
+ runtimePortlets.add(runtimePortlet);
+ }
+ }
+
+ portlets = runtimePortlets;
+%>
+
+ <%-- Portlet CSS References --%>
+
+ <%@ include file="/html/common/themes/top_portlet_resources_css.jspf" %>
+ <%@ include file="/html/common/themes/bottom_portlet_resources_css.jspf" %>
+
+ <%-- Portlet JavaScript References --%>
+
+ <%@ include file="/html/common/themes/top_portlet_resources_js.jspf" %>
+ <%@ include file="/html/common/themes/bottom_portlet_resources_js.jspf" %>
+
+<%
+}
+%>
+
+<c:if test="<%= PropsValues.JAVASCRIPT_LOG_ENABLED %>">
+ <%@ include file="/html/common/themes/bottom_js_logging.jspf" %>
+</c:if>
+
+<%@ include file="/html/common/themes/bottom_js.jspf" %>
+
+<%@ include file="/html/common/themes/password_expiring_soon.jspf" %>
+
+<%@ include file="/html/common/themes/session_timeout.jspf" %>
+
+<%
+ScriptTag.flushScriptData(pageContext);
+%>
+
+<%-- Raw Text --%>
+
+<%
+StringBundler pageBottomSB = (StringBundler)request.getAttribute(WebKeys.PAGE_BOTTOM);
+%>
+
+<c:if test="<%= pageBottomSB != null %>">
+
+ <%
+ pageBottomSB.writeTo(out);
+ %>
+
+</c:if>
+
+<%-- Theme JavaScript --%>
+
+<script src="<%= HtmlUtil.escape(PortalUtil.getStaticResourceURL(request, themeDisplay.getPathThemeJavaScript() + "/main.js")) %>" type="text/javascript"></script>
+
+<c:if test="<%= layout != null %>">
+
+ <%-- User Inputted Layout and LayoutSet JavaScript --%>
+
+ <%
+ LayoutSet layoutSet = themeDisplay.getLayoutSet();
+
+ UnicodeProperties layoutSetSettings = layoutSet.getSettingsProperties();
+
+ UnicodeProperties layoutTypeSettings = layout.getTypeSettingsProperties();
+ %>
+
+ <script type="text/javascript">
+ // <![CDATA[
+ <%= GetterUtil.getString(layoutSetSettings.getProperty("javascript"), "") %>
+
+ <%= GetterUtil.getString(layoutTypeSettings.getProperty("javascript"), "") %>
+ // ]]>
+ </script>
+</c:if>
+
+<c:if test="<%= PropsValues.MONITORING_PORTAL_REQUEST %>">
+ <%@ include file="/html/common/themes/bottom_monitoring.jspf" %>
+</c:if>
+
+<liferay-util:include page="/html/common/themes/bottom-ext.jsp" />
\ No newline at end of file