Version 2.2
This theme will not work with MediaWiki 1.17 or later, instead it will just show the PHP error Call to undefined method Skin::makeGlobalVariablesScript()
. I’ve decided to discontinue this as I don’t adminster a wiki any more. Try Jony instead, which you can preview live on The iPhone Wiki. This project will be kept up for archival purposes, or if someone wants to fork and continue it.
-
cd
to your MediaWiki'sskins
folder. git clone --recursive git://github.com/kirbylover4000/iWiki.git .
rm -rf .git README.md
- Open your
LocalSettings.php
and add the following code:
if (preg_match("/mobile|ipad|iphone|ipod|blackberry|opera mini|opera mobile|nokia|windows phone|android/i", $_SERVER['HTTP_USER_AGENT'])) {
$wgDefaultSkin = "iwiki";
}
Optionally, you can also install a jQTouch theme to your skins/iwiki/jqtouch/themes
folder and set it as default like so, changing apple
to the theme you want:
$wgTouchTheme = "apple";
- Test on an iDevice. Enjoy ;)
Licensed under the GNU General Public License, version 2.0. Refer to LICENSE.md.