This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Timline (temporary implementation)
- Author
- Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de
Definition at line 24 of file class.ilTimelineGUI.php.
◆ __construct()
ilTimelineGUI::__construct |
( |
| ) |
|
|
protected |
◆ addItem()
◆ getInstance()
static ilTimelineGUI::getInstance |
( |
| ) |
|
|
static |
◆ render()
ilTimelineGUI::render |
( |
bool |
$a_items_only = false | ) |
|
Definition at line 49 of file class.ilTimelineGUI.php.
References $i, $keys, IL_CAL_FKT_DATE, and ILIAS\Repository\lng().
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();
◆ $items
array ilTimelineGUI::$items = [] |
|
protected |
◆ $lng
◆ $tpl
The documentation for this class was generated from the following file: