From 183851b06bd6c52f3cae5375f433da720d410447 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 11 Oct 2006 18:12:39 +0000 Subject: MediaWiki 1.7.1 wiederhergestellt --- skins/common/IEFixes.js | 127 ++++ skins/common/ajax.js | 177 +++++ skins/common/cologneblue.css | 96 +++ skins/common/common.css | 386 +++++++++++ skins/common/commonPrint.css | 288 +++++++++ skins/common/common_rtl.css | 15 + skins/common/feed.css | 95 +++ skins/common/images/Arr_.png | Bin 0 -> 918 bytes skins/common/images/Arr_d.png | Bin 0 -> 215 bytes skins/common/images/Arr_l.png | Bin 0 -> 263 bytes skins/common/images/Arr_r.png | Bin 0 -> 210 bytes skins/common/images/Arr_r.xcf | Bin 0 -> 1437 bytes skins/common/images/Zoom_sans.gif | Bin 0 -> 901 bytes skins/common/images/bullet.gif | Bin 0 -> 50 bytes skins/common/images/button_bold.png | Bin 0 -> 978 bytes skins/common/images/button_extlink.png | Bin 0 -> 1093 bytes skins/common/images/button_headline.png | Bin 0 -> 497 bytes skins/common/images/button_hr.png | Bin 0 -> 372 bytes skins/common/images/button_image.png | Bin 0 -> 1110 bytes skins/common/images/button_italic.png | Bin 0 -> 975 bytes skins/common/images/button_link.png | Bin 0 -> 434 bytes skins/common/images/button_math.png | Bin 0 -> 730 bytes skins/common/images/button_media.png | Bin 0 -> 1155 bytes skins/common/images/button_nowiki.png | Bin 0 -> 375 bytes skins/common/images/button_sig.png | Bin 0 -> 1217 bytes skins/common/images/button_template.png | Bin 0 -> 362 bytes skins/common/images/fileicon.xcf | Bin 0 -> 26160 bytes skins/common/images/gnu-fdl.png | Bin 0 -> 1748 bytes skins/common/images/gnu-fdl.xcf | Bin 0 -> 5578 bytes skins/common/images/icons/COPYING | 43 ++ skins/common/images/icons/fileicon-c.png | Bin 0 -> 2995 bytes skins/common/images/icons/fileicon-cpp.png | Bin 0 -> 2250 bytes skins/common/images/icons/fileicon-deb.png | Bin 0 -> 5528 bytes skins/common/images/icons/fileicon-djvu.png | Bin 0 -> 11137 bytes skins/common/images/icons/fileicon-djvu.xcf | Bin 0 -> 83394 bytes skins/common/images/icons/fileicon-dvi.png | Bin 0 -> 13042 bytes skins/common/images/icons/fileicon-exe.png | Bin 0 -> 5864 bytes skins/common/images/icons/fileicon-h.png | Bin 0 -> 1195 bytes skins/common/images/icons/fileicon-html.png | Bin 0 -> 7601 bytes skins/common/images/icons/fileicon-iso.png | Bin 0 -> 6673 bytes skins/common/images/icons/fileicon-java.png | Bin 0 -> 6825 bytes skins/common/images/icons/fileicon-mid.png | Bin 0 -> 7191 bytes skins/common/images/icons/fileicon-mov.png | Bin 0 -> 7946 bytes skins/common/images/icons/fileicon-o.png | Bin 0 -> 2893 bytes skins/common/images/icons/fileicon-ogg.png | Bin 0 -> 6143 bytes skins/common/images/icons/fileicon-ogg.xcf | Bin 0 -> 40236 bytes skins/common/images/icons/fileicon-pdf.png | Bin 0 -> 5138 bytes skins/common/images/icons/fileicon-ps.png | Bin 0 -> 3293 bytes skins/common/images/icons/fileicon-rm.png | Bin 0 -> 4977 bytes skins/common/images/icons/fileicon-rpm.png | Bin 0 -> 4753 bytes skins/common/images/icons/fileicon-svg.png | Bin 0 -> 5193 bytes skins/common/images/icons/fileicon-tar.png | Bin 0 -> 6544 bytes skins/common/images/icons/fileicon-tex.png | Bin 0 -> 4203 bytes skins/common/images/icons/fileicon-ttf.png | Bin 0 -> 3625 bytes skins/common/images/icons/fileicon-txt.png | Bin 0 -> 6801 bytes skins/common/images/icons/fileicon.png | Bin 0 -> 1121 bytes skins/common/images/link_icon.gif | Bin 0 -> 942 bytes skins/common/images/magnify-clip.png | Bin 0 -> 267 bytes skins/common/images/mediawiki-small.xcf | Bin 0 -> 36011 bytes skins/common/images/mediawiki.png | Bin 0 -> 23064 bytes skins/common/images/poweredby_mediawiki_88x31.png | Bin 0 -> 1933 bytes skins/common/images/redirectltr.png | Bin 0 -> 1024 bytes skins/common/images/redirectrtl.png | Bin 0 -> 1017 bytes skins/common/images/wiki.png | Bin 0 -> 24954 bytes skins/common/metadata.js | 49 ++ skins/common/nostalgia.css | 18 + skins/common/preview.js | 53 ++ skins/common/protect.js | 126 ++++ skins/common/quickbar-right.css | 1 + skins/common/quickbar.css | 1 + skins/common/sticky.js | 124 ++++ skins/common/upload.js | 23 + skins/common/wikibits.js | 748 ++++++++++++++++++++++ skins/common/wikiprintable.css | 46 ++ skins/common/wikistandard.css | 44 ++ 75 files changed, 2460 insertions(+) create mode 100644 skins/common/IEFixes.js create mode 100644 skins/common/ajax.js create mode 100644 skins/common/cologneblue.css create mode 100644 skins/common/common.css create mode 100644 skins/common/commonPrint.css create mode 100644 skins/common/common_rtl.css 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_r.xcf create mode 100644 skins/common/images/Zoom_sans.gif 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_math.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/fileicon.xcf create mode 100644 skins/common/images/gnu-fdl.png create mode 100644 skins/common/images/gnu-fdl.xcf 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-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/link_icon.gif create mode 100644 skins/common/images/magnify-clip.png create mode 100644 skins/common/images/mediawiki-small.xcf create mode 100644 skins/common/images/mediawiki.png create mode 100644 skins/common/images/poweredby_mediawiki_88x31.png create mode 100644 skins/common/images/redirectltr.png create mode 100644 skins/common/images/redirectrtl.png create mode 100644 skins/common/images/wiki.png create mode 100644 skins/common/metadata.js create mode 100644 skins/common/nostalgia.css create mode 100644 skins/common/preview.js create mode 100644 skins/common/protect.js create mode 100644 skins/common/quickbar-right.css create mode 100644 skins/common/quickbar.css create mode 100644 skins/common/sticky.js create mode 100644 skins/common/upload.js create mode 100644 skins/common/wikibits.js create mode 100644 skins/common/wikiprintable.css create mode 100644 skins/common/wikistandard.css (limited to 'skins/common') diff --git a/skins/common/IEFixes.js b/skins/common/IEFixes.js new file mode 100644 index 00000000..9c25adf0 --- /dev/null +++ b/skins/common/IEFixes.js @@ -0,0 +1,127 @@ +// IE fixes javascript + +var isMSIE55 = (window.showModalDialog && window.clipboardData && window.createPopup); +var doneIETransform; +var doneIEAlphaFix; + +if (document.attachEvent) + document.attachEvent('onreadystatechange', hookit); + +function hookit() { + if (!doneIETransform && document.getElementById && document.getElementById('bodyContent')) { + doneIETransform = true; + relativeforfloats(); + fixalpha(); + } +} + +// png alpha transparency fixes +function fixalpha() { + // bg + if (isMSIE55 && !doneIEAlphaFix) + { + var plogo = document.getElementById('p-logo'); + if (!plogo) return; + + var logoa = plogo.getElementsByTagName('a')[0]; + if (!logoa) return; + + var bg = logoa.currentStyle.backgroundImage; + var imageUrl = bg.substring(5, bg.length-2); + + doneIEAlphaFix = true; + + if (imageUrl.substr(imageUrl.length-4).toLowerCase() == '.png') { + var logospan = logoa.appendChild(document.createElement('span')); + + logoa.style.backgroundImage = 'none'; + logospan.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=' + imageUrl + ')'; + logospan.style.height = '100%'; + logospan.style.position = 'absolute'; + logospan.style.width = logoa.currentStyle.width; + logospan.style.cursor = 'hand'; + // Center image with hack for IE5.5 + if (document.documentElement.dir == "rtl") + { + logospan.style.right = '50%'; + logospan.style.setExpression('marginRight', '"-" + (this.offsetWidth / 2) + "px"'); + } + else + { + logospan.style.left = '50%'; + logospan.style.setExpression('marginLeft', '"-" + (this.offsetWidth / 2) + "px"'); + } + logospan.style.top = '50%'; + logospan.style.setExpression('marginTop', '"-" + (this.offsetHeight / 2) + "px"'); + + var linkFix = logoa.appendChild(logoa.cloneNode()); + linkFix.style.position = 'absolute'; + linkFix.style.height = '100%'; + linkFix.style.width = '100%'; + } + } +} + +// fix ie6 disappering float bug +function relativeforfloats() { + var bc = document.getElementById('bodyContent'); + if (bc) { + var tables = bc.getElementsByTagName('table'); + var divs = bc.getElementsByTagName('div'); + } + setrelative(tables); + setrelative(divs); +} +function setrelative (nodes) { + var i = 0; + while (i < nodes.length) { + if(((nodes[i].style.float && nodes[i].style.float != ('none') || + (nodes[i].align && nodes[i].align != ('none'))) && + (!nodes[i].style.position || nodes[i].style.position != 'relative'))) + { + nodes[i].style.position = 'relative'; + } + i++; + } +} + + +// Expand links for printing + +String.prototype.hasClass = function(classWanted) +{ + var classArr = this.split(/\s/); + for (var i=0; i text isn't shown +* Opera 7.5 uses the style sheet instead of its native RSS mode. +* IE/Mac 5.2: none of the :before content works; doesn't get the charset right and displays garbage for non-ASCII. +* IE/Win 6.0: No background color, borders, font size, font weight, or :before content. + +*/ + +/* RSS: */ rss, channel, title, link, description, language, generator, lastBuildDate, item, pubDate, author, comments, creator, +/* Atom: */ feed, id, modified, tagline, entry, issued, created, updated, summary, comment { + display: block; +} + +rss, feed { + background: white; + color: black; + margin: 1em; + font-family: "Verdana", "Tahoma", "Arial", "Helvetica", sans-serif; + line-height: 1.5em; + font-size: 76%; +} + +rss:before { + content: "This RSS feed is meant to be read in a syndicated news reader, and isn't ideal for a web browser."; +} + +feed:before { + content: "This Atom feed is meant to be read in a syndicated news reader, and isn't ideal for a web browser."; +} +rss:before, feed:before { + color: red; + text-align: center; + line-height: 2em; +} + +channel>title, +item>title, +feed>title, +entry>title { + font-weight: bold; + border-bottom: solid 1px #aaa; + margin-left: -0.5em; +} +channel>title, feed>title { + font-size: larger; +} +item>title, entry>title { + font-size: large; +} +item, entry { + margin-top: 1em; + margin-left: 2em; +} + +item>description, entry>summary { + white-space: pre; + overflow: auto; + background: #f8f8ff; +} + +pubDate:before { content: "Date: " } +link:before { content: "Link: " } +author:before, creator:before { content: "Author: " } +description:before { content: "Description: " } +id:before { content: "Id: " } + +generator:before { content: "Generator: " } +language:before { content: "Language: " } +lastBuildDate:before { content: "Updated: " } +comments:before { content: "Comments page: " } + +tagline:before { content: "Tagline: " } +issued:before { content: "Issued: " } +created:before { content: "Created: " } +modified:before { content: "Modified: " } +updated:before { content: "Updated: " } +summary:before { content: "Summary: " } +comment:before { content: "Comment: " } + +pubDate:before, link:before, author:before, description:before, +language:before, generator:before, lastBuildDate:before, comments:before, +tagline:before, issued:before, created:before, modified:before, +summary:before, comment:before, creator:before, id:before, updated:before { + color: #224; + font-weight: bold; +} + +feed link:after { + content: attr(href); +} diff --git a/skins/common/images/Arr_.png b/skins/common/images/Arr_.png new file mode 100644 index 00000000..83fafc74 Binary files /dev/null and b/skins/common/images/Arr_.png differ diff --git a/skins/common/images/Arr_d.png b/skins/common/images/Arr_d.png new file mode 100644 index 00000000..421dd101 Binary files /dev/null and b/skins/common/images/Arr_d.png differ diff --git a/skins/common/images/Arr_l.png b/skins/common/images/Arr_l.png new file mode 100644 index 00000000..9db66232 Binary files /dev/null and b/skins/common/images/Arr_l.png differ diff --git a/skins/common/images/Arr_r.png b/skins/common/images/Arr_r.png new file mode 100644 index 00000000..d1b161b0 Binary files /dev/null and b/skins/common/images/Arr_r.png differ diff --git a/skins/common/images/Arr_r.xcf b/skins/common/images/Arr_r.xcf new file mode 100644 index 00000000..83b7b2a8 Binary files /dev/null and b/skins/common/images/Arr_r.xcf differ diff --git a/skins/common/images/Zoom_sans.gif b/skins/common/images/Zoom_sans.gif new file mode 100644 index 00000000..6ba0adca Binary files /dev/null and b/skins/common/images/Zoom_sans.gif differ diff --git a/skins/common/images/bullet.gif b/skins/common/images/bullet.gif new file mode 100644 index 00000000..b43de48a Binary files /dev/null and b/skins/common/images/bullet.gif differ diff --git a/skins/common/images/button_bold.png b/skins/common/images/button_bold.png new file mode 100644 index 00000000..5e52deed Binary files /dev/null and b/skins/common/images/button_bold.png differ diff --git a/skins/common/images/button_extlink.png b/skins/common/images/button_extlink.png new file mode 100644 index 00000000..12ec5f2e Binary files /dev/null and b/skins/common/images/button_extlink.png differ diff --git a/skins/common/images/button_headline.png b/skins/common/images/button_headline.png new file mode 100644 index 00000000..aa0ca540 Binary files /dev/null and b/skins/common/images/button_headline.png differ diff --git a/skins/common/images/button_hr.png b/skins/common/images/button_hr.png new file mode 100644 index 00000000..19cfc480 Binary files /dev/null and b/skins/common/images/button_hr.png differ diff --git a/skins/common/images/button_image.png b/skins/common/images/button_image.png new file mode 100644 index 00000000..6c3c3308 Binary files /dev/null and b/skins/common/images/button_image.png differ diff --git a/skins/common/images/button_italic.png b/skins/common/images/button_italic.png new file mode 100644 index 00000000..96b1fb9f Binary files /dev/null and b/skins/common/images/button_italic.png differ diff --git a/skins/common/images/button_link.png b/skins/common/images/button_link.png new file mode 100644 index 00000000..e9507b97 Binary files /dev/null and b/skins/common/images/button_link.png differ diff --git a/skins/common/images/button_math.png b/skins/common/images/button_math.png new file mode 100644 index 00000000..e91fb613 Binary files /dev/null and b/skins/common/images/button_math.png differ diff --git a/skins/common/images/button_media.png b/skins/common/images/button_media.png new file mode 100644 index 00000000..02070790 Binary files /dev/null and b/skins/common/images/button_media.png differ diff --git a/skins/common/images/button_nowiki.png b/skins/common/images/button_nowiki.png new file mode 100644 index 00000000..7b2d5392 Binary files /dev/null and b/skins/common/images/button_nowiki.png differ diff --git a/skins/common/images/button_sig.png b/skins/common/images/button_sig.png new file mode 100644 index 00000000..ef3a46d2 Binary files /dev/null and b/skins/common/images/button_sig.png differ diff --git a/skins/common/images/button_template.png b/skins/common/images/button_template.png new file mode 100644 index 00000000..8e9cc267 Binary files /dev/null and b/skins/common/images/button_template.png differ diff --git a/skins/common/images/fileicon.xcf b/skins/common/images/fileicon.xcf new file mode 100644 index 00000000..85a0a610 Binary files /dev/null and b/skins/common/images/fileicon.xcf differ diff --git a/skins/common/images/gnu-fdl.png b/skins/common/images/gnu-fdl.png new file mode 100644 index 00000000..1371aba8 Binary files /dev/null and b/skins/common/images/gnu-fdl.png differ diff --git a/skins/common/images/gnu-fdl.xcf b/skins/common/images/gnu-fdl.xcf new file mode 100644 index 00000000..364440dd Binary files /dev/null and b/skins/common/images/gnu-fdl.xcf differ diff --git a/skins/common/images/icons/COPYING b/skins/common/images/icons/COPYING new file mode 100644 index 00000000..136530a9 --- /dev/null +++ b/skins/common/images/icons/COPYING @@ -0,0 +1,43 @@ +The icons used here are derived from the crystalsvg icons in the the +pics/crystalsvg/ directory of kdelibs-3.4.0 they were modified on 2005-05-15 +by Ævar Arnfjörð Bjarmason for use in MediaWiki. + +What follows is the contents of the LICENSE.crystalsvg file found in the pics/ +subdirectory of kdelibs-3.4.0: + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +This copyright and license notice covers all CrystalSVG images. +Note the license notice contains an add-on. +******************************************************************************** +KDE Crystal theme icons. +Copyright (C) 2002 and following years KDE Artists +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation, +version 2.1 of the License. +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + **** NOTE THIS ADD-ON **** +The GNU Lesser General Public License or LGPL is written for software libraries +in the first place. We expressly want the LGPL to be valid for this artwork +library too. +KDE Crystal theme icons is a special kind of software library, it is an +artwork library, it's elements can be used in a Graphical User Interface, or +GUI. +Source code, for this library means: + - for vectors svg; + - for pixels, if applicable, the multi-layered formats xcf or psd, or +otherwise png. +The LGPL in some sections obliges you to make the files carry +notices. With images this is in some cases impossible or hardly useful. +With this library a notice is placed at a prominent place in the directory +containing the elements. You may follow this practice. +The exception in section 6 of the GNU Lesser General Public License covers +the use of elements of this art library in a GUI. +kde-artists [at] kde.org +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ diff --git a/skins/common/images/icons/fileicon-c.png b/skins/common/images/icons/fileicon-c.png new file mode 100644 index 00000000..6da6916e Binary files /dev/null and b/skins/common/images/icons/fileicon-c.png differ diff --git a/skins/common/images/icons/fileicon-cpp.png b/skins/common/images/icons/fileicon-cpp.png new file mode 100644 index 00000000..ba54e77f Binary files /dev/null and b/skins/common/images/icons/fileicon-cpp.png differ diff --git a/skins/common/images/icons/fileicon-deb.png b/skins/common/images/icons/fileicon-deb.png new file mode 100644 index 00000000..ac1e2cf9 Binary files /dev/null and b/skins/common/images/icons/fileicon-deb.png differ diff --git a/skins/common/images/icons/fileicon-djvu.png b/skins/common/images/icons/fileicon-djvu.png new file mode 100644 index 00000000..2e1e2c9b Binary files /dev/null and b/skins/common/images/icons/fileicon-djvu.png differ diff --git a/skins/common/images/icons/fileicon-djvu.xcf b/skins/common/images/icons/fileicon-djvu.xcf new file mode 100644 index 00000000..8043dcdb Binary files /dev/null and b/skins/common/images/icons/fileicon-djvu.xcf differ diff --git a/skins/common/images/icons/fileicon-dvi.png b/skins/common/images/icons/fileicon-dvi.png new file mode 100644 index 00000000..6c7aa1a1 Binary files /dev/null and b/skins/common/images/icons/fileicon-dvi.png differ diff --git a/skins/common/images/icons/fileicon-exe.png b/skins/common/images/icons/fileicon-exe.png new file mode 100644 index 00000000..6ccf1821 Binary files /dev/null and b/skins/common/images/icons/fileicon-exe.png differ diff --git a/skins/common/images/icons/fileicon-h.png b/skins/common/images/icons/fileicon-h.png new file mode 100644 index 00000000..d091afff Binary files /dev/null and b/skins/common/images/icons/fileicon-h.png differ diff --git a/skins/common/images/icons/fileicon-html.png b/skins/common/images/icons/fileicon-html.png new file mode 100644 index 00000000..7c479525 Binary files /dev/null and b/skins/common/images/icons/fileicon-html.png differ diff --git a/skins/common/images/icons/fileicon-iso.png b/skins/common/images/icons/fileicon-iso.png new file mode 100644 index 00000000..b4192e9e Binary files /dev/null and b/skins/common/images/icons/fileicon-iso.png differ diff --git a/skins/common/images/icons/fileicon-java.png b/skins/common/images/icons/fileicon-java.png new file mode 100644 index 00000000..757c6aec Binary files /dev/null and b/skins/common/images/icons/fileicon-java.png differ diff --git a/skins/common/images/icons/fileicon-mid.png b/skins/common/images/icons/fileicon-mid.png new file mode 100644 index 00000000..aa826070 Binary files /dev/null and b/skins/common/images/icons/fileicon-mid.png differ diff --git a/skins/common/images/icons/fileicon-mov.png b/skins/common/images/icons/fileicon-mov.png new file mode 100644 index 00000000..2c0da0d8 Binary files /dev/null and b/skins/common/images/icons/fileicon-mov.png differ diff --git a/skins/common/images/icons/fileicon-o.png b/skins/common/images/icons/fileicon-o.png new file mode 100644 index 00000000..bf051cb8 Binary files /dev/null and b/skins/common/images/icons/fileicon-o.png differ diff --git a/skins/common/images/icons/fileicon-ogg.png b/skins/common/images/icons/fileicon-ogg.png new file mode 100644 index 00000000..b8ba7714 Binary files /dev/null and b/skins/common/images/icons/fileicon-ogg.png differ diff --git a/skins/common/images/icons/fileicon-ogg.xcf b/skins/common/images/icons/fileicon-ogg.xcf new file mode 100644 index 00000000..a91024bf Binary files /dev/null and b/skins/common/images/icons/fileicon-ogg.xcf differ diff --git a/skins/common/images/icons/fileicon-pdf.png b/skins/common/images/icons/fileicon-pdf.png new file mode 100644 index 00000000..ee39b6c3 Binary files /dev/null and b/skins/common/images/icons/fileicon-pdf.png differ diff --git a/skins/common/images/icons/fileicon-ps.png b/skins/common/images/icons/fileicon-ps.png new file mode 100644 index 00000000..f1f504d7 Binary files /dev/null and b/skins/common/images/icons/fileicon-ps.png differ diff --git a/skins/common/images/icons/fileicon-rm.png b/skins/common/images/icons/fileicon-rm.png new file mode 100644 index 00000000..5ba04e5a Binary files /dev/null and b/skins/common/images/icons/fileicon-rm.png differ diff --git a/skins/common/images/icons/fileicon-rpm.png b/skins/common/images/icons/fileicon-rpm.png new file mode 100644 index 00000000..0f1c3b87 Binary files /dev/null and b/skins/common/images/icons/fileicon-rpm.png differ diff --git a/skins/common/images/icons/fileicon-svg.png b/skins/common/images/icons/fileicon-svg.png new file mode 100644 index 00000000..8dc6d30f Binary files /dev/null and b/skins/common/images/icons/fileicon-svg.png differ diff --git a/skins/common/images/icons/fileicon-tar.png b/skins/common/images/icons/fileicon-tar.png new file mode 100644 index 00000000..a4b15d7f Binary files /dev/null and b/skins/common/images/icons/fileicon-tar.png differ diff --git a/skins/common/images/icons/fileicon-tex.png b/skins/common/images/icons/fileicon-tex.png new file mode 100644 index 00000000..ee8c0226 Binary files /dev/null and b/skins/common/images/icons/fileicon-tex.png differ diff --git a/skins/common/images/icons/fileicon-ttf.png b/skins/common/images/icons/fileicon-ttf.png new file mode 100644 index 00000000..1b53066e Binary files /dev/null and b/skins/common/images/icons/fileicon-ttf.png differ diff --git a/skins/common/images/icons/fileicon-txt.png b/skins/common/images/icons/fileicon-txt.png new file mode 100644 index 00000000..76e98909 Binary files /dev/null and b/skins/common/images/icons/fileicon-txt.png differ diff --git a/skins/common/images/icons/fileicon.png b/skins/common/images/icons/fileicon.png new file mode 100644 index 00000000..5675170b Binary files /dev/null and b/skins/common/images/icons/fileicon.png differ diff --git a/skins/common/images/link_icon.gif b/skins/common/images/link_icon.gif new file mode 100644 index 00000000..815ccb1b Binary files /dev/null and b/skins/common/images/link_icon.gif differ diff --git a/skins/common/images/magnify-clip.png b/skins/common/images/magnify-clip.png new file mode 100644 index 00000000..50abcb68 Binary files /dev/null and b/skins/common/images/magnify-clip.png differ diff --git a/skins/common/images/mediawiki-small.xcf b/skins/common/images/mediawiki-small.xcf new file mode 100644 index 00000000..75355171 Binary files /dev/null and b/skins/common/images/mediawiki-small.xcf differ diff --git a/skins/common/images/mediawiki.png b/skins/common/images/mediawiki.png new file mode 100644 index 00000000..69fce988 Binary files /dev/null and b/skins/common/images/mediawiki.png differ diff --git a/skins/common/images/poweredby_mediawiki_88x31.png b/skins/common/images/poweredby_mediawiki_88x31.png new file mode 100644 index 00000000..ce1765d1 Binary files /dev/null and b/skins/common/images/poweredby_mediawiki_88x31.png differ diff --git a/skins/common/images/redirectltr.png b/skins/common/images/redirectltr.png new file mode 100644 index 00000000..9110ca13 Binary files /dev/null and b/skins/common/images/redirectltr.png differ diff --git a/skins/common/images/redirectrtl.png b/skins/common/images/redirectrtl.png new file mode 100644 index 00000000..60fd59d3 Binary files /dev/null and b/skins/common/images/redirectrtl.png differ diff --git a/skins/common/images/wiki.png b/skins/common/images/wiki.png new file mode 100644 index 00000000..49913f6a Binary files /dev/null and b/skins/common/images/wiki.png differ diff --git a/skins/common/metadata.js b/skins/common/metadata.js new file mode 100644 index 00000000..9f7a8e01 --- /dev/null +++ b/skins/common/metadata.js @@ -0,0 +1,49 @@ +// Exif metadata display for MediaWiki file uploads +// +// Add an expand/collapse link and collapse by default if set to +// (with JS disabled, user will see all items) +// +// attachMetadataToggle("mw_metadata", "More...", "Fewer..."); + + +function attachMetadataToggle(tableId, showText, hideText) { + if (document.createTextNode) { + var box = document.getElementById(tableId); + if (!box) + return false; + + var tbody = box.getElementsByTagName('tbody')[0]; + + var row = document.createElement('tr'); + + var col = document.createElement('td'); + col.colSpan = 2; + + var link = document.createElement('a'); + link.href = '#'; + + link.onclick = function() { + if (box.className == 'mw_metadata collapsed') { + changeText(link, hideText); + box.className = 'mw_metadata expanded'; + } else { + changeText(link, showText); + box.className = 'mw_metadata collapsed'; + } + return false; + } + + var text = document.createTextNode(hideText); + + link.appendChild(text); + col.appendChild(link); + row.appendChild(col); + tbody.appendChild(row); + + // And collapse! + link.onclick(); + + return true; + } + return false; +} diff --git a/skins/common/nostalgia.css b/skins/common/nostalgia.css new file mode 100644 index 00000000..cc427bc9 --- /dev/null +++ b/skins/common/nostalgia.css @@ -0,0 +1,18 @@ +@import url("common.css?1"); +body { + /* Background color is set separately on page type */ + color: black; +} +#specialform { display: inline; } +#powersearch { + background: #DDEEFF; border-style: solid; border-width: 1px; padding: 2px; +} +a.interwiki, a.external { color: #3366BB; } +a.printable { text-decoration: underline; } +a.stub { color:#772233; text-decoration:none; } +h1.pagetitle { padding-top: 0; margin-top: 0; padding-bottom: 0; margin-bottom: 0; } +h2, h3, h4, h5, h6 { margin-bottom: 0; } +textarea { overflow: auto; } +p.subtitle { padding-top: 0; margin-top: 0; } + + diff --git a/skins/common/preview.js b/skins/common/preview.js new file mode 100644 index 00000000..b117e85b --- /dev/null +++ b/skins/common/preview.js @@ -0,0 +1,53 @@ +// Live preview + +function openXMLHttpRequest() { + if( window.XMLHttpRequest ) { + return new XMLHttpRequest(); + } else if( window.ActiveXObject && navigator.platform != 'MacPPC' ) { + // IE/Mac has an ActiveXObject but it doesn't work. + return new ActiveXObject("Microsoft.XMLHTTP"); + } else { + return null; + } +} + +/** + * Returns true if could open the request, + * false otherwise (eg no browser support). + */ +function livePreview(target, text, postUrl) { + prevTarget = target; + if( !target ) { + window.alert('Live preview failed!\nTry normal preview.'); + var fallback = document.getElementById('wpPreview'); + if ( fallback ) { fallback.style.display = 'inline'; } + } + prevReq = openXMLHttpRequest(); + if( !prevReq ) return false; + + prevReq.onreadystatechange = updatePreviewText; + prevReq.open("POST", postUrl, true); + + var postData = 'wpTextbox1=' + encodeURIComponent(text); + prevReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); + prevReq.send(postData); + return true; +} + +function updatePreviewText() { + if( prevReq.readyState != 4 ) { + return; + } + if( prevReq.status != 200 ) { + window.alert('Failed to connect: ' + prevReq.status + + ' "' + prevReq.statusText + '"'); + var fallback = document.getElementById('wpPreview'); + if ( fallback ) { fallback.style.display = 'inline'; } + return; + } + prevTarget.innerHTML = prevReq.responseText; + + /* Hide the active diff if it exists */ + var diff = document.getElementById('wikiDiff'); + if ( diff ) { diff.style.display = 'none'; } +} diff --git a/skins/common/protect.js b/skins/common/protect.js new file mode 100644 index 00000000..a144e5eb --- /dev/null +++ b/skins/common/protect.js @@ -0,0 +1,126 @@ +function protectInitialize(tableId, labelText) { + if (document.createTextNode) { + var box = document.getElementById(tableId); + if (!box) + return false; + + var tbody = box.getElementsByTagName('tbody')[0]; + var row = document.createElement('tr'); + tbody.appendChild(row); + + row.appendChild(document.createElement('td')); + var col2 = document.createElement('td'); + row.appendChild(col2); + + var check = document.createElement('input'); + check.id = "mwProtectUnchained"; + check.type = "checkbox"; + check.onclick = protectChainUpdate; + col2.appendChild(check); + + var label = document.createElement('label'); + label.setAttribute("for", "mwProtectUnchained"); + label.appendChild(document.createTextNode(labelText)); + col2.appendChild(label); + + if (protectAllMatch()) { + check.checked = false; + protectEnable(false); + } else { + check.checked = true; + protectEnable(true); + } + + return true; + } + return false; +} + +function protectLevelsUpdate(source) { + if (!protectUnchained()) { + protectUpdateAll(source.selectedIndex); + } +} + +function protectChainUpdate() { + if (protectUnchained()) { + protectEnable(true); + } else { + protectChain(); + protectEnable(false); + } +} + + +function protectAllMatch() { + var values = new Array(); + protectForSelectors(function(set) { + values[values.length] = set.selectedIndex; + }); + for (var i = 1; i < values.length; i++) { + if (values[i] != values[0]) { + return false; + } + } + return true; +} + +function protectUnchained() { + var unchain = document.getElementById("mwProtectUnchained"); + if (!unchain) { + alert("This shouldn't happen"); + return false; + } + return unchain.checked; +} + +function protectChain() { + // Find the highest-protected action and bump them all to this level + var maxIndex = -1; + protectForSelectors(function(set) { + if (set.selectedIndex > maxIndex) { + maxIndex = set.selectedIndex; + } + }); + protectUpdateAll(maxIndex); +} + +function protectUpdateAll(index) { + protectForSelectors(function(set) { + if (set.selectedIndex != index) { + set.selectedIndex = index; + } + }); +} + +function protectForSelectors(func) { + var selectors = protectSelectors(); + for (var i = 0; i < selectors.length; i++) { + func(selectors[i]); + } +} + +function protectSelectors() { + var all = document.getElementsByTagName("select"); + var ours = new Array(); + for (var i = 0; i < all.length; i++) { + var set = all[i]; + if (set.id.match(/^mwProtect-level-/)) { + ours[ours.length] = set; + } + } + return ours; +} + +function protectEnable(val) { + // fixme + var first = true; + protectForSelectors(function(set) { + if (first) { + first = false; + } else { + set.disabled = !val; + set.style.visible = val ? "visible" : "hidden"; + } + }); +} diff --git a/skins/common/quickbar-right.css b/skins/common/quickbar-right.css new file mode 100644 index 00000000..43bd427a --- /dev/null +++ b/skins/common/quickbar-right.css @@ -0,0 +1 @@ +#quickbar { position: fixed; right: 0px; top: 0px; padding: 4px;} diff --git a/skins/common/quickbar.css b/skins/common/quickbar.css new file mode 100644 index 00000000..d7930c2a --- /dev/null +++ b/skins/common/quickbar.css @@ -0,0 +1 @@ +#quickbar { position: fixed; padding: 4px; } diff --git a/skins/common/sticky.js b/skins/common/sticky.js new file mode 100644 index 00000000..cf248c3e --- /dev/null +++ b/skins/common/sticky.js @@ -0,0 +1,124 @@ +// Make a layer that stays in the same place on screen when scrolling the browser window. +// Version 1.2 +// See http://www.mark.ac/help for browser support. + +var mySticky; +var theLayer; + +// Setup variables for sliding. +// lastY and staticYOffset should match your CSS top definition. + +lastY=10;YOffset=0;staticYOffset=10;refreshMS=25; + + +// Setup function that runs when the page loads. + function setup(eID){ + bw=new checkBrowser; + if(bw.ns4||bw.opera){MM_reloadPage(true);} + var noFix=bw.ie4||bw.ns4||(bw.macie50)?true:false; + if (window.attachEvent){fix_bind()} + else if(noFix){ + if(bw.ns6){document.getElementById(eID).style.position="absolute";} + if(bw.macie50){document.getElementById(eID).style.position="absolute";document.getElementById(eID).style.backgroundColor="#ccffcc";} + if(bw.ns6&&YOffset==0){YOffset=-15} + mySticky=new makeLayerObj(eID); + layerSlide(eID)} + else{ + mySticky=new makeLayerObj(eID); + mySticky.css.position="fixed";} + + if(!mySticky){mySticky=new makeLayerObj(eID);} + //mySticky.css.visibility="visible"; + } + + +// ------------------------- +// emulate css 'position: fixed' in IE5+ Win +// code by aclover@1value.com + fix_elements = new Array(); + + function fix_event(){ + var i; + for (i=0; i < fix_elements.length; i++){ + fix_elements[i].style.left = parseInt(fix_elements[i].fix_left)+document.getElementsByTagName('html')[0].scrollLeft+document.getElementsByTagName('body')[0].scrollLeft+'px'; + fix_elements[i].style.top = parseInt(fix_elements[i].fix_top)+document.getElementsByTagName('html')[0].scrollTop+document.getElementsByTagName('body')[0].scrollTop+'px'; + } + } + + function fix_bind(){ + var i; + for (i=0; i < document.all.length; i++){ + if (document.all[i].currentStyle.position=='fixed'){ + document.all[i].fix_left = document.all[i].currentStyle.left; + document.all[i].fix_top = document.all[i].currentStyle.top; + document.all[i].style.position = 'absolute'; + fix_elements[fix_elements.length] = document.all[i]; + window.attachEvent('onscroll', fix_event); + window.attachEvent('onresize', fix_event); + } + } + } +// ------------------------- + + +// ------------------------- +// DHTML menu sliding. Requires checkBrowser() +// Based on source at http://www.simplythebest.net/ + function layerSlide(layerID) { + if(bw.dhtml){ + if(!mySticky){mySticky=new makeLayerObj(layerID);} + if (bw.ns) {winY = window.pageYOffset;} + else if (bw.ie) {winY = document.body.scrollTop;} + if (bw.ie||bw.ns) { + if (winY!=lastY&&winY>YOffset-staticYOffset){smooth = .3 * (winY - lastY - YOffset + staticYOffset);} + else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset){smooth = .3 * (winY - lastY - (YOffset-(YOffset-winY)));} + else{smooth=0} + if(smooth > 0) {smooth = Math.ceil(smooth);} + else{smooth = Math.floor(smooth);} + if (bw.ie){mySticky.css.pixelTop+=smooth;} + else if (bw.ns){mySticky.css.top=parseInt(mySticky.css.top)+smooth;} + lastY = lastY+smooth; + top.window.status=new Date() + setTimeout('layerSlide("'+layerID+'")', refreshMS)}}} +// ------------------------- + +// Netscape 4.x browser resize fix + function MM_reloadPage(init) { + if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { + document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; top.onresize=MM_reloadPage; }} + else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) {location.reload();}} + +// Create browser-independent layer and browser objects + function makeLayerObj(eID){ + if(document.getElementById){this.css=document.getElementById(eID).style} + else if(document.layers){this.css=document.layers[eID];} + else if(document.all){this.css=document.all[eID].style;} + return this + } + + function checkBrowser(){ + this.ver=navigator.appVersion; + this.name=navigator.appName; + this.mac=(navigator.platform.toLowerCase().indexOf('mac')>-1)?true:false; + this.opera=(navigator.userAgent.toLowerCase().indexOf('opera')>-1)?true:false; + this.dom=document.getElementById?true:false; + this.ns=(this.name=='Netscape'); + this.ie4=(document.all && !this.dom)?true:false; + this.ie=(this.name =='Microsoft Internet Explorer'&&!this.opera)?true:false; + this.ie5=(this.ie && (navigator.userAgent.indexOf("MSIE 5")!=-1))?true:false; + this.macie50=(this.mac&&this.ie5&&(navigator.userAgent.indexOf("MSIE 5.0")!=-1))?true:false + this.ns4=(this.ns && parseInt(this.ver) == 4)?true:false; + this.ns6=((this.name=="Netscape")&&(parseInt(this.ver)==5))?true:false + this.standards=document.getElementById?true:false; + this.dhtml=this.standards||this.ie4||this.ns4; + } + + function showMe(eID){ + myFloater=new makeLayerObj(eID) + myFloater.css.visibility="visible"; + } + + function hideMe(eID){ + myFloater=new makeLayerObj(eID) + myFloater.css.visibility="hidden"; + } \ No newline at end of file diff --git a/skins/common/upload.js b/skins/common/upload.js new file mode 100644 index 00000000..160fbf27 --- /dev/null +++ b/skins/common/upload.js @@ -0,0 +1,23 @@ +function licenseSelectorCheck() { + var selector = document.getElementById("wpLicense"); + if (selector.selectedIndex > 0 && + selector.options[selector.selectedIndex].value == "" ) { + // Browser is broken, doesn't respect disabled attribute on