From a174127e8b7264dbfefd9bd54c5134de10310c2c Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Tue, 2 Dec 2014 23:38:41 +0100 Subject: [PATCH] Option to remove the credit link --- css/tarteaucitron.css | 2 +- tarteaucitron.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/css/tarteaucitron.css b/css/tarteaucitron.css index 7e75ead..ac0b3b0 100644 --- a/css/tarteaucitron.css +++ b/css/tarteaucitron.css @@ -242,7 +242,7 @@ } #tarteaucitron #tarteaucitronFooter a { - color: #333; + color: #666; font-style: normal; text-decoration: underline; } diff --git a/tarteaucitron.js b/tarteaucitron.js index 4f1aaae..75b19e1 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -24,6 +24,7 @@ var tarteaucitron = { "grayArea": false, "highPrivacy": false, "orientation": "top", + "removeCredit": false, "showAlertSmall": true }; @@ -158,9 +159,13 @@ var tarteaucitron = { } html += ' '; - html += '
'; - html += ' ' + tarteaucitron.lang.credit + ''; - html += '
'; + + if (defaults.removeCredit === false) { + html += '
'; + html += ' ' + tarteaucitron.lang.credit + ''; + html += '
'; + } + html += ''; // get the banner orientation