From 77ba80f434366c75ae0b73d561b843ff367ebd84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Wed, 19 Apr 2017 00:31:39 +0200 Subject: Fix layout --- skins/Cavendish.php | 253 +++ skins/CologneBlue.php | 573 +++++ skins/Modern.php | 169 ++ skins/MonoBook.php | 332 +++ skins/Vector.php | 463 ++++ skins/cavendish/IE60Fixes.css | 63 + skins/cavendish/IE70Fixes.css | 64 + skins/cavendish/README | 28 + skins/cavendish/audio.png | Bin 0 -> 1464 bytes skins/cavendish/babel.css | 134 ++ skins/cavendish/body_back.gif | Bin 0 -> 526 bytes skins/cavendish/bullet.gif | Bin 0 -> 50 bytes skins/cavendish/cavendish.css | 2412 +++++++++++++++++++++ skins/cavendish/colors/blue.css | 80 + skins/cavendish/colors/brown.css | 91 + skins/cavendish/colors/green.css | 80 + skins/cavendish/config.php | 14 + skins/cavendish/document.png | Bin 0 -> 1130 bytes skins/cavendish/envelope.png | Bin 0 -> 1242 bytes skins/cavendish/extensions.css | 335 +++ skins/cavendish/external.png | Bin 0 -> 1428 bytes skins/cavendish/folder.png | Bin 0 -> 1213 bytes skins/cavendish/headbg.jpg | Bin 0 -> 7881 bytes skins/cavendish/header.css | 9 + skins/cavendish/header_logo.gif | Bin 0 -> 5162 bytes skins/cavendish/key-point_bl.gif | Bin 0 -> 102 bytes skins/cavendish/key-point_tl.gif | Bin 0 -> 103 bytes skins/cavendish/locked.png | Bin 0 -> 1261 bytes skins/cavendish/magnify-clip.png | Bin 0 -> 237 bytes skins/cavendish/minus.png | Bin 0 -> 1209 bytes skins/cavendish/newspaper.png | Bin 0 -> 1170 bytes skins/cavendish/plus.png | Bin 0 -> 1241 bytes skins/cavendish/print.css | 62 + skins/cavendish/required.gif | Bin 0 -> 47 bytes skins/cavendish/rtl.css | 216 ++ skins/cavendish/speech-bubble-left-4.png | Bin 0 -> 1323 bytes skins/cavendish/style.php | 37 + skins/cavendish/subsite_back.gif | Bin 0 -> 791 bytes skins/cavendish/subsite_back.png | Bin 0 -> 248 bytes skins/cavendish/subsite_mozilla-org.gif | Bin 0 -> 2098 bytes skins/cavendish/top-left.png | Bin 0 -> 281 bytes skins/cavendish/top-mid.png | Bin 0 -> 163 bytes skins/cavendish/top-right.png | Bin 0 -> 266 bytes skins/cavendish/user.gif | Bin 0 -> 932 bytes skins/cavendish/video.png | Bin 0 -> 1200 bytes skins/cavendish/wiki-indexed.png | Bin 0 -> 8205 bytes skins/cavendish/wiki.png | Bin 0 -> 23064 bytes skins/cavendish/wiki_header_logo.gif | Bin 0 -> 4974 bytes skins/cologneblue/print.css | 6 + skins/cologneblue/screen.css | 277 +++ skins/common/IEFixes.js | 121 ++ skins/common/ajax.js | 193 ++ skins/common/commonContent.css | 151 ++ skins/common/commonElements.css | 235 ++ skins/common/commonInterface.css | 68 + skins/common/commonPrint.css | 401 ++++ skins/common/config-cc.css | 57 + skins/common/config.css | 143 ++ skins/common/config.js | 108 + skins/common/feed.css | 95 + skins/common/images/Arr_.png | Bin 0 -> 96 bytes skins/common/images/Arr_d.png | Bin 0 -> 205 bytes skins/common/images/Arr_l.png | Bin 0 -> 205 bytes skins/common/images/Arr_r.png | Bin 0 -> 206 bytes skins/common/images/Arr_u.png | Bin 0 -> 207 bytes skins/common/images/Checker-16x16.png | Bin 0 -> 81 bytes skins/common/images/Zoom_sans.gif | Bin 0 -> 901 bytes skins/common/images/add.png | Bin 0 -> 526 bytes skins/common/images/ajax-loader.gif | Bin 0 -> 1788 bytes skins/common/images/ar/button_bold.png | Bin 0 -> 533 bytes skins/common/images/ar/button_headline.png | Bin 0 -> 484 bytes skins/common/images/ar/button_italic.png | Bin 0 -> 532 bytes skins/common/images/ar/button_link.png | Bin 0 -> 557 bytes skins/common/images/ar/button_nowiki.png | Bin 0 -> 874 bytes skins/common/images/arrow_disabled_first_25.png | Bin 0 -> 318 bytes skins/common/images/arrow_disabled_last_25.png | Bin 0 -> 323 bytes skins/common/images/arrow_disabled_left_25.png | Bin 0 -> 301 bytes skins/common/images/arrow_disabled_right_25.png | Bin 0 -> 307 bytes skins/common/images/arrow_first_25.png | Bin 0 -> 352 bytes skins/common/images/arrow_last_25.png | Bin 0 -> 342 bytes skins/common/images/arrow_left_25.png | Bin 0 -> 330 bytes skins/common/images/arrow_right_25.png | Bin 0 -> 337 bytes skins/common/images/be-tarask/button_bold.png | Bin 0 -> 550 bytes skins/common/images/be-tarask/button_italic.png | Bin 0 -> 539 bytes skins/common/images/be-tarask/button_link.png | Bin 0 -> 419 bytes skins/common/images/bullet.gif | Bin 0 -> 50 bytes skins/common/images/button_bold.png | Bin 0 -> 250 bytes skins/common/images/button_extlink.png | Bin 0 -> 435 bytes skins/common/images/button_headline.png | Bin 0 -> 440 bytes skins/common/images/button_hr.png | Bin 0 -> 200 bytes skins/common/images/button_image.png | Bin 0 -> 483 bytes skins/common/images/button_italic.png | Bin 0 -> 250 bytes skins/common/images/button_link.png | Bin 0 -> 280 bytes skins/common/images/button_media.png | Bin 0 -> 728 bytes skins/common/images/button_nowiki.png | Bin 0 -> 322 bytes skins/common/images/button_sig.png | Bin 0 -> 920 bytes skins/common/images/button_template.png | Bin 0 -> 178 bytes skins/common/images/cc-0.png | Bin 0 -> 969 bytes skins/common/images/cc-by-nc-sa.png | Bin 0 -> 1530 bytes skins/common/images/cc-by-sa.png | Bin 0 -> 1377 bytes skins/common/images/cc-by.png | Bin 0 -> 1165 bytes skins/common/images/closewindow.png | Bin 0 -> 108 bytes skins/common/images/closewindow19x19.png | Bin 0 -> 833 bytes skins/common/images/critical-32.png | Bin 0 -> 1758 bytes skins/common/images/cyrl/LICENSE | 17 + skins/common/images/cyrl/button_bold.png | Bin 0 -> 254 bytes skins/common/images/cyrl/button_italic.png | Bin 0 -> 423 bytes skins/common/images/cyrl/button_link.png | Bin 0 -> 278 bytes skins/common/images/de/button_bold.png | Bin 0 -> 255 bytes skins/common/images/de/button_italic.png | Bin 0 -> 260 bytes skins/common/images/diffunderline.gif | Bin 0 -> 52 bytes skins/common/images/download-32.png | Bin 0 -> 1759 bytes skins/common/images/fa/button_bold.png | Bin 0 -> 459 bytes skins/common/images/fa/button_headline.png | Bin 0 -> 392 bytes skins/common/images/fa/button_italic.png | Bin 0 -> 512 bytes skins/common/images/fa/button_link.png | Bin 0 -> 485 bytes skins/common/images/fa/button_nowiki.png | Bin 0 -> 874 bytes skins/common/images/feed-icon.png | Bin 0 -> 542 bytes skins/common/images/feed-icon.svg | 1 + skins/common/images/gnu-fdl.png | Bin 0 -> 1573 bytes skins/common/images/help-question-hover.gif | Bin 0 -> 1246 bytes skins/common/images/help-question.gif | Bin 0 -> 126 bytes skins/common/images/icons/COPYING | 43 + skins/common/images/icons/fileicon-c.png | Bin 0 -> 1753 bytes skins/common/images/icons/fileicon-cpp.png | Bin 0 -> 1382 bytes skins/common/images/icons/fileicon-deb.png | Bin 0 -> 4527 bytes skins/common/images/icons/fileicon-djvu.png | Bin 0 -> 10436 bytes skins/common/images/icons/fileicon-djvu.xcf | Bin 0 -> 83394 bytes skins/common/images/icons/fileicon-dvi.png | Bin 0 -> 12476 bytes skins/common/images/icons/fileicon-exe.png | Bin 0 -> 5469 bytes skins/common/images/icons/fileicon-h.png | Bin 0 -> 803 bytes skins/common/images/icons/fileicon-html.png | Bin 0 -> 7171 bytes skins/common/images/icons/fileicon-iso.png | Bin 0 -> 6105 bytes skins/common/images/icons/fileicon-java.png | Bin 0 -> 5706 bytes skins/common/images/icons/fileicon-mid.png | Bin 0 -> 6316 bytes skins/common/images/icons/fileicon-mov.png | Bin 0 -> 7579 bytes skins/common/images/icons/fileicon-o.png | Bin 0 -> 1742 bytes skins/common/images/icons/fileicon-ogg.png | Bin 0 -> 3151 bytes skins/common/images/icons/fileicon-ogg.xcf | Bin 0 -> 40236 bytes skins/common/images/icons/fileicon-pdf.png | Bin 0 -> 4710 bytes skins/common/images/icons/fileicon-ps.png | Bin 0 -> 2786 bytes skins/common/images/icons/fileicon-psd.png | Bin 0 -> 7756 bytes skins/common/images/icons/fileicon-rm.png | Bin 0 -> 2519 bytes skins/common/images/icons/fileicon-rpm.png | Bin 0 -> 3784 bytes skins/common/images/icons/fileicon-svg.png | Bin 0 -> 4793 bytes skins/common/images/icons/fileicon-tar.png | Bin 0 -> 6025 bytes skins/common/images/icons/fileicon-tex.png | Bin 0 -> 3738 bytes skins/common/images/icons/fileicon-ttf.png | Bin 0 -> 3193 bytes skins/common/images/icons/fileicon-txt.png | Bin 0 -> 3388 bytes skins/common/images/icons/fileicon.png | Bin 0 -> 789 bytes skins/common/images/info-32.png | Bin 0 -> 1892 bytes skins/common/images/ksh/LICENSE | 7 + skins/common/images/ksh/button_S_italic.png | Bin 0 -> 368 bytes skins/common/images/link_icon.gif | Bin 0 -> 342 bytes skins/common/images/magnify-clip-rtl.png | Bin 0 -> 149 bytes skins/common/images/magnify-clip.png | Bin 0 -> 204 bytes skins/common/images/mediawiki.png | Bin 0 -> 22589 bytes skins/common/images/nextredirectltr.png | Bin 0 -> 121 bytes skins/common/images/nextredirectrtl.png | Bin 0 -> 121 bytes skins/common/images/poweredby_mediawiki_88x31.png | Bin 0 -> 3525 bytes skins/common/images/public-domain.png | Bin 0 -> 2017 bytes skins/common/images/question-small.png | Bin 0 -> 316 bytes skins/common/images/question.svg | 1 + skins/common/images/redirectltr.png | Bin 0 -> 128 bytes skins/common/images/redirectrtl.png | Bin 0 -> 132 bytes skins/common/images/remove.png | Bin 0 -> 555 bytes skins/common/images/spinner.gif | Bin 0 -> 1819 bytes skins/common/images/tick-32.png | Bin 0 -> 1103 bytes skins/common/images/tipsy-arrow.gif | Bin 0 -> 205 bytes skins/common/images/tooltip_icon.png | Bin 0 -> 352 bytes skins/common/images/warning-32.png | Bin 0 -> 1299 bytes skins/common/images/wiki.png | Bin 0 -> 24358 bytes skins/common/oldshared.css | 469 ++++ skins/common/protect.js | 387 ++++ skins/common/shared.css | 1216 +++++++++++ skins/common/upload.js | 355 +++ skins/common/wikibits.js | 243 +++ skins/modern/audio.png | Bin 0 -> 186 bytes skins/modern/bullet.gif | Bin 0 -> 50 bytes skins/modern/discussionitem_icon.gif | Bin 0 -> 549 bytes skins/modern/document.png | Bin 0 -> 152 bytes skins/modern/external.png | Bin 0 -> 141 bytes skins/modern/file_icon.gif | Bin 0 -> 323 bytes skins/modern/footer-grad.png | Bin 0 -> 81 bytes skins/modern/link_icon.gif | Bin 0 -> 342 bytes skins/modern/lock_icon.gif | Bin 0 -> 321 bytes skins/modern/mail_icon.gif | Bin 0 -> 321 bytes skins/modern/main.css | 912 ++++++++ skins/modern/news_icon.png | Bin 0 -> 284 bytes skins/modern/print.css | 10 + skins/modern/video.png | Bin 0 -> 113 bytes skins/monobook/IE60Fixes.css | 112 + skins/monobook/IE70Fixes.css | 92 + skins/monobook/audio.png | Bin 0 -> 186 bytes skins/monobook/bullet.gif | Bin 0 -> 50 bytes skins/monobook/discussionitem_icon.gif | Bin 0 -> 549 bytes skins/monobook/document.png | Bin 0 -> 152 bytes skins/monobook/external-ltr.png | Bin 0 -> 141 bytes skins/monobook/external-rtl.png | Bin 0 -> 141 bytes skins/monobook/file_icon.gif | Bin 0 -> 323 bytes skins/monobook/headbg.jpg | Bin 0 -> 7881 bytes skins/monobook/link_icon.gif | Bin 0 -> 342 bytes skins/monobook/lock_icon.gif | Bin 0 -> 918 bytes skins/monobook/magnify-clip.png | Bin 0 -> 170 bytes skins/monobook/mail_icon.gif | Bin 0 -> 321 bytes skins/monobook/main.css | 835 +++++++ skins/monobook/news_icon.png | Bin 0 -> 284 bytes skins/monobook/required.gif | Bin 0 -> 47 bytes skins/monobook/user.gif | Bin 0 -> 325 bytes skins/monobook/video.png | Bin 0 -> 116 bytes skins/monobook/wiki-indexed.png | Bin 0 -> 8007 bytes skins/monobook/wiki.png | Bin 0 -> 22589 bytes skins/vector/collapsibleNav.js | 152 ++ skins/vector/collapsibleTabs.js | 208 ++ skins/vector/components/animations.less | 28 + skins/vector/components/collapsibleNav.less | 91 + skins/vector/components/common.less | 141 ++ skins/vector/components/externalLinks.less | 10 + skins/vector/components/footer.less | 57 + skins/vector/components/navigation.less | 134 ++ skins/vector/components/notifications.less | 20 + skins/vector/components/personalMenu.less | 41 + skins/vector/components/search.less | 113 + skins/vector/components/tabs.less | 274 +++ skins/vector/components/watchstar.less | 46 + skins/vector/csshover.htc | 284 +++ skins/vector/csshover.min.htc | 12 + skins/vector/images/arrow-collapsed-ltr.png | Bin 0 -> 143 bytes skins/vector/images/arrow-collapsed-ltr.svg | 1 + skins/vector/images/arrow-collapsed-rtl.png | Bin 0 -> 145 bytes skins/vector/images/arrow-collapsed-rtl.svg | 1 + skins/vector/images/arrow-down-focus-icon.png | Bin 0 -> 135 bytes skins/vector/images/arrow-down-focus-icon.svg | 1 + skins/vector/images/arrow-down-icon.png | Bin 0 -> 135 bytes skins/vector/images/arrow-down-icon.svg | 1 + skins/vector/images/arrow-expanded.png | Bin 0 -> 145 bytes skins/vector/images/arrow-expanded.svg | 1 + skins/vector/images/bullet-icon.png | Bin 0 -> 107 bytes skins/vector/images/external-link-ltr-icon.png | Bin 0 -> 141 bytes skins/vector/images/external-link-ltr-icon.svg | 1 + skins/vector/images/external-link-rtl-icon.png | Bin 0 -> 141 bytes skins/vector/images/external-link-rtl-icon.svg | 1 + skins/vector/images/link-icon.png | Bin 0 -> 359 bytes skins/vector/images/magnify-clip.png | Bin 0 -> 204 bytes skins/vector/images/page-fade.png | Bin 0 -> 115 bytes skins/vector/images/portal-break-ltr.png | Bin 0 -> 168 bytes skins/vector/images/portal-break-rtl.png | Bin 0 -> 161 bytes skins/vector/images/portal-break.png | Bin 0 -> 96 bytes skins/vector/images/preferences/break.png | Bin 0 -> 103 bytes skins/vector/images/preferences/fade.png | Bin 0 -> 85 bytes skins/vector/images/search-fade.png | Bin 0 -> 94 bytes skins/vector/images/search-ltr.png | Bin 0 -> 214 bytes skins/vector/images/search-ltr.svg | 1 + skins/vector/images/search-rtl.png | Bin 0 -> 214 bytes skins/vector/images/search-rtl.svg | 1 + skins/vector/images/tab-break.png | Bin 0 -> 125 bytes skins/vector/images/tab-current-fade.png | Bin 0 -> 70 bytes skins/vector/images/tab-normal-fade.png | Bin 0 -> 117 bytes skins/vector/images/unwatch-icon-hl.png | Bin 0 -> 716 bytes skins/vector/images/unwatch-icon-hl.svg | 1 + skins/vector/images/unwatch-icon.png | Bin 0 -> 658 bytes skins/vector/images/unwatch-icon.svg | 1 + skins/vector/images/user-icon.png | Bin 0 -> 568 bytes skins/vector/images/user-icon.svg | 1 + skins/vector/images/watch-icon-hl.png | Bin 0 -> 640 bytes skins/vector/images/watch-icon-hl.svg | 1 + skins/vector/images/watch-icon-loading.png | Bin 0 -> 485 bytes skins/vector/images/watch-icon-loading.svg | 1 + skins/vector/images/watch-icon.png | Bin 0 -> 642 bytes skins/vector/images/watch-icon.svg | 1 + skins/vector/screen-hd.less | 30 + skins/vector/screen.less | 10 + skins/vector/special.less | 7 + skins/vector/special.preferences.less | 114 + skins/vector/variables.less | 43 + skins/vector/vector.js | 55 + 276 files changed, 13855 insertions(+) create mode 100644 skins/Cavendish.php create mode 100644 skins/CologneBlue.php create mode 100644 skins/Modern.php create mode 100644 skins/MonoBook.php create mode 100644 skins/Vector.php create mode 100644 skins/cavendish/IE60Fixes.css create mode 100644 skins/cavendish/IE70Fixes.css create mode 100644 skins/cavendish/README create mode 100644 skins/cavendish/audio.png create mode 100644 skins/cavendish/babel.css create mode 100644 skins/cavendish/body_back.gif create mode 100644 skins/cavendish/bullet.gif create mode 100644 skins/cavendish/cavendish.css create mode 100644 skins/cavendish/colors/blue.css create mode 100644 skins/cavendish/colors/brown.css create mode 100644 skins/cavendish/colors/green.css create mode 100644 skins/cavendish/config.php create mode 100644 skins/cavendish/document.png create mode 100644 skins/cavendish/envelope.png create mode 100644 skins/cavendish/extensions.css create mode 100644 skins/cavendish/external.png create mode 100644 skins/cavendish/folder.png create mode 100644 skins/cavendish/headbg.jpg create mode 100644 skins/cavendish/header.css create mode 100644 skins/cavendish/header_logo.gif create mode 100644 skins/cavendish/key-point_bl.gif create mode 100644 skins/cavendish/key-point_tl.gif create mode 100644 skins/cavendish/locked.png create mode 100644 skins/cavendish/magnify-clip.png create mode 100644 skins/cavendish/minus.png create mode 100644 skins/cavendish/newspaper.png create mode 100644 skins/cavendish/plus.png create mode 100644 skins/cavendish/print.css create mode 100644 skins/cavendish/required.gif create mode 100644 skins/cavendish/rtl.css create mode 100644 skins/cavendish/speech-bubble-left-4.png create mode 100644 skins/cavendish/style.php create mode 100644 skins/cavendish/subsite_back.gif create mode 100644 skins/cavendish/subsite_back.png create mode 100644 skins/cavendish/subsite_mozilla-org.gif create mode 100644 skins/cavendish/top-left.png create mode 100644 skins/cavendish/top-mid.png create mode 100644 skins/cavendish/top-right.png create mode 100644 skins/cavendish/user.gif create mode 100644 skins/cavendish/video.png create mode 100644 skins/cavendish/wiki-indexed.png create mode 100644 skins/cavendish/wiki.png create mode 100644 skins/cavendish/wiki_header_logo.gif create mode 100644 skins/cologneblue/print.css create mode 100644 skins/cologneblue/screen.css create mode 100644 skins/common/IEFixes.js create mode 100644 skins/common/ajax.js create mode 100644 skins/common/commonContent.css create mode 100644 skins/common/commonElements.css create mode 100644 skins/common/commonInterface.css create mode 100644 skins/common/commonPrint.css create mode 100644 skins/common/config-cc.css create mode 100644 skins/common/config.css create mode 100644 skins/common/config.js create mode 100644 skins/common/feed.css create mode 100644 skins/common/images/Arr_.png create mode 100644 skins/common/images/Arr_d.png create mode 100644 skins/common/images/Arr_l.png create mode 100644 skins/common/images/Arr_r.png create mode 100644 skins/common/images/Arr_u.png create mode 100644 skins/common/images/Checker-16x16.png create mode 100644 skins/common/images/Zoom_sans.gif create mode 100644 skins/common/images/add.png create mode 100644 skins/common/images/ajax-loader.gif create mode 100644 skins/common/images/ar/button_bold.png create mode 100644 skins/common/images/ar/button_headline.png create mode 100644 skins/common/images/ar/button_italic.png create mode 100644 skins/common/images/ar/button_link.png create mode 100644 skins/common/images/ar/button_nowiki.png create mode 100644 skins/common/images/arrow_disabled_first_25.png create mode 100644 skins/common/images/arrow_disabled_last_25.png create mode 100644 skins/common/images/arrow_disabled_left_25.png create mode 100644 skins/common/images/arrow_disabled_right_25.png create mode 100644 skins/common/images/arrow_first_25.png create mode 100644 skins/common/images/arrow_last_25.png create mode 100644 skins/common/images/arrow_left_25.png create mode 100644 skins/common/images/arrow_right_25.png create mode 100644 skins/common/images/be-tarask/button_bold.png create mode 100644 skins/common/images/be-tarask/button_italic.png create mode 100644 skins/common/images/be-tarask/button_link.png create mode 100644 skins/common/images/bullet.gif create mode 100644 skins/common/images/button_bold.png create mode 100644 skins/common/images/button_extlink.png create mode 100644 skins/common/images/button_headline.png create mode 100644 skins/common/images/button_hr.png create mode 100644 skins/common/images/button_image.png create mode 100644 skins/common/images/button_italic.png create mode 100644 skins/common/images/button_link.png create mode 100644 skins/common/images/button_media.png create mode 100644 skins/common/images/button_nowiki.png create mode 100644 skins/common/images/button_sig.png create mode 100644 skins/common/images/button_template.png create mode 100644 skins/common/images/cc-0.png create mode 100644 skins/common/images/cc-by-nc-sa.png create mode 100644 skins/common/images/cc-by-sa.png create mode 100644 skins/common/images/cc-by.png create mode 100644 skins/common/images/closewindow.png create mode 100644 skins/common/images/closewindow19x19.png create mode 100644 skins/common/images/critical-32.png create mode 100644 skins/common/images/cyrl/LICENSE create mode 100644 skins/common/images/cyrl/button_bold.png create mode 100644 skins/common/images/cyrl/button_italic.png create mode 100644 skins/common/images/cyrl/button_link.png create mode 100644 skins/common/images/de/button_bold.png create mode 100644 skins/common/images/de/button_italic.png create mode 100644 skins/common/images/diffunderline.gif create mode 100644 skins/common/images/download-32.png create mode 100644 skins/common/images/fa/button_bold.png create mode 100644 skins/common/images/fa/button_headline.png create mode 100644 skins/common/images/fa/button_italic.png create mode 100644 skins/common/images/fa/button_link.png create mode 100644 skins/common/images/fa/button_nowiki.png create mode 100644 skins/common/images/feed-icon.png create mode 100644 skins/common/images/feed-icon.svg create mode 100644 skins/common/images/gnu-fdl.png create mode 100644 skins/common/images/help-question-hover.gif create mode 100644 skins/common/images/help-question.gif create mode 100644 skins/common/images/icons/COPYING create mode 100644 skins/common/images/icons/fileicon-c.png create mode 100644 skins/common/images/icons/fileicon-cpp.png create mode 100644 skins/common/images/icons/fileicon-deb.png create mode 100644 skins/common/images/icons/fileicon-djvu.png create mode 100644 skins/common/images/icons/fileicon-djvu.xcf create mode 100644 skins/common/images/icons/fileicon-dvi.png create mode 100644 skins/common/images/icons/fileicon-exe.png create mode 100644 skins/common/images/icons/fileicon-h.png create mode 100644 skins/common/images/icons/fileicon-html.png create mode 100644 skins/common/images/icons/fileicon-iso.png create mode 100644 skins/common/images/icons/fileicon-java.png create mode 100644 skins/common/images/icons/fileicon-mid.png create mode 100644 skins/common/images/icons/fileicon-mov.png create mode 100644 skins/common/images/icons/fileicon-o.png create mode 100644 skins/common/images/icons/fileicon-ogg.png create mode 100644 skins/common/images/icons/fileicon-ogg.xcf create mode 100644 skins/common/images/icons/fileicon-pdf.png create mode 100644 skins/common/images/icons/fileicon-ps.png create mode 100644 skins/common/images/icons/fileicon-psd.png create mode 100644 skins/common/images/icons/fileicon-rm.png create mode 100644 skins/common/images/icons/fileicon-rpm.png create mode 100644 skins/common/images/icons/fileicon-svg.png create mode 100644 skins/common/images/icons/fileicon-tar.png create mode 100644 skins/common/images/icons/fileicon-tex.png create mode 100644 skins/common/images/icons/fileicon-ttf.png create mode 100644 skins/common/images/icons/fileicon-txt.png create mode 100644 skins/common/images/icons/fileicon.png create mode 100644 skins/common/images/info-32.png create mode 100644 skins/common/images/ksh/LICENSE create mode 100644 skins/common/images/ksh/button_S_italic.png create mode 100644 skins/common/images/link_icon.gif create mode 100644 skins/common/images/magnify-clip-rtl.png create mode 100644 skins/common/images/magnify-clip.png create mode 100644 skins/common/images/mediawiki.png create mode 100644 skins/common/images/nextredirectltr.png create mode 100644 skins/common/images/nextredirectrtl.png create mode 100644 skins/common/images/poweredby_mediawiki_88x31.png create mode 100644 skins/common/images/public-domain.png create mode 100644 skins/common/images/question-small.png create mode 100644 skins/common/images/question.svg create mode 100644 skins/common/images/redirectltr.png create mode 100644 skins/common/images/redirectrtl.png create mode 100644 skins/common/images/remove.png create mode 100644 skins/common/images/spinner.gif create mode 100644 skins/common/images/tick-32.png create mode 100644 skins/common/images/tipsy-arrow.gif create mode 100644 skins/common/images/tooltip_icon.png create mode 100644 skins/common/images/warning-32.png create mode 100644 skins/common/images/wiki.png create mode 100644 skins/common/oldshared.css create mode 100644 skins/common/protect.js create mode 100644 skins/common/shared.css create mode 100644 skins/common/upload.js create mode 100644 skins/common/wikibits.js create mode 100644 skins/modern/audio.png create mode 100644 skins/modern/bullet.gif create mode 100644 skins/modern/discussionitem_icon.gif create mode 100644 skins/modern/document.png create mode 100644 skins/modern/external.png create mode 100644 skins/modern/file_icon.gif create mode 100644 skins/modern/footer-grad.png create mode 100644 skins/modern/link_icon.gif create mode 100644 skins/modern/lock_icon.gif create mode 100644 skins/modern/mail_icon.gif create mode 100644 skins/modern/main.css create mode 100644 skins/modern/news_icon.png create mode 100644 skins/modern/print.css create mode 100644 skins/modern/video.png create mode 100644 skins/monobook/IE60Fixes.css create mode 100644 skins/monobook/IE70Fixes.css create mode 100644 skins/monobook/audio.png create mode 100644 skins/monobook/bullet.gif create mode 100644 skins/monobook/discussionitem_icon.gif create mode 100644 skins/monobook/document.png create mode 100644 skins/monobook/external-ltr.png create mode 100644 skins/monobook/external-rtl.png create mode 100644 skins/monobook/file_icon.gif create mode 100644 skins/monobook/headbg.jpg create mode 100644 skins/monobook/link_icon.gif create mode 100644 skins/monobook/lock_icon.gif create mode 100644 skins/monobook/magnify-clip.png create mode 100644 skins/monobook/mail_icon.gif create mode 100644 skins/monobook/main.css create mode 100644 skins/monobook/news_icon.png create mode 100644 skins/monobook/required.gif create mode 100644 skins/monobook/user.gif create mode 100644 skins/monobook/video.png create mode 100644 skins/monobook/wiki-indexed.png create mode 100644 skins/monobook/wiki.png create mode 100644 skins/vector/collapsibleNav.js create mode 100644 skins/vector/collapsibleTabs.js create mode 100644 skins/vector/components/animations.less create mode 100644 skins/vector/components/collapsibleNav.less create mode 100644 skins/vector/components/common.less create mode 100644 skins/vector/components/externalLinks.less create mode 100644 skins/vector/components/footer.less create mode 100644 skins/vector/components/navigation.less create mode 100644 skins/vector/components/notifications.less create mode 100644 skins/vector/components/personalMenu.less create mode 100644 skins/vector/components/search.less create mode 100644 skins/vector/components/tabs.less create mode 100644 skins/vector/components/watchstar.less create mode 100644 skins/vector/csshover.htc create mode 100644 skins/vector/csshover.min.htc create mode 100644 skins/vector/images/arrow-collapsed-ltr.png create mode 100644 skins/vector/images/arrow-collapsed-ltr.svg create mode 100644 skins/vector/images/arrow-collapsed-rtl.png create mode 100644 skins/vector/images/arrow-collapsed-rtl.svg create mode 100644 skins/vector/images/arrow-down-focus-icon.png create mode 100644 skins/vector/images/arrow-down-focus-icon.svg create mode 100644 skins/vector/images/arrow-down-icon.png create mode 100644 skins/vector/images/arrow-down-icon.svg create mode 100644 skins/vector/images/arrow-expanded.png create mode 100644 skins/vector/images/arrow-expanded.svg create mode 100644 skins/vector/images/bullet-icon.png create mode 100644 skins/vector/images/external-link-ltr-icon.png create mode 100644 skins/vector/images/external-link-ltr-icon.svg create mode 100644 skins/vector/images/external-link-rtl-icon.png create mode 100644 skins/vector/images/external-link-rtl-icon.svg create mode 100644 skins/vector/images/link-icon.png create mode 100644 skins/vector/images/magnify-clip.png create mode 100644 skins/vector/images/page-fade.png create mode 100644 skins/vector/images/portal-break-ltr.png create mode 100644 skins/vector/images/portal-break-rtl.png create mode 100644 skins/vector/images/portal-break.png create mode 100644 skins/vector/images/preferences/break.png create mode 100644 skins/vector/images/preferences/fade.png create mode 100644 skins/vector/images/search-fade.png create mode 100644 skins/vector/images/search-ltr.png create mode 100644 skins/vector/images/search-ltr.svg create mode 100644 skins/vector/images/search-rtl.png create mode 100644 skins/vector/images/search-rtl.svg create mode 100644 skins/vector/images/tab-break.png create mode 100644 skins/vector/images/tab-current-fade.png create mode 100644 skins/vector/images/tab-normal-fade.png create mode 100644 skins/vector/images/unwatch-icon-hl.png create mode 100644 skins/vector/images/unwatch-icon-hl.svg create mode 100644 skins/vector/images/unwatch-icon.png create mode 100644 skins/vector/images/unwatch-icon.svg create mode 100644 skins/vector/images/user-icon.png create mode 100644 skins/vector/images/user-icon.svg create mode 100644 skins/vector/images/watch-icon-hl.png create mode 100644 skins/vector/images/watch-icon-hl.svg create mode 100644 skins/vector/images/watch-icon-loading.png create mode 100644 skins/vector/images/watch-icon-loading.svg create mode 100644 skins/vector/images/watch-icon.png create mode 100644 skins/vector/images/watch-icon.svg create mode 100644 skins/vector/screen-hd.less create mode 100644 skins/vector/screen.less create mode 100644 skins/vector/special.less create mode 100644 skins/vector/special.preferences.less create mode 100644 skins/vector/variables.less create mode 100644 skins/vector/vector.js diff --git a/skins/Cavendish.php b/skins/Cavendish.php new file mode 100644 index 0000000..8a5e6eb --- /dev/null +++ b/skins/Cavendish.php @@ -0,0 +1,253 @@ +skinname = 'cavendish'; + $this->stylename = 'cavendish'; + $this->template = 'CavendishTemplate'; + $this->useHeadElement = true; + } + function setupSkinUserCss( OutputPage $out ) { + global $wgHandheldStyle, $wgStyleVersion, $wgJsMimeType, $wgStylePath, $wgVersion, $wgLogo; + parent::setupSkinUserCss( $out ); + // Append to the default screen common & print styles... + $out->addStyle( 'cavendish/print.css', 'print' ); + $out->addStyle( 'cavendish/cavendish.css', 'screen' ); + if( $wgHandheldStyle ) { + // Currently in testing... try 'chick/main.css' + $out->addStyle( $wgHandheldStyle, 'handheld' ); + } + $out->addStyle( 'cavendish/IE60Fixes.css', 'screen', 'IE 6' ); + $out->addStyle( 'cavendish/IE70Fixes.css', 'screen', 'IE 7' ); + + $out->addStyle( 'cavendish/rtl.css', 'screen', '', 'rtl' ); + + /* README for details */ + include('cavendish/config.php'); + + $out->addStyle( 'cavendish/colors/'. $cavendishColor .'.css', 'screen' ); + + if ($cavendishExtensionCSS) { + $out->addStyle( 'cavendish/extensions.css', 'screen' ); + } + $out->addStyle( 'cavendish/style.php', 'screen' ); + } +} + +class CavendishTemplate extends MonoBookTemplate { + var $skin; + /** + * Template filter callback for cavendish skin. + * Takes an associative array of data set from a SkinTemplate-based + * class, and a wrapper for MediaWiki's localization database, and + * outputs a formatted page. + * + * @access private + */ + function execute() { + global $wgRequest, $wgLang; + include('cavendish/config.php'); + $QRURL = htmlentities( $this->getSkin()->getTitle()->getFullURL()).$cavendishQRurladd; + $styleversion = '2.3.3'; + $this->skin = $skin = $this->data['skin']; + $action = $wgRequest->getText( 'action' ); + if ( $action == "") { + $action = "view"; + } + // Suppress warnings to prevent notices about missing indexes in $this->data + wfSuppressWarnings(); + // HTML starts here + $this->html( 'headelement' ); +?> +
+ +
+
+
msg('personaltools') ?>
+
+
    html('userlangattributes') ?>> + data['personal_urls'] as $key => $item) {?> + +
  • " class="active top-nav-element"> +   + + +  
  • + + +
+
+
+ +
+
+ +
+
+
+
+ + data['sitenotice']) { ?>
html('sitenotice') ?>
+

html('title') ?>

+
+

msg('tagline') ?>

+
html('subtitle') ?>
+ data['undelete']) { ?>
html('undelete') ?>
+ data['newtalk'] ) { ?>
html('newtalk') ?>
+ data['showjumplinks']) { ?> + + html('bodytext') ?> + data['catlinks']) { $this->html('catlinks'); } ?> + + data['dataAfterContent']) { $this->html ('dataAfterContent'); } ?> +
+
+
+
+
+ + + +printTrail(); + echo Html::closeElement( 'body' ); + echo Html::closeElement( 'html' ); + wfRestoreWarnings(); + } +} // end of class diff --git a/skins/CologneBlue.php b/skins/CologneBlue.php new file mode 100644 index 0000000..7c2860e --- /dev/null +++ b/skins/CologneBlue.php @@ -0,0 +1,573 @@ +addModuleStyles( 'mediawiki.legacy.oldshared' ); + $out->addModuleStyles( 'skins.cologneblue' ); + } + + /** + * Override langlink formatting behavior not to uppercase the language names. + * See otherLanguages() in CologneBlueTemplate. + */ + function formatLanguageName( $name ) { + return $name; + } +} + +class CologneBlueTemplate extends BaseTemplate { + function execute() { + // Suppress warnings to prevent notices about missing indexes in $this->data + wfSuppressWarnings(); + $this->html( 'headelement' ); + echo $this->beforeContent(); + $this->html( 'bodytext' ); + echo "\n"; + echo $this->afterContent(); + $this->html( 'dataAfterContent' ); + $this->printTrail(); + echo "\n"; + wfRestoreWarnings(); + } + + /** + * Language/charset variant links for classic-style skins + * @return string + */ + function variantLinks() { + $s = array(); + + $variants = $this->data['content_navigation']['variants']; + + foreach ( $variants as $key => $link ) { + $s[] = $this->makeListItem( $key, $link, array( 'tag' => 'span' ) ); + } + + return $this->getSkin()->getLanguage()->pipeList( $s ); + } + + function otherLanguages() { + global $wgHideInterlanguageLinks; + if ( $wgHideInterlanguageLinks ) { + return ""; + } + + $html = ''; + + // We override SkinTemplate->formatLanguageName() in SkinCologneBlue + // not to capitalize the language names. + $language_urls = $this->data['language_urls']; + if ( !empty( $language_urls ) ) { + $s = array(); + foreach ( $language_urls as $key => $data ) { + $s[] = $this->makeListItem( $key, $data, array( 'tag' => 'span' ) ); + } + + $html = wfMessage( 'otherlanguages' )->text() + . wfMessage( 'colon-separator' )->text() + . $this->getSkin()->getLanguage()->pipeList( $s ); + } + + $html .= $this->renderAfterPortlet( 'lang' ); + + return $html; + } + + /** + * @param string $name + */ + protected function renderAfterPortlet( $name ) { + $content = ''; + wfRunHooks( 'BaseTemplateAfterPortlet', array( $this, $name, &$content ) ); + + $html = $content !== '' ? "
$content
" : ''; + + return $html; + } + + function pageTitleLinks() { + $s = array(); + $footlinks = $this->getFooterLinks(); + + foreach ( $footlinks['places'] as $item ) { + $s[] = $this->data[$item]; + } + + return $this->getSkin()->getLanguage()->pipeList( $s ); + } + + /** + * Used in bottomLinks() to eliminate repetitive code. + * + * @param $key string Key to be passed to makeListItem() + * @param $navlink array Navlink suitable for processNavlinkForDocument() + * @param $message string Key of the message to use in place of standard text + * + * @return string + */ + function processBottomLink( $key, $navlink, $message = null ) { + if ( !$navlink ) { + // Empty navlinks might be passed. + return null; + } + + if ( $message ) { + $navlink['text'] = wfMessage( $message )->escaped(); + } + + return $this->makeListItem( $key, $this->processNavlinkForDocument( $navlink ), array( 'tag' => 'span' ) ); + } + + function bottomLinks() { + $toolbox = $this->getToolbox(); + $content_nav = $this->data['content_navigation']; + + $lines = array(); + + if ( $this->getSkin()->getOutput()->isArticleRelated() ) { + // First row. Regular actions. + $element = array(); + + $editLinkMessage = $this->getSkin()->getTitle()->exists() ? 'editthispage' : 'create-this-page'; + $element[] = $this->processBottomLink( 'edit', $content_nav['views']['edit'], $editLinkMessage ); + $element[] = $this->processBottomLink( 'viewsource', $content_nav['views']['viewsource'], 'viewsource' ); + + $element[] = $this->processBottomLink( 'watch', $content_nav['actions']['watch'], 'watchthispage' ); + $element[] = $this->processBottomLink( 'unwatch', $content_nav['actions']['unwatch'], 'unwatchthispage' ); + + $element[] = $this->talkLink(); + + $element[] = $this->processBottomLink( 'history', $content_nav['views']['history'], 'history' ); + $element[] = $this->processBottomLink( 'info', $toolbox['info'] ); + $element[] = $this->processBottomLink( 'whatlinkshere', $toolbox['whatlinkshere'] ); + $element[] = $this->processBottomLink( 'recentchangeslinked', $toolbox['recentchangeslinked'] ); + + $element[] = $this->processBottomLink( 'contributions', $toolbox['contributions'] ); + $element[] = $this->processBottomLink( 'emailuser', $toolbox['emailuser'] ); + + $lines[] = $this->getSkin()->getLanguage()->pipeList( array_filter( $element ) ); + + // Second row. Privileged actions. + $element = array(); + + $element[] = $this->processBottomLink( 'delete', $content_nav['actions']['delete'], 'deletethispage' ); + $element[] = $this->processBottomLink( 'undelete', $content_nav['actions']['undelete'], 'undeletethispage' ); + + $element[] = $this->processBottomLink( 'protect', $content_nav['actions']['protect'], 'protectthispage' ); + $element[] = $this->processBottomLink( 'unprotect', $content_nav['actions']['unprotect'], 'unprotectthispage' ); + + $element[] = $this->processBottomLink( 'move', $content_nav['actions']['move'], 'movethispage' ); + + $lines[] = $this->getSkin()->getLanguage()->pipeList( array_filter( $element ) ); + + // Third row. Language links. + $lines[] = $this->otherLanguages(); + } + + return implode( array_filter( $lines ), "
\n" ) . "
\n"; + } + + function talkLink() { + $title = $this->getSkin()->getTitle(); + + if ( $title->getNamespace() == NS_SPECIAL ) { + // No discussion links for special pages + return ""; + } + + $companionTitle = $title->isTalkPage() ? $title->getSubjectPage() : $title->getTalkPage(); + $companionNamespace = $companionTitle->getNamespace(); + + // TODO these messages are only be used by CologneBlue, + // kill and replace with something more sensibly named? + $nsToMessage = array( + NS_MAIN => 'articlepage', + NS_USER => 'userpage', + NS_PROJECT => 'projectpage', + NS_FILE => 'imagepage', + NS_MEDIAWIKI => 'mediawikipage', + NS_TEMPLATE => 'templatepage', + NS_HELP => 'viewhelppage', + NS_CATEGORY => 'categorypage', + NS_FILE => 'imagepage', + ); + + // Find out the message to use for link text. Use either the array above or, + // for non-talk pages, a generic "discuss this" message. + // Default is the same as for main namespace. + if ( isset( $nsToMessage[$companionNamespace] ) ) { + $message = $nsToMessage[$companionNamespace]; + } else { + $message = $companionTitle->isTalkPage() ? 'talkpage' : 'articlepage'; + } + + // Obviously this can't be reasonable and just return the key for talk namespace, only for content ones. + // Thus we have to mangle it in exactly the same way SkinTemplate does. (bug 40805) + $key = $companionTitle->getNamespaceKey( '' ); + if ( $companionTitle->isTalkPage() ) { + $key = ( $key == 'main' ? 'talk' : $key . "_talk" ); + } + + // Use the regular navigational link, but replace its text. Everything else stays unmodified. + $namespacesLinks = $this->data['content_navigation']['namespaces']; + return $this->processBottomLink( $message, $namespacesLinks[$key], $message ); + } + + /** + * Takes a navigational link generated by SkinTemplate in whichever way + * and mangles attributes unsuitable for repeated use. In particular, this modifies the ids + * and removes the accesskeys. This is necessary to be able to use the same navlink twice, + * e.g. in sidebar and in footer. + * + * @param $navlink array Navigational link generated by SkinTemplate + * @param $idPrefix mixed Prefix to add to id of this navlink. If false, id is removed entirely. Default is 'cb-'. + */ + function processNavlinkForDocument( $navlink, $idPrefix = 'cb-' ) { + if ( $navlink['id'] ) { + $navlink['single-id'] = $navlink['id']; // to allow for tooltip generation + $navlink['tooltiponly'] = true; // but no accesskeys + + // mangle or remove the id + if ( $idPrefix === false ) { + unset( $navlink['id'] ); + } else { + $navlink['id'] = $idPrefix . $navlink['id']; + } + } + + return $navlink; + } + + /** + * @return string + */ + function beforeContent() { + ob_start(); +?> +
+
+ +

escaped() ?>

+ +
+
+ getSkin()->getSiteNotice() ) { ?> +
getSkin()->getSiteNotice() ?>
+ +

data['title'] ?>

+ translator->translate( 'tagline' ) ) { ?> +

translator->translate( 'tagline' ) ) ?>

+ + getSkin()->getOutput()->getSubtitle() ) { ?> +

getSkin()->getOutput()->getSubtitle() ?>

+ + getSkin()->subPageSubtitle() ) { ?> +

getSkin()->subPageSubtitle() ?>

+ + +
+ +
+
+

escaped() ?>

+ + quickBar() ?> +
+getSkin()->mainPageLink(), + Linker::linkKnown( + Title::newFromText( wfMessage( 'aboutpage' )->inContentLanguage()->text() ), + wfMessage( 'about' )->text() + ), + Linker::makeExternalLink( + Skin::makeInternalOrExternalUrl( wfMessage( 'helppage' )->inContentLanguage()->text() ), + wfMessage( 'help' )->text(), + false + ), + Linker::linkKnown( + Title::newFromText( wfMessage( 'faqpage' )->inContentLanguage()->text() ), + wfMessage( 'faq' )->text() + ), + ); + + $personalUrls = $this->getPersonalTools(); + foreach ( array( 'logout', 'createaccount', 'login' ) as $key ) { + if ( $personalUrls[$key] ) { + $s[] = $this->makeListItem( $key, $personalUrls[$key], array( 'tag' => 'span' ) ); + } + } + + return $this->getSkin()->getLanguage()->pipeList( $s ); + } + + /** + * Adds CologneBlue-specific items to the sidebar: qbedit, qbpageoptions and qbmyoptions menus. + * + * @param $bar sidebar data + * @return array modified sidebar data + */ + function sidebarAdditions( $bar ) { + // "This page" and "Edit" menus + // We need to do some massaging here... we reuse all of the items, except for $...['views']['view'], + // as $...['namespaces']['main'] and $...['namespaces']['talk'] together serve the same purpose. + // We also don't use $...['variants'], these are displayed in the top menu. + $content_navigation = $this->data['content_navigation']; + $qbpageoptions = array_merge( + $content_navigation['namespaces'], + array( + 'history' => $content_navigation['views']['history'], + 'watch' => $content_navigation['actions']['watch'], + 'unwatch' => $content_navigation['actions']['unwatch'], + ) + ); + $content_navigation['actions']['watch'] = null; + $content_navigation['actions']['unwatch'] = null; + $qbedit = array_merge( + array( + 'edit' => $content_navigation['views']['edit'], + 'addsection' => $content_navigation['views']['addsection'], + ), + $content_navigation['actions'] + ); + + // Personal tools ("My pages") + $qbmyoptions = $this->getPersonalTools(); + foreach ( array( 'logout', 'createaccount', 'login', ) as $key ) { + $qbmyoptions[$key] = null; + } + + // Use the closest reasonable name + $bar['cactions'] = $qbedit; + $bar['pageoptions'] = $qbpageoptions; // this is a non-standard portlet name, but nothing fits + $bar['personal'] = $qbmyoptions; + + return $bar; + } + + /** + * Compute the sidebar + * @access private + * + * @return string + */ + function quickBar() { + // Massage the sidebar. We want to: + // * place SEARCH at the beginning + // * add new portlets before TOOLBOX (or at the end, if it's missing) + // * remove LANGUAGES (langlinks are displayed elsewhere) + $orig_bar = $this->data['sidebar']; + $bar = array(); + $hasToolbox = false; + + // Always display search first + $bar['SEARCH'] = true; + // Copy everything except for langlinks, inserting new items before toolbox + foreach ( $orig_bar as $heading => $data ) { + if ( $heading == 'TOOLBOX' ) { + // Insert the stuff + $bar = $this->sidebarAdditions( $bar ); + $hasToolbox = true; + } + + if ( $heading != 'LANGUAGES' ) { + $bar[$heading] = $data; + } + } + // If toolbox is missing, add our items at the end + if ( !$hasToolbox ) { + $bar = $this->sidebarAdditions( $bar ); + } + + // Fill out special sidebar items with content + $orig_bar = $bar; + $bar = array(); + foreach ( $orig_bar as $heading => $data ) { + if ( $heading == 'SEARCH' ) { + $bar['search'] = $this->searchForm( 'sidebar' ); + } elseif ( $heading == 'TOOLBOX' ) { + $bar['tb'] = $this->getToolbox(); + } else { + $bar[$heading] = $data; + } + } + + // Output the sidebar + // CologneBlue uses custom messages for some portlets, but we should keep the ids for consistency + $idToMessage = array( + 'search' => 'qbfind', + 'navigation' => 'qbbrowse', + 'tb' => 'toolbox', + 'cactions' => 'qbedit', + 'personal' => 'qbmyoptions', + 'pageoptions' => 'qbpageoptions', + ); + + $s = "
\n"; + + foreach ( $bar as $heading => $data ) { + $portletId = Sanitizer::escapeId( "p-$heading" ); + $headingMsg = wfMessage( $idToMessage[$heading] ? $idToMessage[$heading] : $heading ); + $headingHTML = "

" . ( $headingMsg->exists() ? $headingMsg->escaped() : htmlspecialchars( $heading ) ) . "

"; + $listHTML = ""; + + if ( is_array( $data ) ) { + // $data is an array of links + foreach ( $data as $key => $link ) { + // Can be empty due to how the sidebar additions are done + if ( $link ) { + $listHTML .= $this->makeListItem( $key, $link ); + } + } + if ( $listHTML ) { + $listHTML = ""; + } + } else { + // $data is a HTML
\n"; + return $s; + } + + /** + * @param $label string + * @return string + */ + function searchForm( $which ) { + global $wgUseTwoButtonsSearchForm; + + $search = $this->getSkin()->getRequest()->getText( 'search' ); + $action = $this->data['searchaction']; + $s = "
"; + if ( $which == 'footer' ) { + $s .= wfMessage( 'qbfind' )->text() . ": "; + } + + $s .= $this->makeSearchInput( array( 'class' => 'mw-searchInput', 'type' => 'text', 'size' => '14' ) ); + $s .= ( $which == 'footer' ? " " : "
" ); + $s .= $this->makeSearchButton( 'go', array( 'class' => 'searchButton' ) ); + + if ( $wgUseTwoButtonsSearchForm ) { + $s .= $this->makeSearchButton( 'fulltext', array( 'class' => 'searchButton' ) ); + } else { + $s .= '
\n"; + } + + $s .= '
'; + + return $s; + } +} diff --git a/skins/Modern.php b/skins/Modern.php new file mode 100644 index 0000000..8d778cf --- /dev/null +++ b/skins/Modern.php @@ -0,0 +1,169 @@ +addModuleStyles( 'skins.modern' ); + } +} + +/** + * @todo document + * @ingroup Skins + */ +class ModernTemplate extends MonoBookTemplate { + + /** + * Template filter callback for Modern skin. + * Takes an associative array of data set from a SkinTemplate-based + * class, and a wrapper for MediaWiki's localization database, and + * outputs a formatted page. + * + * @access private + */ + function execute() { + // Suppress warnings to prevent notices about missing indexes in $this->data + wfSuppressWarnings(); + + $this->html( 'headelement' ); +?> + + +

html( 'title' ) ?>

+ +
+
+ +cactions(); ?> + + +
+ +
+
+ +
msg( 'tagline' ) ?>
+ data['newtalk'] ) { + ?>
html( 'newtalk' ) ?>
+ + data['sitenotice'] ) { + ?>
html( 'sitenotice' ) ?>
+ +
+ +
html( 'userlangattributes' ) ?>>html( 'subtitle' ) ?>
+ + data['undelete'] ) { ?>
html( 'undelete' ) ?>
+
msg( 'jumpto' ) ?> msg( 'jumptonavigation' ) ?>msg( 'comma-separator' ) ?>msg( 'jumptosearch' ) ?>
+ + html( 'bodytext' ) ?> +
+ data['catlinks'] ) { $this->html( 'catlinks' ); } ?> + html( 'dataAfterContent' ) ?> +
+
+
+ +
html( "userlangattributes" ) ?>> +

msg( 'navigation-heading' ) ?>

+ + + renderPortals( $this->data['sidebar'] ); ?> + +
+ + +
+ +
+ + + + + + + + + printTrail(); ?> + +addModuleStyles( array( 'mediawiki.skinning.interface', 'skins.monobook.styles' ) ); + + // TODO: Migrate all of these + $out->addStyle( 'monobook/IE60Fixes.css', 'screen', 'IE 6' ); + $out->addStyle( 'monobook/IE70Fixes.css', 'screen', 'IE 7' ); + + } +} + +/** + * @todo document + * @ingroup Skins + */ +class MonoBookTemplate extends BaseTemplate { + + /** + * Template filter callback for MonoBook skin. + * Takes an associative array of data set from a SkinTemplate-based + * class, and a wrapper for MediaWiki's localization database, and + * outputs a formatted page. + * + * @access private + */ + function execute() { + // Suppress warnings to prevent notices about missing indexes in $this->data + wfSuppressWarnings(); + + $this->html( 'headelement' ); +?>
+
+ + data['sitenotice'] ) { ?>
html( 'sitenotice' ) ?>
+ +

html( 'title' ) ?>

+
+
msg( 'tagline' ) ?>
+
html( 'userlangattributes' ) ?>>html( 'subtitle' ) ?>
+data['undelete'] ) { ?> +
html( 'undelete' ) ?>
+data['newtalk'] ) { ?> +
html( 'newtalk' ) ?>
+ +
msg( 'jumpto' ) ?> msg( 'jumptonavigation' ) ?>msg( 'comma-separator' ) ?>msg( 'jumptosearch' ) ?>
+ + +html( 'bodytext' ) ?> + data['catlinks'] ) { $this->html( 'catlinks' ); } ?> + + data['dataAfterContent'] ) { $this->html( 'dataAfterContent' ); } ?> +
+
+
+
html( 'userlangattributes' ) ?>> +

msg( 'navigation-heading' ) ?>

+cactions(); ?> + + +renderPortals( $this->data['sidebar'] ); +?> +
+
+getFooterIcons( "icononly" ); + $validFooterLinks = $this->getFooterLinks( "flat" ); // Additional footer links + + if ( count( $validFooterIcons ) + count( $validFooterLinks ) > 0 ) { ?> + +printTrail(); + echo Html::closeElement( 'body' ); + echo Html::closeElement( 'html' ); + wfRestoreWarnings(); + } // end of execute() method + + /*************************************************************************************************/ + + /** + * @param $sidebar array + */ + protected function renderPortals( $sidebar ) { + if ( !isset( $sidebar['SEARCH'] ) ) { + $sidebar['SEARCH'] = true; + } + if ( !isset( $sidebar['TOOLBOX'] ) ) { + $sidebar['TOOLBOX'] = true; + } + if ( !isset( $sidebar['LANGUAGES'] ) ) { + $sidebar['LANGUAGES'] = true; + } + + foreach ( $sidebar as $boxName => $content ) { + if ( $content === false ) { + continue; + } + + if ( $boxName == 'SEARCH' ) { + $this->searchBox(); + } elseif ( $boxName == 'TOOLBOX' ) { + $this->toolbox(); + } elseif ( $boxName == 'LANGUAGES' ) { + $this->languageBox(); + } else { + $this->customBox( $boxName, $content ); + } + } + } + + function searchBox() { + global $wgUseTwoButtonsSearchForm; +?> + + + + + +data['language_urls'] !== false ) { +?> + + 'generated-sidebar portlet', 'id' => Sanitizer::escapeId( "p-$bar" ), 'role' => 'navigation' ); + $tooltip = Linker::titleAttrib( "p-$bar" ); + if ( $tooltip !== false ) { + $portletAttribs['title'] = $tooltip; + } + echo ' ' . Html::openElement( 'div', $portletAttribs ); + $msgObj = wfMessage( $bar ); +?> + +

exists() ? $msgObj->text() : $bar ); ?>

+
+ +
    + $val ) { ?> + makeListItem( $key, $val ); ?> + + +
+renderAfterPortlet( $bar ); +?> +
+
+getRequest()->getFuzzyBool( 'debug' ) ? '' : '.min'; + $out->addHeadItem( 'csshover', + '" + ); + + $out->addModules( array( 'skins.vector.js', 'skins.vector.collapsibleNav' ) ); + } + + /** + * Loads skin and user CSS files. + * @param $out OutputPage object + */ + function setupSkinUserCss( OutputPage $out ) { + parent::setupSkinUserCss( $out ); + + $styles = array( 'mediawiki.skinning.interface', 'skins.vector.styles' ); + wfRunHooks( 'SkinVectorStyleModules', array( $this, &$styles ) ); + $out->addModuleStyles( $styles ); + } + + /** + * Adds classes to the body element. + * + * @param $out OutputPage object + * @param &$bodyAttrs Array of attributes that will be set on the body element + */ + function addToBodyAttributes( $out, &$bodyAttrs ) { + if ( isset( $bodyAttrs['class'] ) && strlen( $bodyAttrs['class'] ) > 0 ) { + $bodyAttrs['class'] .= ' ' . implode( ' ', static::$bodyClasses ); + } else { + $bodyAttrs['class'] = implode( ' ', static::$bodyClasses ); + } + } +} + +/** + * QuickTemplate class for Vector skin + * @ingroup Skins + */ +class VectorTemplate extends BaseTemplate { + + /* Functions */ + + /** + * Outputs the entire contents of the (X)HTML page + */ + public function execute() { + global $wgVectorUseIconWatch; + + // Build additional attributes for navigation urls + $nav = $this->data['content_navigation']; + + if ( $wgVectorUseIconWatch ) { + $mode = $this->getSkin()->getUser()->isWatched( $this->getSkin()->getRelevantTitle() ) ? 'unwatch' : 'watch'; + if ( isset( $nav['actions'][$mode] ) ) { + $nav['views'][$mode] = $nav['actions'][$mode]; + $nav['views'][$mode]['class'] = rtrim( 'icon ' . $nav['views'][$mode]['class'], ' ' ); + $nav['views'][$mode]['primary'] = true; + unset( $nav['actions'][$mode] ); + } + } + + $xmlID = ''; + foreach ( $nav as $section => $links ) { + foreach ( $links as $key => $link ) { + if ( $section == 'views' && !( isset( $link['primary'] ) && $link['primary'] ) ) { + $link['class'] = rtrim( 'collapsible ' . $link['class'], ' ' ); + } + + $xmlID = isset( $link['id'] ) ? $link['id'] : 'ca-' . $xmlID; + $nav[$section][$key]['attributes'] = + ' id="' . Sanitizer::escapeId( $xmlID ) . '"'; + if ( $link['class'] ) { + $nav[$section][$key]['attributes'] .= + ' class="' . htmlspecialchars( $link['class'] ) . '"'; + unset( $nav[$section][$key]['class'] ); + } + if ( isset( $link['tooltiponly'] ) && $link['tooltiponly'] ) { + $nav[$section][$key]['key'] = + Linker::tooltip( $xmlID ); + } else { + $nav[$section][$key]['key'] = + Xml::expandAttributes( Linker::tooltipAndAccesskeyAttribs( $xmlID ) ); + } + } + } + $this->data['namespace_urls'] = $nav['namespaces']; + $this->data['view_urls'] = $nav['views']; + $this->data['action_urls'] = $nav['actions']; + $this->data['variant_urls'] = $nav['variants']; + + // Reverse horizontally rendered navigation elements + if ( $this->data['rtl'] ) { + $this->data['view_urls'] = + array_reverse( $this->data['view_urls'] ); + $this->data['namespace_urls'] = + array_reverse( $this->data['namespace_urls'] ); + $this->data['personal_urls'] = + array_reverse( $this->data['personal_urls'] ); + } + // Output HTML Page + $this->html( 'headelement' ); +?> +
+
+
+ + + data['sitenotice'] ) { ?> +
html( 'sitenotice' ) ?>
+ +

html( 'title' ) ?>

+ html( 'prebodyhtml' ) ?> +
+ data['isarticle'] ) { ?> +
msg( 'tagline' ) ?>
+ +
html( 'userlangattributes' ) ?>>html( 'subtitle' ) ?>
+ data['undelete'] ) { ?> +
html( 'undelete' ) ?>
+ + data['newtalk'] ) { ?> +
html( 'newtalk' ) ?>
+ +
+ msg( 'jumpto' ) ?> + msg( 'jumptonavigation' ) ?>msg( 'comma-separator' ) ?> + msg( 'jumptosearch' ) ?> +
+ html( 'bodycontent' ) ?> + data['printfooter'] ) { ?> +
+ html( 'printfooter' ); ?> +
+ + data['catlinks'] ) { ?> + html( 'catlinks' ); ?> + + data['dataAfterContent'] ) { ?> + html( 'dataAfterContent' ); ?> + +
+ html( 'debughtml' ); ?> +
+
+
+

msg( 'navigation-heading' ) ?>

+
+ renderNavigation( 'PERSONAL' ); ?> +
+ renderNavigation( array( 'NAMESPACES', 'VARIANTS' ) ); ?> +
+
+ renderNavigation( array( 'VIEWS', 'ACTIONS', 'SEARCH' ) ); ?> +
+
+
+ + renderPortals( $this->data['sidebar'] ); ?> +
+
+ + printTrail(); ?> + + + + $content ) { + if ( $content === false ) { + continue; + } + + switch ( $name ) { + case 'SEARCH': + break; + case 'TOOLBOX': + $this->renderPortal( 'tb', $this->getToolbox(), 'toolbox', 'SkinTemplateToolboxEnd' ); + break; + case 'LANGUAGES': + if ( $this->data['language_urls'] !== false ) { + $this->renderPortal( 'lang', $this->data['language_urls'], 'otherlanguages' ); + } + break; + default: + $this->renderPortal( $name, $content ); + break; + } + } + } + + /** + * @param $name string + * @param $content array + * @param $msg null|string + * @param $hook null|string|array + */ + protected function renderPortal( $name, $content, $msg = null, $hook = null ) { + if ( $msg === null ) { + $msg = $name; + } + $msgObj = wfMessage( $msg ); + ?> + +data['rtl'] ) { + $elements = array_reverse( $elements ); + } + // Render elements + foreach ( $elements as $name => $element ) { + switch ( $element ) { + case 'NAMESPACES': +?> + + + + + + + + + + +