mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-18 11:43:26 +02:00
* moved characters.php html code to Twig template
* moved news.php to Twig news.html template * fixed some duplicated code in signature generators * always check if name parameter is set when generating signatures
This commit is contained in:
23
system/templates/news.html
Normal file
23
system/templates/news.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="NewsHeadline">
|
||||
<div class="NewsHeadlineBackground" style="background-image:url({{ template_path }}/images/news/newsheadline_background.gif)">
|
||||
<img src="{{ template_path }}/images/news/icon_{{ icon }}.gif" class="NewsHeadlineIcon" />
|
||||
<div class="NewsHeadlineDate">{{ date|date(news_date_format) }} - </div>
|
||||
<div class="NewsHeadlineText">{{ title }}</div>
|
||||
{% if author is not empty %}
|
||||
<div class="NewsHeadlineAuthor"><b>Author: </b><i>{{ author }}</i></div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<table style="clear:both" border=0 cellpadding=0 cellspacing=0 width="100%" >
|
||||
<tr>
|
||||
<td style="padding-left:10px;padding-right:10px;" >{{ content|raw }}</td>
|
||||
</tr>
|
||||
{% if comments is not null %}
|
||||
<tr>
|
||||
<td>
|
||||
<div style="text-align: right; margin-right: 10px;"><a href="{{ comments }}">» Comment on this news</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</table>
|
||||
<br/>
|
Reference in New Issue
Block a user