<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * The contents of this file are subject to the terms of the Liferay Enterprise
 * Subscription License ("License"). You may not use this file except in
 * compliance with the License. You can obtain a copy of the License by
 * contacting Liferay, Inc. See the License for the specific language governing
 * permissions and limitations under the License, including but not limited to
 * distribution rights of the Software.
 *
 *
 *
 */
--%>

<liferay-util:buffer
	var="navigation"
>
	<liferay-ui:icon-list>
		<liferay-util:dynamic-include key="com.liferay.login.web#/navigation.jsp#pre" />

		<%
		NavigationPageIncludeUtil.includePre(pageContext);

		for (String section : PropsValues.LOGIN_FORM_NAVIGATION_PRE) {
		%>

			<liferay-util:include page='<%= "/navigation/" + section + ".jsp" %>' portletId="<%= portletDisplay.getRootPortletId() %>" servletContext="<%= application %>" />

		<%
		}

		NavigationPageIncludeUtil.includePost(pageContext);

		for (String section : PropsValues.LOGIN_FORM_NAVIGATION_POST) {
		%>

			<liferay-util:include page='<%= "/navigation/" + section + ".jsp" %>' portletId="<%= portletDisplay.getRootPortletId() %>" servletContext="<%= application %>" />

		<%
		}
		%>

		<liferay-util:dynamic-include key="com.liferay.login.web#/navigation.jsp#post" />
	</liferay-ui:icon-list>
</liferay-util:buffer>

<%
navigation = navigation.trim();
%>

<c:if test="<%= Validator.isNotNull(navigation) %>">
	<div class="navigation">
		<%= navigation %>
	</div>
</c:if>