%--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--%>
<%@ include file="../initTemplatesLayoutNormal.jsp" %>
<%
/**
* @author Mohan Kannapareddy
*/
// columnLayout already inhertited
// our current index in the loop
int loopIndex = ((Integer) renderRequest.getAttribute("loopIndex")).intValue();
// get the fragment in the loop
ContentFragment indexFrag = (ContentFragment) renderRequest.getAttribute("indexFrag");
LayoutCoordinate _coords = _columnLayout.getCoordinate(indexFrag);
pageContext.setAttribute("coords",_coords, PAGE_SCOPE);
int _col = _coords.getX();
pageContext.setAttribute("col", _col, PAGE_SCOPE);
int _row = _coords.getY();
pageContext.setAttribute("row", _row, PAGE_SCOPE);
pageContext.setAttribute("lastRow",_columnLayout.getLastRowNumber(_col), PAGE_SCOPE);
String columnFloat = _columnLayout.getColumnFloat(loopIndex);
pageContext.setAttribute("columnFloat",columnFloat, PAGE_SCOPE);
String columnWidth = _columnLayout.getColumnWidth(loopIndex);
pageContext.setAttribute("columnWidth",columnWidth, PAGE_SCOPE);
//get all the portlet move images
pageContext.setAttribute("movePortletLeft", _cPath + "/" +
getLayoutResource(_rootDecorator,"images/movePortletLeft.gif"), PAGE_SCOPE);
pageContext.setAttribute("movePortletRight", _cPath + "/" +
getLayoutResource(_rootDecorator,"images/movePortletRight.gif"), PAGE_SCOPE);
pageContext.setAttribute("movePortletUp", _cPath + "/" +
getLayoutResource(_rootDecorator,"images/movePortletUp.gif"), PAGE_SCOPE);
pageContext.setAttribute("movePortletDown", _cPath + "/" +
getLayoutResource(_rootDecorator,"images/movePortletDown.gif"), PAGE_SCOPE);
pageContext.setAttribute("imgClose", _cPath + "/" +
getLayoutResource(_rootDecorator,"images/close.gif"), PAGE_SCOPE);
pageContext.setAttribute("allowChangePortletDecorator",
getBoolProperty(_rootDecorator,"allow.change.portlet.decorator",true), PAGE_SCOPE);
%>
<%-- current loop index passed in request --%>