1
Fork 0
mirror of https://github.com/Quackster/Havana.git synced 2025-07-04 13:47:45 +00:00
Havana/tools/www-tpl/default/habblet/news_sidebar.tpl

20 lines
709 B
Smarty
Raw Normal View History

2022-09-03 15:05:14 +10:00
{% 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 %}