{% block content %} {# Begin Entry Header #}
{% if gantry.config.get('content.' ~ scope ~ '.title.enabled', '1') %} {# Begin Entry Title #} {# End Entry Title #} {% endif %} {# Begin Entry Meta #} {% if gantry.config.get('content.' ~ scope ~ '.meta-date.enabled', '1') or gantry.config.get('content.' ~ scope ~ '.meta-author.enabled', '1') or gantry.config.get('content.' ~ scope ~ '.meta-comments.enabled', '1') or gantry.config.get('content.' ~ scope ~ '.meta-categories.enabled', '1') or gantry.config.get('content.' ~ scope ~ '.meta-tags.enabled', '0') %} {% include ['partials/meta-' ~ scope ~ '.html.twig', 'partials/meta.html.twig'] %} {% endif %} {# End Entry Meta #}
{# End Entry Header #} {# Check if post is password protected #} {% if not function( 'post_password_required', post.ID ) %} {# Begin Entry Content #}
{# Begin Featured Image #} {% if gantry.config.get('content.' ~ scope ~ '.featured-image.enabled', '1') and post.thumbnail.src %} {% set position = (gantry.config.get('content.' ~ scope ~ '.featured-image.position', 'none') == 'none') ? '' : 'float-' ~ gantry.config.get('content.' ~ scope ~ '.featured-image.position', 'none') %} {% endif %} {# End Featured Image #} {# Begin Page Content #} {{ post.paged_content }} {{ function('wp_link_pages', {'before': '', 'link_before': '', 'link_after': '', 'echo': 0}) }} {# End Page Content #} {# Begin Edit Link #} {{ function('edit_post_link', __('Edit', 'g5_akuatik'), '', '') }} {# End Edit Link #}
{# End Entry Content #} {# Begin Comments #} {% if (post.comment_status == 'open' or post.comment_count > 0) and post.post_type != 'product' %} {{ function('comments_template') }} {% endif %} {# End Comments #} {% else %} {# Begin Password Protected Form #}
{# Include the password form #} {% include 'partials/password-form.html.twig' %}
{# End Password Protected Form #} {% endif %} {% endblock %}