1
Fork 0
mirror of https://github.com/Quackster/Havana.git synced 2025-07-03 05:07:46 +00:00
Havana/tools/www-tpl/default-en/habblet/news_sidebar.tpl
2022-09-04 10:33:18 +10:00

20 lines
No EOL
709 B
Smarty

{% if articles|length > 0 %}
<h2>{{ header }}</h2>
<ul>
{% set num = 0 %}
{% for article in articles %}
<li>
{% if article.getUrl() == currentArticle.getUrl() %}
<a href="{{ site.sitePath }}/{{ articleLink }}/{{ article.getUrl() }}{{ urlSuffix }}" class="article-5">{% if article.isPublished() == false %}DRAFT: {% endif %}{{ article.title }}&nbsp;&raquo;</a>
{% else %}
<a href="{{ site.sitePath }}/{{ articleLink }}/{{ article.getUrl() }}{{ urlSuffix }}" class="article-{{ num }}">{% if article.isPublished() == false %}DRAFT: {% endif %}{{ article.title }}&nbsp;&raquo;</a>
{% endif %}
</li>
{% set num = num + 1 %}
{% if num == 5 %}
{% set num = num + 1 %}
{% endif %}
{% endfor %}
</ul>
{% endif %}