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");
200 $list->setListTitle($lng->txt(
"wiki_page_actions"));
201 $list->setId(
"wiki_pgactions");
203 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
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 if ($ilAccess->checkAccess(
"edit_content",
"",
$_GET[
"ref_id"]))
224 $list->addItem($lng->txt(
"wiki_rename_page"),
"",
225 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"renameWikiPage"));
228 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
233 $list->addItem($lng->txt(
"wiki_unblock_page"),
"",
234 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"unblockWikiPage"));
238 $list->addItem($lng->txt(
"wiki_block_page"),
"",
239 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"blockWikiPage"));
246 $list->addItem($lng->txt(
"wiki_delete_page"),
"",
247 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"deleteWikiPageConfirmationScreen"));
251 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]) ||
252 $ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
254 $tpl->setCurrentBlock(
"plain");
255 $tpl->setVariable(
"PLAIN", $list->getHTML());
256 $tpl->parseCurrentBlock();
257 $tpl->touchBlock(
"item");
272 if ($ilAccess->checkAccess(
'write',
"",
$_GET[
"ref_id"]))
279 "txt" => $lng->txt(
"wiki_contributors"),
280 "href" => $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"listContributors")
285 if ($ilAccess->checkAccess(
'write',
"",
$_GET[
"ref_id"]))
288 "txt" => $lng->txt(
"settings"),
289 "href" => $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"editSettings")
293 foreach ($actions as $a)
295 $tpl->setCurrentBlock(
"action");
296 $tpl->setVariable(
"HREF", $a[
"href"]);
297 $tpl->setVariable(
"TXT", $a[
"txt"]);
298 $tpl->parseCurrentBlock();
300 $tpl->touchBlock(
"item");