4 include_once(
"Services/Block/classes/class.ilBlockGUI.php");
32 $lng->loadLanguageModule(
"wiki");
38 $this->
setTitle($lng->txt(
"wiki_functions"));
41 $this->allow_moving =
false;
80 $next_class = $ilCtrl->getNextClass();
81 $cmd = $ilCtrl->getCmd(
"getHTML");
97 $this->pageob = $a_pageob;
107 return $this->pageob;
127 $tpl =
new ilTemplate(
"tpl.wiki_side_block_content.html",
true,
true,
"Modules/Wiki");
133 "txt" => $lng->txt(
"info_short"),
134 "href" => $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"infoScreen")
139 "txt" => $lng->txt(
"wiki_recent_changes"),
140 "href" => $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"recentChanges")
143 foreach ($actions as $a)
145 $tpl->setCurrentBlock(
"action");
146 $tpl->setVariable(
"HREF", $a[
"href"]);
147 $tpl->setVariable(
"TXT", $a[
"txt"]);
148 $tpl->parseCurrentBlock();
150 $tpl->touchBlock(
"item");
158 "txt" => $lng->txt(
"wiki_all_pages"),
159 "href" => $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"allPages")
164 "txt" => $lng->txt(
"wiki_new_pages"),
165 "href" => $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"newPages")
170 "txt" => $lng->txt(
"wiki_popular_pages"),
171 "href" => $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"popularPages")
176 "txt" => $lng->txt(
"wiki_orphaned_pages"),
177 "href" => $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"orphanedPages")
182 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
184 $list->setListTitle($lng->txt(
"wiki_page_lists"));
185 $list->setId(
"wiki_pglists");
187 foreach ($actions as $a)
189 $list->addItem($a[
"txt"],
"",
192 $tpl->setCurrentBlock(
"plain");
193 $tpl->setVariable(
"PLAIN", $list->getHTML());
194 $tpl->parseCurrentBlock();
195 $tpl->touchBlock(
"item");
199 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
202 $list->setListTitle($lng->txt(
"wiki_page_actions"));
203 $list->setId(
"wiki_pgactions");
210 $list->addItem($lng->txt(
"wiki_activate_page_rating"),
"",
211 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"activateWikiPageRating"));
215 $list->addItem($lng->txt(
"wiki_deactivate_page_rating"),
"",
216 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"deactivateWikiPageRating"));
221 $list->addItem($lng->txt(
"wiki_rename_page"),
"",
222 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"renameWikiPage"));
227 $list->addItem($lng->txt(
"wiki_unblock_page"),
"",
228 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"unblockWikiPage"));
232 $list->addItem($lng->txt(
"wiki_block_page"),
"",
233 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"blockWikiPage"));
240 $list->addItem($lng->txt(
"wiki_delete_page"),
"",
241 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"deleteWikiPageConfirmationScreen"));
244 $tpl->setCurrentBlock(
"plain");
245 $tpl->setVariable(
"PLAIN", $list->getHTML());
246 $tpl->parseCurrentBlock();
247 $tpl->touchBlock(
"item");
263 if ($ilAccess->checkAccess(
'write',
"",
$_GET[
"ref_id"]))
270 "txt" => $lng->txt(
"wiki_contributors"),
271 "href" => $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"listContributors")
276 if ($ilAccess->checkAccess(
'write',
"",
$_GET[
"ref_id"]))
279 "txt" => $lng->txt(
"settings"),
280 "href" => $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"editSettings")
284 foreach ($actions as $a)
286 $tpl->setCurrentBlock(
"action");
287 $tpl->setVariable(
"HREF", $a[
"href"]);
288 $tpl->setVariable(
"TXT", $a[
"txt"]);
289 $tpl->parseCurrentBlock();
291 $tpl->touchBlock(
"item");