RGPD - Link to page

This page should only be applied if the script asks you to pass the manual migration skin.20210920.RGPD.cookiebanner

The kernel now includes a label allowing you to define an "Learn more" page on the cookie acceptance banner.

This migration is optional, but the new label for positioning the RGPD page will still be available (and useless).

Some projects could have such behavior (label and link).
The project label should therefore be replaced by the kernel label

Si vous souhaitez l'utiliser et que vous avez une surcharge du template <xsl:template name="body-cookiebanner-html"> voici la nouvelle version avec en gras les nouveautés à mettre chez vous

    <xsl:template name="body-cookiebanner-html">
        <xsl:param name="gdprPageUrl"/>
        var html = '&lt;div class="cookiebanner-wrapper" id="cookie-banner">'
        + '&lt;div class="cookiebanner">'
        + '&lt;div class="cookiebanner-info">'
        + "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO' i18n:catalogue='plugin.web'/>"
        + ' '
        + '&lt;/div>'
        + '&lt;div class="cookiebanner-buttons">'
        + '&lt;a href="javascript:ametysAcceptCookieConsent()" class="cookiebanner-accept">'
        + "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO_ACCEPT' i18n:catalogue='plugin.web'/>"
        + '&lt;/a>'
        + ' '
        + '&lt;a href="javascript:ametysRefuseCookieConsent()" class="cookiebanner-refuse">'
        + "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO_REFUSE' i18n:catalogue='plugin.web'/>"
        + '&lt;/a>'
            <!-- Add gdpr page -->
            <xsl:if test="$gdprPageUrl != ''">
                    + ' '
                    + '&lt;a href="<xsl:value-of select="$gdprPageUrl"/>" class="cookiebanner-info">'
                    + "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO_KNOWMORE' i18n:catalogue='plugin.web'/>"
                    + '&lt;/a>'
        + '&lt;/div>'
        + '&lt;/div>'
        + '&lt;/div>';
Back to top