<div class="wraps col-sm-4"><div class="row galery"><div class="inner"><div class="flexslider unstyled row slider" data-plugin-options='{"animation": "slide", "directionNav": true, "controlNav" :false, "animationLoop": true, "sync": ".detail .galery .carousel", "slideshow": false, "counts": [1, 1, 1]}'><ul class="slides items"><?$arFoto = $arResult['ITEMS'][$key]['PROPERTIES']['PHOTOS']['VALUE'];$countAll = count(count($arFoto));?><?foreach($arFoto as $i => $arPhoto):?><li class="col-md-1 col-sm-1 item" ><a href="/<?=CFile::GetPath($arPhoto);?>" class="fancybox" rel="gallery" target="_blank" ><img src="/<?=CFile::GetPath($arPhoto);?>" class="img-responsive inline" /><span class="zoom"><i class="fa fa-16 fa-white-shadowed fa-search-plus"></i></span></a></li><?endforeach;?></ul></div></div><?$arFoto = 0;?></div></div>