Help, please, correctly set the check for the presence of the picture of the item. The default image will be in /bitrix/templates/site/images/wip.jpg. That is, if no pictures for the item are loaded, then the above is displayed. The location of the block of interest in the line, where "width" => 534, "height" => 307 is the mention of the desired section.
<div class='catalog-detail' data-val='<?=$arResult['ID'];?>'> <div class='catalog-grey-block group'> <div class='catalog-detail-left-block'> <div class="item_slider"> <ul class="slides"> <? $images = array(); if(is_array( $arResult["DETAIL_PICTURE"] ) ){$images[] = $arResult["DETAIL_PICTURE"];} foreach( $arResult["MORE_PHOTO"] as $arPhoto ){ $images[] = $arPhoto;} $bIsOneImage = count($images) == 1; ?> <?foreach( $images as $key => $arPhoto ){?> <li id="photo-<?=$key?>" <?=$key == 0 ? 'class="current"' : ''?>> <?//pr($arPhoto); //$img = CFile::ResizeImageGet( $arPhoto, array( "width" => 1000, "height" => 800 ), BX_RESIZE_IMAGE_PROPORTIONAL, true, array() );?> <?if($arResult['ID']!='1432'):?> <a rel='gallery' href="<?=$arPhoto["SRC"]?>" class='fancy' > <?endif;?> <?$img = CFile::ResizeImageGet( $arPhoto, array( "width" => 534, "height" => 307 ), BX_RESIZE_IMAGE_EXACT, true, array() );?> <img border="0" src="<?=$img["src"]?>" alt="<?=$arResult["IPROPERTY_VALUES"]["ELEMENT_DETAIL_PICTURE_FILE_ALT"]?>" title="<?=$arResult["IPROPERTY_VALUES"]["ELEMENT_DETAIL_PICTURE_FILE_TITLE"]?>" /> <?if($arResult['ID']!='1432'):?> </a> <?endif;?> </li> <?}?> </ul> <?if(count($images) > 1 ){?> <div class="thumbs"> <ul id="thumbs"> <?foreach( $images as $key => $arPhoto ){?> <?$img = CFile::ResizeImageGet( $arPhoto, array( "width" => 130, "height" => 76 ), BX_RESIZE_IMAGE_EXACT, true, array() );?> <li <?=$key == 0 ? 'class="current"' : ''?>> <a href='javascript:void(0);'> <img border="0" src="<?=$img["src"]?>" alt="<?=$arResult["NAME"]?>" title="<?=$arResult["NAME"]?>" /> </a> </li> <?}?> <?if (count($images)>3):?><?endif;?> </ul> </div> <span class="thumbs_navigation"></span> <?}?> </div>