*/
function render(&$template) // ~X2C
{
- $template->setGroup('album');
+ $template->pushGroup('album');
$list = $this->getList();
$tot = count($list);
$rows = ceil($tot / $this->attrs['COLUMNS']);
}
$template->parseBuffered('cell', 'CONTENTS', $cell);
}
- $template->parseBuffered('row', 'CONTENTS', $template->popBuffer('cell'));
+ $template->parseBuffered('row', 'CONTENTS',
+ $template->popBuffer('cell'));
}
- $out = $template->parse(
- 'body',
- array('DESC' => $this->getDescription(), 'CONTENTS' => $template->popBuffer('row'))
- );
- $template->unsetGroup();
+ $out = $template->parse('body', array(
+ 'DESC' => $this->getDescription(),
+ 'CONTENTS' => $template->popBuffer('row')));
+ $template->popGroup();
return $out;
}
// -X2C