{% if not currentUserCanComment %}
{% if commentsMode == 'open' %} {{ 'ratmd.bloghub::lang.frontend.comments.disabled_open' | trans }} {% elseif commentsMode == 'restricted' %} {{ 'ratmd.bloghub::lang.frontend.comments.disabled_restricted' | trans }} {% elseif commentsMode == 'private' %} {{ 'ratmd.bloghub::lang.frontend.comments.disabled_private' | trans }} {% elseif commentsMode == 'closed' %} {{ 'ratmd.bloghub::lang.frontend.comments.disabled_closed' | trans }} {% endif %}
{% else %} {{ form_open({ 'data-bloghub-handler': 'onComment' }) }}
{% if not isLoggedIn %} {% if showCommentFormHoneypot %} {% set username_id = __SELF__.id ~ '_' ~ honeypotUser %} {% set username_name = honeypotUser %} {% set email_id = __SELF__.id ~ '_' ~ honeypotEmail %} {% set email_name = honeypotEmail %} {% else %} {% set username_id = __SELF__.id ~ '_username' %} {% set username_name = 'comment_user' %} {% set email_id = __SELF__.id ~ '_email' %} {% set email_name = 'comment_email' %} {% endif %}
{% else %}
{% endif %} {% if showCommentFormTitle %}
{% endif %}
{% if allowCommentFormMarkdown %}

{{ 'ratmd.bloghub::lang.frontend.comments.comment_markdown_hint' | trans }}

{% endif %}
{% if showCommentFormTos %}
{% endif %} {% if showCommentFormCaptcha %}
{% endif %} {% if showCommentFormHoneypot %}
{% endif %}
{% if showCommentFormHoneypot %} {% endif %}
{{ form_close() }} {% endif %}