%
/**
* Copyright (c) 2000-2011 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/portlet/nested_portlets/init.jsp" %>
<%
String redirect = ParamUtil.getString(request, "redirect");
%>
<%
int CELLS_PER_ROW = 4;
String layoutTemplateId = preferences.getValue("layout-template-id", PropsValues.NESTED_PORTLETS_LAYOUT_TEMPLATE_DEFAULT);
List layoutTemplates = LayoutTemplateLocalServiceUtil.getLayoutTemplates(theme.getThemeId());
layoutTemplates = PluginUtil.restrictPlugins(layoutTemplates, user);
List unsupportedLayoutTemplates = ListUtil.fromArray(PropsUtil.getArray(PropsKeys.NESTED_PORTLETS_LAYOUT_TEMPLATE_UNSUPPORTED));
for (int i = 0; i < layoutTemplates.size(); i++) {
LayoutTemplate curLayoutTemplate = (LayoutTemplate)layoutTemplates.get(i);
if (unsupportedLayoutTemplates.contains(curLayoutTemplate.getLayoutTemplateId())) {
layoutTemplates.remove(i);
i--;
}
}
for (int i = 0; i < layoutTemplates.size(); i++) {
LayoutTemplate curLayoutTemplate = (LayoutTemplate)layoutTemplates.get(i);
%>
|
<%
}
%>
<%
boolean portletDecorateDefault = GetterUtil.getBoolean(theme.getSetting("portlet-setup-show-borders-default"), true);
boolean portletSetupShowBorders = GetterUtil.getBoolean(preferences.getValue("portlet-setup-show-borders", String.valueOf(portletDecorateDefault)));
%>