SHARE
TWEET

Untitled

a guest Jan 14th, 2020 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="item-list">
  2. <?foreach($arResult["ITEMS"] as $arItem):?>
  3.     <?
  4.     $this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT"));
  5.     $this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
  6.     ?>
  7.     <div class="item" id="<?=$this->GetEditAreaId($arItem['ID']);?>">
  8.         <?if($arParams["DISPLAY_NAME"]!="N" && $arItem["NAME"]):?>
  9.                 <span class="item--name"><?echo $arItem["NAME"]?></span>
  10.         <?endif;?>
  11.         <?if($arParams["DISPLAY_PICTURE"]!="N" && is_array($arItem["PREVIEW_PICTURE"])):?>
  12.                 <img
  13.                     class="item--image"
  14.                     border="0"
  15.                     src="<?=$arItem["PREVIEW_PICTURE"]["SRC"]?>"
  16.                     width="<?=$arItem["PREVIEW_PICTURE"]["WIDTH"]?>"
  17.                     height="<?=$arItem["PREVIEW_PICTURE"]["HEIGHT"]?>"
  18.                     alt="<?=$arItem["PREVIEW_PICTURE"]["ALT"]?>"
  19.                     title="<?=$arItem["PREVIEW_PICTURE"]["TITLE"]?>"
  20.                     />
  21.         <?endif?>
  22.     <?foreach($arItem["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?>
  23.             <span class="item--property">
  24.             <?if(is_array($arProperty["DISPLAY_VALUE"])):?>
  25.                 <?=implode("&nbsp;/&nbsp;", $arProperty["DISPLAY_VALUE"]);?>
  26.             <?else:?>
  27.                 <?=$arProperty["DISPLAY_VALUE"];?>
  28.             <?endif?>
  29.             </span>
  30.         <?endforeach;?>
  31.     </div>
  32. <?endforeach;?>
  33. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top