{% extends 'site.html' %} {% block title %}{% if controller== 'home' %}{{ parent() }}{% else %}{{ LANG.KNOWLEDGEBASE }}{% endif %}{% endblock %} {% block content %} {% if error_msg != '' %}{{ error_message(error_msg) }}
{% endif %} {% include 'knowledgebase_searchbox.html' %}
{{ LANG.KNOWLEDGEBASE }} {% if cat_id != 0 %}: {{ cat_title|raw }}{% endif %}
{% set columnspercent = (100/settings.knowledgebase_columns)|round(2) %} {% set n = 1 %} {% set totalart = 0 %} {% for kb_cat in kb_category %}{% if kb_cat.total_articles != 0 %} {% set totalart = 1 %} {% set result = n%settings.knowledgebase_columns %} {% if result == 1 %}{% endif %} {% if result == 0 %}{% endif %} {% set n = n+1 %} {% endif %}{% endfor %}
{% for article in kb_cat.article %} {% endfor %} {% if kb_cat.total_articles > settings.knowledgebase_articlesundercat %}
» {{ LANG.MORE_TOPICS }}
{% endif %}
{% if totalart != 0 %}
{% endif %} {% for article in articles %}
{{ article.title }}
{{ article.content|raw }}
{% endfor %} {% if settings.knowledgebase_mostpopular == 'yes' %} {% endif %} {% if settings.knowledgebase_newest == 'yes' %} {% endif %} {% if settings.knowledgebase_mostpopular == 'yes' %} {% endif %} {% if settings.knowledgebase_newest == 'yes' %} {% endif %}
{{ LANG.MOST_POPULAR_ARTICLES }}
{{ LANG.NEWEST_ARTICLES }}
{% for kb in kb_popular %} {% endfor %} {% for kb in kb_newest %} {% endfor %}
{% endblock %}