Procházet zdrojové kódy

Option to remove the credit link

Amauri CHAMPEAUX před 10 roky
rodič
revize
a174127e8b
2 změnil soubory, kde provedl 9 přidání a 4 odebrání
  1. 1 1
      css/tarteaucitron.css
  2. 8 3
      tarteaucitron.js

+ 1 - 1
css/tarteaucitron.css

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

+ 8 - 3
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 += '   </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