X-Git-Url: https://git.llucax.com/software/bife/bife-all.git/blobdiff_plain/3658b126d4873c96dd3b08af6619795790e23ac2..715ddc41f45dcf4d64348fef69844618ad1abb3d:/src/BIFE/Page.php?ds=sidebyside diff --git a/src/BIFE/Page.php b/src/BIFE/Page.php index d1ce348..0bff2f9 100644 --- a/src/BIFE/Page.php +++ b/src/BIFE/Page.php @@ -93,21 +93,21 @@ class BIFE_Page extends BIFE_Root { /** * Returns the rendered widget as a string. * - * @param HTML_Template_Sigma &$template Template to use to render the widget. + * @param HTML_Template_HIT &$template Template to use to render the widget. * * @return string * @access public */ function render(&$template) // ~X2C { - $contents = parent::render($template); - $template->loadTemplateFile('bife_page.html'); - $template->setVariable($this->attrs); - $template->setVariable('CONTENTS', $contents); - return $template->get(); + $this->attrs['CONTENTS'] = parent::render($template); + $template->setGroup(); + $out = $template->parse('bife_page', $this->attrs); + $template->unsetGroup(); + return $out; } // -X2C } // -X2C Class :Page -?> +?> \ No newline at end of file