25 lines
1.4 KiB
PHP
25 lines
1.4 KiB
PHP
<?if(!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true ) die();?>
|
|
|
|
<?//options from TSolution\Functions:showBlockHtml?>
|
|
<?$arOptions = $arConfig['PARAMS'];?>
|
|
|
|
<?$bHasCurrentItem = (isset($arOptions['VALUE']) && $arOptions['VALUE']);?>
|
|
|
|
<div class="line-block__item sku-props__inner sku-props--pict" <?=$arOptions['STYLE']?> data-id="<?=$arOptions['ID']?>">
|
|
<div class="sku-props__item">
|
|
<?if (isset($arOptions['NAME']) && $arOptions['NAME']):?>
|
|
<div class="sku-props__title color_666 font_12">
|
|
<?=$arOptions['NAME']?>
|
|
: <span class="sku-props__js-size"><?=($bHasCurrentItem ? $arOptions['VALUE'] : "—");?></span>
|
|
</div>
|
|
<?endif;?>
|
|
<div class="line-block line-block--flex-wrap line-block--6 sku-props__values ">
|
|
<?foreach ($arOptions['VALUES'] as $key => $arItem):?>
|
|
<div class="line-block__item" <?=$arItem['STYLE']?>>
|
|
<div class="sku-props__value sku-props__value--pict rounded-4 <?=($arItem['CLASS'] === 'active' ? 'sku-props__value--active' : '');?>" data-onevalue="<?=$arItem['ID'];?>" data-title="<?=$arItem['NAME']?>" title="<?=$arItem['NAME']?>" style="background-image: url(<?=($arItem['PICT']['SRC'] ?? $arItem['PICT'])?>);"><?=$arItem['NAME']?></div>
|
|
</div>
|
|
<?endforeach;?>
|
|
</div>
|
|
</div>
|
|
</div>
|