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");
206 $list->addItem($lng->txt(
"wiki_rename_page"),
"",
207 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"renameWikiPage"));
212 $list->addItem($lng->txt(
"wiki_unblock_page"),
"",
213 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"unblockWikiPage"));
217 $list->addItem($lng->txt(
"wiki_block_page"),
"",
218 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"blockWikiPage"));
225 $list->addItem($lng->txt(
"wiki_delete_page"),
"",
226 $ilCtrl->getLinkTargetByClass(
"ilwikipagegui",
"deleteWikiPageConfirmationScreen"));
228 $tpl->setCurrentBlock(
"plain");
229 $tpl->setVariable(
"PLAIN", $list->getHTML());
230 $tpl->parseCurrentBlock();
231 $tpl->touchBlock(
"item");
247 if ($ilAccess->checkAccess(
'write',
"",
$_GET[
"ref_id"]))
254 "txt" => $lng->txt(
"wiki_contributors"),
255 "href" => $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"listContributors")
260 if ($ilAccess->checkAccess(
'write',
"",
$_GET[
"ref_id"]))
263 "txt" => $lng->txt(
"settings"),
264 "href" => $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"editSettings")
268 foreach ($actions as $a)
270 $tpl->setCurrentBlock(
"action");
271 $tpl->setVariable(
"HREF", $a[
"href"]);
272 $tpl->setVariable(
"TXT", $a[
"txt"]);
273 $tpl->parseCurrentBlock();
275 $tpl->touchBlock(
"item");