Решение тут /bitrix/catalog.section/templates/.default/template.php
Сокращенный вариант
Сокращенный вариант
Код |
---|
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?> <table cellpadding="0" cellspacing="0" border="0"> <?foreach($arResult["ITEMS"] as $cell=>$arElement):?> <? $this->AddEditAction($arElement['ID'], $arElement['EDIT_LINK'], CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "ELEMENT_EDIT")); $this->AddDeleteAction($arElement['ID'], $arElement['DELETE_LINK'], CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BCS_ELEMENT_DELETE_CONFIRM'))); ?> <?if($cell%$arParams["LINE_ELEMENT_COUNT"] == 0):?> <tr> <?endif;?> <td valign="top" width="<?=round(100/$arParams["LINE_ELEMENT_COUNT"])?>%" id="<?=$this->GetEditAreaId($arElement['ID']);?>"> ... </td> <?$cell++; if($cell%$arParams["LINE_ELEMENT_COUNT"] == 0):?> </tr> <?endif?> <?endforeach; // foreach($arResult["ITEMS"] as $arElement):?> <?if($cell%$arParams["LINE_ELEMENT_COUNT"] != 0):?> <?while(($cell++)%$arParams["LINE_ELEMENT_COUNT"] != 0):?> <td> </td> <?endwhile;?> </tr> <?endif?> </table> |