myaac/system/templates/news.tickers.html.twig
slawkens 5e414ebda8 * added news ticker for kathrine template
* (internal) moved news tickers to twig template
* (internal) moved Forum class to separate file
* (internal) moved deprecated functions to compat.php
2017-10-25 09:50:12 +02:00

15 lines
464 B
Twig

<table style="width: 100%">
<tr class="white" bgcolor="{{ config.vdarkborder }}">
<td colspan="3">Tickers</td>
</tr>
{% set i = 0 %}
{% for ticker in tickers %}
<tr bgcolor="{{ getStyle(i) }}">
<td style="width: 16px;"><img src="{{ template_path }}/images/news/icon_{{ ticker.icon }}_small.gif"/></td>
<td style="width: 80px;">{{ ticker.date|date("j M Y") }}</td>
<td>{{ ticker.body|raw }}</td>
</tr>
{% set i = i + 1 %}
{% endfor %}
</table>
<br/>