if( $arResult['MORE_PHOTO_COUNT'] = sizeof( $arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] ) ) {
$showSliderControls = true;
foreach($arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] as $FILE_ID) {
if( is_array($FILE = CFile::GetFileArray($FILE_ID)) ) {
array_push($actualItem["MORE_PHOTO"], $FILE);
}
}
}
else
{
$actualItem = $arResult;
$showSliderControls = $arResult['MORE_PHOTO_COUNT'] > 1;
}
if( $arResult['MORE_PHOTO_COUNT'] = sizeof( $arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] ) ) {
$showSliderControls = true;
foreach($arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] as $FILE_ID) {
if( is_array($FILE = CFile::GetFileArray($FILE_ID)) ) {
array_push($actualItem["MORE_PHOTO"], $FILE);
}
}
$arResult['MORE_PHOTO'] = $actualItem["MORE_PHOTO"];
$arResult['MORE_PHOTO_COUNT'] = sizeof( $arResult['MORE_PHOTO'] );
}
MORE_PHOTO ( $arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] )
Код свойства с картинками. $arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"]
содержит ID картинок$img_resize_path = CFile::ResizeImageGet(
$arResult[PROPERTIES][MORE_PHOTO][VALUE][0],
array('width'=>'100', 'height'=>'150'),
BX_RESIZE_IMAGE_PROPORTIONAL
);
echo $img_resize_path[src];