{% set devices = {'lg' : ' Desktops', 'md' : ' Desktops', 'sm' : ' Tablets', 'xs' : ' Phones' } %} {% set soconfig_pages = {'catalog_column_lg' : '3', 'catalog_column_md' : '3', 'catalog_column_sm' : '2' } %} {{ header }}
{{ column_left }} {% if column_left and column_right %} {% set class = 'col-sm-6' %} {% elseif column_left or column_right %} {% set class = 'col-md-9 col-sm-12' %} {% else %} {% set class = 'col-sm-12' %} {% endif %}
{{ content_top }} {% if error_no_database is defined and error_no_database == '' %}

{{ heading_title }}

{{ description is defined and description ? description : '' }}
{{ pagination }}
{% if articles %} {% for id_article, article in articles %}
{% if article.image %}
{{ article.article_title }}
{% endif %}

{{ article.article_title|capitalize }}

Post by {{ article.author_name }} {% if article.allow_comment %} {{ article.total_comment }} {% endif %}
{% for subfix, device in devices %} {% set id = id_article + 1 %} {% if soconfig_pages["catalog_column_"~subfix] is defined and soconfig_pages["catalog_column_"~subfix] !='' %} {% if (id % soconfig_pages["catalog_column_"~subfix]) == 0 %} {% set id = 1 %}
{% endif %} {% endif %} {% endfor %} {% endfor %} {% else %}

{{ text_no_found }}

{% endif %}
{{ pagination }}
{% else %}
{{ error_no_database }}
{% endif %} {{ content_bottom }}
{{ column_right }}
{{ footer }}