{% extends '@SyliusShop/layout.html.twig' %} {% block metatags %} {% if article.metaKeywords is not empty %} {% endif %} {% if article.metaDescription is not empty %} {% endif %} {% endblock %} {% block content %} {% block blog_breadcrumb %} {% endblock %} {% block blog_article %}

{{ article.title }}

{{ article.createdAt|date }} {% if article.author %} by {{ article.author.username }} {% endif %}
{% if article.images|length > 0 %} {{ article.images[0].path }} {% endif %}

{{ article.content|raw }}

{% if article.categories|length > 0 %}
{{ 'odiseo_sylius_blog_plugin.ui.article_categories'|trans }}: {% for articleCategory in article.categories %} {% endfor %}
{% endif %} {% if disqus_shortname() %} {% block blog_disqus %} {% include '@OdiseoSyliusBlogPlugin/Shop/Article/_disqus.html.twig' %} {% endblock %} {% else %}

{{ 'odiseo_blog.ui.article_comments'|trans }}

{% for comment in article.enabledComments %} {% include '@OdiseoSyliusBlogPlugin/Shop/Article/_comment.html.twig' with {'comment': comment, 'withReply': true} %} {% endfor %}

{{ 'odiseo_sylius_blog_plugin.ui.leave_comment'|trans|raw }}

{{ render(url('odiseo_blog_partial_comment_create', { 'articleId': article.id, 'template': '@OdiseoSyliusBlogPlugin/Shop/Article/_comment_create.html.twig', 'redirectRoute': 'odiseo_sylius_blog_plugin_shop_article_show', 'redirectParameters': {'slug': article.slug } })) }}
{% endif %}
{% include '@OdiseoSyliusBlogPlugin/Shop/_sidebar.html.twig' %}
{% endblock %} {% endblock %}