*/
function render(&$template) // ~X2C
{
- $contents = parent::render($template);
- $template->loadTemplateFile(get_class($this).'.html');
- $template->setVariable($this->attrs);
- $template->setVariable('CONTENTS', $contents);
- return $template->get();
+ $this->attrs['CONTENTS'] = parent::render($template);
+ $template->group = '';
+ return $template->parse(get_class($this), $this->attrs);
}
// -X2C