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 51: | Linia 51: | ||
// This script should be added to MediaWiki:Common.js or an equivalent site-wide script file. | // This script should be added to MediaWiki:Common.js or an equivalent site-wide script file. | ||
// This script should be added to MediaWiki:Common.js or an equivalent site-wide script file. | // This script should be added to MediaWiki:Common.js or an equivalent site-wide script file. | ||
/* | |||
$(function () { | $(function () { | ||
var customLink = $('<li id="custom-footer-privacy-link"><a href="#" onclick="illow.showWidget(); return false;">Privacy Control Center</a></li>'); | var customLink = $('<li id="custom-footer-privacy-link"><a href="#" onclick="illow.showWidget(); return false;">Privacy Control Center</a></li>'); | ||
| Linia 62: | Linia 63: | ||
// This ensures the code executes in a mobile context | // This ensures the code executes in a mobile context | ||
$('#footer-places-privacy').after(customLink.clone()); | $('#footer-places-privacy').after(customLink.clone()); | ||
} | |||
}); | |||
*/ | |||
$(function () { | |||
var customLinkDesktop = $('<li id="custom-footer-privacy-link"><a href="#" onclick="illow.showWidget(); return false;">Privacy Control Center</a></li>'); | |||
var customLinkMobile = $('<li id="custom-footer-privacy-link-mobile"><a href="#" onclick="illow.showWidget(); return false;">Privacy Control Center</a></li>'); | |||
// For Desktop | |||
if (!$('body').hasClass('skin-minerva')) { // Assuming non-Minerva skins are for desktop | |||
$('#footer-places-privacy').after(customLinkDesktop); | |||
} | |||
// For Mobile - Adjust based on Minerva's structure | |||
if ($('body').hasClass('skin-minerva')) { | |||
$('#footer-places-privacy').after(customLinkMobile); | |||
} | } | ||
}); | }); | ||
edycji