5 include_once(
"Services/Block/classes/class.ilBlockGUI.php");
34 $lng->loadLanguageModule(
"wiki");
41 $this->
setTitle($lng->txt(
"wiki_navigation"));
44 $this->allow_moving =
false;
83 $next_class = $ilCtrl->getNextClass();
84 $cmd = $ilCtrl->getCmd(
"getHTML");
100 $this->export = $a_export;
102 if (!$this->export && $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
105 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"editImportantPages"),
106 $lng->txt(
"edit"),
"_top");
119 $tpl =
new ilTemplate(
"tpl.wiki_imp_pages_block.html",
true,
true,
"Modules/Wiki");
121 $cpar[0] = $cpar[1] = 0;
122 include_once(
"./Services/UIComponent/NestedList/classes/class.ilNestedList.php");
125 $list->setItemClass(
"ilWikiBlockItem");
126 $list->setListClass(
"ilWikiBlockList");
127 $list->setListClass(
"ilWikiBlockListNoIndent", 1);
133 $list->addListNode(
"<p class='small'><a href='".
134 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"gotoStartPage")
135 .
"'>".
$title.
"</a></p>", 1, 0);
139 $list->addListNode(
"<p class='small'><a href='".
141 "'>".
$title.
"</a></p>", 1, 0);
146 foreach ($ipages as $p)
152 $list->addListNode(
"<p class='small'><a href='".
154 .
"'>".
$title.
"</a></p>", $cnt, (
int) $cpar[$p[
"indent"] - 1]);
158 $list->addListNode(
"<p class='small'><a href='".
159 "wpg_".$p[
"page_id"].
".html".
160 "'>".
$title.
"</a></p>", $cnt, (
int) $cpar[$p[
"indent"] - 1]);
162 $cpar[$p[
"indent"]] = $cnt;
170 $tpl->setCurrentBlock(
"item");
172 $tpl->setVariable(
"ITEM_TITLE", $lng->txt(
"wiki_start_page"));
173 $tpl->setVariable(
"PAD", (
int) 5 + (0 * 20));
174 $tpl->setVariable(
"ITEM_HREF", $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"gotoStartPage"));
175 $tpl->parseCurrentBlock();
178 foreach ($ipages as $p)
180 $tpl->setCurrentBlock(
"item");
183 $tpl->setVariable(
"PAD", (
int) 5 + ($p[
"indent"] * 20));
185 $tpl->parseCurrentBlock();