что бы количество новостей в ряд можно было регулировать в файл news_params.php можно ввести изменение: кол-во новостей в переменной $aaa
$items = GetIBlockElementList($ID, false, $SORT, $NEWS_COUNT);
$items->NavPrint(GetMessage("T_NEWS_NEWS_NAVIG"));
?>
<?
$aaa=0;
while($obItem = $items->GetNextElement()):
$aaa=$aaa+1;
$arItem = $obItem->GetFields();
//$arProp = $obItem->GetProperties();
?> <? if ($aaa>2):?> |
<?endif; ?>
<font class="text">
<?if ($bDisplayPreviewPicture):?>
<?echo ShowImage($arItem["PREVIEW_PICTURE"], 100, 100, "hspace='5' vspace='5' align='left' border='0'", $arItem["DETAIL_PAGE_URL"]);?>
<?endif;?>
<?if(strlen($arItem["DATE_ACTIVE_FROM"])>0 && $bDisplayDate):?>
<font class="newsdata"><?echo $arItem["DATE_ACTIVE_FROM"]?><br></font><?endif?>
<?if ($bDisplayName):?>
[url=<?echo $arItem[]"><?echo $arItem["NAME"]?>[/url]<br>
<?endif;?>
<?if ($bDisplayPreviewText):?>
<?echo $arItem["PREVIEW_TEXT"];?>
<?endif;?>
</font>
<? if ($aaa>1):?>
<? $aaa=0; ?>|
<?endif; ?>
<?
endwhile;