{# /* * This file is part of the Sonata package. * * (c) Thomas Rabaix * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ #} {% sonata_template_box 'This is the post template. Feel free to override it.' %} {% block sonata_page_breadcrumb %}
{{ sonata_block_render_event('breadcrumb', { 'context': 'news_post', 'post': post, 'current_uri': app.request.requestUri }) }}
{% endblock %}

{{ post.title }}

{% media post.image, 'wide' %} {{ post.content|raw }}
{% render(controller('SonataNewsBundle:Post:comments', {'postId': post.id})) %} {% if post.iscommentable %} {% render(controller('SonataNewsBundle:Post:addCommentForm', { 'postId': post.id, 'form': form })) %} {% else %}
{{ 'message_comments_are_closed'|trans({}, 'SonataNewsBundle') }}
{% endif %}