24 include_once(
"Services/Block/classes/class.ilBlockGUI.php");
52 $lng->loadLanguageModule(
"wiki");
58 $this->
setTitle($lng->txt(
"wiki_quick_navigation"));
61 $this->allow_moving =
false;
100 $next_class = $ilCtrl->getNextClass();
101 $cmd = $ilCtrl->getCmd(
"getHTML");
106 return $this->
$cmd();
117 $this->pageob = $a_pageob;
127 return $this->pageob;
147 $tpl =
new ilTemplate(
"tpl.wiki_side_block_content.html",
true,
true,
"Modules/Wiki");
152 $tpl->setCurrentBlock(
"info");
153 $tpl->setVariable(
"HREF_INFO",
154 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"infoScreen"));
155 $tpl->setVariable(
"TXT_INFO", $lng->txt(
"info_short"));
156 $tpl->parseCurrentBlock();
159 if ($ilAccess->checkAccess(
'edit_permission',
"",
$_GET[
"ref_id"]))
161 $tpl->setCurrentBlock(
"permissions");
162 $tpl->setVariable(
"HREF_PERMISSIONS",
163 $ilCtrl->getLinkTargetByClass(array(
"ilobjwikigui",
"ilpermissiongui"),
"perm"));
164 $tpl->setVariable(
"TXT_PERMISSIONS", $lng->txt(
"perm_settings"));
165 $tpl->parseCurrentBlock();
169 if ($ilAccess->checkAccess(
'write',
"",
$_GET[
"ref_id"]))
171 $tpl->setCurrentBlock(
"settings");
172 $tpl->setVariable(
"HREF_SETTINGS",
173 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"editSettings"));
174 $tpl->setVariable(
"TXT_SETTINGS", $lng->txt(
"settings"));
175 $tpl->parseCurrentBlock();
177 $tpl->setCurrentBlock(
"contributors");
178 $tpl->setVariable(
"HREF_CONTRIBUTORS",
179 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"listContributors"));
180 $tpl->setVariable(
"TXT_CONTRIBUTORS", $lng->txt(
"wiki_contributors"));
181 $tpl->parseCurrentBlock();
185 $tpl->setVariable(
"HREF_START_PAGE",
186 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"gotoStartPage"));
187 $tpl->setVariable(
"TXT_START_PAGE", $lng->txt(
"wiki_start_page"));
190 $tpl->setVariable(
"HREF_RECENT_CHANGES",
191 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"recentChanges"));
192 $tpl->setVariable(
"TXT_RECENT_CHANGES", $lng->txt(
"wiki_recent_changes"));
200 $tpl->setVariable(
"HREF_ALL_PAGES",
201 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"allPages"));
202 $tpl->setVariable(
"TXT_ALL_PAGES", $lng->txt(
"wiki_all_pages"));
205 $tpl->setVariable(
"HREF_NEW_PAGES",
206 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"newPages"));
207 $tpl->setVariable(
"TXT_NEW_PAGES", $lng->txt(
"wiki_new_pages"));
210 $tpl->setVariable(
"HREF_POPULAR_PAGES",
211 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"popularPages"));
212 $tpl->setVariable(
"TXT_POPULAR_PAGES", $lng->txt(
"wiki_popular_pages"));
215 $tpl->setVariable(
"HREF_ORPHANED_PAGES",
216 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"orphanedPages"));
217 $tpl->setVariable(
"TXT_ORPHANED_PAGES", $lng->txt(
"wiki_orphaned_pages"));