{# article \App\ArticleBundle\Entity\Article #} {% extends ':default:subpage.html.twig' %} {% import 'macros.twig' as macros %} {% block body_class %}{{ parent() }} article_profile{% endblock %} {% block sidebar %} {% include ':blocks:sidebar_sections.html.twig' with { clickable: true } %} {{ articles_categories_block() }} {% include ':blocks:sidebar_ads_text_block.html.twig' %} {{ sidebar_promoted_companies(3) }} {% include '@Catalog/frontend/blocks/sidebar_top_companies.html.twig' %} {{ sidebar_promoted_classifieds() }} {% include ':blocks:we_recommend.html.twig' %} {% endblock %} {% block head %} {% if article.image is not empty %} {% set ogImage = app.request.schemeAndHttpHost ~ vich_uploader_asset(article, 'imageFile') %} {% endif %} {{ parent() }} {% endblock %} {% block subpage_content %} {{ parent() }}
{{- article.locale.content|raw -}}
{% if article.articleFiles|length > 0 %}
{{ 'common.attachments' | trans }}
{% for file in article.articleFiles %} {% if file.attachment is not empty %} {% set pathToIcon = 'bundles/core/images/file_type/png/' ~ file.icon %}
{{ file.title }}
{% endif %} {% endfor %}
{% endif %} {% if article.relatedArticles|length > 0 %}
{{ 'page.article_profile.related_articles' | trans }}
{% endif %} {% endblock %}