/** * Public profile form */ function showPublicProfile($a_no_init = false) { global $ilUser, $lng, $ilSetting, $ilTabs; $ilTabs->activateTab("public_profile"); $this->setHeader(); if (!$a_no_init) { $this->initPublicProfileForm(); } $ptpl = new ilTemplate("tpl.edit_personal_profile.html", true, true, "Services/User"); $ptpl->setVariable("FORM", $this->form->getHTML()); include_once "./Services/User/classes/class.ilPublicUserProfileGUI.php"; $pub_profile = new ilPublicUserProfileGUI($ilUser->getId()); $ptpl->setVariable("PREVIEW", $pub_profile->getEmbeddable()); $this->tpl->setContent($ptpl->get()); $this->tpl->show(); }