{% set twigTemplate = 'comments.html.twig' %} {% if function('get_option', 'thread_comments') == '1' %} {% scripts in 'footer' %} {{ wordpress.call('wp_enqueue_script', 'comment-reply') }} {% endscripts %} {% endif %} {% block comments %}
{# Begin Comments #}
{% if post.comments %}

{{ post.comment_count ~ ' ' ~ __('comments', 'g5_akuatik') }}

    {{ function('wp_list_comments', {style: 'ol', type: 'comment', callback: ['G5ThemeHelper', 'comments']}) }}
{% endif %} {% if post.comment_status == 'open' %} {% do action('comment_form_before') %}

{{ function('comment_form_title', __('Reply', 'g5_akuatik')) }}

{{ function('cancel_comment_reply_link') }}

{% if site.comment_registration and not is_user_logged_in %}

{{ __('You must be logged in to post a comment.', 'g5_akuatik')|format(function('wp_login_url', post.link)) }}

{% do action('comment_form_must_log_in_after') %} {% else %} {% set req = function('get_option', 'require_name_email') %}
{% do action('comment_form_top') %} {% if is_user_logged_in %}

{{ __('Logged in as %s.', 'g5_akuatik')|format(site.url, current_user.display_name) }} {{ __('Log out »', 'g5_akuatik') }}

{% do action('comment_form_logged_in_after', 'current_user', 'current_user.display_name') %} {% else %} {% do action('comment_form_before_fields') %}

{% do action('comment_form_after_fields') %} {% endif %}

XHTML: {{ __('You can use these tags:', 'g5_akuatik') }} {{ function('allowed_tags') }}

{{ function('comment_id_fields') }} {% do action('comment_form', post.id) %}
{% endif %}
{% do action('comment_form_after') %} {% else %} {% do action('comment_form_comments_closed') %} {% endif %}
{# End Comments #} {% endblock %}