{foreach from = $item->list item = row name = 'row'}
{php}
$attribs = array();
if ($this->_foreach['row']['iteration']%2 == 1) {
$attribs['class'] = 'odd';
}
$this->assign('attribs', $attribs);
{/php}
- {include file = $item->getTemplate('row.tpl') attribs = $attribs}
{/foreach}
{if $item->paginator.totalItemCount > $item->paginator.currentItemCount}
{/if}