Option to remove the credit link

This commit is contained in:
Amauri CHAMPEAUX 2014-12-02 23:38:41 +01:00
parent 8174cbcae1
commit a174127e8b
2 changed files with 9 additions and 4 deletions

View File

@ -242,7 +242,7 @@
} }
#tarteaucitron #tarteaucitronFooter a { #tarteaucitron #tarteaucitronFooter a {
color: #333; color: #666;
font-style: normal; font-style: normal;
text-decoration: underline; text-decoration: underline;
} }

View File

@ -24,6 +24,7 @@ var tarteaucitron = {
"grayArea": false, "grayArea": false,
"highPrivacy": false, "highPrivacy": false,
"orientation": "top", "orientation": "top",
"removeCredit": false,
"showAlertSmall": true "showAlertSmall": true
}; };
@ -158,9 +159,13 @@ var tarteaucitron = {
} }
html += ' </div>'; html += ' </div>';
html += ' <div id="tarteaucitronFooter">';
html += ' <a href="https://opt-out.ferank.eu/" rel="nofollow" target="_blank">' + tarteaucitron.lang.credit + '</a>'; if (defaults.removeCredit === false) {
html += ' </div>'; html += ' <div id="tarteaucitronFooter">';
html += ' <a href="https://opt-out.ferank.eu/" rel="nofollow" target="_blank">' + tarteaucitron.lang.credit + '</a>';
html += ' </div>';
}
html += '</div>'; html += '</div>';
// get the banner orientation // get the banner orientation