Created
November 5, 2015 18:26
-
-
Save d1i1m1o1n/403d4f5209db62eb11f2 to your computer and use it in GitHub Desktop.
Bitrix template with rows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?foreach($arResult["ITEMS"] as $cell=>$arItem):?> | |
<? | |
$this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT")); | |
$this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM'))); | |
?> | |
<?if($cell%$arParams["LINE_ELEMENT_COUNT"] == 0):?> | |
<p> | |
<?endif;?> | |
<img id="<?=$this->GetEditAreaId($arItem['ID']);?>" src="<?=$arItem["PREVIEW_PICTURE"]["SRC"]?>" alt="<?=$arItem["NAME"]?>"/> | |
<?$cell++; | |
if($cell%$arParams["LINE_ELEMENT_COUNT"] == 0):?> | |
</p> | |
<?endif?> | |
<?endforeach;?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment