1270 && !empty($currentRow)) {
$rows[] = $currentRow;
$currentRow = array();
$currentWidth = 0;
}
$currentRow[] = $item;
$currentWidth += $itemWidth + 30;
endforeach;
if (!empty($currentRow)) {
$rows[] = $currentRow;
}
// Выводим ряды
foreach ($rows as $row):
$rowCount = count($row);
$itemIndex = 0;
foreach ($row as $item):
$itemIndex++;
$big_cover = modules_structure_attr::getAttributeSection("big_cover", 'id=' . $item['id']);
$isBig = ($big_cover == 'true');
$colClass = $isBig ? 'lg6' : 'lg3';
$colMd = $isBig ? 6 : 3;
$lastInRow = ($itemIndex == $rowCount) ? ' last-in-row' : '';
?>

" alt="" title="" class="item-img">
" class="item-link">