Files
kupshop/web/common/twig/templates/view/articles.html.twig
2025-08-02 16:30:27 +02:00

44 lines
1.7 KiB
Twig

{% extends 'index.html.twig' %}
{% block main %}
<twig:Articles:View idListAuthor="{{ body.id_list_author ?? null }}">
<twig:block name="top">
<h1>{{ body.title }}</h1>
{% if body.id_list_author == 0 %}
<twig:Articles:Sections id_top_branch="{{ 7 }}" id_branch="{{ body.id }}"/>
{% endif %}
</twig:block>
<twig:block name="left_side">
{% if this.getIsListAuthor %}
<twig:EditableContent content="{{ this.getAuthorContent }}" />
{% elseif body.id > 0 %}
{{ body.descr|raw }}
{% endif %}
<twig:ArticlesList pager="{{ body.pager }}" title_class="{{ body.id_list_author > 0 ? 'h3' : null }}" title="{{ body.id_list_author > 0 ? 'Články autora' : null }}" id_branch="{{ body.id }}" id_tag="{{ body.activeTag.id ?? null }}">
<twig:ArticlesList:LineItem article="{{ item }}"/>
</twig:ArticlesList>
{% if body.pager and body.pager.count > 1 %}
<twig:Pager pager="{{ body.pager }}"/>
{% endif %}
</twig:block>
<twig:block name="right_side">
<twig:Articles:SidePanel>
<twig:ArticlesList limit="2"
title_class="h4"
title="Nejoblíbenější"
loadTopArticles="{{ true }}"
idArticleSection="{{ body.id ?? null }}">
<twig:ArticlesList:ArticleSmall article="{{ item }}"/>
</twig:ArticlesList>
<twig:Articles:Labels/>
</twig:Articles:SidePanel>
</twig:block>
<twig:block name="bottom">
</twig:block>
</twig:Articles:View>
{% endblock %}