Commit graph

12 commits

Author SHA1 Message Date
Vivek Ghaisas e0289b7d0c Run phplint and phpcs through "composer test" entry point
Also fixed files to match coding standards. (Checked against
tools/codesniffer v0.2.0)

Bug: T90943
Change-Id: I38dcb7a5389cf6986dc1247b9291bfb1ad3fca7d
2015-06-09 16:37:14 +03:00
paladox 23f2c6a8fc Add skin.json, deprecate and empty PHP entry point
Bug: T87875
Change-Id: I0e298137e27e2a4c7ced5213ea90aef4cd991376
2015-04-30 20:02:32 +01:00
Vivek Ghaisas 2466e550e5 Change styling of clickable link for section headers
The anchors introduced in I562e437e use a small width to account for
skins with narrow gutters. Since Vector has a wider gutter, the anchors
should use the available width.

Change-Id: Ib81a60c789c1225c93bf8d694a02e67a5d131eac
2015-02-23 01:29:21 +05:30
Ricordisamoa 3274f57b10 Use the plain-text GPL and fix 'license-name' to match SPDX conventions
Per Iaa30b8994b8e4034ace61df8202a8b5002093ff2
(commit a512ff8ab49b140e19306ff813caf2186a25f4b5 in MediaWiki core)

For consistency with extensions:
http://spdx.org/licenses/
https://www.mediawiki.org/wiki/Manual:$wgExtensionCredits#license-name

Change-Id: Ide1d6cd7f2e33975acf189a16f8a47743b43fdde
2015-01-29 17:04:29 +01:00
Kunal Mehta 85d097ba4c Simplify construction of SkinVector
* Don't require a Config instance to be passed in the constructor,
  as that breaks skins that extend it.
* Don't manually register the skin with SkinFactory, use $wgValidSkinNames

Change-Id: Ie8539027c17caff35c1fc52a56676763df667fd9
2015-01-18 11:42:39 -08:00
Jackmcbarn a925e9eae1 Restore backwards compatibility
When status indicators were added, backwards compatibility was unnecessarily
broken. This makes things like looking at old non-rebased branches, or running
git bisect, unnecessarily annoying. This change adds an is_callable to restore
backwards compatibility and removes the version check that was added in response
to this break.

Change-Id: Ia05aa73a1b027e667c52f54b6d6fdf6f42bbbadf
2014-12-29 14:16:05 -05:00
Timo Tijhof d60c8d61aa Update jquery.ui Vector theme to 1.9.2
Follows-up 3cb2ccd87863abb8a99ed7d970730ae9e4138fcc.

Various structural changes were made in jQuery UI 1.9, and the Vector
theme was not updated to accommodate for those changes.

There have also been lots of small improvements to the base theme (which
is substituted inside the Vector theme) that were made over the past few
releases that weren't backported (such as Ib099282484b for bug 67243).

And there were two new modules in jQuery UI 1.9 (menu and spinner) that
were lacking Vector theme stylesheets.

Source files generated with http://jqueryui.com/themeroller by
downloading the theme for v1.9.2 (except for jquery.ui.button.css). See
the permalink in jquery.ui.theme.css.

For jquery.ui.button.css, use latest master of jQuery UI 1.11.2-alpha:
* https://github.com/jquery/jquery-ui/blob/8825d93dc8/themes/base/button.css

This is from a newer version of jQuery UI but user MarkTraceur suggested
the file for jquery.ui.button had fixes that were not backported to 1.9
and does not cause problems with Wikimedia Commons.

Documented our patches in a PATCHES file.

Change-Id: I2a31e4a3d969a966935a50392deafd756e2b9fca
2014-12-16 21:17:56 +00:00
Florianschmidtwelzow f48c697425 Use $GLOBALS for globals
Follow up: I10f071253e48e6492949ebbc3c07964c747e885f

Change-Id: Iabcba276de1031041b2d458679b4ebca1931c129
2014-12-16 08:25:19 +01:00
Florianschmidtwelzow b02d0da6a7 Add version check for Vector
Sometimes, someone tries to install git master version of Vector on
a stable version of MediaWiki, which can result in a PHP error, e.g.
because of the missing status indicators in MW 1.24.

Add a version check to Vector.php to check, if a minimum mediawiki version
(actual 1.25) is installed in order to use this version.

Change-Id: I10f071253e48e6492949ebbc3c07964c747e885f
2014-12-15 12:15:34 +01:00
mwjames 8084362545 Add composer.json
To prepare for the usage of `composer require mediawiki/vector-skin`

Change-Id: I7fbdfcf03de9cb26f97687958d590bbb6fe9b38b
2014-08-28 04:06:03 +09:00
Kunal Mehta 83707028e5 Use SkinFactory to register skin, and Config instead of globals
Change-Id: Ic90969e5d71458c880f2b59e160ffedd7a5ac9be
2014-08-13 16:46:22 -07:00
Bartosz Dziewoński d28f09df31 Move Vector skin from core
This is the final step of the process described at
<https://www.mediawiki.org/wiki/Separating_skins_from_core_MediaWiki>.

Corresponding core change: Idfc38503.

Change-Id: I84fcf7ce6385b8323544cafe6912a00f1886d20d
2014-08-07 13:38:34 +02:00