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 {
color: #333;
color: #666;
font-style: normal;
text-decoration: underline;
}

View File

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