/** * Display 'Weblogedit' page. */ function pageWeblogedit() { /* @var $weblogs Weblogs */ global $PIVOTX; // check if the user has the required userlevel to view this page. $PIVOTX['session']->minLevel(PIVOTX_UL_ADMIN); $weblog = $PIVOTX['weblogs']->getWeblog($_GET['weblog']); $PIVOTX['template']->assign('title', __("Edit Weblog") . " <span>» " . $weblog['name'] . "</span>"); // $PIVOTX['template']->assign('heading', __('Create, edit and delete Users')); $form1 = getWeblogForm1($_GET['weblog']); $form1->setValues($weblog); $PIVOTX['template']->assign('form1', $form1->fetch()); $form2 = getWeblogForm2(); $form2->setValues($weblog); $PIVOTX['template']->assign('form2', $form2->fetch()); $form3 = getWeblogForm3($_GET['weblog']); $form3->setValues($weblog); $PIVOTX['template']->assign('form3', $form3->fetch()); $form4 = getWeblogForm4($_GET['weblog']); $form4->setValues($weblog); $PIVOTX['template']->assign('form4', $form4->fetch()); $form5 = getWeblogForm5(); $form5->setValues($weblog); $PIVOTX['template']->assign('form5', $form5->fetch()); renderTemplate('weblog.tpl'); }
/** * Dynamically load the settings screen for 'subweblogs'. We need to do this * dynamically, because the settings are dependant on what it set for the * 'frontpage' template. * */ public static function ext_loadSubWeblogs() { $form = getWeblogForm3($_POST['weblog']); $html = $form->fetch(); echo $html; }