1С-Битрикс
- 4 ответа
- 0 вопросов
1
Вклад в тег
$photo = CFile::ResizeImageGet($arItem['PREVIEW_PICTURE'], array('width'=>85, 'height'=>82), BX_RESIZE_IMAGE_PROPORTIONAL, true, array());
switch ($propInfo['PROPERTY_TYPE'])
{
case Iblock\PropertyTable::TYPE_ELEMENT:
$showMode = 'PICT';
break;
case Iblock\PropertyTable::TYPE_LIST:
$showMode = 'TEXT';
break;
case Iblock\PropertyTable::TYPE_STRING:
$showMode = (isset($fieldsList['UF_FILE']) ? 'PICT' : 'TEXT');
break;
}