35 $this->
lng = $DIC->language();
36 $this->tpl = $DIC->ui()->mainTemplate();
46 $this->items[] = $a_item;
50 bool $a_items_only =
false 52 $this->tpl->addJavaScript(
"./Services/News/Timeline/js/Timeline.js");
53 $this->tpl->addJavaScript(
"./Services/News/Timeline/libs/jquery-dynamic-max-height-master/src/jquery.dynamicmaxheight.js");
55 $t =
new ilTemplate(
"tpl.timeline.html",
true,
true,
"Services/News/Timeline");
57 $t->touchBlock(
"list_start");
58 $t->touchBlock(
"list_end");
60 $keys = array_keys($this->items);
61 foreach ($this->items as $k =>
$i) {
63 if (isset(
$keys[$k + 1], $this->items[
$keys[$k + 1]])) {
64 $next = $this->items[
$keys[$k + 1]];
67 $dt =
$i->getDateTime();
69 $t->setCurrentBlock(
"badge");
71 $t->setVariable(
"MONTH", $this->
lng->txt(
"month_" . $dt->get(
IL_CAL_FKT_DATE,
"m") .
"_short"));
72 $t->parseCurrentBlock();
75 $t->setCurrentBlock(
"item");
76 $t->setVariable(
"CONTENT",
$i->render());
77 $t->setVariable(
"FOOTER",
$i->renderFooter());
78 $t->parseCurrentBlock();
ilGlobalTemplateInterface $tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
render(bool $a_items_only=false)
addItem(ilTimelineItemInt $a_item)