Commit graph

89 commits

Author SHA1 Message Date
Platonides
95f1076f20 Remove unused globals 2011-03-06 23:28:32 +00:00
Sam Reed
d677412428 Improve method documentation
Few bits of fixup
2011-02-19 21:16:47 +00:00
Platonides
28d0bb9ae8 Kill calls to tooltip() and tooltipAndAccesskeyAttribs() from MonoBook and Modern 2011-02-10 19:46:36 +00:00
Derk-Jan Hartman
3de65b1f2c Port Modern to resourceloader
Refs bug 26649
2011-01-22 22:46:33 +00:00
Daniel Friesen
3332443230 Fix modern to use the tooltiponly attribute. 2011-01-01 16:44:58 +00:00
Daniel Friesen
cf228c10de Convert the common bottomscripts, reporttime, and debug boilerplate into a printTrail() helper method.
Note that in vector this does move the fixalpha stuff above bottomscripts while it was after it before, theoretically though this shouldn't cause any trouble.
2011-01-01 16:41:45 +00:00
Daniel Friesen
af5e002d25 Commit getPersonalTools to allow personal bar generation to be simplified. 2010-12-27 12:23:06 +00:00
Daniel Friesen
6f04378c31 Commit getFooterLinks and getFooterIcons helpers to abstract the common code used to trim footerlinks down to only valid items, flatten it if needed, trim non-image icons out of footericons, and remove the copyright icon if needed. 2010-12-07 19:45:09 +00:00
Niklas Laxström
2ef6a1a46e Follow-up r77763, get rid of boolean param and whitespace fixes 2010-12-05 10:41:58 +00:00
Daniel Friesen
5a8c63847f Take the footer icon html building common to all 3 skins using r77741 $wgFooterIcons and turn it into a common makeFooterIcon method they can share.
Also fix the location of the noprint class meant to be on footer-icons in vector.
2010-12-05 04:44:28 +00:00
Daniel Friesen
3e7309606d Implement $wgFooterIcons to replace copyrightico and poweredbyico with a flexible list of icons that can be customized by extensions, hosting, farms, wikimedia, etc...
Implementations for MonoBook, Vector, and Modern. Modern implementation uses text instead of icons as desired.
2010-12-04 20:55:23 +00:00
Raimond Spekking
ac7fbc3bed Follow-up r76434, r76570,r76668: Pass skin object per CR 2010-11-14 19:45:55 +00:00
Raimond Spekking
49a678e29e Follow-up r76434, r76570: Add skinname per CR 2010-11-14 19:28:32 +00:00
Raimond Spekking
a1cd029838 Follow-up r76434: Run hook for Modern skin too per suggestion of Jack Phoenix 2010-11-12 12:16:48 +00:00
Sam Reed
59ed4015b1 Remove unused globals 2010-07-24 20:12:33 +00:00
Chad Horohoe
e29863d332 Make ModernTemplate extend MonoBookTemplate so we can cut down at least /some/ of the line-by-line duplication. Could use some more work though. 2010-03-17 12:51:48 +00:00
Aryeh Gregor
e2087f07ca Avoid silly markup like <ul > 2010-02-11 17:25:03 +00:00
Aryeh Gregor
010c456825 Merge all skins' output of opening <body> tag
This fixes a few minor discrepancies, like Vector outputting dir=""
(redundant to the one on <html>), and non-Monobook-based skins omitting
the capitalize-all-nouns class (!).  This adds Html::openElement() and
refactors Html::rawElement() accordingly, so I checked that all parser
tests still pass.

I wasn't able to figure out if I broke some feature of right-floating
quickbars in the Standard skin, because I wasn't able to figure out what
the feature was in the first place.  Hopefully either it works, or
nobody cares, or someone else will figure out what it was supposed to
do.  (This is the stuff in getBodyOptions() in Standard.php I deleted;
I'm not sure the addition to sticky.js does what I want.)
2010-01-15 01:16:52 +00:00
Aryeh Gregor
6f77ad2c24 Remove body_onload, was always set false anyway 2010-01-15 00:12:39 +00:00
Aryeh Gregor
b6da3ab031 Merge IEFixes.js into wikibits.js
Not actually tested, but it should theoretically work fine.  This
previously wasn't getting loaded for skins other than Monobook, Modern,
and Vector, and each one had separate code to load it.

I also removed <meta http-equiv="imagetoolbar" content="no" />.  This
was added by Gabriel Wicke without explanation as part of the original
davinci.pt back in r2786, in March 2004.  As far as I can tell, it
disables some minor feature of IE6 for some reason.  I assume it can be
removed completely at this point.  If not, it should be readded without
the conditional comment, which is probably unnecessary.
2010-01-12 23:36:02 +00:00
Mark A. Hershberger
df100abc94 Follow up r60798 & r60785
Re-introduce specialpageattributes and add an explanation in the comments why it should be different than userlangattributes.  Also add comments explaining exactly what is going with the special attributes and why.  Clean up warnings.
2010-01-08 03:34:04 +00:00
Trevor Parscal
41dbba42fb In r60786 mah added 'specialpageattributes' to the skin, only in the case of the title being a special page, and filled it with the same information as 'userlangattributes'. Then added some uses of 'specialpageattributes' to all three SkinTemplate based skins, which were using that data on all pages - resulting in an error. This corrects this problem. 2010-01-07 18:59:07 +00:00
Mark A. Hershberger
add6090790 Make LTR wgLang do the right thing on RTL wgContLang wikis. See bug 6100 and dupes like bug 4047, bug 19228, bug 9137, etc. 2010-01-07 09:32:09 +00:00
Alexandre Emsenhuber
0b5389d98d * (bug 20631) Preview of personal JavaScript and CSS pages now works again
* introduced SkinTemplate::$useHeadElement as switch for backward compatibility for extension skins using the old way of generating the <head> element:
** false (default): no change from previous version
** true: <head> specific items set in SkinTemplate::outputPage() are no longer generated (avoid double execution of some functions) and the result of OutputPage::headElement() is stored in the 'headelement' item
* updated all core skin to use this new method, some extensions using MonoBookTemplate but not extending SkinMonoBook (or for other core skins) will need to set $useHeadElement to true to work properly though
* Made Skin::userCanPreview() public since it's needed in OutputPage::getHeadScripts()
* Pass the Skin object from OutputPage::headElement() to OutputPage::getHeadScripts() rather than getting it from $wgUser
2009-09-22 16:52:40 +00:00
Chad Horohoe
ae24133db9 Minor spacing tweaks, etc to make it even more like Monobook. Further proving that there is Entirely Too Much Duplication Here! 2009-09-01 01:11:56 +00:00
Nimish Gautam
e8674067bf Removed extra <div> around Search, fixes bug 17777 2009-08-12 23:41:04 +00:00
Aryeh Gregor
006b47f891 Fix fatal from r53504
Apparently a) var $foo = $bar = 'baz' doesn't work in PHP, and b) I
should try viewing pages with action=purge to make sure there aren't
actually any fatals.
2009-07-20 00:52:14 +00:00
Aryeh Gregor
0df8b0afcd Use member variable defaults for SkinTemplate 2009-07-20 00:33:23 +00:00
Aryeh Gregor
7dccaf159b Finish cross-skin unification of <head>
Vector and Modern are now using $wgOut->headElement(), finishing the
work that r52864 started.  -80 lines net.
2009-07-10 02:13:02 +00:00
Siebrand Mazeland
9bea1536e2 (bug 14866) 'recentchangeslinked' should be split into individual messages
* Copy 'recentchangeslinked' to 'recentchangeslinked-feed' and 'recentchangeslinked-toolbox' to allow more fine grained customisation of the UI.
2009-06-03 23:56:42 +00:00
Remember the dot
e4d211703c (bug 12998) Allow <sup>, <sub>, etc. in DISPLAYTITLE 2009-04-09 05:15:43 +00:00
Aaron Schulz
c52342f0a4 (bug 16823) 'Sidebar search form should not use Special:Search view URL as target' 2009-02-25 00:13:04 +00:00
Danny B
675aba0676 * adding type="application/<feedtype>+xml" to links pointing to feeds 2009-02-05 23:36:26 +00:00
Danny B
e531ad5e17 * adding rel="alternate" to links pointing to printable version or feed 2009-02-05 22:46:26 +00:00
Danny B
08459136df * (bug 3043) - RSS feed link should have silly orange icon
** improved r46058, now works in all skins
2009-01-23 03:39:11 +00:00
Danny B
36639313aa * (bug 3043) - RSS feed link should have silly orange icon
** Monobook & Modern skins implementation
2009-01-23 02:09:48 +00:00
Danny B
15f6e36ffb * Added optional alternative Search form look - Go button & Advanced search link instead of Go button & Search button 2009-01-22 23:31:31 +00:00
Aaron Schulz
500fddfdfa Revert r45490 per http://www.mediawiki.org/wiki/Special:Code/MediaWiki/45490 2009-01-20 23:04:56 +00:00
Raimond Spekking
802bdecbeb self revert r45512, r45513 and r45515 for now
Per Brions review on r45512. I need a bit more time to fix it.
2009-01-17 08:56:27 +00:00
Raimond Spekking
35383a74e3 * Extend language::getLanguageName to return localized language names if available
* Therefore added a hook to catch them from an extension (successfully tested with the cldr extension (see next commit))
* Add a title tag to the interlanguage box entries. Only added when the title differ from the shwon text.
No change of behaviour until an extension is enabled.
2009-01-07 19:19:25 +00:00
Danny B
8125067c8b * Added "Advanced search" link to the search form 2009-01-07 04:56:08 +00:00
Brion Vibber
533da56175 Revert r45432 "* Added "Advanced search" link to the search form"
+		  . '<a href="' . wfMsg ('searchaction') . '" rel="search">' . wfMsg ('powersearch-legend') . '</a></form>';
The crap is this?
2009-01-07 03:37:01 +00:00
Danny B
de116119f2 * Added "Advanced search" link to the search form 2009-01-06 02:50:24 +00:00
Brion Vibber
880d68b28c Pull back r45181 "(Bug 12998) Weaken DISPLAYTITLE restictions (patch by rememberthedot@gmail.com)" for now.
Escaping issues per comment http://www.mediawiki.org/wiki/Special:Code/MediaWiki/45181#c1046
2008-12-31 16:49:38 +00:00
Aaron Schulz
d0aeaa55ff (Bug 12998) Weaken DISPLAYTITLE restictions (patch by rememberthedot@gmail.com) 2008-12-30 12:22:15 +00:00
Aryeh Gregor
69d11310ff Improve ugly interface for Sanitizer::escapeId()
Calling it with no extra arguments will now assume that you're escaping
a whole id, not an id fragment, which is safer.  Also, instead of ugly
bitfield-based options, I've changed the options to use an array of
strings.  I fixed all callers in trunk.  Out-of-tree callers that were
using Sanitizer::NONE will get correct behavior, while those that were
calling it with no arguments will get slightly changed behavior (an x
will be prepended).  I think this is harmless enough that we can skip
back-compat cruft here.

This should cause no visible changes.  No parser test regressions.
2008-12-30 00:22:14 +00:00
Brion Vibber
95211ac850 Revert r44271 "(bug 12998) Weaken DISPLAYTITLE restictions (patch by 'rememberthedot@gmail.com')"
Behavior seems a bit hard to predict, as far as what's going to go in the header and what in the browser window etc. Pulling it back for further testing and discussion.
2008-12-10 23:21:28 +00:00
Aaron Schulz
af10d34286 (bug 12998) Weaken DISPLAYTITLE restictions (patch by 'rememberthedot@gmail.com') 2008-12-06 18:00:17 +00:00
Aaron Schulz
c3374eb880 (bug 15695) Define 'mw-js-message' to make jsMsg() work in modern skin 2008-11-28 18:41:25 +00:00
Brion Vibber
00c399a1b0 Revert r42799, r42800 "(bug 1999) Add editable footer message, via [[MediaWiki:Footermessage]]"
Full wiki parsing of messages is slow, thus not done on every page view on principle (eg sitenotice cache).
2008-10-30 04:48:52 +00:00