<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
if (empty($arResult))
    return true;?>

<ul class="thumbnails">
<?foreach ($arResult["SECTIONS"] as $key => $arSection):?>	
	<?foreach ($arSection["ELEMENTS"] as $key => $arItem):
	$arItem['FILE_ARRAY'] = pathinfo($_SERVER["DOCUMENT_ROOT"].$arItem['FILE']);
	?>
	<li class="span4">
			<a class="thumbnail" rel="external" target="_blank" href="<?=$arItem['FILE']?>">
					
				<div class="play_overlay">
						<img src="<?=$arItem["DETAIL_PICTURE"]?>" data-highres="<?=$arItem["PREVIEW_PICTURE"]?>" title="<?=$arItem["NAME"]?>">
				</div>
				<div class="post-meta">
						<span class="title">
							<?= $arItem["NAME"].' ('.$arItem["FILE_ARRAY"]['extension'].', '.$arItem["FILE_SIZE"].GetMessage('BITRIXTV_TEMPLATE_BXTV_SIZE_MB').')'?>
						</span>
				</div>
			</a>		
	</li>	
	<?endforeach;?>	
<?endforeach;?>	
</ul>
<?/*/?><pre><?print_r($arResult)?></pre><?//*/?>