<div class="gdpr-notice">
    <mark>
        <?php if ('email_sent' === sanitize_key($_REQUEST['gdpr_notice'])): ?>
            <?= __('We will send you an email with the link to access your data. Please check your spam folder as well!', 'gdpr-framework'); ?>
        <?php endif; ?>

        <?php if ('invalid_email' === sanitize_key($_REQUEST['gdpr_notice'])): ?>
            <?= __('The email you entered does not appear to be a valid email.', 'gdpr-framework'); ?>
        <?php endif; ?>

        <?php if ('invalid_key' === sanitize_key($_REQUEST['gdpr_notice'])): ?>
            <?= __('Sorry - the link seems to have expired. Please try again!', 'gdpr-framework'); ?>
        <?php endif; ?>

        <?php if ('consent_withdrawn' === sanitize_key($_REQUEST['gdpr_notice'])): ?>
            <?= __('Consent withdrawn.', 'gdpr-framework'); ?>
        <?php endif; ?>

        <?php if ('request_sent' === sanitize_key($_REQUEST['gdpr_notice'])): ?>
            <?= __('We have received your request and will reply within 30 days.', 'gdpr-framework'); ?>
        <?php endif; ?>

        <?php if ('data_deleted' === sanitize_key($_REQUEST['gdpr_notice'])): ?>
            <?= __('Your personal data has been removed!', 'gdpr-framework'); ?>
        <?php endif; ?>

        <?php if ('unregistered_user' === sanitize_key($_REQUEST['gdpr_notice'])): ?>
            <?= __(sanitize_text_field(gdpr('options')->get('unknown_user_message', GDPR_DEFAULT_UNKNOWN_USER_MESSAGE)), 'gdpr-framework'); ?>
        <?php endif; ?>
    </mark>
</div>