<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>

<div class="row">
<?foreach($arResult["ITEMS"] as $arItem):?>
	<?
	$this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT"));
	$this->AddDeleteAction($arItem['I00003-793131882.pngD'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
    if (strlen($arItem["PREVIEW_PICTURE"]["SRC"]) > 0) {
        $bgImage = $arItem["PREVIEW_PICTURE"]["SRC"];
    } else {
        $bgImage = '/local/img/nophoto.png';
    }
    ?>
	<div class="col-xl-3" id="<?=$this->GetEditAreaId($arItem['ID']);?>">
		<a class="sales_line_item" href="<?=$arItem["DETAIL_PAGE_URL"]?>" title="<?=$arItem["PREVIEW_PICTURE"]["TITLE"]?>">
            <span class="sales_line_item_pict" style="background-image: url(<?=$bgImage?>)"></span>
            <h3><?echo $arItem["NAME"]?></h3>
            <p><?=$arItem["PREVIEW_TEXT"]?></p>
            <span class="btn">Попробуйте бесплатно</span>
        </a>
    </div>
<?endforeach;?>
</div>
