From 3ee437104c8e2ae8ba5d9f694eef5c8a09d2bf9d Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Fri, 20 Feb 2015 16:53:06 +0100 Subject: [PATCH] Google+ badge support --- tarteaucitron.services.js | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 8bb8fd7..89bd87d 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -244,7 +244,7 @@ tarteaucitron.services.ferank = { tarteaucitron.services.ferankpub = { "key": "ferankpub", "type": "ads", - "name": "FERank", + "name": "FERank (pub)", "uri": "https://www.ferank.fr/respect-vie-privee/#regiepublicitaire", "needConsent": false, "cookies": [], @@ -274,7 +274,26 @@ tarteaucitron.services.gplus = { "fallback": function () { "use strict"; var id = 'gplus'; - tarteaucitron.fallback(['g-page', 'g-plus', 'g-plusone'], tarteaucitron.engage(id)); + tarteaucitron.fallback(['g-plus', 'g-plusone'], tarteaucitron.engage(id)); + } +}; + +// google+ badge +tarteaucitron.services.gplusbadge = { + "key": "gplusbadge", + "type": "social", + "name": "Google+ (badge)", + "uri": "http://www.google.fr/intl/policies/privacy/", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.addScript('https://apis.google.com/js/platform.js'); + }, + "fallback": function () { + "use strict"; + var id = 'gplusbadge'; + tarteaucitron.fallback(['g-page', 'g-person'], tarteaucitron.engage(id)); } };