34 Commits (40c46414460258ea3b22f19b0e252dabac751b68)

Author SHA1 Message Date
evad37 b03a2a970f Fix hiding of empty portlets on special pages
* Increased selector specificy so that .emptyPortlet works on portlets within
  #mw-page-header-links
* Moved the `ca-more` dropdown, only shown on mobile, into a new portlet so that
  `p-views` is really empty on Special pages, and has class .emptyPortlet
* Moved languages dropdown, also only shown on mobile, into the new portlet too.
  This way on special pages the two dropdowns are in a single <ul> list with two
  items, rather than two adjacent list each with one item. Also, grouping the
  mobile-only items together means the desktop CSS only has to hide the portlet,
  rather than the individual ietms.

Bug: T182533
Change-Id: I496af1805d200e1fd67b1232e1b3b029b08b82ca
7 years ago
evad37 212357d9b8 Changes to portlets for greater compatibility with other skins
Rename `pagetools` to `views`, `pageactions` to `cactions`, and
`cactions` from last commit back to `pagemisc`.
Make empty portlets available on page but hidden (display:none)
 with css class emptyPortlet, which can be removed by scripts
that add links to portlets (mw.util.addPortletLink already does
this).

Bug: T181362
Change-Id: I56d5b9df529abbdfead26cc46b8fe28935b417c3
7 years ago
evad37 ca0e5e20f9 Change `pagemisc` portlet to `cactions`
Reusing existing portlet ids instead of Timeless-specific ids means
that user scripts and gadgets that work on other skins should also
work with Timeless.

Bug: T181362
Change-Id: I5fa7effc503e08438d2cc23f0142771116301da8
7 years ago
Fomafix 7c170141c6 Let Html::element do the HTML escaping
Change-Id: I83a738babed5cb0a68651e4d67753bce0b72c796
7 years ago
Fomafix 115e7603cf Remove double HTML escaping
Html::element() already does HTML escaping for attributes and content.

Change-Id: Ib62889d55a6ac3fa1aa70964dc87af42ee7e3848
7 years ago
jenkins-bot c8ab7c963a Merge "LanguageConverter support for [[MediaWiki:Timeless-sitetitle]]" 7 years ago
Jack Phoenix 4247f58701 LanguageConverter support for [[MediaWiki:Timeless-sitetitle]]
Bug: T181260
Change-Id: Ife63a96ad9b38345abff508cbdaeaf70a3663ac7
7 years ago
Jack Phoenix 937d5cffcc Pass the amount of hidden categories as a parameter to the hidden-categories i18n message
Bug: T178655
Change-Id: Iade5e2af18529b8ebd9e26f45819fd77f549db20
7 years ago
Umherirrender eab0eed3cf build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: I02f392fabe71a0425467a88f63fe9f6e18a98f5a
7 years ago
Jack Phoenix 5d920036a0 DB_SLAVE -> DB_REPLICA
Timeless requires MW 1.29 or newer anyway, so this is perfectly fine,
given that DB_SLAVE is deprecated in modern versions of MW in favor of the
new DB_REPLICA constant (which was even backported to MW 1.27 branch).

Change-Id: I96635a042a7b149cc024f44f3383421a7c7fb721
7 years ago
Jack Phoenix eeef6cc5a6 Make "view source" a primary page action, like how "edit" and "view" are
Bug: T174831
Change-Id: Icad7c822c6554b5f95e5f2ed423a767db9ec0fee
7 years ago
Kunal Mehta 45e2c28824 build: Updating mediawiki/mediawiki-codesniffer to 0.11.0
Change-Id: I776b8855eaf8a61380b785dd4ced6fb5cfec4a6e
8 years ago
Umherirrender 0822b4cf3e build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
Change-Id: Ie27658bb7e8bb8bfc26b52f33fed796f8bfa2fda
8 years ago
Bartosz Dziewoński 8c7cfa91c5 Handle `$this->data['language_urls'] === false` specially
Per 53ab861a2fcba98d876e5a2be5af7bc7186b880c, extensions can set this
to an empty array to have the sidebar section displayed even if it has
no items. Wikidata and UniversalLanguageSelector rely on this.

Change-Id: I7037b4fac973bdcc1e21484c8039ceb7e33f8195
8 years ago
Isarra 01d6aaa1a9 Use correct afterPortlet function
renderAfterPortlet just dumps it on the page. This is bad for timeless.
getAfterPortlet gets. This is good for timeless.

Change-Id: I1e0a3674644edb4c279814a4a372207bfdcbff4b
8 years ago
Isarra dd920fd720 Fix category double escaping
Also random comment removal.

bug: T158011
Change-Id: Id0b66060be298236c36b62aaefdd663b81509512
8 years ago
Isarra 51ad44c60a Use new BaseTemplate functions
getPortlet is now the version previously intended for
BaseTemplate.
Toolbox is betterer.
I don't know.

Change-Id: Ibb94caecaa703ed2895e93c3a15aa097a5b610d5
8 years ago
Isarra 8cb2458c99 Refactor TimelessTemplate.php
Structure is generally the same. All html is rendered into a
single variable, output with a single unholy 'echo'.

getPortlet is now more general, and generally used.

Should generally address the issues raised in T158011.
Should also be technically compatible with VE (DOM), but
without styling, and requiring the user to edit
LocalSettings.php (hopefully that gets fixed soon).
Fixed a slight bug with the languages rendering on mobile.

Some randomly missing things were added back in. (Variants,
some hooks)

bug: T161428
bug: T158011
bug: T132005
Change-Id: I3b691c8bfe7aed4a544236d5ac031b77ec4e8337
8 years ago
Isarra 10de923cd3 Move echo icons out of the personal dropdown
Lots of positioning weirdness, and the pokey was being
weird too.

Change-Id: Ia46c4f4cf0ce1c043c5506981b4ebc4b6dc4b5d1
8 years ago
Brian Wolff 9613a9d4bc Fix MWException about passing an array named data to Html::element
Change-Id: Iecb72add123fc05b808da294ca81c07627335733
8 years ago
Paladox 02f0a1f7c5 Update composer.json file to match vector's, also add phpcs
Change-Id: Ie962710774289c4f77ed5298b92a78609638d1bf
8 years ago
Isarra 83b98586dd Add print styles, add 'mw' to page-header-links id
Bug: T131987

Change-Id: Ia14e7f26dd249e95d1bbe00437b8d1483be08fa5
9 years ago
Jack Phoenix 1bc1d037d4 Hopefully fix a MWException on User: pages under MW 1.27alpha
Code copypasted from core /includes/skins/BaseTemplate.php, function
makeLink(). Totally, completely and absolutely untested, but it makes
sense, so it should work....right?

Change-Id: I56bc9b62c510bad2d22de149705bb96ffe7aca67
9 years ago
Justin Du 7cb2629aa0 Add GENDER to and reword a few messages
Add GENDER to talkpage and userpage messages

https://translatewiki.net/wiki/Thread:Translating_talk:MediaWiki/About_MediaWiki:Timeless-talkpage/en_and_MediaWiki:Timeless-userpage/en

Clarify type of tools in userpagetools message

https://translatewiki.net/wiki/Thread:Translating_talk:MediaWiki/About_MediaWiki:Timeless-userpagetools/ksh

Clarify what text is searched in search-placeholder message

https://translatewiki.net/wiki/Thread:Translating_talk:MediaWiki/About_MediaWiki:Timeless-search-placeholder/ksh

Clarify WMFy in desc message

https://translatewiki.net/wiki/Thread:Translating_talk:MediaWiki/About_MediaWiki:Timeless-desc/ksh

Change-Id: I790060891bbfb63f694b72aca24d7d8db0e5fd53
9 years ago
Isarra f450f7e13b Make this thing responsive
And some other stuff too just because I ran into it on the way:
* Added indicators
* Fixed js in general
* Bumped version number
* Added some stupid hacks
* Cleaned stuff up
* I don't actually know

Change-Id: Ifa557c6f0f8a972d8986c3bffdfe08ddb4b39664
9 years ago
Isarra 820154823c Make site title overflow less; add option to just change it for the skin
Just makes the font smaller if over a certain length. Not actually
smart. Will later add an option to replace it entirely with an image.

Change-Id: I7157c80132330c525ac2cb2027307550cee282b4
9 years ago
Isarra 6a25c68b2d Style changes, I don't know
Lowered font size, better menus (maybe), white header bar thingy with
colour

Probably other things.

Change-Id: Ia1b4c3ce0fed3752a9bae529573aa45912cb01ad
9 years ago
Isarra ff28a87f46 Turn this into more of a skin. Formatting, horror, more horror.
Thanks to Skizzers for the catlist db query.
Thanks to HORROR for the tool parsing.
Lots of css and stuff.

Change-Id: I9b6b4c2e3a206d909972929ae32777c933d0be46
9 years ago
Isarra 826140a6b0 Make dark footer
Also separated it from the content a bit, cleaned up the class names to
be more consistent, etc.

Change-Id: Ib0b3539ec112ef162c8d16e91bd805b884a2a502
9 years ago
Isarra 9e93a9ca9a Change searchInput placeholder (i18n message example)
Also fix a $this->msg reference I missed before.

Change-Id: I2082cec190fbbb923cde9bed47cfbf5fd4225613
9 years ago
Isarra a8c2913c26 Style search some more, add an icon
Change-Id: Id2ce1f3761f3948b647e638b5f130d5b5f9cc60a
9 years ago
Isarra a950d154b7 Everything is horrible.
Change-Id: Id35180435716a269edb45cab286ec178e9dd7791
9 years ago
Isarra 6056f7d586 Initial structure
Change-Id: I6457449db49ae1eef083684db75d5280bf404381
9 years ago
Isarra 3a1bc368de Initial skin from skin:Example; just renamed
Change-Id: Ic60e93eff08abe541635e135faf04e60a756f44c
9 years ago