mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-18 03:33:26 +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:
13
system/templates/news.back_button.html.twig
Normal file
13
system/templates/news.back_button.html.twig
Normal 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>
|
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