33 lines
1.4 KiB
PHP
33 lines
1.4 KiB
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);
|
||
?>
|
||
<? if(is_array($arResult['MODELS']) && count($arResult['MODELS']) > 0): ?>
|
||
<div class="recom_models">
|
||
<div class="title_wrapper">
|
||
<p class="title">Рекомендуемые модели <?= $arParams['BRAND_NAME']; ?> для Вас</p>
|
||
<?/*<a href="/catalog/<?= $arParams['BRAND_CODE']; ?>/" class="button button-transparent">Показать все</a>*/?>
|
||
</div>
|
||
<? foreach($arResult['MODELS'] AS $model): ?>
|
||
<div class="other_item">
|
||
<a href="<?= $model['URL']; ?>">
|
||
<span><?= $model['NAME']; ?></span>
|
||
<img src="<?= ($model['PREVIEW_PICTURE'] != "") ? $model['PREVIEW_PICTURE'] : "/images/no_car_photo_380.png"; ?>" alt="<?= $model['NAME']; ?>" loading="lazy" />
|
||
</a>
|
||
</div>
|
||
<? endforeach; ?>
|
||
<a class="catalog_show_more_button" href="/catalog/<?= $arParams['BRAND_CODE']; ?>/" style="margin-bottom: 0px;">
|
||
<span>Показать все</span>
|
||
</a>
|
||
</div>
|
||
<? endif; ?>
|