<?php if(!empty($arResult['PROPERTIES']['ALL_VIDEO']['VALUE'])):?>
<li class="product-item-detail-tab" data-entity="tab" data-value="video">
<a href="javascript:void(0);" class="product-item-detail-tab-link">
<span>Видео</span>
</a>
</li>
<?php endif; ?>
<!--Top tabs-->
$server = \Bitrix\Main\Application::getInstance()->getContext()->getServer();
...
$fpath = '';
for($i=0;$i<4;$i++){
if( strlen($_FILES["file"]["tmp_name"][$i]) > 0 ) {
$arr_file=Array(
"name" => $_FILES[file][name][$i],
"size" => $_FILES[file][size][$i],
"tmp_name" => $_FILES[file][tmp_name][$i],
"type" => "",
"old_file" => "",
"del" => "Y",
"MODULE_ID" => "iblock"
);
$fid = CFile::SaveFile($arr_file, "feedback");
$fpath .= ($server->getServerPort() == 443 ? 'https://' : 'http://').$server->getServerName().CFile::GetPath($fid).PHP_EOL;
}
}
<ul class="slides">
<?
$arItemsChunks = array_chunk($arResult["ITEMS"], 2, true);
foreach($arItemsChunks as $arChunk):?>
<li class="slide news-item">
<?foreach($arChunk as $key => $arItem):?>
<?
$this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT"));
$this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
?>
<a href="<?echo $arItem["DETAIL_PAGE_URL"]?>"><b><?echo $arItem["NAME"]?></b></a><br />
<?echo $arItem["PREVIEW_TEXT"];?>
<?endforeach;?>
</li>
<?endforeach;?>
</ul>