Biurokraci, Moderatorzy czatu, checkuser, commenters, Moderatorzy (CommentStreams), gitkursanci, Administratorzy interfejsu, Moderatorzy, odkrywajacy, Page Ownership admin, swiadomikursanci, Administratorzy, Redaktorzy widżetów
969
edycji
Swiadomosc (dyskusja | edycje) mNie podano opisu zmian |
Swiadomosc (dyskusja | edycje) mNie podano opisu zmian |
||
| Linia 24: | Linia 24: | ||
/* opcje ciasteczek */ | /* opcje ciasteczek */ | ||
/* | |||
mw.loader.using('mediawiki.util', function () { | mw.loader.using('mediawiki.util', function () { | ||
$(document).ready(function () { | $(document).ready(function () { | ||
| Linia 30: | Linia 31: | ||
}); | }); | ||
}); | }); | ||
*/ | |||
/* opcje ciasteczek w trybie mobilnym */ | /* opcje ciasteczek w trybie mobilnym */ | ||
/* | /* | ||
| Linia 100: | Linia 101: | ||
}); | }); | ||
*/ | */ | ||
// This script should be added to MediaWiki:Common.js or an equivalent site-wide script file. | |||
$(function () { | |||
var customLink = $('<li id="custom-footer-privacy-link"><a href="#" onclick="illow.showWidget(); return false;">Privacy Control Center</a></li>'); | |||
// For Desktop | |||
$('#footer-places-privacy').after(customLink); | |||
// For Mobile | |||
// Check if MobileFrontend is active by looking for a mobile-specific class or ID | |||
if ($('body').hasClass('skin-minerva') || $('#mw-mf-display-toggle').length > 0) { | |||
// This ensures the code executes in a mobile context | |||
$('#footer-places-privacy').after(customLink.clone()); | |||
} | |||
}); | |||
edycji