Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tahnok/pocket
Mobile skin for mediawiki
https://github.com/tahnok/pocket
Last synced: about 1 month ago
JSON representation
Mobile skin for mediawiki
- Host: GitHub
- URL: https://github.com/tahnok/pocket
- Owner: tahnok
- License: gpl-3.0
- Created: 2011-05-22T02:21:34.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-10-02T05:02:55.000Z (over 13 years ago)
- Last Synced: 2023-03-11T15:53:22.807Z (almost 2 years ago)
- Language: PHP
- Homepage:
- Size: 242 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: copying
Awesome Lists containing this project
README
# Pocket #
Mobile Skin for MediaWikiYou can see screenshots here: http://tahnok.imgur.com/pocket
Author: Wesley Ellis ([email protected])
Required Version: Mediawiki v1.16
TODO:
* skin preferences
* mobile editor?
* better buttons
* TOC collapse automatically
* TOC stylingBUGS:
* Rich Text buttons do not work
* RTL probably doesn't work## Setup: ##
### Enabling jQuery: ###
Add the following to your LocalSettings.php:```
// Include jQuery
function wfIncludeJQuery() {
global $wgOut;
$wgOut->includeJQuery();
}
$wgExtensionFunctions[] = 'wfIncludeJQuery';
```### Automatic Mobile Skin: ###
If you'd like for this skin to be enabled automatically when a user visits the site using a mobile device (including Android, iPhone/iPad and Blackberries) please add the following to LocalSettings.php```
# to set default skin for mobile devices
$ua=$_SERVER["HTTP_USER_AGENT"];if(stristr($ua,"Mobile")||stristr($ua,"iPad")||stristr($ua,"iPhone")||stristr($ua,"iPod")||stristr($ua,"BlackBerry")||stristr($ua,"Opera Mini")||stristr($ua,"Opera Mobile")||stristr($ua, "Opera Mobi")||stristr($ua,"Nokia")){
$wgDefaultSkin = "pocket";
}
```### Setting the logo: ###
place 40px x 200px png banner for your site in the folder and call it banner.png### Mobile About Page: ###
There is a link the footer to a page containing copyright, FAQ, etc... information that will point at $SiteName:MobileAbout . Please make sure it exists## License ##
This code is released under GPLv3. See the file named copying for the full license