מדיה ויקי:Gadget-CustomSideBarLinks.js: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מ 37 גרסאות של הדף wikipedia:he:מדיה_ויקי:Gadget-CustomSideBarLinks.js יובאו |
||
| (9 גרסאות ביניים של 3 משתמשים אינן מוצגות) | |||
| שורה 24: | שורה 24: | ||
return; | return; | ||
} // else... | } // else... | ||
var linksPortalName = 'myLinksPortal'; | var linksPortalName = 'myLinksPortal'; | ||
var $div = $('<div>', { id: linksPortalName } ) | var $div; | ||
if (skin === 'vector' || skin === 'vector-2022'){ | |||
$div = $('<nav>', { id: linksPortalName } ) | |||
.addClass('mw-portlet vector-menu vector-menu-portal portal') | |||
.append($('<h3>').addClass('vector-menu-heading').text('הקישורים שלי')) | |||
.append($('<div>', {'class': 'vector-menu-content'}).html(linkstext)); | |||
} else { | |||
$div = $('<nav>', { id: linksPortalName } ) | |||
.addClass('portal') | .addClass('portal') | ||
.append($('<h3>').text('הקישורים שלי')) | .append($('<h3>').addClass('vector-menu-heading').text('הקישורים שלי')) | ||
.append($('<div>', {'class': 'body'}).html(linkstext)); | .append($('<div>', {'class': 'body'}).html(linkstext)); | ||
} | |||
var $firstPortal = $('#p-navigation'); | var $firstPortal = $('#p-navigation'); | ||