Blame view

local/templates/main/components/bitrix/news.list/services/template.php 961 Bytes
80576aee7   Дмитрий Типикин   Интеграция верстк...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  <?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);
  ?>
  <ul class="services__cards">
  	<?foreach ($arResult["ITEMS"] as $key => $item):?>
  		<li class="services-card">
  			<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']?>
  			<a class="button button_style_arrow services-card__btn" title="" href="<?= $item['DETAIL_PAGE_URL']?>"> читать подробнее</a>
  		</li>
  	<?endforeach;?>
  </ul>