28 lines
982 B
PHP
28 lines
982 B
PHP
<?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);
|
|
?>
|
|
<!--
|
|
<? /*= print_r($arResult);*/ ?>
|
|
-->
|
|
<div class="recom_models">
|
|
<p class="title"><?= isset($arParams['TITLE']) ? $arParams['TITLE'] : $arResult['TITLE']; ?></p>
|
|
<? foreach($arResult['MODELS'] AS $model): ?>
|
|
<div class="oher_item">
|
|
<a href="<?= $model['URL']; ?>">
|
|
<span><?= $model['NAME']; ?></span>
|
|
<img src="<?= ($model['PREVIEW_PICTURE'] != "") ? $model['PREVIEW_PICTURE'] : "/images/no_image_380.png"; ?>" alt="<?= $model['NAME']; ?>" loading="lazy" />
|
|
</a>
|
|
</div>
|
|
<? endforeach; ?>
|
|
</div>
|