META-INF.resources.portlet.product_menu.jsp Maven / Gradle / Ivy
<%--
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
--%>
<%@ include file="/portlet/init.jsp" %>
<%
List childPanelCategories = productMenuDisplayContext.getChildPanelCategories();
request.setAttribute("product_menu.jsp-childPanelCategoriesSize", childPanelCategories.size());
boolean singleChildCategory = childPanelCategories.size() == 1;
%>
">
<%
for (PanelCategory childPanelCategory : childPanelCategories) {
%>
<%
Class> childPanelCategoryClass = childPanelCategory.getClass();
%>
" data-parent="# Accordion" data-qa-id="productMenu<%= childPanelCategoryClass.getSimpleName() %>" data-toggle="liferay-collapse" href="# <%= AUIUtil.normalizeId(childPanelCategory.getKey()) %>Collapse" role="button">
<%@ include file="/portlet/product_menu_title.jspf" %>
" data-parent="# Accordion" id=" <%= AUIUtil.normalizeId(childPanelCategory.getKey()) %>Collapse" role="tabpanel">
<%
boolean include = childPanelCategory.include(request, PipingServletResponseFactory.createPipingServletResponse(pageContext));
%>
<%
}
%>
<%
PanelCategory childPanelCategory = childPanelCategories.get(0);
%>
<%
Class> childPanelCategoryClass = childPanelCategory.getClass();
%>
<%@ include file="/portlet/product_menu_title.jspf" %>
<%
boolean include = childPanelCategory.include(request, PipingServletResponseFactory.createPipingServletResponse(pageContext));
%>