SetTitle('Русское молоко — контроль качества от поля до прилавка'); CModule::IncludeModule('iblock'); $element = new CIBlockElement(); $newsList = $element->GetList(['active_from' => 'desc'], ['IBLOCK_ID' => NEWS_IBLOCK_ID, '!PREVIEW_PICTURE' => false], false, ['nPageSize' => 5], ['ID', 'NAME', 'ACTIVE_FROM', 'PREVIEW_PICTURE', 'PREVIEW_TEXT']); while ($newsItem = $newsList->GetNext()) { $news[] = $newsItem; } $pressList = $element->GetList(['active_from' => 'desc'], ['IBLOCK_ID' => PRESS_IBLOCK_ID, '!PREVIEW_PICTURE' => false], false, ['nPageSize' => 5], ['ID', 'NAME', 'ACTIVE_FROM', 'PREVIEW_PICTURE', 'PREVIEW_TEXT']); while ($pressItem = $pressList->GetNext()) { $press[] = $pressItem; } ?>