// $Id$
//
-
// +X2C includes
require_once 'BIFE/Container.php';
// ~X2C
* Attribute list.
*
* @var array $attrs
- * @access public
+ * @access protected
*/
var $attrs;
// +X2C Operation 11
/**
- * Add contents to the widget.
+ * Add contents to the container.
*
* @param mixed &$contents Contents to add.
*
if (is_string($contents)) {
$contents = trim($contents);
}
- parent::addContents($contents);
+ if ($contents) {
+ parent::addContents($contents);
+ }
}
// -X2C
*/
function render(&$template) // ~X2C
{
+ $contents = parent::render($template);
$template->loadTemplateFile(get_class($this).'.html');
$template->setVariable($this->attrs);
- $template->setVariable('CONTENTS', parent::render($template));
+ $template->setVariable('CONTENTS', $contents);
return $template->get();
}
// -X2C
} // -X2C Class :Generic
-?>
+?>
\ No newline at end of file