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
Oops! Copy to clipboard failed. Open the code and copy it manually. <xsl:template name="body-cookiebanner-html">
<xsl:param name="gdprPageUrl"/>
var html = '<div class="cookiebanner-wrapper" id="cookie-banner">'
+ '<div class="cookiebanner">'
+ '<div class="cookiebanner-info">'
+ "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO' i18n:catalogue='plugin.web'/>"
+ ' '
+ '</div>'
+ '<div class="cookiebanner-buttons">'
+ '<a href="javascript:ametysAcceptCookieConsent()" class="cookiebanner-accept">'
+ "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO_ACCEPT' i18n:catalogue='plugin.web'/>"
+ '</a>'
+ ' '
+ '<a href="javascript:ametysRefuseCookieConsent()" class="cookiebanner-refuse">'
+ "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO_REFUSE' i18n:catalogue='plugin.web'/>"
+ '</a>'
<!-- Add gdpr page -->
<xsl:if test="$gdprPageUrl != ''">
+ ' '
+ '<a href="<xsl:value-of select="$gdprPageUrl"/>" class="cookiebanner-info">'
+ "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO_KNOWMORE' i18n:catalogue='plugin.web'/>"
+ '</a>'
</xsl:if>
+ '</div>'
+ '</div>'
+ '</div>';
</xsl:template> <xsl:template name="body-cookiebanner-html">
<xsl:param name="gdprPageUrl"/>
var html = '<div class="cookiebanner-wrapper" id="cookie-banner">'
+ '<div class="cookiebanner">'
+ '<div class="cookiebanner-info">'
+ "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO' i18n:catalogue='plugin.web'/>"
+ ' '
+ '</div>'
+ '<div class="cookiebanner-buttons">'
+ '<a href="javascript:ametysAcceptCookieConsent()" class="cookiebanner-accept">'
+ "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO_ACCEPT' i18n:catalogue='plugin.web'/>"
+ '</a>'
+ ' '
+ '<a href="javascript:ametysRefuseCookieConsent()" class="cookiebanner-refuse">'
+ "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO_REFUSE' i18n:catalogue='plugin.web'/>"
+ '</a>'
<!-- Add gdpr page -->
<xsl:if test="$gdprPageUrl != ''">
+ ' '
+ '<a href="<xsl:value-of select="$gdprPageUrl"/>" class="cookiebanner-info">'
+ "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO_KNOWMORE' i18n:catalogue='plugin.web'/>"
+ '</a>'
</xsl:if>
+ '</div>'
+ '</div>'
+ '</div>';
</xsl:template> Voir le code
<xsl:template name="body-cookiebanner-html">
<xsl:param name="gdprPageUrl"/>
var html = '<div class="cookiebanner-wrapper" id="cookie-banner">'
+ '<div class="cookiebanner">'
+ '<div class="cookiebanner-info">'
+ "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO' i18n:catalogue='plugin.web'/>"
+ ' '
+ '</div>'
+ '<div class="cookiebanner-buttons">'
+ '<a href="javascript:ametysAcceptCookieConsent()" class="cookiebanner-accept">'
+ "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO_ACCEPT' i18n:catalogue='plugin.web'/>"
+ '</a>'
+ ' '
+ '<a href="javascript:ametysRefuseCookieConsent()" class="cookiebanner-refuse">'
+ "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO_REFUSE' i18n:catalogue='plugin.web'/>"
+ '</a>'
<!-- Add gdpr page -->
<xsl:if test="$gdprPageUrl != ''">
+ ' '
+ '<a href="<xsl:value-of select="$gdprPageUrl"/>" class="cookiebanner-info">'
+ "<i18n:text i18n:key='PLUGINS_WEB_COOKIES_INFO_KNOWMORE' i18n:catalogue='plugin.web'/>"
+ '</a>'
</xsl:if>
+ '</div>'
+ '</div>'
+ '</div>';
</xsl:template>