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 Znaczniki: Z urządzenia mobilnego Z wersji mobilnej (przeglądarkowej) |
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 31: | Linia 30: | ||
}); | }); | ||
}); | }); | ||
/* opcje ciasteczek w trybie mobilnym */ | /* opcje ciasteczek w trybie mobilnym */ | ||
/* | /* | ||
| Linia 37: | Linia 36: | ||
$(document).ready(function () { | $(document).ready(function () { | ||
var customLinkHtml = '<li id="custom-footer-privacy-link-mobile"><a href="#" onclick="illow.showWidget(); return false;" class="bannerLink">Privacy Control Center</a></li>'; | var customLinkHtml = '<li id="custom-footer-privacy-link-mobile"><a href="#" onclick="illow.showWidget(); return false;" class="bannerLink">Privacy Control Center</a></li>'; | ||
var mobileMenu = $('.mw-mf-footer-items'); | var mobileMenu = $('.mw-mf-footer-items'); | ||
if (mobileMenu.length) { | if (mobileMenu.length) { | ||
| Linia 49: | Linia 43: | ||
}); | }); | ||
*/ | */ | ||
// 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. | ||
| Linia 69: | Linia 62: | ||
/* | |||
mw.loader.using(['mediawiki.util', 'mobilefrontend'], function () { | mw.loader.using(['mediawiki.util', 'mobilefrontend'], function () { | ||
$(document).ready(function () { | $(document).ready(function () { | ||
| Linia 87: | Linia 80: | ||
} | } | ||
}); | }); | ||
}); | |||
*/ | |||
$(function () { | |||
var customLinkDesktop = $('<li id="custom-footer-privacy-link"><a href="#" onclick="illow.showWidget(); return false;">Ustawienia prywatności</a></li>'); | |||
var customLinkMobile = $('<li id="custom-footer-privacy-link-mobile"><a href="#" onclick="illow.showWidget(); return false;">Ustawienia prywatności</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