{# Template : Newsletter #}

{% extends 'layouts/default.twig' %}

{% block content %}

<div class="pageWrap">

    {% include 'navigation/breadcrumbs.twig' %}

    {% include 'includes/elements/title_wrap.twig' %}

    <div class="contentPageWrap defaultContent">

        <div class="contentWrap">

            <h1>Newsletter</h1>

            <div class="newsletterWrap">
                {% if activation_status is not null %}
                    {% if activation_status == 'success' %}
                        <p>Thank you! Your newsletter subscription has been successfully confirmed!</p>
                    {% elseif activation_status == 'already_activated' %}
                        <p>Your newsletter subscription has already been confirmed!</p>
                    {% elseif activation_status == 'wrong_hash' %}
                        <p>Wrong confirmation URL. Please try re-opening the link in your confirmation email or re-submit your email address!</p>
                    {% endif %}
                {% else %}
                    {% include('includes/pages/newsletter/newsletter_form.twig') %}
                {% endif %}

            </div>

        </div> <!-- .contentWrap -->

    </div> <!-- .contentPageWrap -->

</div> <!-- .pageWrap -->

{% endblock %}
