эта?
$perarow = $this->arcade->lib->settings['game_colunm_rows'];
$counter = 0;
$newrow = false;
for( $a = 0 ; $a <= $tcounter ; $a++ )
{
$game = $games_list[ $a ];
$class = ($class == 'row2') ? 'row1' : 'row2';
if( ($counter % $perarow == 0) && ($perarow != 0) && ($counter != 0) )