extension)) { $image_src = NULL; } else { $image_src = IMAGE_DIR . $title . '.' . $node->extension; } } else { // node does not exists (yet) $image_src = NULL; } $tpl->assign('title', $title); $tpl->assign('self', $_SERVER['PHP_SELF']); $tpl->assign('header', ''); $tpl->assign('onload', ''); $tpl->assign('image_src', $image_src); $tpl->display('display.tpl.php'); ?>