Skip to content

tahnok/Pocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7c82672 · Oct 2, 2011

History

33 Commits
Oct 2, 2011
Oct 2, 2011
Oct 2, 2011
Oct 2, 2011
May 27, 2011

Repository files navigation

Pocket

Mobile Skin for MediaWiki

You 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 styling

BUGS:

  • 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

About

Mobile skin for mediawiki

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages