index 11b5c1b92fb47f089c3bf7f245f76f43b545a89d..4c61ca676729c75536d519f266aef809938c5fac 100644 (file)
}
$smarty = get_smarty();
+ $smarty->assign("ID", $this->id);
+
+ /* Only display navigation elements if necessary */
+ if($this->TYPE == "if"){
+ $object_container = $smarty->fetch(get_template_path("templates/object_container.tpl",TRUE,dirname(__FILE__)));
+ }else{
+ $object_container = $smarty->fetch(get_template_path("templates/object_container_clear.tpl",TRUE,dirname(__FILE__)));
+ }
+
$smarty->assign("Name", $name);
$smarty->assign("Contents", $this->get_as_html());
- return($smarty->fetch(get_template_path("templates/element_if_else.tpl",TRUE,dirname(__FILE__))));
+ $object = $smarty->fetch(get_template_path("templates/element_if_else.tpl",TRUE,dirname(__FILE__)));
+
+
+
+ $str = preg_replace("/%%OBJECT_CONTENT%%/",$object,$object_container);
+
+
+ return($str);
}