35         $this->
lng = $DIC->language();
    36         $this->tpl = $DIC->ui()->mainTemplate();
    46         $this->items[] = $a_item;
    50         bool $a_items_only = 
false    54             $this->tpl->addJavaScript(
"../components/ILIAS/News/resources/Timeline.js");
    56             $this->tpl->addJavaScript(
"assets/js/Timeline.js");
    59         $t = 
new ilTemplate(
"tpl.timeline.html", 
true, 
true, 
"components/ILIAS/News/Timeline");
    61             $t->touchBlock(
"list_start");
    62             $t->touchBlock(
"list_end");
    64         $keys = array_keys($this->items);
    65         foreach ($this->items as $k => $i) {
    67             if (isset($keys[$k + 1], $this->items[$keys[$k + 1]])) {
    68                 $next = $this->items[$keys[$k + 1]];
    71             $dt = $i->getDateTime();
    73                 $t->setCurrentBlock(
"badge");
    75                 $t->setVariable(
"MONTH", $this->
lng->txt(
"month_" . $dt->get(
IL_CAL_FKT_DATE, 
"m") . 
"_short"));
    76                 $t->parseCurrentBlock();
    79             $t->setCurrentBlock(
"item");
    80             $t->setVariable(
"CONTENT", $i->render());
    81             $t->setVariable(
"FOOTER", $i->renderFooter());
    82             $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)