Blame view
local/templates/main/components/bitrix/news.list/services/template.php
1.05 KB
9df36c320 1. Дебаг проблем ... |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<? 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); |
80576aee7 Интеграция верстк... |
14 15 |
?> <ul class="services__cards"> |
9df36c320 1. Дебаг проблем ... |
16 |
<? foreach ($arResult["ITEMS"] as $key => $item): ?> |
80576aee7 Интеграция верстк... |
17 |
<li class="services-card"> |
9df36c320 1. Дебаг проблем ... |
18 19 20 21 22 23 24 25 |
<img class="services-card__img" src="<?= CFile::GetPath($item["PROPERTIES"]["LIST_IMAGE"]['VALUE']); ?>" alt=""> <p class="lead-text services-card__title"><?= $item['NAME'] ?></p> <?= $item['PREVIEW_TEXT'] ?> <? if ($item["PROPERTIES"]["INFOTEXT_ONE"]['VALUE']): ?> <a class="button button_style_arrow services-card__btn" title="" href="<?= $item['DETAIL_PAGE_URL'] ?>"> читать подробнее</a> <? endif; ?> |
80576aee7 Интеграция верстк... |
26 |
</li> |
9df36c320 1. Дебаг проблем ... |
27 |
<? endforeach; ?> |
80576aee7 Интеграция верстк... |
28 |
</ul> |