From a00cedcf1798d9f4449d104b9c5f0f4a8723d294 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Tue, 4 Jul 2023 11:56:32 +0200 Subject: [PATCH] Add ShareThis Sticky Fix #1123 --- tarteaucitron.services.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index d2ace22..62aef1d 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -37,6 +37,25 @@ tarteaucitron.services.iframe = { } }; +// sharethissticky +tarteaucitron.services.sharethissticky = { + "key": "sharethissticky", + "type": "social", + "name": "ShareThis Sticky", + "uri": "https://sharethis.com/fr/privacy/", + "needConsent": true, + "cookies": ['_stid','_stidv','pubconsent'], + "js": function () { + "use strict"; + + if (tarteaucitron.user.sharethisStickyProperty === undefined) { + return; + } + + tarteaucitron.addScript("https://platform-api.sharethis.com/js/sharethis.js#property=" + tarteaucitron.user.sharethisStickyProperty + "&product=sticky-share-buttons"); + } +}; + // pianoanalytics tarteaucitron.services.pianoanalytics = { "key": "pianoanalytics",