mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-21 04:53:28 +02:00
* 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
This commit is contained in:
15
system/templates/news.tickers.html.twig
Normal file
15
system/templates/news.tickers.html.twig
Normal file
@@ -0,0 +1,15 @@
|
||||
<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/>
|
Reference in New Issue
Block a user