* 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:
slawkens
2017-10-25 09:50:12 +02:00
parent 21b1383c9a
commit 5e414ebda8
12 changed files with 463 additions and 432 deletions

View File

@@ -0,0 +1,13 @@
<center>
<table cellspacing="0" cellpadding="0" border="0">
<form method="post" action="{{ getLink('news/archive') }}">
<tbody>
<tr>
<td>
<input width="120" height="18" border="0" type="image" src="{{ template_path }}/images/global/buttons/sbutton_back.gif" alt="Back" name="Back" />
</td>
</tr>
</tbody>
</form>
</table>
</center>

View 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/>