Index: documentation/trunk/wiki/pages/gsdl/wiki/copyright.txt
===================================================================
--- documentation/trunk/wiki/pages/gsdl/wiki/copyright.txt	(revision 30132)
+++ documentation/trunk/wiki/pages/gsdl/wiki/copyright.txt	(revision 30132)
@@ -0,0 +1,1 @@
+Except where otherwise noted, content on this wiki is licensed under the following license: [[http://www.gnu.org/licenses/fdl-1.3.html|GNU Free Documentation License 1.3]]
Index: documentation/trunk/wiki/pages/gsdl/wiki/drafts.txt
===================================================================
--- documentation/trunk/wiki/pages/gsdl/wiki/drafts.txt	(revision 30132)
+++ documentation/trunk/wiki/pages/gsdl/wiki/drafts.txt	(revision 30132)
@@ -0,0 +1,7 @@
+~~NOCACHE~~
+
+====== Drafts Pending Approval ======
+
+===== English =====
+
+[APPROVALS:en]
Index: documentation/trunk/wiki/pages/gsdl/wiki/navigation.txt
===================================================================
--- documentation/trunk/wiki/pages/gsdl/wiki/navigation.txt	(revision 30132)
+++ documentation/trunk/wiki/pages/gsdl/wiki/navigation.txt	(revision 30132)
@@ -0,0 +1,9 @@
+  * **[[gsdl:en:beginner:index|Beginner Guide]]**
+  * **[[gsdl:en:beginner:customization|Customization]]**
+  * **[[gsdl:en:tutorials|Tutorials]]**
+  * **[[gsdl:en:gli:index|GLI Help]]**
+  * **[[gsdl:en:user:index|User Guide]]**
+  * **[[gsdl:en:user_advanced:index|Advanced User Guide]]**
+  * **[[gsdl:en:developer:index|Developer Guide]]**
+  * **[[gsdl:legacy:index|Legacy Documentation]]**
+  * **[[gsdl:en:support|Support]]**
Index: documentation/trunk/wiki/pages/gsdl/wiki/pagestate.txt
===================================================================
--- documentation/trunk/wiki/pages/gsdl/wiki/pagestate.txt	(revision 30132)
+++ documentation/trunk/wiki/pages/gsdl/wiki/pagestate.txt	(revision 30132)
@@ -0,0 +1,20 @@
+~~NOCACHE~~
+
+====== Page Status ======
+
+===== Orphans =====
+
+These pages have no links to them.
+
+~~ORPHANSWANTED:orphans~~
+
+===== Wanted =====
+
+These pages are referred to in links but don't exist.
+
+~~ORPHANSWANTED:wanted~~
+
+===== Valid =====
+
+~~ORPHANSWANTED:valid~~
+
Index: documentation/trunk/wiki/pages/gsdl/wiki/site_notice.txt
===================================================================
--- documentation/trunk/wiki/pages/gsdl/wiki/site_notice.txt	(revision 30132)
+++ documentation/trunk/wiki/pages/gsdl/wiki/site_notice.txt	(revision 30132)
@@ -0,0 +1,1 @@
+<!-- No Site Notice -->
Index: documentation/trunk/wiki/pages/gsdl/wiki/special.txt
===================================================================
--- documentation/trunk/wiki/pages/gsdl/wiki/special.txt	(revision 30132)
+++ documentation/trunk/wiki/pages/gsdl/wiki/special.txt	(revision 30132)
@@ -0,0 +1,27 @@
+====== Special Pages ======
+
+===== Maintenance Reports =====
+
+  * [[gsdl:wiki:pagestate|Page Status]] - lists orphans and wanted pages
+  * [[gsdl:wiki:drafts|Draft Pages]] - pages with unapproved changes
+
+===== System Pages =====
+
+  * [[?do=admin|Admininstration]] - administration only functionality of Dokuwiki include general configuration, plugin management and user/ACL management
+  * [[?do=index|All pages]] - a tree-view of all pages categorised by namespace
+  * [[gsdl:wiki:copyright|Copyright]] - copyright notice displayed at the bottom of all pages
+  * [[gsdl:wiki:development|Development notes]] - discussion of implementation and customizations
+  * [[gsdl:wiki:navigation|Navigation]] - controls navigation controls on the left
+  * [[gsdl:wiki:site_notice|Site Notice]] - site-wide notice placed at top of all pages
+  * [[gsdl:wiki:syntax|Dokuwiki syntax]] - syntax used when editing pages in Dokuwiki
+  * [[gsdl:wiki:toolbox|Toolbox]] - controls links in the toolbox
+  * [[playground:playground|Playground]] - sandbox for experimenting with editing
+
+
+===== Login / sign up =====
+
+  * [[?do=login|Log in]] / [[?do=register|create account]]
+
+===== Recent changes =====
+
+  * [[?do=recent|Recent changes]]
Index: documentation/trunk/wiki/pages/gsdl/wiki/toolbox.txt
===================================================================
--- documentation/trunk/wiki/pages/gsdl/wiki/toolbox.txt	(revision 30132)
+++ documentation/trunk/wiki/pages/gsdl/wiki/toolbox.txt	(revision 30132)
@@ -0,0 +1,8 @@
+  * [[?purge=true|Refresh Page]]
+  * [[?do=recent|Recent Changes]]
+  * [[?do=backlink|What links here]]
+  * [[?do=index|All pages]]
+  * [[gsdl:wiki:special|Special pages]]
+  * [[?rev=0&mddo=print|Printable version]]
+  * [[?rev=0|Permanent link]]
+  * [[?rev=0&mddo=cite|Cite this article]]
Index: documentation/trunk/wiki/plugins/greenstonedocs/conf/default.php
===================================================================
--- documentation/trunk/wiki/plugins/greenstonedocs/conf/default.php	(revision 30132)
+++ documentation/trunk/wiki/plugins/greenstonedocs/conf/default.php	(revision 30132)
@@ -0,0 +1,8 @@
+<?php
+$conf['currentnamespace'] = 'gsdl';
+$conf['checkprereq'] = 1;
+$conf['prerequisiteplugins'] = 'code2 htmlcomment imagereference orphanswanted publish tablewidth simpletabs bobmalooga';
+$conf['childnamespaces'] = 'en legacy wiki';
+$conf['updatenamespace'] = 0;
+$conf['oldnamespace'] = '';
+?>
Index: documentation/trunk/wiki/plugins/greenstonedocs/conf/metadata.php
===================================================================
--- documentation/trunk/wiki/plugins/greenstonedocs/conf/metadata.php	(revision 30132)
+++ documentation/trunk/wiki/plugins/greenstonedocs/conf/metadata.php	(revision 30132)
@@ -0,0 +1,6 @@
+<?php
+$meta['currentnamespace'] = array('string');
+$meta['childnamespaces'] = array('string');
+$meta['updatenamespace'] = array('onoff');
+$meta['oldnamespace'] = array('string');
+?>
Index: documentation/trunk/wiki/plugins/greenstonedocs/lang/en/settings.php
===================================================================
--- documentation/trunk/wiki/plugins/greenstonedocs/lang/en/settings.php	(revision 30132)
+++ documentation/trunk/wiki/plugins/greenstonedocs/lang/en/settings.php	(revision 30132)
@@ -0,0 +1,8 @@
+<?php
+$lang['currentnamespace'] = "The top-level namespace in which the Greenstone Documentation resides. Below this namespace will be found the child namespaces.";
+$lang['checkprereq'] = "Check the plugins folder for pre-requisite plugins.";
+$lang['prerequisiteplugins'] = "A space-separated listing of the (directory) names of plugins required by the Greenstone Wiki to work properly.";
+$lang['childnamespaces'] = "A space-separated listing of the expected child namespaces. Any updating action will be restricted to these child trees. The default child namespaces are:<ul><li>en - standard wiki pages in English</li><li>legacy - the imported manuals</li><li>wiki - pages used in the running of the Greenstone Document wiki</li></ul>";
+$lang['updatenamespace'] = "Tick this box to automatically update all internal links starting with the old namespace (given below) to the current namespace.";
+$lang['oldnamespace'] = "If updating internal links, this is the namespace prefix that will be replaced. May be an empty string.";
+?>
Index: documentation/trunk/wiki/plugins/greenstonedocs/plugin.info.txt
===================================================================
--- documentation/trunk/wiki/plugins/greenstonedocs/plugin.info.txt	(revision 30132)
+++ documentation/trunk/wiki/plugins/greenstonedocs/plugin.info.txt	(revision 30132)
@@ -0,0 +1,8 @@
+base    greenstonedocs
+author  John Thompson
+email   jmt12@students.waikato.ac.nz
+date    2015-08-14
+name    Greenstone Documentation Plugin
+url     http://cms.waikato.ac.nz/
+desc    A plugin providing compatibility between the marked up text format used in the Greenstone Documentation generator and Dokuwiki
+
Index: documentation/trunk/wiki/plugins/greenstonedocs/script.js
===================================================================
--- documentation/trunk/wiki/plugins/greenstonedocs/script.js	(revision 30132)
+++ documentation/trunk/wiki/plugins/greenstonedocs/script.js	(revision 30132)
@@ -0,0 +1,12 @@
+//*****************************************************************************
+// Copyright 2015 Greenstone Labs, Waikato University
+//*****************************************************************************
+
+jQuery(document).ready(function () {
+    jQuery("span.undercaption").each(
+	function( index ) {
+	    var content = jQuery(this).text();
+	    jQuery(this).text(content.replace(/%!-- id:\d+ --%/, ""));
+	}
+    );
+});
Index: documentation/trunk/wiki/plugins/greenstonedocs/syntax.php
===================================================================
--- documentation/trunk/wiki/plugins/greenstonedocs/syntax.php	(revision 30132)
+++ documentation/trunk/wiki/plugins/greenstonedocs/syntax.php	(revision 30132)
@@ -0,0 +1,304 @@
+<?php
+/**
+ *  A plugin to provide compatibility between the marked up text format used
+ *  by the Greenstone Documentation Generation scripts and Dokuwiki
+ *
+ *  Features:
+ *  - hide the <!-- id:XXX --> markers used during translation process
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ */
+
+if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
+if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
+require_once(DOKU_PLUGIN.'syntax.php');
+
+/**
+ * All DokuWiki plugins to extend the parser/rendering mechanism
+ * need to inherit from this class
+ */
+class syntax_plugin_greenstonedocs
+extends DokuWiki_Syntax_Plugin
+{
+
+    /** The plugin should only effect pages within this namespace.
+     */
+    private $target_namespace_prefix;
+
+
+    /** @function __construct()
+     */
+    public function __construct()
+    {
+        global $conf;
+
+        $this->target_namespace_prefix = $this->getConf('currentnamespace');
+
+        // Prerequisite testing. Ensure the following list of plugins are also
+        // installed and complain otherwise.
+        if ($this->getConf('checkprereq'))
+        {
+            $prereqs = array_flip(explode(' ', $this->getConf('prerequisiteplugins')));
+            if ($dh = opendir(DOKU_PLUGIN))
+            {
+                while (($file = readdir($dh)) !== false)
+                {
+                    $path = DOKU_PLUGIN . $file;
+                    if (substr($file, 0, 1) != '.' && is_dir($path))
+                    {
+                        if (isset($prereqs[$file]))
+                        {
+                            unset($prereqs[$file]);
+                        }
+                    }
+                }
+                closedir($dh);
+            }
+            if (count($prereqs) > 0)
+            {
+                ksort($prereqs);
+                foreach ($prereqs as $plugin_name => $value)
+                {
+                    msg("The Greenstone Wiki requires the plugin: " . $plugin_name, -1);
+                }
+            }
+            else
+            {
+                $this->_resetConf('checkprereq');
+            }
+        }
+        // Check the plugin configuration and, if checked, proceed to auto-
+        // matically update the internal links within the Greenstone wiki pages
+        // to have a different base namespace
+        if ($this->getConf('updatenamespace'))
+        {
+            // Determine the starting point for the update
+            $base_dir = DOKU_INC . 'data/pages/' . $this->getConf('currentnamespace') . '/';
+            // - ensure trailing : for consistency in namespaces
+            $current_namespace = $this->getConf('currentnamespace');
+            if (strlen($current_namespace) > 0 && substr($current_namespace, -1) != ':')
+            {
+                $current_namespace .= ':';
+            }
+            $old_namespace = $this->getConf('oldnamespace');
+            if (strlen($old_namespace) > 0 && substr($old_namespace, -1) != ':')
+            {
+                $old_namespace .= ':';
+            }
+            // - recursive call to do the actual search and replace
+            $raw_child_namespaces = explode(' ', $this->getConf('childnamespaces'));
+            $child_namespaces = array();
+            foreach ($raw_child_namespaces as $raw_child_namespace)
+            {
+                if (strlen($raw_child_namespace) > 0 && substr($raw_child_namespace, -1) != ':')
+                {
+                    $raw_child_namespace .= ':';
+                }
+                $child_namespaces[] = $raw_child_namespace;
+            }
+            // Begin search
+            $this->_replaceInternalLinkNamespace($base_dir, $old_namespace, $current_namespace, $child_namespaces);
+            // Finally, we reset the configuration option back to off.
+            $this->_resetConf('updatenamespace');
+            // Let users know what has happened
+            msg("Sucessfully performed one-time update of namespace in Greenstone Documentation.", 1);
+        }
+    }
+    /** __construct() **/
+
+
+    /**
+     */
+    function _resetConf($key)
+    {
+        // Reset the configuration option back to off.
+        // - file on disk
+        $config_file_path = DOKU_CONF . 'local.php';
+        $content = file_get_contents($config_file_path);
+        $option_prefix = '$conf[\'plugin\'][\'greenstonedocs\'][\'' . $key . '\']';
+        if (strpos($content, $option_prefix) !== false)
+        {
+            $content = str_replace($option_prefix . ' = 1;',
+                                   $option_prefix . ' = 0;',
+                                   $content);
+        }
+        else
+        {
+            $content .= "\n" . $option_prefix . " = 0;";
+        }
+        file_put_contents($config_file_path, $content);
+        // - in memory cache
+        $conf[$key] = 0;
+    }
+    /** _resetConf($key) **/
+
+
+    /** @function _replaceInternalLinkNamespace()
+     */
+    function _replaceInternalLinkNamespace($dir, $old_namespace, $new_namespace, $child_namespaces)
+    {
+        $files = array();
+        if ($dh = opendir($dir))
+        {
+            while (($file = readdir($dh)) !== false)
+            {
+                if (substr($file, 0, 1) != '.')
+                {
+                    $files[] = $file;
+                }
+            }
+            closedir($dh);
+        }
+        foreach ($files as $file)
+        {
+            $path = $dir . $file;
+            // - continue the recursive search through child directories
+            if (is_dir($path))
+            {
+                $this->_replaceInternalLinkNamespace($path . '/', $old_namespace, $new_namespace, $child_namespaces);
+            }
+            else if (substr($file, -4) == '.txt')
+            {
+                // - none of these files are *that* large, so read them
+                // into memory for processing
+                $page_content = file_get_contents($path);
+                // - we are looking for internal links that contain the
+                // old namespace (or '') followed by an expected child
+                // namespace - and then replace the old namespace
+                $pattern = '/(\[\[)' . $old_namespace . '(' . implode('|', $child_namespaces) . ')(.+?\]\])/';
+                $replace = '${1}'. $new_namespace . '${2}${3}';
+                $replace_count = 0;
+                $page_content = preg_replace($pattern, $replace, $page_content, -1, $replace_count);
+                // - special case: also fix up the mismatched imgcaption tags
+                $pattern = '/(<imgcaption .+?>)(<\/imgcaption>)\s*(\{\{.+?\}\})/s';
+                $replace = '${1}${3}${2}';
+                $page_content = preg_replace($pattern, $replace, $page_content, -1, $replace_count);
+                if ($replace_count > 0)
+                {
+                    file_put_contents($path, $page_content);
+                }
+            }
+        }
+    }
+    /** @function _replaceInternalLinkNamespace() **/
+
+
+    /**
+     * Should return the type of syntax this plugin defines.
+     * - notice that the typo (substition == substitution) is necessary
+     */
+    function getType()
+    {
+        return 'substition';
+    }
+
+    /**
+     * Returns a number used to determine in which order modes are added.
+     */
+    function getSort()
+    {
+        return 0;
+    }
+
+    /**
+     * Connect lookup pattern to lexer.
+     */
+    function connectTo($mode)
+    {
+        $current_full_namespace = getNS(getID('id',true));
+        // Note that the result is FALSE if no match, and should be 0 if name-
+        // space starts with prefix.
+        if (strpos($current_full_namespace, $this->target_namespace_prefix) === 0)
+        {
+            // Hiding the section/translation ID tags in headers
+            $this->Lexer->addSpecialPattern( '^[ \t]*={2,6}\s?<!-- s?id:.+? -->[^\n]+={2,6}[ \t]*(?=\n)', $mode, 'plugin_greenstonedocs');
+            // Hiding the translation ID tags in paragraph text
+            $this->Lexer->addSpecialPattern('<!-- id:[^\s]+ -->', $mode, 'plugin_greenstonedocs');
+            // Hiding the translation ID tags in image captions
+            $this->Lexer->addSpecialPattern('\%!-- id:[^\s]+ --\%', $mode, 'plugin_greenstonedocs');
+        }
+    }
+
+    /**
+     * Handler to prepare matched data for the rendering process.
+     *
+     * <p>
+     * The <tt>$aState</tt> parameter gives the type of pattern
+     * which triggered the call to this method:
+     * </p>
+     * <dl>
+     * <dt>DOKU_LEXER_ENTER</dt>
+     * <dd>a pattern set by <tt>addEntryPattern()</tt></dd>
+     * <dt>DOKU_LEXER_MATCHED</dt>
+     * <dd>a pattern set by <tt>addPattern()</tt></dd>
+     * <dt>DOKU_LEXER_EXIT</dt>
+     * <dd> a pattern set by <tt>addExitPattern()</tt></dd>
+     * <dt>DOKU_LEXER_SPECIAL</dt>
+     * <dd>a pattern set by <tt>addSpecialPattern()</tt></dd>
+     * <dt>DOKU_LEXER_UNMATCHED</dt>
+     * <dd>ordinary text encountered within the plugin's syntax mode
+     * which doesn't match any pattern.</dd>
+     * </dl>
+     * @param $aMatch String The text matched by the patterns.
+     * @param $aState Integer The lexer state for the match.
+     * @param $aPos Integer The character position of the matched text.
+     * @param $aHandler Object Reference to the Doku_Handler object.
+     * @return Integer The current lexer state for the match.
+     * @public
+     * @see render()
+     * @static
+     */
+    function handle($match, $state, $pos, &$handler)
+    {
+        if (preg_match('/wiki/i', $match))
+        {
+            return array($state, $match, array('action'=>'debug',
+                                               'pos'=>$pos));
+        }
+        // Special case for IDs (section and language) in header strings
+        if (preg_match('/={2,6}\s?<!-- (s?id):.+? -->[^\n]+={2,6}/', $match))
+        {
+            //msg("<b>[DEBUG]</b> Title: " . htmlspecialchars($match), 2, '', '', MSG_ADMINS_ONLY);
+            $match = preg_replace('/<!-- sid:.+? -->/', '', $match);
+            $match = preg_replace('/<!-- id:.+? -->/', '', $match);
+            $handler->header($match, $state, $pos);
+            return true;
+        }
+        // any other match gets replaced with empty string
+        return array($state, $match, array('action'=>'erase', 'pos'=>$pos));
+    }
+
+    /**
+     * Handle the actual output creation.
+     *
+     * <p>
+     * The method checks for the given <tt>$aFormat</tt> and returns
+     * <tt>FALSE</tt> when a format isn't supported. <tt>$aRenderer</tt>
+     * contains a reference to the renderer object which is currently
+     * handling the rendering. The contents of <tt>$aData</tt> is the
+     * return value of the <tt>handle()</tt> method.
+     * </p>
+     * @see handle()
+     */
+    function render($mode, &$renderer, $data)
+    {
+        if($mode == 'xhtml')
+        {
+            list($state, $match, $params) = $data;
+            switch ($params['action'])
+            {
+            case 'debug':
+                $renderer->doc .= 'SQUIG-squig-squig';
+                break;
+                // By default we do an erase replace
+            default:
+                $renderer->doc .= '';
+            }
+            return true;
+        }
+        return false;
+    }
+}
+
+//Setup VIM: ex: et ts=4 enc=utf-8 :
+?>
Index: documentation/trunk/wiki/plugins/simpletabs/conf/default.php
===================================================================
--- documentation/trunk/wiki/plugins/simpletabs/conf/default.php	(revision 30132)
+++ documentation/trunk/wiki/plugins/simpletabs/conf/default.php	(revision 30132)
@@ -0,0 +1,3 @@
+<?php
+$conf['defaulttab'] = 'Greenstone 3';
+?>
Index: documentation/trunk/wiki/plugins/simpletabs/conf/metadata.php
===================================================================
--- documentation/trunk/wiki/plugins/simpletabs/conf/metadata.php	(revision 30132)
+++ documentation/trunk/wiki/plugins/simpletabs/conf/metadata.php	(revision 30132)
@@ -0,0 +1,3 @@
+<?php
+$meta['defaulttab'] = array('multichoice', '_choices' => array('Greenstone3', 'Greenstone2'));
+?>
Index: documentation/trunk/wiki/plugins/simpletabs/plugin.info.txt
===================================================================
--- documentation/trunk/wiki/plugins/simpletabs/plugin.info.txt	(revision 30132)
+++ documentation/trunk/wiki/plugins/simpletabs/plugin.info.txt	(revision 30132)
@@ -0,0 +1,8 @@
+base    simpletabs
+author  John Thompson
+email   jmt12@students.waikato.ac.nz
+date    2013-09-18
+name    SimpleTab Plugin
+url     http://cms.waikato.ac.nz/
+desc    A simple tabbed area for displaying several flavours of text. Syntax:<TABAREA tabs="comma,separated,list"><TAB>Content of 'comma' including [[:syntax|wiki syntax]]</TAB><TAB>Content of 'separated' and here **is** //some// ''formatting''</TAB><TAB>Content of 'list'</TAB></TABAREA>
+
Index: documentation/trunk/wiki/plugins/simpletabs/script.js
===================================================================
--- documentation/trunk/wiki/plugins/simpletabs/script.js	(revision 30132)
+++ documentation/trunk/wiki/plugins/simpletabs/script.js	(revision 30132)
@@ -0,0 +1,158 @@
+//*****************************************************************************
+// Copyright 2015 Greenstone Labs, Waikato University
+//*****************************************************************************
+
+
+simpletabs_tab_prefix = 'simpletabs-t';
+simpletabs_cnt_prefix = 'simpletabs-tc';
+simpletabs_cookie = 'dokuwiki_gs_default_tab';
+
+
+/** @function tabSwitch()
+ *  Given the identifier of a tabbed area, which contains tab_count tabs, makes
+ *  the active_tab_number tab visible and hides the rest.
+ */
+function tabSwitch(tabarea, tab_count, active_tab_number)
+{
+    // Active tab is null if this is the first ever time the page is loaded
+    // by this user. Default to tab 1---which should be Greenstone 3.
+    if (active_tab_number == null)
+    {
+	active_tab_number = 1;
+    }
+
+    for (var i = 1; i < tab_count + 1; i++)
+    {
+	if (i != active_tab_number)
+	{
+            document.getElementById(simpletabs_tab_prefix + tabarea + '_' + i).className = '';
+            document.getElementById(simpletabs_cnt_prefix + tabarea + '_' + i).style.display = 'none';
+	    //_tabTOCEntries('tc' + tabarea + '_' + i, false);
+        }
+    }
+    document.getElementById(simpletabs_tab_prefix + tabarea + '_' + active_tab_number).className = 'active';
+    document.getElementById(simpletabs_cnt_prefix + tabarea + '_' + active_tab_number).style.display = 'block';
+    //_tabTOCEntries('tc' + tabarea + '_' + active_tab_number, true);
+    // Store the default tab for later page loads
+    _setCookie(simpletabs_cookie, active_tab_number, 365);
+}
+/** tabSwitch() **/
+
+
+/** @function initTabArea()
+ */
+function initTabArea()
+{
+    // Get the default tab cookie
+    var active_tab_number = _getCookie(simpletabs_cookie);
+
+    // Switch tabs appropriately
+    var tab_area_counter = 1;
+    var possible_tab_area_id = simpletabs_tab_prefix + tab_area_counter;
+    // Sometimes - for unknown reasons - t1 is not defined, so lets just try
+    // and update for the first tab tabs
+    for (tab_area_counter = 1; tab_area_counter < 5; tab_area_counter++)
+    {
+      if (document.getElementById(simpletabs_tab_prefix + tab_area_counter) != null)
+      {
+        var tab_count = 0;
+        var possible_tab_id = simpletabs_tab_prefix + tab_area_counter + '_' + (tab_count + 1);
+        while (document.getElementById(possible_tab_id) != null)
+        {
+            tab_count++;
+            possible_tab_id = possible_tab_area_id + '_' + (tab_count + 1);
+        }
+        tabSwitch(tab_area_counter, tab_count, active_tab_number);
+      }
+    }
+    // Carry on while we can still find more tabs
+    while (document.getElementById(simpletabs_tab_prefix + tab_area_counter) != null)
+    {
+        var tab_count = 0;
+        var possible_tab_id = simpletabs_tab_prefix + tab_area_counter + '_' + (tab_count + 1);
+        while (document.getElementById(possible_tab_id) != null)
+        {
+            tab_count++;
+            possible_tab_id = possible_tab_area_id + '_' + (tab_count + 1);
+        }
+        tabSwitch(tab_area_counter, tab_count, active_tab_number);
+        tab_area_counter++;
+    }
+}
+/** initTabArea() **/
+
+
+/**
+ *  source: http://www.w3schools.com/js/js_cookies.asp
+ */
+function _getCookie(c_name)
+{
+    var c_value = document.cookie;
+    var c_start = c_value.indexOf(" " + c_name + "=");
+    if (c_start == -1)
+    {
+        c_start = c_value.indexOf(c_name + "=");
+    }
+    if (c_start == -1)
+    {
+        c_value = null;
+    }
+    else
+    {
+        c_start = c_value.indexOf("=", c_start) + 1;
+        var c_end = c_value.indexOf(";", c_start);
+        if (c_end == -1)
+        {
+            c_end = c_value.length;
+        }
+        c_value = unescape(c_value.substring(c_start, c_end));
+    }
+    return c_value;
+}
+/** _getCookie() **/
+
+
+/**
+ *  source: http://www.w3schools.com/js/js_cookies.asp
+ */
+function _setCookie(c_name, value, exdays)
+{
+    var exdate=new Date();
+    exdate.setDate(exdate.getDate() + exdays);
+    var c_value = escape(value) + ((exdays==null) ? "" : "; expires=" + exdate.toUTCString());
+    document.cookie=c_name + "=" + c_value;
+}
+/** _setCookie() **/
+
+/**
+ *  Toggle the visibility of TOC entries based upon what tab is selected.
+*/
+function _tabTOCEntries(tab_id, make_visible)
+{
+    // Find all the heading in the indicated tab
+    var the_tab = document.getElementById(tab_id);
+    var headers = the_tab.getElementsByTagName('a');
+    for (var i = 0; i < headers.length; i++)
+    {
+        var id = headers[i].getAttribute('id');
+        var toc_id = 'toc_' + id;
+        var toc_li = document.getElementById(toc_id);
+        if (toc_li)
+        {
+            if (make_visible)
+            {
+                toc_li.style.display = 'block';
+            }
+            else
+            {
+                toc_li.style.display = 'none';
+            }
+        }
+    }
+}
+/** _tabTOCEntries(tab_id, make_visible) **/
+
+/** Register new init function
+ *  - note the jqeury noConflict mode (thus $() won't work)
+ */
+jQuery(document).ready(initTabArea);
Index: documentation/trunk/wiki/plugins/simpletabs/style.css
===================================================================
--- documentation/trunk/wiki/plugins/simpletabs/style.css	(revision 30132)
+++ documentation/trunk/wiki/plugins/simpletabs/style.css	(revision 30132)
@@ -0,0 +1,46 @@
+.tabbed_area {
+    margin: 0px 0px 1em;
+}
+
+.tab {
+  background-color:#ffffff;
+  padding:10px;
+  border:1px solid #464c54;
+}
+
+ul.tabs {
+  margin:0px;
+  margin-bottom:6px;
+  margin-top:5px;
+  padding:0px;
+}
+
+ul.tabs li {
+  list-style:none;
+  display:inline;
+}
+
+ul.tabs li a {
+  background-color: #F0F9F0;
+  padding:8px 14px 8px 14px;
+  text-decoration:none;
+  font-family:Verdana, Arial, Helvetica, sans-serif;
+  font-weight:bold;
+  text-transform:uppercase;
+  border:1px solid #464c54;
+  color: #050;
+}
+
+ul.tabs li a:hover {
+  background-color:#2f343a;
+  border-color:#2f343a;
+  color:#FFFFFF;
+}
+
+ul.tabs li a.active {
+  background-color: white;
+  color: black;
+  border:1px solid #464c54;
+  border-bottom: 1px solid white;
+}
+
Index: documentation/trunk/wiki/plugins/simpletabs/syntax.php
===================================================================
--- documentation/trunk/wiki/plugins/simpletabs/syntax.php	(revision 30132)
+++ documentation/trunk/wiki/plugins/simpletabs/syntax.php	(revision 30132)
@@ -0,0 +1,365 @@
+<?php
+/**
+ *  A simple tabbed area component, developed from the tutorial given here:
+ *  http://net.tutsplus.com/tutorials/html-css-techniques/how-to-create-a-slick-tabbed-content-area/
+ *
+ *  Syntax:
+ *    <TABAREA tabs="comma,separated,list">
+ *      <TAB>Content of 'comma' including [[:syntax|wiki syntax]]</TAB>
+ *      <TAB>Content of 'separated' and here **is** //some// ''formatting''</TAB>
+ *      <TAB>Content of 'list'</TAB>
+ *    </TABAREA>
+ *
+ * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ */
+
+if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
+if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
+require_once(DOKU_PLUGIN.'syntax.php');
+
+/**
+ * All DokuWiki plugins to extend the parser/rendering mechanism
+ * need to inherit from this class
+ */
+class syntax_plugin_simpletabs
+extends DokuWiki_Syntax_Plugin
+{
+  // The name of currently rendering tab - useful for ensuring syntax (no
+  // close tab before open, for example)
+  var $current_tab;
+
+    var $current_tab_number;
+    
+    // Print debug messages
+    var $debug;
+
+  // The count of tabbed areas encountered on this page (so we can ensure a
+  // unique identifier is assigned)
+  var $tab_area_counter;
+
+  var $tab_counter;
+
+  var $tabs;
+
+    var $divide_edit_section;
+
+    function __construct()
+    {
+        global $PARSER_MODES;
+        $this->allowedModes = array_merge($PARSER_MODES['container'],
+                                          $PARSER_MODES['formatting'],
+                                          $PARSER_MODES['substition'],
+                                          $PARSER_MODES['protected'],
+                                          $PARSER_MODES['disabled'],
+                                          $PARSER_MODES['paragraphs']);
+        // Init
+        $this->debug = false;
+        $this->divide_edit_section = false;
+        $this->tab_area_counter = 0;
+        $this->tab_counter = 0;
+    }
+    /** __construct() **/
+
+
+    /** @function
+     *
+     */
+    function _debugPrint($msg)
+    {
+        if ($this->debug)
+        {
+            echo "<p><b>[DEBUG]</b> " . $msg . "</p>\n";
+        }
+    }
+    /** _debugPrint() **/
+
+
+    /**
+     * Should return the type of syntax this plugin defines.
+     */
+    function getType()
+    {
+        return 'container';
+    }
+    /** getType() **/
+
+
+    /**
+     * Returns a number used to determine in which order modes are added.
+     */
+    function getSort()
+    {
+        return 45;
+    }
+
+
+    /**
+     * What kind of syntax do we allow (optional)
+     */
+    function getAllowedTypes()
+    {
+        return array('container','formatting','substition','protected','disabled','paragraphs');
+    }
+    /** getAllowedTypes() **/
+
+
+    /**
+     * Define how this plugin is handled regarding paragraphs.
+     *
+     * <p>
+     * This method is important for correct XHTML nesting. It returns
+     * one of the following values:
+     * </p>
+     * <dl>
+     * <dt>normal</dt><dd>The plugin can be used inside paragraphs.</dd>
+     * <dt>block</dt><dd>Open paragraphs need to be closed before
+     * plugin output.</dd>
+     * <dt>stack</dt><dd>Special case: Plugin wraps other paragraphs.</dd>
+     * </dl>
+     */
+    function getPType()
+    {
+        return 'normal';
+    }
+
+
+   /**
+    * Connect lookup pattern to lexer.
+    */
+  function connectTo($mode)
+  {
+    $this->Lexer->addEntryPattern('<TABAREA tabs=".*?">(?=.*?</TABAREA>)$',$mode,'plugin_simpletabs');
+    // The tabs
+    $this->Lexer->addPattern('<TAB>', 'plugin_simpletabs');
+    $this->Lexer->addPattern('</TAB>', 'plugin_simpletabs');
+    // Special things inside the content we want to manually handle.
+    $this->Lexer->addPattern( '^[ \t]*={2,6}\s?[^\n]+={2,6}[ \t]*(?=\n)', 'plugin_simpletabs');
+  }
+
+  function postConnect()
+  {
+    $this->Lexer->addExitPattern('</TABAREA>','plugin_simpletabs');
+  }
+
+
+  /**
+   * Handler to prepare matched data for the rendering process.
+   *
+   * <p>
+   * The <tt>$aState</tt> parameter gives the type of pattern
+   * which triggered the call to this method:
+   * </p>
+   * <dl>
+   * <dt>DOKU_LEXER_ENTER</dt>
+   * <dd>a pattern set by <tt>addEntryPattern()</tt></dd>
+   * <dt>DOKU_LEXER_MATCHED</dt>
+   * <dd>a pattern set by <tt>addPattern()</tt></dd>
+   * <dt>DOKU_LEXER_EXIT</dt>
+   * <dd> a pattern set by <tt>addExitPattern()</tt></dd>
+   * <dt>DOKU_LEXER_SPECIAL</dt>
+   * <dd>a pattern set by <tt>addSpecialPattern()</tt></dd>
+   * <dt>DOKU_LEXER_UNMATCHED</dt>
+   * <dd>ordinary text encountered within the plugin's syntax mode
+   * which doesn't match any pattern.</dd>
+   * </dl>
+   * @param $aMatch String The text matched by the patterns.
+   * @param $aState Integer The lexer state for the match.
+   * @param $aPos Integer The character position of the matched text.
+   * @param $aHandler Object Reference to the Doku_Handler object.
+   * @return Integer The current lexer state for the match.
+   * @public
+   * @see render()
+   * @static
+   */
+  function handle($match, $state, $pos, &$handler)
+  {
+    switch ($state)
+    {
+    case DOKU_LEXER_ENTER:
+      // Increment the counter for tabbed area identifiers
+      $this->tab_area_counter++;
+      // Reset these two variables used to track progress through tabbed area
+      $this->current_tab = '';
+      $this->tab_counter = 0;
+      // Separate the tab names - hopefully there are the same number as tabbed
+      // areas otherwise things will go strange
+      $this->tab_names = array();
+      if (preg_match('/tabs="(.+)"/', $match, $matches))
+      {
+        $this->tab_names = explode(',', $matches[1]);
+      }
+      // When rendered this command will create the unordered list that acts as
+      // the tabs themselves as well as the precursor for the tabbed content.
+      $this->_debugPrint("Handler=>enter tabbed area: " . $matches[1]);
+      return array($state, array('action' => 'open tabbed area',
+                                 'tab_area_id' => $this->tab_area_counter,
+                                 'tab_names' => $this->tab_names,
+                                 'default_tab' => $this->getConf('defaulttab'),
+                                 'bytepos' => $pos));
+      break;
+
+    case DOKU_LEXER_MATCHED:
+      // Open tab area
+      if ($match == '<TAB>' && $this->current_tab == '')
+      {
+        $this->current_tab = $this->tab_names[$this->tab_counter];
+        $this->tab_counter++;
+        $this->current_tab_number = $this->tab_counter;
+        $active = false;
+        if ($this->current_tab == $this->getConf('defaulttab'))
+        {
+          $active = true;
+        }
+        // When rendered this command will open the div serving as a tabbed
+        // area's content
+        $this->_debugPrint("Handler=>open tab: " . $this->current_tab);
+        return array($state, array('action' => 'open tab',
+                                   'tab_area_id' => $this->tab_area_counter,
+                                   'tab_number' => $this->tab_counter,
+                                   'active' => $active,
+                                   'bytepos' => $pos));
+      }
+      if ($match == '</TAB>')
+      {
+        $this->_debugPrint("Handler=>close tab: " . $this->current_tab);
+        // Housekeeping
+        $this->current_tab = '';
+        $this->current_tab_number = 0;
+        // When rendered this command closes the tabbed area content div
+        return array($state, array('action' => 'close tab',
+                                   'bytepos' => $pos + strlen($match)));
+      }
+      if (preg_match('/(={2,6})\s*(.+?)\s*={2,6}/', $match, $matches))
+      {
+          $params = array();
+          $params['action'] = 'heading';
+          $params['title']  = $matches[2];
+          $params['level']  = 7 - strlen($matches[1]);
+          return array($state, $params);
+          //$handler->_addCall('header',array($params['title'],$params['level'],$pos),$pos);
+          //return false;
+      }
+      break;
+
+    case DOKU_LEXER_EXIT:
+        $this->_debugPrint("Handler=>exit tabbed area");
+      return array($state, array('action' => 'close tabbed area',
+                                 'bytepos' => $pos + strlen($match)));
+      break;
+
+    case DOKU_LEXER_UNMATCHED:
+        $this->_debugPrint("Handler=>unmatched: " . $match);
+      return array($state, $match);
+      break;
+    }
+
+    return array();
+  }
+
+  /**
+   * Handle the actual output creation.
+   *
+   * <p>
+   * The method checks for the given <tt>$aFormat</tt> and returns
+   * <tt>FALSE</tt> when a format isn't supported. <tt>$aRenderer</tt>
+   * contains a reference to the renderer object which is currently
+   * handling the rendering. The contents of <tt>$aData</tt> is the
+   * return value of the <tt>handle()</tt> method.
+   * </p>
+   * @see handle()
+   */
+  function render($mode, &$renderer, $data)
+  {
+    if($mode == 'xhtml')
+    {
+      list($state, $params) = $data;
+
+      switch ($state)
+      {
+      case DOKU_LEXER_ENTER:
+        if ($this->divide_edit_section && method_exists($renderer, 'finishSectionEdit'))
+        {
+          $renderer->finishSectionEdit($params['bytepos']);
+        }
+        $renderer->doc .= '</p>'; // Provide match for illegal wrapping <p>
+        $renderer->doc .= '
+
+<!-- Tabbed Area - Begin -->
+<div class="tabbed_area" id="simpletabs-t' . $params['tab_area_id'] . '">
+  <ul class="tabs">
+';
+        $total_tab_count = count($params['tab_names']);
+        $tab_count = 0;
+        foreach ($params['tab_names'] as $tab_name)
+        {
+          $tab_count++;
+          $renderer->doc .= '    <li><a href="javascript:tabSwitch(' . $params['tab_area_id'] . ',' . $total_tab_count . ',' . $tab_count . ');" id="simpletabs-t' . $params['tab_area_id'] . '_' . $tab_count . '"';
+          if ($tab_name == $params['default_tab'])
+          {
+            $renderer->doc .= ' class="active"';
+          }
+          $renderer->doc .= '>' . $tab_name . '</a></li>
+';
+        }
+        $renderer->doc .= '  </ul>
+';
+        break;
+
+      case DOKU_LEXER_MATCHED:
+          switch($params['action'])
+          {
+          case 'open tab':
+              $extra_classy = '';
+              if ($this->divide_edit_section && method_exists($renderer, 'startSectionEdit'))
+              {
+                  $extra_classy = $renderer->startSectionEdit($params['bytepos'], 'plugin_simpletabs');
+              }
+              $renderer->doc .= '  <div id="simpletabs-tc' . $params['tab_area_id'] . '_' . $params['tab_number'] . '" class="tab ' . $extra_classy . '" ';
+              if (!$params['active'])
+              {
+                  $renderer->doc .= ' style="display:none;"';
+              }
+              $renderer->doc .= '>';
+              $renderer->doc .= '<p>'; // Open bogus </p>
+              break;
+          case 'close tab':
+              if ($this->divide_edit_section && method_exists($renderer, 'finishSectionEdit'))
+              {
+                  $renderer->finishSectionEdit($params['bytepos']);
+              }
+              $renderer->doc .= '</p>'; // Close bogus <p>
+              $renderer->doc .= '<div style="clear:both;height:0px;"></div>';
+              $renderer->doc .= '</div>';
+              break;
+          case 'heading':
+              $renderer->doc .= '<h' . $params['level'] . '>' . $params['title'] . '</h' . $params['level'] . '>';
+              break;
+          default:
+              $renderer->doc .= '<p>Error! Unknown action: ' . $params['action'] . '</p>';
+          }
+        break;
+
+      case DOKU_LEXER_EXIT:
+        $renderer->doc .= '</div>
+<!-- Tabbed Area - End -->
+';
+        $renderer->doc .= '<p>'; // Provide match for illegal wrapping <p>
+        if ($this->divide_edit_section && method_exists($renderer, 'startSectionEdit'))
+        {
+          $class = $renderer->startSectionEdit($params['bytepos'], 'plugin_simpletabs');
+          $renderer->doc .= '<div class="' . $class . '">';
+        }
+        break;
+
+      case DOKU_LEXER_UNMATCHED:
+        $renderer->doc .= $params;
+        break;
+      }
+      return true;
+    }
+    return false;
+  }
+}
+
+//Setup VIM: ex: et ts=4 enc=utf-8 :
+?>
Index: documentation/trunk/wiki/templates/greenstone-monobook/.htaccess
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/.htaccess	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/.htaccess	(revision 30132)
@@ -0,0 +1,14 @@
+#Note: If this file prevents running monobook in your environment, simply delete
+#      it. Everything should be safe even if the files blocked by the following
+#      Apache rules are accessible.
+#      The reason for protecting these files is to to keep searchengines/foo
+#      away from indexing files containing version information, names and/or not
+#      necessarily public template parts by default.
+<FilesMatch "^inc_(detail|cite)\.php$">
+  Order Deny,Allow
+  Deny from all
+</FilesMatch>
+<FilesMatch "^(README|README-de|COPYING|ChangeLog|CREDITS|VERSION|style\.ini|template\.info\.txt|detail\.php|main\.php|mediamanager\.php)$">
+  Order Deny,Allow
+  Deny from all
+</FilesMatch>
Index: documentation/trunk/wiki/templates/greenstone-monobook/COPYING
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/COPYING	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/COPYING	(revision 30132)
@@ -0,0 +1,345 @@
+		    GNU GENERAL PUBLIC LICENSE
+		       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+			    Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+
+		    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+			    NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+		     END OF TERMS AND CONDITIONS
+
+
+	    How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year  name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Library General
+Public License instead of this License.
Index: documentation/trunk/wiki/templates/greenstone-monobook/CREDITS
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/CREDITS	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/CREDITS	(revision 30132)
@@ -0,0 +1,70 @@
+Title: Credits of the monobook template for DokuWiki
+Creation date: 2010-01-08
+Last Update: 2011-05-04
+Author: Andreas Haerter <development [Ã€t] andreas-haerter.com>
+Web: <http://andreas-haerter.com/projects/dokuwiki-template-monobook>
+     <http://www.dokuwiki.org/template:monobook>
+
+
+This file lists contributors and contributions to this template for DokuWiki
+
+ * Terence J. Grant <http://tjgrant.com>
+   This template is heavily inspired and partially based on the great
+   "Monobook for DokuWiki" template by Terence J. Grant. He developed the
+   template from 2006 until the end of 2009 but did not have enough time to
+   maintain it any longer. Thank you for your work and your ideas!
+
+
+ * Tamara GÃ¶bes <amafinn.de>
+   Tamara contributed the French language files. Thank you for this!
+
+
+ * Luigi Micco <l.micco [Ã€t] tiscali.it> <http://www.luigimicco.altervista.org>
+   Luigi contributed the Italian language files an reported a few bugs. Thank
+   you for this!
+
+
+ * Yoshitaka Kunikane <y.kunikane [Ã€t] gmail.com>
+   Yoshitaka contributed the Japanese language files. Thank you for this!
+
+
+ * Henrik KarlstrÃžm <henrik.karlstrom [Ã€t] ntnu.no>
+   Henrik contributed the Norwegian language files. Thank you for this!
+
+
+ * SÃ©rgio Evandro Motta <sergio [Ã€t] cisne.com.br>
+   SÃ©rgio Evandro Motta contributed the Brazilian Portuguese language files.
+   Thank you for this!
+
+
+ * Theo Klein
+   Theo Klein contributed the Dutch language files and some ideas. Thank you for
+   this!
+
+
+ * Stefan Riemer <http://wiki.familie-riemer.net>
+   Thanks to Stefan Riemer, especially for helping so many monobook users at
+   <http://forum.dokuwiki.org/>.
+
+
+ * Jacobo MarÃ­a Pantoja Checa <jacobopantoja [Ã€t] yahoo.es>
+   Jacobo MarÃ­a Pantoja Checa contributed the Spanish language files. Thank you
+   for this!
+
+
+ * Martin Hanula <mh.ikar [Ã€t] gmail.com>
+   Martin Hanula contributed the Slovak language files. Thank you for this!
+
+
+ * Andrzej PruszyÅski
+   Andrzej PruszyÅski contributed the Polish language files. Thank you for this!
+
+
+ * Aleksej Kuznecov <ka2pink [Ã€t] gmail.com>
+   Aleksej Kuznecov contributed the Espereanto language files. Thank you for
+   this!
+
+
+ * Yuri Timofeev <http://tim4dev.blogspot.com/>
+   Yuri Timofeev contributed the Russion language files. Thank you for this!
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/ChangeLog
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/ChangeLog	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/ChangeLog	(revision 30132)
@@ -0,0 +1,312 @@
+Title: Development changelog of the monobook template for DokuWiki
+Creation Date: 2010-01-09
+Last Update: 2011-11-25
+Author: Andreas Haerter <development [Ã€t] andreas-haerter.com>
+Web: <http://andreas-haerter.com/projects/dokuwiki-template-monobook>
+     <http://www.dokuwiki.org/template:monobook>
+
+
+
+PLEASE NOTE: I am NO native English speaker. If you find any errors please let
+             me know (e.g. by mail). Otherwise, my English is not getting better
+             (as desired by myself). Thank you! -- Andreas Haerter
+
+
+ATTENTION: I will not update this file anymore. Have a look at
+           <https://github.com/andreashaerter/dokuwiki-template-monobook/> and
+           <http://www.dokuwiki.org/template:monobook#version_history> if you
+           want to know what changed under the hood.
+
+
+
+2011-03-16  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Switched CSS base from switch css base from 'default' to 'starter' template.
+    See <http://j.mp/f7V4ES> and <http://j.mp/eq8zSo> for background
+    information.
+
+  * DokuWiki 2010-11-07 compatibility fixes and smaller improvements.
+
+  * Added Slovak language files
+    Thanks to Martin Hanula :-) (see CREDITS for details).
+
+  * This will be the last manual changelog update.
+    We are living in times of useful OSS development platforms. Have a look at
+    <https://github.com/andreashaerter/dokuwiki-template-monobook/> if you want
+    to know what changed.
+
+
+2010-08-17  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Added /user/tracker.php to make web analytics software integration easier
+    See README for details.
+
+  * Fixed bug: Pull down menus/pickers are invisible (editor toolbar)
+    If editing any page, the pull down menu of "Select Headline", "Smileys" and
+    "Special Chars" buttons didn't show up cause of an z-index issue. This is
+    fixed now.
+
+
+2010-08-16  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Changed list styles (<ul>, <ol> -> list-style-image and indentation/margin)
+    They are finally looking like the ones of the MediaWiki vector. If you want
+    the previous indentation back, put the following into your /user/screen.css:
+      div#content .dokuwiki ul {
+        margin: 0 0 0.8em 3.5em !important;
+      }
+
+  * CSS-fix: Wrong font-site for <code> and <pre> @ insitu-footnotes
+
+  * Changed Table of contents (TOC) styles
+    Now it looks as usual (compared with the default tamplate)
+
+
+2010-06-29  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Small IE6 compatibility fixes.
+
+
+2010-06-28  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * New config option: closed wiki
+    If active, most tabs/boxes will be hidden until user is logged in.
+
+  * Template respects $conf['disableactions']
+    Links to disabled functions should be hidden now.
+
+  * Completely changed the way CSS was handled
+    See <http://j.mp/eq8zSo> why I am do this.
+
+  * Better/new implementation of Andreas Gohr's "translation" plugin integration
+    Translations are now linked within the sidebar. The language name will be
+    taken from the title attribute (-> introduced in newer plugin versions), so
+    you may have to update the plugin. See
+    <http://www.dokuwiki.org/plugin:translation> to get the newest version.
+
+  * MANY minor improvements
+
+
+2010-06-26  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * New config option: user pages
+    You can (de)activate user pages now + choose a custom namespace for them.
+
+  * Support for PNG favicons
+    I do NOT recommend PNG for favicons (cause it is not supported by
+    all browsers), but some users requested this feature. See README for
+    details.
+
+  * I replaced all "wl(getID())" with "wl(cleanID(getID())".
+    Additionally, all "auth_quickaclcheck(trim($id, ":))" where replaced with
+    "auth_quickaclcheck(cleanID($id))". See comment on
+    <http://bugs.splitbrain.org/index.php?do=details&task_id=1983> for details.
+
+
+2010-06-05  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Some PHP DocBlock Updates
+
+  * Minor CSS improvements
+
+
+2010-06-02 Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Added workaround for the "Jumping textarea" MSIE8 bug
+
+  * Added Spanish language files
+    Thanks to Jacobo MarÃ­a Pantoja Checa :-) (see CREDITS for details).
+
+
+2010-05-30  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Fixed wrong array keys in "/lang/it/settings.php"
+
+
+2010-05-29  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Added Dutch language files
+    Thanks to Theo Klein :-) (see CREDITS for details).
+
+  * Added Brazilian Portuguese language files
+    Thanks to SÃ©rgio Evandro Motta :-) (see CREDITS for details).
+
+  * Addes some more examples to /user/boxes.php
+
+
+2010-05-28  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Configurable: Table of contents
+    You are now be able to choose: show the TOC placed at the left column or
+    embedded within the article (which is the default/normal behavior). See the
+    config option "monobook_toc_position" for details.
+    Thanks to Kai Raven <http://blog.kairaven.de/> for this suggestion.
+
+  * Removed "access denied" messages for included pages
+    If a client is not able to access an included wikipage, an "access denied"
+    message was shown instead of the rendered page content. Many users were
+    wishing another behaviour at least for the navigation - I will follow them
+    and therefore simply nothing will be shown now if an included page is not
+    accessible.
+
+  * Added link to recent changes link to the default toolbox.
+
+  * "/static/css/screen.css": changed the background color for <file> tags form
+    __background_alt__ to __background_other__. the get the old color back,
+    insert the following into "/user/screen.css":
+    div.dokuwiki pre.file {
+      background-color: #dee7ec;
+    }
+    div.dokuwiki dl.file dt {
+      background-color: #dee7ec;
+      border-bottom: 1px solid #dee7ec;
+    }
+
+  * Removed rev="nofollow" for backlinks-link in default toolbox
+
+  * Fixed wrong path of toolbar button background in "/static/css/screen.css"
+
+  * Some minor improvements + fixed reported bugs
+
+  * Renamed "/static/3rd/style.css" into "/static/3rd/index.html"
+    Argh. I created these "index.html" files in all subdirs of the template to
+    prevent directory browsing on misconfigured webservers but did not noticed
+    this file naming error until today. :-/ If you upgrade, you may delete
+    "/static/3rd/style.css" (to be on the safe side: check if the file contains
+    HTML instead of CSS. If yes, it is the correct one to delete.). But this is
+    just a cosmetic action, so if you do not know what I am talking about here,
+    just do not touch anything. ;-)
+
+
+2010-01-22  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Fixed "id"-Bug in _monobook_renderBoxes()
+
+  * Addes some more examples to /user/tabs.php and /user/boxes.php
+
+
+2010-01-21  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Small updates to /user/tabs.php
+
+  * Removed quotes from style.ini
+    Some environments seem to have trouble with INI-entries like
+    > foobar="screen"
+    Replaced them trough entries like
+    > foobar=screen
+
+
+2010-01-20  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Added Norwegian language files
+    Thanks to Henrik KarlstrÃžm :-) (see CREDITS for details).
+
+  * Updated Japanese language files (fixed errors)
+    Thanks to Yoshitaka Kunikane :-) (see CREDITS for details).
+
+  * Added "/bug49642.php"
+    This file provides a workaround for PHP bug #49642. For details, see the
+    bugreport at <http://bugs.php.net/bug.php?id=49692>. If you see errors like
+    "syntax error, unexpected '/' in ../../lib/tpl/monobook/style.ini on line
+    XX" in your logs, simply delete monobook's style.ini to trigger the usage
+    of the workaround. Thanks to Marc and virk for reporting this.
+
+
+2010-01-19  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Updated French language files (fixed errors)
+    Thanks to Tamara GÃ¶bes :-) (see CREDITS for details).
+
+  * Updated Japanese language files
+    Thanks to Yoshitaka Kunikane :-) (see CREDITS for details).
+
+  * Fixed some typos, minor improvements
+
+
+2010-01-17  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Added box examples in /user/boxes.php
+
+  * Updated README regarding the usage of user defined boxes for the left column
+
+  * Added comments in all .htaccess files (regarding file security)
+    Commented the files to make sure that these additional Apache rules are not
+    necessary to use monobook in a safe way. Additionally, some rules were
+    updated to match newly created files in the /user directory.
+
+
+2010-01-16  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Created /user/boxes.php, /conf/boxes.php
+    Left-column boxes are now configurable. See README for details.
+
+  * Added new option $conf["monobook_mediamanager_embedded"]
+    If enabled (=default), the mediamanager will be shown in the content area
+    like a normal article (including navigation and stuff). If disabled, tabs,
+    navigation and footer will be hidden to get a non-embedded, full-width
+    media manager like it is known by the default DokuWiki template.
+
+  * Added Japanese language files
+    Thanks to Yoshitaka Kunikane :-) (see CREDITS for details).
+
+  * Updated French language files
+    Thanks to Tamara GÃ¶bes :-) (see CREDITS for details).
+
+  * Created /VERSION
+    Text file to make it easier for users to determine which version of the
+    monobook-template is installed. Updated /.htaccess rules to protect the
+    file.
+
+  * Fixed some IE only CSS-issues (no selected tabs, no icons in admin area)
+    Thanks to Casper for reporting the bugs.
+
+  * Added DokuWiki environment check in several files (e.g. language files)
+
+
+2010-01-13  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Created /user/tabs.php
+    Own tabs should be defined at /user/tabs.php from now on to make updates
+    easy going. See README for details.
+
+  * Created /user/buttons.php, /conf/buttons.php
+    Footer buttons/links are now configurable. See README for details.
+
+  * Added Italian language files
+    Thanks to Luigi Micco :-) (see CREDITS for details).
+
+  * Removed second call of html_msgarea()
+    Some people where confused when messages are showed both on top and bottom
+    of the page. Thanks to Luis Machuca <gulix.cl> for reporting this.
+
+  * Added "Export PDF" tab for the html2pdf plugin
+    Thanks to Luigi Micco for submitting this (see the following for plugin
+    info: <http://www.dokuwiki.org/plugin:html2pdf>).
+
+  * Optional site notice was rendered outside the main content divs
+    Therefore needed CSS classes were not applied to the rendered content of
+    the class. Solution: moved deeper into the XHTML structure, inside
+    <div id="bodyContent"><div class="dokuwiki">. Thanks to Luigi Micco for
+    reporting this bug.
+
+  * Added some CSS to mark missing "edit summary" input in the admin menu
+
+  * Removed PHP code for Terence J. Grant's Google Analytics for DokuWiki
+    The main.php took care about Terence J. Grant's Google Analytics for
+    DokuWiki (see <http://www.dokuwiki.org/plugin:googleanalytics>), but I saw
+    today, that this is simply not needed anymore (-> quote 2009-05-25: "Plugin
+    is now an action plugin that requires no additional PHP code modification.
+    Thanks to Mikhail I. Izmestev for this fix.)
+
+
+2010-01-12  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Using wl() instead of DOKU_BASE/DOKU_SCRIPT for link creation
+
+  * Added French language files
+    Thanks to Tamara GÃ¶bes :-) (see CREDITS for details).
+
+
+2010-01-11  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Renamed the template from "monodoku" to "monobook"
+    Michael (known as "chimeric", <chimeric.de>) contacted me on 2010-01-10
+    because he talked to Terence J. Grant <http://tjgrant.com/> to maintain
+    the template in the future (Terence does not have enough time to do this any
+    longer). After some investigation, he though about a rewrite... something I
+    already done with the release of "monodoku" ;-). After talking a bit, we
+    decided it is the best way to rename "monodoku" into "monobook" and provide
+    an upgrade path for the people who are using the no-longer-maintained
+    "Monobook for DokuWiki" by Terence J. Grant to get the things working
+    smoothly.
+
+  * Rewriting CSS rules
+    All new DokuWiki features are supported right now (e.g Link Wizard,
+    downloadable code blocks...).
+
+  * Fixed permanent link issue
+
+
+2010-01-09  Andreas Haerter <development [Ã€t] andreas-haerter.com>
+  * Initial release.
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/README
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/README	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/README	(revision 30132)
@@ -0,0 +1,377 @@
+Title: README of the monobook template for DokuWiki
+Creation date: 2010-01-05
+Last Update: 2011-11-24
+Author: Andreas Haerter <development [Ã€t] andreas-haerter.com>
+Web: <http://andreas-haerter.com/projects/dokuwiki-template-monobook>
+     <http://www.dokuwiki.org/template:monobook>
+
+
+
+PLEASE NOTE: I am NO native English speaker. If you find any errors please let
+             me know (e.g. by mail). Otherwise, my English is not getting better
+             (as desired by myself). Thank you! -- Andreas Haerter
+
+
+
+I. Using/Installing the template
+  Using "monobook" is simple and works just as described at
+  <http://www.dokuwiki.org/template>: extract the downloaded archive into
+  your DokuWiki's "lib/tpl/" folder. Then select the template in the Config
+  Manager by adjusting the template option. Done. :-)
+
+  If you are updating an existing monobook-installation: please have a look at
+  <http://www.dokuwiki.org/template:monobook>, you should find all needed
+  information there.
+
+  NOTE: If everything will be displayed unformatted, your PHP environment is
+        probably affected by PHP bug #49692 (see bugreport at
+        <http://bugs.php.net/bug.php?id=49692> for details). You may find errors
+        like "syntax error, unexpected '/' in ../../lib/tpl/monobook/style.ini
+        on line XX" in your PHP logs when this is the case. monobook provides
+        a workaround for this, simply delete monobook's "style.ini" to trigger
+        the template to use it.
+
+
+
+II. Customizing the template
+  In order to make updates of your installed "monobook" template easy, follow
+  these hints for customizing the template:
+
+  - Place your files in "monobook/user"
+    The place for *all* userdefined, custom stuff is "monobook/user".
+    Reason: this folder will not be touched on updates. Therefore you may delete
+    everything except "monobook/user" and copy all new files into "monobook/" to
+    update without loosing your changes. Do not forget to empty your browser's
+    cache afterwards.
+
+  - Own logo
+    If you want to replace the default logo showed in the upper left, simply
+    create a "logo.[png|gif|jpg]" in "monobook/user". The template recognizes
+    the file automatically and will use it instead of the default logo.
+    Do not forget to empty your browser's cache afterwards.
+
+  - Own favicon
+    If you want to replace the default favicon, simply create a "favicon.ico" in
+    "monobook/user". The template recognizes the file automatically and will use
+    it instead of the default one. Do not forget to empty your browser's cache
+    afterwards. By the way: you might find the following online tool useful:
+    <http://tools.dynamicdrive.com/favicon/>.
+    Note: "favicon.png" is also possible but not recommended (cause it is not
+          supported by most MSIE versions).
+
+  - Own CSS
+    To apply additional CSS rules, edit "monobook/user/screen.css" (influences
+    normal layout) and/or "monobook/user/print.css" (influences print layout)
+    and/or "monobook/user/rtl.css" (influences "right-to-left" languages like
+    hebrew). These files will be included automatically (as the last ones for
+    the relevant media, therefore you are able to overrule existing styles). Do
+    not forget to empty your browser's cache afterwards.
+
+  - Own JavaScript
+    To load additional JavaScript, edit "monobook/user/user.js". Do not forget
+    to empty your browser's cache afterwards.
+    ATTENTION: Do not forget to activate the template option
+               "monobook_loaduserjs" (->"Load 'monobook/user/user.js'?") in the
+               DokuWiki Config Manager!
+
+  - Own CSS, language specific
+    To apply additional CSS rules only for a specific language, edit/create
+    "monobook/lang/<your-language>/style.css". This file will be included
+    automatically if DokuWiki runs/shows a page in the language of choice (as
+    the last one, therefore you are able to overrule existing styles). Do
+    not forget to empty your browser's cache afterwards.
+
+  - Own tabs
+    To apply own tabs, have a look at "monobook/user/tabs.php". Don't worry:
+    you will find some examples how to define the tabs. If you still have
+    questions after playing with the examples, search
+    <http://dokuwiki.org/template:monobook> and/or the DokuWiki Forum at
+    <http://forum.dokuwiki.org> and/or ask the community if you can't get it
+    work.
+    If "monobook/user/tabs.php" does not exist, simply copy it out of the
+    current actual installation archive.
+
+  - Own footer buttons
+    To apply own buttons/graphics in the footer (-> these small 80x15 pics),
+    have a look at "monobook/user/buttons.php". Don't worry: you will find some
+    examples how to define the buttons. If you still have questions after
+    playing with the examples, search <http://dokuwiki.org/template:monobook>
+    and/or the DokuWiki Forum at <http://forum.dokuwiki.org> and/or ask the
+    community if you can't get it work.
+    If "monobook/user/buttons.php" does not exist, simply copy it out of the
+    current actual installation archive.
+
+  - Own boxes
+    To apply own boxes in the left column/sidebar, have a look at
+    "monobook/user/boxes.php". Don't worry: you will find some examples how to
+    define the boxes. If you still have questions after
+    playing with the examples, search <http://dokuwiki.org/template:monobook>
+    and/or the DokuWiki Forum at <http://forum.dokuwiki.org> and/or ask the
+    community if you can't get it work.
+    If "monobook/user/boxes.php" does not exist, simply copy it out of the
+    current actual installation archive.
+
+  - Web analytics software (Piwik, Google Analytics etc.)
+    Tools like Piwik and Google Analytics normally provide a small code snippet
+    ("tag") which you have to include at your website to make everything work.
+    If you want to use such software with this template, have a look at
+    "monobook/user/tracker.php". This file exists to make it easier for you.
+    You don't have to deliberate where you have to copy and paste the code,
+    simply do it there.
+
+  - Own Apple Touch Icon
+    If you want to replace the default Apple Touch Icon, simply create a
+    "apple-touch-icon.png" in "monobook/user". The template recognizes the file
+    automatically and will use it instead of the default one. Have a look at
+    Apple's developer database if you need more information ("Configuring Web
+    Applications" <http://j.mp/sx3NMT>).
+
+
+
+III. Some notes about the dirs of this template
+  * "monobook/conf"
+    Contains some configuration files (do NOT edit them!), especially
+    default.php:  default settings, see
+                  <http://www.dokuwiki.org/devel:configuration#default_settings>
+    metadata.php: configuration metadata, see
+                  <http://www.dokuwiki.org/devel:configuration#configuration_metadata>
+  * "monobook/lang"
+    Language files (subdir names = language code). You may copy the English
+    language files and translate them if your language is missing. Simply mail
+    me, Andreas Haerter, the translated files and I will include them in the
+    next release :-D.
+  * "monobook/static"
+    Static files (images, CSS, JavaScript). The interesting stuff is located
+    in subdirs (as described below).
+    - "3rd"
+      Static files originally taken from a third party like MediaWiki or
+      DokuWiki. The subdir "dokuwiki" contains files originally taken from the
+      DokuWiki "default" or "starter" template. The subdir "monobook" contains
+      files taken from the MediaWiki "monobook" skin.
+    - "css"
+      All non-3rd-party Cascading Style Sheets (CSS). See <http://j.mp/eq8zSo>
+      for more information about how the CSS is handled.
+    - "img"
+      All non-3rd-party images files.
+    - "js"
+      All non-3rd-party JavaScript files.
+  * "monobook/user"
+    Place for userdefined stuff. E.g. if you want to replace the default-logo,
+    simply copy a logo.[png|gif|jpg] in here. See "II. Customizing the template"
+    for details.
+
+
+
+IV. Other notes
+  - Even if it is not required: If you like the template, think about a small
+    donation (see <http://andreas-haerter.com/donate/dokuwiki-template-monobook>)
+    and/or a link to <http://andreas-haerter.com/projects/dokuwiki-template-monobook>.
+    Thanks :-).
+
+  - This template follows the DokuWiki coding style (see
+    <http://www.dokuwiki.org/devel:coding_style>). If you want to submit any
+    patches, please respect its rules (even if you don't like it - I also don't
+    love it but this simply does not matter).
+
+  - Feel free to send patches or suggestions via mail (or post on
+    <http://www.dokuwiki.org/template:monobook>).
+
+  - Please don't delete the "index.html" and ".htaccess" files for security
+    reasons, even if you don't know why they are there. These files should
+    prevent others from listing directory contents (a built in feature of most
+    webservers) and providing additional access protection for some files. Even
+    if everything should be secure without, I prefer some additional
+    precautions.
+
+
+
+V. About
+  "monobook" is a template to offer MediaWiki/Wikipedia Look&Feel to DokuWiki.
+  It is created by me, Andreas Haerter and heavily inspired and partially based
+  on the great "Monobook for DokuWiki" template originally maintained by
+  Terence J. Grant (<http://tjgrant.com/>) from 2006 until the end of 2009.
+  If you have any suggestions and/or bug reports, feel free to post on
+  <http://www.dokuwiki.org/template:monobook>, send me an email or have a look
+  at <http://andreas-haerter.com/contact>.
+
+  After some discussion and a quick release as "monodoku", this template was
+  renamed to "monobook" to replace the existing "Monobook for DokuWiki" by
+  Terence J. Grant cause Terence got no more time for maintenance (BTW: Terence,
+  thank you for your work and your great(!) ideas I got from your "Monobook for
+  DokuWiki"). To cut a long story short: you may call this template a
+  rewrite/successor of Terence J. Grant's "Monobook for DokuWiki".
+
+  There are some reasons for a complete rewrite (instead of improving/patching
+  Terence J. Grant's one), let me explain the initial situation:
+    * "monobook" is a wide-spread skin for the MediaWiki-Software. It is also
+      used by Wikipedia right now (Jan 2010).
+    * Terence J. Grant (<http://tatewake.com/>) created "monobook for DokuWiki".
+      He emulated some missing MediaWiki features within the DokuWiki
+      environment with his template (e.g.: discussion pages) - he did a great
+      job! The styles themselfs are a relatively hard copy of the original
+      "monobook" css- and js-files from MediaWiki's "monobook" and the Wikipedia
+      website. IMHO Terence had quick updates in mind when doing this (means:
+      when Wikipedia is updating its styles, he might just want to copy the
+      static stuff, comment out some lines and the "porting" would be done). You
+      will find some information about his actions in the README of the replaced
+      "monobook for DokuWiki" by Terence J. Grant (still available at
+      <http://www.dokuwiki.org/template:monobook>).
+    * Terence J. Grant does not have enough time for maintenance (as he said on
+      his website at the end of 2009). Additionally, the roughly wrapped
+      Wikipedia/monobook-styles and the structure were makinging some trouble:
+      - The styles were bloated (-> they are not designed for DokuWiki, most
+        styles are simply not used plus they are specialized for Wikipedia's
+        websites, not even MediaWiki in special).
+      - Hardcoded URLs within some css-files were resulting in problems in SSL
+        environments (-> loading unencrypted content from
+        http://upload.wikimedia.org... additionally, calling third party hosts
+        is bad behaviour + LAN-only environments simply will not get needed
+        files).
+      - The styles.ini was not used, leading to *much* bigger stylesheets and
+        much more HTTP requests because some nice DokuWiki features were not
+        used and/or "Monobook for DokuWiki" was not compatible to (-> "Compact
+        CSS and javascript output").
+     * Terence J. Grant's template needed the "Display Wiki Page"-plugin (which
+       is/was developed by him, too). Right now, this is simply not needed
+       anymore: DokuWiki got a core function named "tpl_include_page()" to do
+       this.
+   That is why I decided to take the great ideas plus some lines of code of
+   Terence J. Grant's "monobook for DokuWiki" to rewrite it, following the
+   appreciated DokuWiki template structure guidelines
+   (-> <http://www.dokuwiki.org/devel:templates>).
+   The downside of this desicion is, that if Wikipedia updates its styles,
+   reverse engineering instead of simple file copying is needed if the new
+   rules should be applied. But I think this is not really dramatical cause
+   not every pinch of change should be ported (and if Wikipedia would get a
+   completely new layout, a new DokuWiki template should be created instead
+   of forcing people to decide: a) not using updates or b) using a style the
+   might not like). I want an optical, not a technical clone.
+
+
+
+VI. Creation transcript
+  Some developers may find this interesting. Additionally, I am very oblivious
+  :-P.
+
+  - Installed DokuWiki (Release "2009-12-25", "Lemming") + Terence J. Grant's
+    "monobook" template for testing purpose.
+
+  - Copied the default template from DokuWiki (Release "2009-12-25", "Lemming")
+    as mentioned at <http://www.dokuwiki.org/devel:templates> and renamed the
+    copy to "monobook". Afterwards, the following files/dirs where deleted:
+    * monobook/images
+    * monobook/_admin.css
+    * monobook/design.css
+    * monobook/footer.html
+    * monobook/layout.css
+    * monobook/_linkwiz.css
+    * monobook/media.css
+    * monobook/print.css
+    * monobook/rtl.css
+
+  - Created the dirs mentioned in "II. Some notes about the dirs of this
+    template".
+
+  - Created "index.html" files in all subdirs of the template to prevent
+    directory browsing. Plus "deny from all" .htaccess files in all relevant
+    template subdirs containing PHP (this is simply some ADDITIONAL security
+    precaution - everything should also be save without these files. But better
+    safe than sorry).
+
+  - Configured DokuWiki to use Terence J. Grant's "monobook" template to
+    determine which styles/files copied from the MediaWiki monobook and/or
+    Wikipedia are really in use (after looking and understanding the template
+    itself, for sure).
+    The interessting folders (as mentioned in the README by Terence J. Grant):
+    * common is from mediawiki
+    * monobook is from mediawiki
+    * wikipedia is from wikipedia
+    After this, I looked at "monobook/lang/*" and "monobook/conf*" (from
+    Terence J. Grant's "monobook") to take some ideas.
+
+  - After investigation, some files were copied into the provided places within
+    "/monobook/static/3rd".
+    - The following 3rd-party styles and files were used/are needed for further
+      development and therefore were copied from Terence J. Grant's "monobook"
+      template:
+      * /monobook/monobook/buttonshadow.png
+      * /monobook/monobook/bullet.gif
+      * /monobook/monobook/discussionitem_icon.gif
+      * /monobook/monobook/external.png
+      * /monobook/monobook/file_icon.gif
+      * /monobook/monobook/headbg.jpg
+      * /monobook/monobook/IE50Fixes.css
+      * /monobook/monobook/IE55Fixes.css
+      * /monobook/monobook/IE60Fixes.css
+      * /monobook/monobook/IE70Fixes.css
+      * /monobook/monobook/IEMacFixes.css
+      * /monobook/monobook/lock_icon.gif
+      * /monobook/monobook/mail_icon.gif
+      * /monobook/monobook/main.css
+      * /monobook/monobook/news_icon.gif
+      * /monobook/monobook/rtl.css
+      * /monobook/monobook/user.gif
+    - The following files were copied from Andreas Gohr's "default" template:
+      * /default/*.css (see <http://j.mp/eq8zSo> why I did that)
+      * /default/images/closed.gif
+      * /default/images/favicon.ico
+      * /default/images/link_icon.gif
+      * /default/images/mail_icon.gif
+      * /default/images/open.gif
+      * /default/images/tocdot2.gif
+      * /default/images/windows.gif
+    - The following files were downloaded from Wikipedia
+      * http://de.wikipedia.org/skins-1.5/common/IEFixes.js
+      * http://de.wikipedia.org/skins-1.5/common/commonPrint.css
+
+  - Edited "monobook/static/3rd/monobook/main.css"
+    - All url() rules were edited (-> "static/3rd/...").
+    - "#catlinks" was replaced with ".catlinks" cause the styles are needed for
+      more than one element.
+    To make this clear, a comment was added at the top of the files.
+
+  - Edited "monobook/static/3rd/dokuwiki/design.css"
+    All url() rules were edited (-> replaced "url(images/" through
+    "url(static/3rd/dokuwiki/").
+    To make this clear, a comment was added at the top of the files:
+    /* ATTENTION: This file was edited for the "monobook template for DokuWiki".
+                  - All url() rules where changed.
+                   See README for details. */
+
+  - Edited "monobook/static/3rd/monobook/IE60Fixes.css"
+    - "#catlinks" was replaced with ".catlinks" cause the styles are needed for
+      more than one element.
+    To make this clear, a comment was added at the top of the files.
+
+  - Created
+    * "monobook/static/css/print.css"
+    * "monobook/static/css/rtl.css"
+    * "monobook/static/css/screen.css"
+    All relevant information should be found within the inline comments.
+
+  - Created the "main.php" for "monobook". Used the main.php of the "default"
+    template as base (as mentioned on the DokuWiki template developer sites),
+    and doing some cherry picking on the Terence J. Grant's "monobook" main.php.
+    After few hours and some coffees later, work was done.
+
+  - Placed the obligatory 80x15 buttons in "/static/img". I copied them
+    from the "default" DokuWiki template (exept "button-monobook.png", for
+    sure). Added the needed markup in the "main.php".
+
+  - Took Andreas Gohr's original "mediamanager.php" and "detail.php" out of the
+    "default" template. After working a little bit, I found a way to prevent
+    additional work and/or redundant code to realize the output of these files.
+    Everything is described through the PHP comments in the files... look at
+    them if needed. I mainly choose the same way like Terence J. Grant.
+
+  - Copied the "do_cite.php" from Terence J. Grant's "monobook", renamed it to
+    "inc_cite.php", and edited everything until it was useful for my template.
+
+  - Worked worked worked.... and done! :-P
+
+  - After ~1 year, I switched the CSS base from DokuWiki's default template
+    to <http://www.dokuwiki.org/template:starter>. See
+    <http://www.freelists.org/post/dokuwiki/Core-devs-I-need-some-info-to-keep-my-templates-maintainable>
+    for more information about this. I edited some files, see 
+    "monobook/static/3rd/dokuwiki/00_starter-tmpl-notes.txt" for details.
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/README-de
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/README-de	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/README-de	(revision 30132)
@@ -0,0 +1,150 @@
+Titel: LiesMich des monobook-Templates fÃŒr DokuWiki
+Erstellungsdatum: 2010-01-08
+Letzte Ãnderung: 2011-04-25
+Autor: Andreas Haerter <development [Ã€t] andreas-haerter.com>
+Web: <http://andreas-haerter.com/projects/dokuwiki-template-monobook>
+     <http://www.dokuwiki.org/template:monobook>
+
+
+
+ACHTUNG: Diese Datei stellt eine AUSZUGSWEISE Ãbersetzung der wichtigsten Teile
+         der englischsprachigen README dar. FÃŒr den vollstÃ€ndigen Text bitte die
+         Datei "README" in diesem Verzeichnis einsehen.
+
+
+
+I. Das Template benutzen/installieren
+  "monobook" zu nutzen ist einfach und funktioniert genau wie unter
+  <http://www.dokuwiki.org/template> beschrieben: Entpacken Sie das
+  heruntergeladene Archiv in das "lib/tpl/"-Verzeichnis Ihrer DokuWiki. WÃ€hlen
+  Sie es dann einfach im Config Manager ÃŒber die "template"-Option aus. Fertig.
+  :-)
+
+  Falls Sie eine bestehende monobook-Installation aktualisieren wollen, werfen
+  Sie bitte einen Blick auf <http://www.dokuwiki.org/template:monobook>. Dort
+  sollten Sie alle benÃ¶tigten Informationen finden.
+
+  HINWEIS: Falls alles unformatiert angezeigt wird, ist Ihre PHP-Umgebung ggf.
+           vom PHP bug Nr. 49692 betroffen (s. entsprechender Bugreport unter
+           <http://bugs.php.net/bug.php?id=49692>). Sie finden evtl. EintrÃ€ge
+           wie "syntax error, unexpected '/' in ../../lib/tpl/monobook/style.ini
+           on line XX" in Ihren PHP-Logs falls dies der Fall sein sollte.
+           monobook bietet einen Workaround fÃŒr diesen Fehler an, lÃ¶schen Sie
+           einfach monobooks "style.ini" um das Template dazu zu bewegen,
+           selbigen zu nutzen.
+
+
+
+II. Das Template anpassen
+  Um Aktualisierungen/Updates des installierten "monobook"-Templates einfach zu
+  gestalten, halten Sie sich bitte an die folgenden Hinweise um das Template
+  anzupassen:
+
+  - Eigene Dateien in "monobook/user" ablegen
+    Der Ort fÃŒr *alle* benutzerdefinierten, angepassten Dinge/Dateien ist
+    "monobook/user".
+    Grund: dieses Verzeichnis wird bei Aktualisierungen nicht angerÃŒhrt. Daher
+    kÃ¶nnen Sie einfach alles auÃer "monobook/user" lÃ¶schen und alle neuen
+    Dateien nach "monobook/" kopieren um das Template zu aktualisieren, ohne
+    Ihre Ãnderungen zu verlieren. Vergessen Sie nicht Ihren Browser-Cache
+    anschlieÃend zu leeren.
+
+  - Eigenes Logo
+    Falls Sie das Standard-Logo, welches in der linken oberen Ecke angezeigt
+    wird, austauschen wollen, legen Sie einfach eine "logo.[png|gif|jpg]"-Datei
+    im "monobook/user"-Ordner an. Das Template erkennt die Datei automatisch und
+    wird sie anstelle des Standard-Logos verwenden. Vergessen Sie nicht Ihren
+    Browser-Cache anschlieÃend zu leeren.
+
+  - Eigenes Favicon
+    Falls Sie das Standard-favicon austauschen wollen, legen Sie einfach eine
+    "favicon.ico"-Datei im "monobook/user"-Ordner an. Das Template erkennt die
+    Datei automatisch und wird sie anstelle des Standard-Favicons verwenden.
+    Vergessen Sie nicht Ihren Browser-Cache anschlieÃend zu leeren. By the way:
+    Vielleicht finden Sie das folgende Online-Werkzeug nÃŒtzlich:
+    <http://tools.dynamicdrive.com/favicon/>
+    Hinweis: "favicon.png" ist ebenfalls mÃ¶glich, wird aber nicht empfohlen (da
+             es von den meisten MSIE-Versionen nicht unterstÃŒtzt wird).
+
+  - Eigene CSS
+    Um eigene CSS-Regeln anzuwenden, editieren Sie einfach
+    "monobook/user/screen.css" (beeinflusst das normale Erscheinungsbild)
+    und/oder "monobook/user/print.css" (beeinflusst das Druck-Erscheinungsbild)
+    und/oder "monobook/user/rtl.css" (beeinflusst "rechts-nach-links"-Sprachen
+    wie HebrÃ€isch). Diese Dateien werden automatisch eingebunden (als letzte
+    fÃŒr das relevante Ausgabemedium, daher kÃ¶nnen Sie auch existierende Styles
+    ÃŒberschreiben). Vergessen Sie nicht Ihren Browser-Cache anschlieÃend zu
+    leeren.
+
+  - Eigenes JavaScript
+    Um zusÃ€tzliches JavaScript zu laden, editieren Sie einfach
+    "monobook/user/user.js". Vergessen Sie nicht Ihren Browser-Cache
+    anschlieÃend zu leeren.
+    ACHTUNG: Vergessen Sie nicht die Template-Option "monobook_loaduserjs"
+             (->"Datei 'monobook/user/user.js' laden?") im DokuWiki Config
+             Manager zu aktivieren!
+
+  - Eigene CSS, sprachspezifisch
+    Um eigene CSS-Regeln nur fÃŒr eine bestimmte Sprache anzuwenden,
+    editieren/erstellen Sie einfach "monobook/lang/<ihre-sprache>/style.css".
+    Diese Datei wird automatisch eingebunden, sobald DokuWiki in der Sprache der
+    Wahl betrieben wird/eine Seite anzeigt (als letzte, daher kÃ¶nnen Sie auch
+    existierende Styles ÃŒberschreiben). Vergessen Sie nicht Ihren Browser-Cache
+    anschlieÃend zu leeren.
+
+  - Eigene Tabs
+    Um eigene Tabs anzuzeigen, editieren Sie einfach "monobook/user/tabs.php".
+    Kein Sorge: Sie finden dort einige Beispiele wie eigene Tabs definiert
+    werden. Falls Sie nach dem ausprobieren der Beispiele immernoch Fragen
+    haben, durchsuchen Sie am besten <http://dokuwiki.org/template:monobook>
+    und/oder das DokuWiki-Forum unter <http://forum.dokuwiki.org> und/oder
+    fragen Sie die dortige Gemeinschaft falls Sie die Probleme beim
+    Konfigurieren der eigenen Tabs nicht selbst lÃ¶sen kÃ¶nnen.
+    Falls "monobook/user/tabs.php" nicht existiert, kopieren Sie die Datei
+    einfach aus dem aktuellen Installationsarchiv.
+
+  - Eigene FuÃleisten-Buttons (Footer)
+    Um eigene Buttons/Grafiken in der FuÃleiste anzuzeigen (-> die kleinen
+    80x15 Bildchen), editieren Sie einfach "monobook/user/buttons.php".
+    Kein Sorge: Sie finden dort einige Beispiele wie eigene Buttons definiert
+    werden. Falls Sie nach dem ausprobieren der Beispiele immernoch Fragen
+    haben, durchsuchen Sie am besten <http://dokuwiki.org/template:monobook>
+    und/oder das DokuWiki-Forum unter <http://forum.dokuwiki.org> und/oder
+    fragen Sie die dortige Gemeinschaft falls Sie die Probleme beim
+    Konfigurieren der eigenen Buttons nicht selbst lÃ¶sen kÃ¶nnen.
+    Falls "monobook/user/buttons.php" nicht existiert, kopieren Sie die Datei
+    einfach aus dem aktuellen Installationsarchiv.
+
+  - Eigene Boxen
+    Um eigene Boxen in der linken Spalte anzuzeigen, editieren Sie einfach
+    "monobook/user/boxes.php". Kein Sorge: Sie finden dort einige Beispiele wie
+    eigene Boxen definiert werden. Falls Sie nach dem ausprobieren der
+    Beispiele immernoch Fragen haben, durchsuchen Sie am besten
+    <http://dokuwiki.org/template:monobook> und/oder das DokuWiki-Forum unter
+    <http://forum.dokuwiki.org> und/oder fragen Sie die dortige Gemeinschaft
+    falls Sie die Probleme beim Konfigurieren der eigenen Buttons nicht selbst
+    lÃ¶sen kÃ¶nnen.
+    Falls "monobook/user/boxes.php" nicht existiert, kopieren Sie die Datei
+    einfach aus dem aktuellen Installationsarchiv.
+
+  - Einbinden von Web-Analyse-Software (Piwik, Google Analytics etc.)
+    Tools wie Piwik und Google Analytics benÃ¶tigen normalerweise einen kleinen
+    Code-Schnipsel ("tag"), welchen man auf der eigenen Website einbinden muss,
+    damit alles funktionieren kann. Sofern man solche Software mit diesem
+    Template einsetzen will, sollte man sich die Datei
+    "monobook/user/tracker.php" anschauen. Sie existiert, um die Integration
+    einfacher zu gestalten und man nicht ÃŒberlegen muss, wo solche Codes
+    eingefÃŒgt werden mÃŒssen: dies ist der korrekte Platz dafÃŒr.
+
+  - Eigenes Apple Touch Icon
+    Falls Sie das Standard-Apple-Touch-Icon austauschen wollen, legen Sie
+    einfach eine "apple-touch-icon.png"-Datei im "monobook/user"-Ordner an.
+    Das Template erkennt die Datei automatisch und wird sie anstelle des
+    Standard-Icons verwenden. Falls Sie mehr Information ÃŒber das Touch Icon
+    benÃ¶tigen finden Sie diese in der Apple Developer Datavase ("Configuring Web
+    Applications" <http://j.mp/sx3NMT>).
+
+
+[...Ende der AUSZUGSWEISEN Ãbersetzung der englischsprachigen README. FÃŒr den
+vollstÃ€ndigen Text bitte die Datei "README" in diesem Verzeichnis einsehen.]
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/VERSION
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/VERSION	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/VERSION	(revision 30132)
@@ -0,0 +1,1 @@
+2011-12-10
Index: documentation/trunk/wiki/templates/greenstone-monobook/bug49642.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/bug49642.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/bug49642.php	(revision 30132)
@@ -0,0 +1,128 @@
+<?php
+
+/**
+ * Helper to provide a workaround for PHP bug #49692
+ *
+ * Some PHP versions are not able to parse INI-files if "/" is used for INI
+ * keynames (known as bug #49692, see <http://bugs.php.net/bug.php?id=49692>).
+ * Therefore, DokuWiki is not able to parse monobook's style.ini and users don't
+ * get the needed CSS (but errors like "syntax error, unexpected '/' in
+ * ../../lib/tpl/monobook/style.ini on line XX" instead). To get things work in
+ * such environments, simply delete the "style.ini". Then the template uses
+ * this helper to get the CSS.
+ *
+ * Known disadvantages: A little bit more traffic compared to an environment
+ * without this bug and DokuWiki's "compress" feature enabled (cause this
+ * feature does not have any effect on monobook's CSS files when using this
+ * workaround, and therefore non-minimized and uncompressed CSS will be
+ * delivered).
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://bugs.php.net/bug.php?id=49692
+ * @link http://forum.dokuwiki.org/thread/4827
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:css#styleini
+ */
+
+
+//workaround for PHP Bug #49692
+//If you are affected, simply delete monobook's style.ini to trigger the
+//template to use this workaround.
+
+//we are rebuilding a CSS file, send needed headers (otherwise, the browser
+//would interpret this as text/plain or XHTML)
+header("Content-Type: text/css");
+
+//define placeholders as they are known out of the style.ini
+$placeholder_names = array(//main text and background colors
+                           "__text__",
+                           "__background__",
+                           //alternative text and background colors
+                           "__text_alt__",
+                           "__background_alt__",
+                           //neutral text and background colors
+                           "__text_neu__",
+                           "__background_neu__",
+                           //border color
+                           "__border__",
+                           //these are used for links
+                           "__existing__",
+                           "__missing__",
+                           //highlighting search snippets
+                           "__highlight__",
+                           //starter template css base compatibility
+                           "__site_width__",
+                           "__sidebar_width__");
+$placeholder_values = array(//main text and background colors
+                            "#000",
+                            "#fff",
+                            //alternative text and background colors
+                            "#000",
+                            "#dee7ec",
+                            //neutral text and background colors
+                            "#000",
+                            "#fff",
+                            //border color
+                            "#8cacbb",
+                            //these are used for links
+                            "#002bb8", //use #090 for dokuwiki-green links
+                            "#ba0000",
+                            //highlighting search snippets
+                            "#ff9",
+                            //starter template css base compatibility
+                            "64em",
+                            "16em");
+
+//get needed file contents: screen media CSS
+$interim =  trim(file_get_contents("./static/3rd/dokuwiki/_imgdetail.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_media_popup.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_media_fullscreen.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_fileuploader.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_tabs.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_links.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_toc.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_footnotes.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_search.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_recent.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_diff.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_edit.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_modal.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_forms.css"))."\n"
+           .trim(file_get_contents("./static/3rd/dokuwiki/_admin.css"))."\n"
+           .trim(file_get_contents("./static/3rd/monobook/main.css"))."\n"
+           .trim(file_get_contents("./static/css/screen.css"))."\n"
+           .trim(file_get_contents("./user/screen.css"))."\n";
+if (!empty($_GET["langdir"]) &&
+    $_GET["langdir"] === "rtl"){
+    $interim .=  trim(file_get_contents("./static/3rd/dokuwiki/print.css"))."\n"
+                .trim(file_get_contents("./static/3rd/monobook/rtl.css"))."\n"
+                .trim(file_get_contents("./user/rtl.css"))."\n";
+}
+//replace the placeholders with the corresponding values and send the needed CSS
+echo "@media screen {\n".str_replace(//search
+                                     $placeholder_names,
+                                     //replace
+                                     $placeholder_values,
+                                     //haystack
+                                     $interim)."\n}\n\n";
+
+//get needed file contents: print media CSS
+$interim =  trim(file_get_contents("./static/3rd/dokuwiki/print.css"))."\n"
+           .trim(file_get_contents("./static/3rd/wikipedia/commonPrint.css"))."\n"
+           .trim(file_get_contents("./static/css/print.css"))."\n"
+           .trim(file_get_contents("./user/print.css"))."\n";
+//replace the placeholders with the corresponding values and send the needed CSS
+echo "@media print {\n".str_replace(//search
+                                    $placeholder_names,
+                                    //replace
+                                    $placeholder_values,
+                                    //haystack
+                                    $interim)."\n}\n\n";
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/conf/.htaccess
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/conf/.htaccess	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/conf/.htaccess	(revision 30132)
@@ -0,0 +1,7 @@
+#Note: If this file prevents running monobook in your environment, simply delete
+#      it. Everything should be safe even if the files blocked by the following
+#      Apache rules are accessible.
+#      The reason for protecting these files is to to keep searchengines/foo
+#      away from indexing files containing version information, names and/or not
+#      necessarily public template parts by default.
+Deny from all
Index: documentation/trunk/wiki/templates/greenstone-monobook/conf/boxes.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/conf/boxes.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/conf/boxes.php	(revision 30132)
@@ -0,0 +1,225 @@
+<?php
+
+/**
+ * Default box configuration of the "monobook" DokuWiki template
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:configuration
+ */
+
+
+
+/******************************************************************************
+ ********************************  ATTENTION  *********************************
+         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
+ ******************************************************************************
+  If you want to add some own boxes, have a look at the README of this
+  template and "/user/boxes.php". You have been warned!
+ *****************************************************************************/
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+
+//note: The boxes will be rendered in the order they were defined. Means:
+//      first box will be rendered first, last box will be rendered at last.
+
+
+//hide boxes for anonymous clients (closed wiki)?
+if (empty($conf["useacl"]) || //are there any users?
+    $loginname !== "" || //user is logged in?
+    !tpl_getConf("monobook_closedwiki")){
+
+    //Languages/translations provided by Andreas Gohr's translation plugin,
+    //see <http://www.dokuwiki.org/plugin:translation>. Create plugin object if
+    //needed.
+    if (file_exists(DOKU_PLUGIN."translation/syntax.php") &&
+        !plugin_isdisabled("translation")){
+        $transplugin = &plugin_load("syntax", "translation");
+    } else {
+        $transplugin = false;
+    }
+
+    //navigation
+    if (tpl_getConf("monobook_navigation")){
+        //headline
+        $_monobook_boxes["p-x-navigation"]["headline"] = $lang["monobook_bar_navigation"];
+
+        //detect wiki page to load as content
+        if (!empty($transplugin) &&
+            is_object($transplugin) &&
+            tpl_getConf("monobook_navigation_translate")){
+            //translated navigation?
+            $transplugin_langcur = $transplugin->hlp->getLangPart(cleanID(getId())); //current language part
+            $transplugin_langs   = explode(" ", trim($transplugin->getConf("translations"))); //available languages
+            if (empty($transplugin_langs) ||
+                empty($transplugin_langcur) ||
+                !is_array($transplugin_langs) ||
+                !in_array($transplugin_langcur, $transplugin_langs)) {
+                //current page is no translation or something is wrong, load default navigation
+                $nav_location = tpl_getConf("monobook_navigation_location");
+            } else {
+                //load language specific navigation
+                $nav_location = tpl_getConf("monobook_navigation_location")."_".$transplugin_langcur;
+            }
+        }else{
+            //default navigation, no translation
+            $nav_location = tpl_getConf("monobook_navigation_location");
+        }
+
+        //content
+        if (empty($conf["useacl"]) ||
+            auth_quickaclcheck(cleanID($nav_location)) >= AUTH_READ){ //current user got access?
+            //get the rendered content of the defined wiki article to use as custom navigation
+            $interim = tpl_include_page($nav_location, false);
+            if ($interim === "" ||
+                $interim === false){
+                //creation/edit link if the defined page got no content
+                $_monobook_boxes["p-x-navigation"]["xhtml"] = "[&#160;".html_wikilink($nav_location, hsc($lang["monobook_fillplaceholder"]." (".$nav_location.")"))."&#160;]<br />";
+            }else{
+                //the rendered page content
+                $_monobook_boxes["p-x-navigation"]["xhtml"] = $interim;
+            }
+        }
+        unset($nav_location);
+    }
+
+    //table of contents (TOC) - show outside the article? (this is a dirty hack but often requested)
+    if (tpl_getConf("monobook_toc_position") === "sidebar"){
+        //check if the current page got a TOC
+        $toc = tpl_toc(true);
+        if (!empty($toc)) {
+            //headline
+            $_monobook_boxes["p-toc"]["headline"] = $lang["toc"]; //language comes from DokuWiki core
+
+            //content
+            $_monobook_boxes["p-toc"]["xhtml"]    = //get rid of some styles and the embedded headline
+                                                    str_replace(//search
+                                                    array("<div class=\"tocheader toctoggle\" id=\"toc__header\">".$lang["toc"]."</div>", //language comes from DokuWiki core
+                                                          " class=\"toc\"",
+                                                          " id=\"toc__inside\""),
+                                                    //replace
+                                                    "",
+                                                    //haystack
+                                                    $toc);
+        }
+        unset($toc);
+    }
+
+    //search
+    if (tpl_getConf("monobook_search") &&
+        actionOK("search")){ //check if action is disabled
+        //headline
+        $_monobook_boxes["p-search"]["headline"] = $lang["monobook_bar_search"];
+
+        //content
+        $_monobook_boxes["p-search"]["xhtml"] =  "<form action=\"".wl()."\" accept-charset=\"utf-8\" id=\"dw__search\" name=\"dw__search\">\n"
+                                                ."  <input type=\"hidden\" name=\"do\" value=\"search\" />\n"
+                                                ."  <input id=\"qsearch__in\" name=\"id\" type=\"text\" accesskey=\"f\" value=\"\" />\n"
+                                                ."  <input type=\"button\" class=\"searchButton\" id=\"searchGoButton\" value=\"".hsc($lang["monobook_btn_go"])."\" onclick=\"document.location.href='".DOKU_BASE.DOKU_SCRIPT."?id='+document.getElementById('qsearch__in').value;\" />&#160;\n"
+                                                ."  <input type=\"submit\" name=\"fulltext\" class=\"searchButton\" value=\"".hsc($lang["monobook_btn_search"])."\" />\n"
+                                                ."</form>";
+    }
+
+    //toolbox
+    if (tpl_getConf("monobook_toolbox")){
+        //headline
+        $_monobook_boxes["p-tb"]["headline"] = $lang["monobook_bar_toolbox"];
+
+        //content
+        if (tpl_getConf("monobook_toolbox_default")){
+            //define default, predefined toolbox
+            $_monobook_boxes["p-tb"]["xhtml"] =  "        <ul>\n";
+            $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-refresh\"><a href=\"".wl(cleanID(getId()), array("purge" => "true"))."\" rel=\"nofollow\">Refresh Page</a></li>\n";
+            if (actionOK("backlink")){ //check if action is disabled
+                $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-whatlinkshere\"><a href=\"".wl(cleanID(getId()), array("do" => "backlink"))."\">".hsc($lang["monobook_toolbxdef_whatlinkshere"])."</a></li>\n"; //we might use tpl_actionlink("backlink", "", "", hsc($lang["monobook_toolbxdef_whatlinkshere"]), true), but it would be the only toolbox link where this is possible... therefore I don't use it to be consistent
+            }
+            if (actionOK("recent")){ //check if action is disabled
+                $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-recent\"><a href=\"".wl("", array("do" => "recent"))."\" rel=\"nofollow\">".hsc($lang["btn_recent"])."</a></li>\n"; //language comes from DokuWiki core
+            }
+            /*
+            if (actionOK("media")){ //check if action is disabled
+                if (function_exists("media_managerURL")) {
+                    //use new media manager (available on releases newer than 2011-05-25a "Rincewind" / since 2011-11-10 "Angua" RC1)
+                    $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-upload\"><a href=\"".wl("", array("do" => "media"))."\" rel=\"nofollow\">".hsc($lang["btn_media"])."</a></li>\n"; //language comes from DokuWiki core
+                }else{
+                    $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-upload\"><a href=\"".DOKU_BASE."lib/exe/mediamanager.php?ns=".getNS(getID())."\" rel=\"nofollow\">".hsc($lang["monobook_toolbxdef_upload"])."</a></li>\n";
+                }
+            }
+            */
+            if (actionOK("index")){ //check if action is disabled
+              //$_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-special\"><a href=\"".wl("", array("do" => "index"))."\" rel=\"nofollow\">".hsc($lang["monobook_toolbxdef_siteindex"])."</a></li>\n";
+              $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-special\"><a href=\"".wl("", array("id" => "wiki:special"))."\" rel=\"nofollow\">Special Pages</a></li>\n";
+            }
+            //add link to a printable version? this is not needed in every case (and
+            //therefore configurable) cause the print stylesheets are used automatically
+            //by common browsers if the user wants to print. but often users are
+            //searching for a print version instead of using the browser's printing
+            //preview...
+            if (tpl_getConf("monobook_toolbox_default_print")){
+                $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-print\"><a href=\"".wl(cleanID(getId()), array("rev" =>(int)$rev, "mddo" => "print"))."\" rel=\"nofollow\">".hsc($lang["monobook_toolbxdef_print"])."</a></li>\n";
+            }
+            $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-permanent\"><a href=\"".wl(cleanID(getId()), array("rev" =>(int)$rev))."\" rel=\"nofollow\">".hsc($lang["monobook_toolboxdef_permanent"])."</a></li>\n"
+                                                ."          <li id=\"tb-cite\"><a href=\"".wl(cleanID(getId()), array("rev" =>(int)$rev, "mddo" => "cite"))."\" rel=\"nofollow\">".hsc($lang["monobook_toolboxdef_cite"])."</a></li>\n"
+                                                ."        </ul>";
+        }else{
+            //we have to use a custom toolbox
+            if (empty($conf["useacl"]) ||
+                auth_quickaclcheck(cleanID(tpl_getConf("monobook_toolbox_location"))) >= AUTH_READ){ //current user got access?
+                //get the rendered content of the defined wiki article to use as
+                //custom toolbox
+                $interim = tpl_include_page(tpl_getConf("monobook_toolbox_location"), false);
+                if ($interim === "" ||
+                    $interim === false){
+                    //add creation/edit link if the defined page got no content
+                    $_monobook_boxes["p-tb"]["xhtml"] =  "<li>[&#160;".html_wikilink(tpl_getConf("monobook_toolbox_location"), hsc($lang["monobook_fillplaceholder"]." (".tpl_getConf("monobook_toolbox_location").")"), null)."&#160;]<br /></li>";
+                }else{
+                    //add the rendered page content
+                    $_monobook_boxes["p-tb"]["xhtml"] =  $interim."\n";
+                }
+            }else{
+                //we are not allowed to show the content of the defined wiki
+                //article to use as custom sitenotice.
+                //$_monobook_boxes["p-tb"]["xhtml"] = hsc($lang["monobook_accessdenied"])." (".tpl_getConf("monobook_toolbox_location").")";
+            }
+        }
+    }
+
+    //Languages/translations provided by Andreas Gohr's translation plugin,
+    //see <http://www.dokuwiki.org/plugin:translation>
+    if (!empty($transplugin) &&
+        is_object($transplugin)){
+        $_monobook_boxes["p-lang"]["headline"] = $lang["monobook_bar_inotherlanguages"];
+        $_monobook_boxes["p-lang"]["xhtml"]    = $transplugin->_showTranslations();
+    }
+
+}else{
+
+    //headline
+    $_monobook_boxes["p-login"]["headline"] = $lang["btn_login"];
+    $_monobook_boxes["p-login"]["xhtml"] =  "      <ul>\n"
+                                           ."        <li id=\"t-login\"><a href=\"".wl(cleanID(getId()), array("do" => "login"))."\" rel=\"nofollow\">".hsc($lang["btn_login"])."</a></li>\n" //language comes from DokuWiki core
+                                           ."      </ul>";
+
+}
+
+
+/******************************************************************************
+ ********************************  ATTENTION  *********************************
+         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
+ ******************************************************************************
+  If you want to add some own boxes, have a look at the README of this
+  template and "/user/boxes.php". You have been warned!
+ *****************************************************************************/
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/conf/buttons.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/conf/buttons.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/conf/buttons.php	(revision 30132)
@@ -0,0 +1,92 @@
+<?php
+
+/**
+ * Default button configuration of the "monobook" DokuWiki template
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:configuration
+ */
+
+
+
+/******************************************************************************
+ ********************************  ATTENTION  *********************************
+         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
+ ******************************************************************************
+  If you want to add some own buttons, have a look at the README of this
+  template and "/user/buttons.php". You have been warned!
+ *****************************************************************************/
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+
+//note: The buttons will be rendered in the order they were defined. Means:
+//      first button will be rendered first, last button will be rendered at
+//      last.
+
+
+//RSS recent changes button
+$_monobook_btns["rss"]["img"]      = GSMONO_TPL."static/img/button-rss.png";
+$_monobook_btns["rss"]["href"]     = DOKU_BASE."feed.php";
+$_monobook_btns["rss"]["width"]    = 80;
+$_monobook_btns["rss"]["height"]   = 15;
+$_monobook_btns["rss"]["title"]    = $lang["monobook_recentchanges"];
+$_monobook_btns["rss"]["nofollow"] = true;
+
+
+//"monobook for DokuWiki" button
+//Note: You are NOT allowed to remove this button. Please respect this!
+$_monobook_btns["mbfdw"]["img"]      = GSMONO_TPL."static/img/button-monobook.png";
+$_monobook_btns["mbfdw"]["href"]     = "http://andreas-haerter.com/";
+$_monobook_btns["mbfdw"]["width"]    = 80;
+$_monobook_btns["mbfdw"]["height"]   = 15;
+$_monobook_btns["mbfdw"]["title"]    = $lang["monobook_mdtemplatefordw"];
+$_monobook_btns["mbfdw"]["nofollow"] = false;
+
+
+//donation button
+if (tpl_getConf("monobook_donate")){
+    $_monobook_btns["donate"]["img"]      = GSMONO_TPL."static/img/button-donate.gif";
+    $_monobook_btns["donate"]["href"]     = DOKU_BASE."feed.php";
+    if (tpl_getConf("monobook_donate_default")){
+        $_monobook_btns["donate"]["href"] = "http://andreas-haerter.com/donate/dokuwiki-template-monobook"; //default url
+    }else{
+        $_monobook_btns["donate"]["href"] = tpl_getConf("monobook_donate_url"); //custom url
+    }
+    $_monobook_btns["donate"]["width"]    = 80;
+    $_monobook_btns["donate"]["height"]   = 15;
+    $_monobook_btns["donate"]["title"]    = $lang["monobook_donate"];
+    $_monobook_btns["donate"]["nofollow"] = true;
+}
+
+
+//DokuWiki button
+$_monobook_btns["dw"]["img"]      = GSMONO_TPL."static/img/button-dw.png";
+$_monobook_btns["dw"]["href"]     = "http://www.dokuwiki.org";
+$_monobook_btns["dw"]["width"]    = 80;
+$_monobook_btns["dw"]["height"]   = 15;
+$_monobook_btns["dw"]["title"]    = "DokuWiki";
+$_monobook_btns["dw"]["nofollow"] = false;
+
+
+
+/******************************************************************************
+ ********************************  ATTENTION  *********************************
+         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
+ ******************************************************************************
+  If you want to add some own buttons, have a look at the README of this
+  template and "/user/buttons.php". You have been warned!
+ *****************************************************************************/
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/conf/default.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/conf/default.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/conf/default.php	(revision 30132)
@@ -0,0 +1,91 @@
+<?php
+
+/**
+ * Default options for the "monobook" DokuWiki template
+ *
+ * Modified for Greenstone Documentation
+ *
+ * Notes:
+ * - In general, use the admin webinterface of DokuWiki to change config.
+ * - To change the type of a config value, have a look at "metadata.php" in
+ *   the same directory as this file.
+ * - To change/translate the descriptions showed in the admin/configuration
+ *   menu of DokuWiki, have a look at the file
+ *   "/lib/tpl/monobook/lang/<your lang>/settings.php". If it does not exists,
+ *   copy and translate the English one. And don't forget to mail the
+ *   translation to me, Andreas Haerter <development@andreas-haerter.com> :-D.
+ * - To change the [tabs|boxes|buttons] configuration, have a look at
+ *   "/user/[tabs|boxes|buttons].php".
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:configuration
+ */
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+//user pages
+$conf["monobook_userpage"]    = false; //TRUE: use/show user pages
+$conf["monobook_userpage_ns"] = ":wiki:user:"; //namespace to use for user page storage
+
+//discussion pages
+$conf["monobook_discuss"]    = false; //TRUE: use/show discussion pages
+$conf["monobook_discuss_ns"] = ":talk:"; //namespace to use for discussion page storage
+
+//site notice
+$conf["monobook_sitenotice"]          = true; //TRUE: use/show sitenotice
+$conf["monobook_sitenotice_location"] = ":wiki:site_notice"; //page/article used to store the sitenotice
+
+//navigation
+$conf["monobook_navigation"]           = true; //TRUE: use/show navigation
+$conf["monobook_navigation_location"]  = ":gsdl:wiki:navigation"; //page/article used to store the navigation
+$conf["monobook_navigation_translate"] = true; //TRUE: load translated navigation if translation plugin is available (see <http://www.dokuwiki.org/plugin:translation>)
+
+//custom copyright notice
+$conf["monobook_copyright"]          = true; //TRUE: use/show copyright notice
+$conf["monobook_copyright_default"]  = false; //TRUE: use default copyright notice (if copyright notice is enabled at all)
+$conf["monobook_copyright_location"] = ":gsdl:wiki:copyright"; //page/article used to store a custom copyright notice
+
+//search form
+$conf["monobook_search"] = true; //TRUE: use/show search form
+
+//toolbox
+$conf["monobook_toolbox"]               = true; //TRUE: use/show toolbox
+$conf["monobook_toolbox_default"]       = true; //TRUE: use default toolbox (if toolbox is enabled at all)
+$conf["monobook_toolbox_default_print"] = true; //TRUE: if default toolbox is used, show printable version link?
+$conf["monobook_toolbox_location"]      = ":gsdl:wiki:toolbox"; //page/article used to store a custom toolbox
+
+//donation link/button
+$conf["monobook_donate"]          = false; //TRUE: use/show donation link/button
+$conf["monobook_donate_default"]  = false; //TRUE: use default donation link/button (if donation link is enabled at all)
+$conf["monobook_donate_url"]      = "http://andreas-haerter.com/donate/dokuwiki-template-monobook"; //custom donation URL instead of the default one
+
+//TOC
+$conf["monobook_toc_position"] = "article"; //article: show TOC embedded within the article; "sidebar": show TOC near the navigation, left column
+
+//other stuff
+$conf["monobook_breadcrumbs_position"]  = "bottom"; //position of breadcrumbs navigation ("top" or "bottom")
+$conf["monobook_youarehere_position"]   = "top"; //position of "you are here" navigation ("top" or "bottom")
+/*
+if (!empty($_SERVER["HTTP_HOST"])){
+  $conf["monobook_cite_author"] = "Contributors of ".hsc($_SERVER["HTTP_HOST"]); //name to use for the author on the citation page (hostname included)
+} else {
+  $conf["monobook_cite_author"] = "Anonymous Contributors"; //name to use for the author on the citation page
+}
+*/
+$conf["monobook_cite_author"] = "Contributors of wiki.greenstone.org"; //name to use for the author on the citation page
+$conf["monobook_loaduserjs"]            = false; //TRUE: monobook/user/user.js will be loaded
+$conf["monobook_closedwiki"]            = false; //TRUE: hides most tabs/functions until user is logged in
+
+$conf["monobook_youarehere"] = true;
Index: documentation/trunk/wiki/templates/greenstone-monobook/conf/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/conf/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/conf/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/conf/metadata.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/conf/metadata.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/conf/metadata.php	(revision 30132)
@@ -0,0 +1,81 @@
+<?php
+
+/**
+ * Types of the different option values for the "monobook" DokuWiki template
+ *
+ * Notes:
+ * - In general, use the admin webinterface of DokuWiki to change config.
+ * - To change/add configuration values to store, have a look at this file
+ *   and the "default.php" in the same directory as this file.
+ * - To change/translate the descriptions showed in the admin/configuration
+ *   menu of DokuWiki, have a look at the file
+ *   "/lib/tpl/monobook/lang/<your lang>/settings.php". If it does not exists,
+ *   copy and translate the English one. And don't forget to mail the
+ *   translation to me, Andreas Haerter <development@andreas-haerter.com> :-D.
+ * - To change the tab configuration, have a look at the "tabs.php" in the
+ *   same directory as this file.
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:configuration
+ */
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+//user pages
+$meta["monobook_userpage"]    = array("onoff");
+$meta["monobook_userpage_ns"] = array("string", "_pattern" => "/^:.{1,}:$/");
+
+//discussion pages
+$meta["monobook_discuss"]    = array("onoff");
+$meta["monobook_discuss_ns"] = array("string", "_pattern" => "/^:.{1,}:$/");
+
+//site notice
+$meta["monobook_sitenotice"]          = array("onoff");
+$meta["monobook_sitenotice_location"] = array("string");
+
+//navigation
+$meta["monobook_navigation"]           = array("onoff");
+$meta["monobook_navigation_location"]  = array("string");
+$meta["monobook_navigation_translate"] = array("onoff");
+
+//custom copyright notice
+$meta["monobook_copyright"]          = array("onoff");
+$meta["monobook_copyright_default"]  = array("onoff");
+$meta["monobook_copyright_location"] = array("string");
+
+//search form
+$meta["monobook_search"] = array("onoff");
+
+//toolbox
+$meta["monobook_toolbox"]               = array("onoff");
+$meta["monobook_toolbox_default"]       = array("onoff");
+$meta["monobook_toolbox_default_print"] = array("onoff");
+$meta["monobook_toolbox_location"]      = array("string");
+
+//donation link/button
+$meta["monobook_donate"]          = array("onoff");
+$meta["monobook_donate_default"]  = array("onoff");
+$meta["monobook_donate_url"]      = array("string", "_pattern" => "/^.{1,6}:\/{2}.+$/");
+
+//TOC
+$meta["monobook_toc_position"] = array("multichoice", "_choices" => array("article", "sidebar"));
+
+//other stuff
+$meta["monobook_breadcrumbs_position"]  = array("multichoice", "_choices" => array("top", "bottom"));
+$meta["monobook_youarehere_position"]   = array("multichoice", "_choices" => array("top", "bottom"));
+$meta["monobook_cite_author"]           = array("string");
+$meta["monobook_loaduserjs"]            = array("onoff");
+$meta["monobook_closedwiki"]            = array("onoff");
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/conf/tabs.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/conf/tabs.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/conf/tabs.php	(revision 30132)
@@ -0,0 +1,145 @@
+<?php
+
+/**
+ * Default tab configuration of the "monobook" DokuWiki template
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:configuration
+ */
+
+
+
+/******************************************************************************
+ ********************************  ATTENTION  *********************************
+         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
+ ******************************************************************************
+  If you want to add some own tabs, have a look at the README of this template
+  and "/user/tabs.php". You have been warned!
+ *****************************************************************************/
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+
+//note: The tabs will be rendered in the order they were defined. Means: first
+//      tab will be rendered first, last tab will be rendered at last.
+
+
+//article tab
+//ATTENTION: "ca-nstab-main" is used as css id selector!
+if (substr(getID(), 0, strlen("wiki:user:")) !== "wiki:user:"){
+    $_monobook_tabs["ca-nstab-main"]["text"] = $lang["monobook_tab_article"];
+}else{
+    $_monobook_tabs["ca-nstab-main"]["text"] = $lang["monobook_tab_userpage"];
+}
+$_monobook_tabs["ca-nstab-main"]["accesskey"] = "V";
+if ($monobook_context !== "discuss"){ //$monobook_context was defined within main.php
+    $_monobook_tabs["ca-nstab-main"]["wiki"]  = ":".getID();
+    $_monobook_tabs["ca-nstab-main"]["class"] = "selected";
+}else{
+    $_monobook_tabs["ca-nstab-main"]["wiki"]  = ":".substr(getID(), strlen(tpl_getConf("monobook_discuss_ns"))-1);
+}
+
+
+//hide some tabs for anonymous clients (closed wiki)?
+if (empty($conf["useacl"]) || //are there any users?
+    $loginname !== "" || //user is logged in?
+    !tpl_getConf("monobook_closedwiki")){
+
+    //discussion tab
+    //ATTENTION: "ca-talk" is used as css id selector!
+    if (tpl_getConf("monobook_discuss")){
+        $_monobook_tabs["ca-talk"]["text"] = $lang["monobook_tab_discussion"];
+        if ($monobook_context === "discuss"){ //$monobook_context was defined within main.php
+            $_monobook_tabs["ca-talk"]["wiki"]  = ":".getID();
+            $_monobook_tabs["ca-talk"]["class"] = "selected";
+        }else{
+            $_monobook_tabs["ca-talk"]["wiki"] = tpl_getConf("monobook_discuss_ns").getID();
+        }
+    }
+
+
+    //edit/create/show source tab
+    //ATTENTION: "ca-edit" is used as css id selector!
+    $_monobook_tabs["ca-edit"]["href"]      = wl(cleanID(getId()), array("do" => "edit", "rev" => (int)$rev), false, "&");
+    $_monobook_tabs["ca-edit"]["accesskey"] = "E";
+    if ($ACT === "edit"){ //$ACT comes from DokuWiki core
+        $_monobook_tabs["ca-edit"]["class"] = "selected";
+    }
+    if (!empty($INFO["writable"])){ //$INFO comes from DokuWiki core
+        if (!empty($INFO["draft"])){
+            $_monobook_tabs["ca-edit"]["href"] = wl(cleanID(getId()), array("do" => "draft", "rev" => (int)$rev), false, "&");
+            $_monobook_tabs["ca-edit"]["text"] = $lang["btn_draft"]; //language comes from DokuWiki core
+        }else{
+            if(!empty($INFO["exists"])){
+                $_monobook_tabs["ca-edit"]["text"] = $lang["btn_edit"]; //language comes from DokuWiki core
+            }else{
+                $_monobook_tabs["ca-edit"]["text"] = $lang["btn_create"]; //language comes from DokuWiki core
+            }
+        }
+    }elseif (actionOK("source")){ //check if action is disabled
+        $_monobook_tabs["ca-edit"]["text"]      = $lang["btn_source"]; //language comes from DokuWiki core
+        $_monobook_tabs["ca-edit"]["accesskey"] = "E";
+    }
+
+
+    //old versions/revisions tab
+    if (!empty($INFO["exists"]) &&
+        actionOK("revisions")){ //check if action is disabled
+        //ATTENTION: "ca-history" is used as css id selector!
+        $_monobook_tabs["ca-history"]["text"]      = $lang["btn_revs"]; //language comes from DokuWiki core
+        $_monobook_tabs["ca-history"]["href"]      = wl(cleanID(getId()), array("do" => "revisions"), false, "&");
+        $_monobook_tabs["ca-history"]["accesskey"] = "O";
+        if ($ACT === "revisions"){ //$ACT comes from DokuWiki core
+            $_monobook_tabs["ca-history"]["class"] = "selected";
+        }
+    }
+
+
+    //(un)subscribe tab
+    //ATTENTION: "ca-watch" is used as css id selector!
+    if (!empty($conf["useacl"]) &&
+        !empty($conf["subscribers"]) &&
+        !empty($loginname)){  //$loginname was defined within main.php
+        //2010-11-07 "Anteater" and newer ones
+        if (empty($lang["btn_unsubscribe"])) {
+            if (actionOK("subscribe")){ //check if action is disabled
+                $_monobook_tabs["ca-watch"]["href"] = wl(cleanID(getId()), array("do" => "subscribe"), false, "&");
+                $_monobook_tabs["ca-watch"]["text"] = $lang["btn_subscribe"]; //language comes from DokuWiki core
+            }
+        //2009-12-25 "Lemming" and older ones. See the following for information:
+        //<http://www.freelists.org/post/dokuwiki/Question-about-tpl-buttonsubscribe>
+        } else {
+            if (empty($INFO["subscribed"]) && //$INFO comes from DokuWiki core
+                actionOK("subscribe")){ //check if action is disabled
+                $_monobook_tabs["ca-watch"]["href"] = wl(cleanID(getId()), array("do" => "subscribe"), false, "&");
+                $_monobook_tabs["ca-watch"]["text"] = $lang["btn_subscribe"]; //language comes from DokuWiki core
+            }elseif (actionOK("unsubscribe")){ //check if action is disabled
+                $_monobook_tabs["ca-watch"]["href"] = wl(cleanID(getId()), array("do" => "unsubscribe"), false, "&");
+                $_monobook_tabs["ca-watch"]["text"] = $lang["btn_unsubscribe"]; //language comes from DokuWiki core
+            }
+        }
+    }
+
+}
+
+
+/******************************************************************************
+ ********************************  ATTENTION  *********************************
+         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
+ ******************************************************************************
+  If you want to add some own tabs, have a look at the README of this template
+  and "/user/tabs.php". You have been warned!
+ *****************************************************************************/
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/detail.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/detail.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/detail.php	(revision 30132)
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * DokuWiki Image Detail Template
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:templates
+ */
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+//do a little trick to use all the layout generated by main.php:
+//1) this file will be called from dokuwiki
+//2) we are including the main.php and tell it through $_GET["mddo"] that
+//   it has to include the needed content from inc_detail.php at the correct
+//   place.
+
+//get the main.php and signal: include the inc_detail.php
+$_GET["mddo"] = "detail";
+include DOKU_TPLINC."main.php";
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/images/no.gif
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/images/no.gif	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/images/no.gif	(revision 30132)
@@ -0,0 +1,515 @@
+
+
+
+<!DOCTYPE html>
+<html>
+  <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# githubog: http://ogp.me/ns/fb/githubog#">
+    <meta charset='utf-8'>
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+        <title>dokuwiki-plugin-publish/images/no.gif at master Â· KeckCAVES/dokuwiki-plugin-publish Â· GitHub</title>
+    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub" />
+    <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub" />
+    <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-114.png" />
+    <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114.png" />
+    <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-144.png" />
+    <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144.png" />
+    <link rel="logo" type="image/svg" href="https://github-media-downloads.s3.amazonaws.com/github-logo.svg" />
+    <meta property="og:image" content="https://github.global.ssl.fastly.net/images/modules/logos_page/Octocat.png">
+    <meta name="hostname" content="fe13.rs.github.com">
+    <link rel="assets" href="https://github.global.ssl.fastly.net/">
+    <link rel="xhr-socket" href="/_sockets" />
+    
+    
+
+
+    <meta name="msapplication-TileImage" content="/windows-tile.png" />
+    <meta name="msapplication-TileColor" content="#ffffff" />
+    <meta name="selected-link" value="repo_source" data-pjax-transient />
+    <meta content="collector.githubapp.com" name="octolytics-host" /><meta content="github" name="octolytics-app-id" />
+
+    
+    
+    <link rel="icon" type="image/x-icon" href="/favicon.ico" />
+
+    <meta content="authenticity_token" name="csrf-param" />
+<meta content="L1IPZDMd/VmOaWg6gMIdBhe3wKDdXXr68J2hdIs6qDw=" name="csrf-token" />
+
+    <link href="https://github.global.ssl.fastly.net/assets/github-c6ca95663cba6496fe7a5bdd98671b82cd956df3.css" media="all" rel="stylesheet" type="text/css" />
+    <link href="https://github.global.ssl.fastly.net/assets/github2-71386ba60dc4794e755db985b31f4dfc74dcd99d.css" media="all" rel="stylesheet" type="text/css" />
+    
+
+
+      <script src="https://github.global.ssl.fastly.net/assets/frameworks-eae23340ab2a6ba722166712e699c87aaf60ad8f.js" type="text/javascript"></script>
+      <script src="https://github.global.ssl.fastly.net/assets/github-a9163d83d307392f83a9e5e521d11f0fea5fd274.js" type="text/javascript"></script>
+      
+      <meta http-equiv="x-pjax-version" content="62ceebebd58178eb42bf64d77d6e4d30">
+
+        <link data-pjax-transient rel='permalink' href='/KeckCAVES/dokuwiki-plugin-publish/blob/0d9e62864b8a26ea647a812c011d5aa04f3ed6b1/images/no.gif'>
+  <meta property="og:title" content="dokuwiki-plugin-publish"/>
+  <meta property="og:type" content="githubog:gitrepository"/>
+  <meta property="og:url" content="https://github.com/KeckCAVES/dokuwiki-plugin-publish"/>
+  <meta property="og:image" content="https://github.global.ssl.fastly.net/images/gravatars/gravatar-user-420.png"/>
+  <meta property="og:site_name" content="GitHub"/>
+  <meta property="og:description" content="dokuwiki-plugin-publish - Add a publishing process to DokuWiki pages."/>
+
+  <meta name="description" content="dokuwiki-plugin-publish - Add a publishing process to DokuWiki pages." />
+
+  <meta content="507608" name="octolytics-dimension-user_id" /><meta content="KeckCAVES" name="octolytics-dimension-user_login" /><meta content="1339827" name="octolytics-dimension-repository_id" /><meta content="KeckCAVES/dokuwiki-plugin-publish" name="octolytics-dimension-repository_nwo" /><meta content="true" name="octolytics-dimension-repository_public" /><meta content="false" name="octolytics-dimension-repository_is_fork" /><meta content="1339827" name="octolytics-dimension-repository_network_root_id" /><meta content="KeckCAVES/dokuwiki-plugin-publish" name="octolytics-dimension-repository_network_root_nwo" />
+  <link href="https://github.com/KeckCAVES/dokuwiki-plugin-publish/commits/master.atom" rel="alternate" title="Recent Commits to dokuwiki-plugin-publish:master" type="application/atom+xml" />
+
+  </head>
+
+
+  <body class="logged_out page-blob linux vis-public env-production ">
+
+    <div class="wrapper">
+      
+      
+      
+
+
+      
+      <div class="header header-logged-out">
+  <div class="container clearfix">
+
+    <a class="header-logo-wordmark" href="https://github.com/">
+      <span class="mega-octicon octicon-logo-github"></span>
+    </a>
+
+    <div class="header-actions">
+        <a class="button primary" href="/signup">Sign up</a>
+      <a class="button" href="/login?return_to=%2FKeckCAVES%2Fdokuwiki-plugin-publish%2Fblob%2Fmaster%2Fimages%2Fno.gif">Sign in</a>
+    </div>
+
+    <div class="command-bar js-command-bar  in-repository">
+
+
+      <ul class="top-nav">
+          <li class="explore"><a href="/explore">Explore</a></li>
+        <li class="features"><a href="/features">Features</a></li>
+          <li class="enterprise"><a href="https://enterprise.github.com/">Enterprise</a></li>
+          <li class="blog"><a href="/blog">Blog</a></li>
+      </ul>
+        <form accept-charset="UTF-8" action="/search" class="command-bar-form" id="top_search_form" method="get">
+
+<input type="text" data-hotkey="/ s" name="q" id="js-command-bar-field" placeholder="Search or type a command" tabindex="1" autocapitalize="off"
+    
+    
+      data-repo="KeckCAVES/dokuwiki-plugin-publish"
+      data-branch="master"
+      data-sha="9425eff2e6482845c6dd9ac44fbd5d877bd00a0c"
+  >
+
+    <input type="hidden" name="nwo" value="KeckCAVES/dokuwiki-plugin-publish" />
+
+    <div class="select-menu js-menu-container js-select-menu search-context-select-menu">
+      <span class="minibutton select-menu-button js-menu-target">
+        <span class="js-select-button">This repository</span>
+      </span>
+
+      <div class="select-menu-modal-holder js-menu-content js-navigation-container">
+        <div class="select-menu-modal">
+
+          <div class="select-menu-item js-navigation-item js-this-repository-navigation-item selected">
+            <span class="select-menu-item-icon octicon octicon-check"></span>
+            <input type="radio" class="js-search-this-repository" name="search_target" value="repository" checked="checked" />
+            <div class="select-menu-item-text js-select-button-text">This repository</div>
+          </div> <!-- /.select-menu-item -->
+
+          <div class="select-menu-item js-navigation-item js-all-repositories-navigation-item">
+            <span class="select-menu-item-icon octicon octicon-check"></span>
+            <input type="radio" name="search_target" value="global" />
+            <div class="select-menu-item-text js-select-button-text">All repositories</div>
+          </div> <!-- /.select-menu-item -->
+
+        </div>
+      </div>
+    </div>
+
+  <span class="octicon help tooltipped downwards" title="Show command bar help">
+    <span class="octicon octicon-question"></span>
+  </span>
+
+
+  <input type="hidden" name="ref" value="cmdform">
+
+</form>
+    </div>
+
+  </div>
+</div>
+
+
+      
+
+
+          <div class="site" itemscope itemtype="http://schema.org/WebPage">
+    
+    <div class="pagehead repohead instapaper_ignore readability-menu">
+      <div class="container">
+        
+
+<ul class="pagehead-actions">
+
+
+  <li>
+  <a href="/login?return_to=%2FKeckCAVES%2Fdokuwiki-plugin-publish"
+  class="minibutton with-count js-toggler-target star-button entice tooltipped upwards "
+  title="You must be signed in to use this feature" rel="nofollow">
+  <span class="octicon octicon-star"></span>Star
+</a>
+<a class="social-count js-social-count" href="/KeckCAVES/dokuwiki-plugin-publish/stargazers">
+  1
+</a>
+
+  </li>
+
+    <li>
+      <a href="/login?return_to=%2FKeckCAVES%2Fdokuwiki-plugin-publish"
+        class="minibutton with-count js-toggler-target fork-button entice tooltipped upwards"
+        title="You must be signed in to fork a repository" rel="nofollow">
+        <span class="octicon octicon-git-branch"></span>Fork
+      </a>
+      <a href="/KeckCAVES/dokuwiki-plugin-publish/network" class="social-count">
+        0
+      </a>
+    </li>
+</ul>
+
+        <h1 itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="entry-title public">
+          <span class="repo-label"><span>public</span></span>
+          <span class="mega-octicon octicon-repo"></span>
+          <span class="author">
+            <a href="/KeckCAVES" class="url fn" itemprop="url" rel="author"><span itemprop="title">KeckCAVES</span></a></span
+          ><span class="repohead-name-divider">/</span><strong
+          ><a href="/KeckCAVES/dokuwiki-plugin-publish" class="js-current-repository js-repo-home-link">dokuwiki-plugin-publish</a></strong>
+
+          <span class="page-context-loader">
+            <img alt="Octocat-spinner-32" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
+          </span>
+
+        </h1>
+      </div><!-- /.container -->
+    </div><!-- /.repohead -->
+
+    <div class="container">
+
+      <div class="repository-with-sidebar repo-container ">
+
+        <div class="repository-sidebar">
+            
+
+<div class="repo-nav repo-nav-full js-repository-container-pjax js-octicon-loaders">
+  <div class="repo-nav-contents">
+    <ul class="repo-menu">
+      <li class="tooltipped leftwards" title="Code">
+        <a href="/KeckCAVES/dokuwiki-plugin-publish" aria-label="Code" class="js-selected-navigation-item selected" data-gotokey="c" data-pjax="true" data-selected-links="repo_source repo_downloads repo_commits repo_tags repo_branches /KeckCAVES/dokuwiki-plugin-publish">
+          <span class="octicon octicon-code"></span> <span class="full-word">Code</span>
+          <img alt="Octocat-spinner-32" class="mini-loader" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
+</a>      </li>
+
+        <li class="tooltipped leftwards" title="Issues">
+          <a href="/KeckCAVES/dokuwiki-plugin-publish/issues" aria-label="Issues" class="js-selected-navigation-item js-disable-pjax" data-gotokey="i" data-selected-links="repo_issues /KeckCAVES/dokuwiki-plugin-publish/issues">
+            <span class="octicon octicon-issue-opened"></span> <span class="full-word">Issues</span>
+            <span class='counter'>4</span>
+            <img alt="Octocat-spinner-32" class="mini-loader" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
+</a>        </li>
+
+      <li class="tooltipped leftwards" title="Pull Requests"><a href="/KeckCAVES/dokuwiki-plugin-publish/pulls" aria-label="Pull Requests" class="js-selected-navigation-item js-disable-pjax" data-gotokey="p" data-selected-links="repo_pulls /KeckCAVES/dokuwiki-plugin-publish/pulls">
+            <span class="octicon octicon-git-pull-request"></span> <span class="full-word">Pull Requests</span>
+            <span class='counter'>0</span>
+            <img alt="Octocat-spinner-32" class="mini-loader" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
+</a>      </li>
+
+
+    </ul>
+    <div class="repo-menu-separator"></div>
+    <ul class="repo-menu">
+
+      <li class="tooltipped leftwards" title="Pulse">
+        <a href="/KeckCAVES/dokuwiki-plugin-publish/pulse" aria-label="Pulse" class="js-selected-navigation-item " data-pjax="true" data-selected-links="pulse /KeckCAVES/dokuwiki-plugin-publish/pulse">
+          <span class="octicon octicon-pulse"></span> <span class="full-word">Pulse</span>
+          <img alt="Octocat-spinner-32" class="mini-loader" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
+</a>      </li>
+
+      <li class="tooltipped leftwards" title="Graphs">
+        <a href="/KeckCAVES/dokuwiki-plugin-publish/graphs" aria-label="Graphs" class="js-selected-navigation-item " data-pjax="true" data-selected-links="repo_graphs repo_contributors /KeckCAVES/dokuwiki-plugin-publish/graphs">
+          <span class="octicon octicon-graph"></span> <span class="full-word">Graphs</span>
+          <img alt="Octocat-spinner-32" class="mini-loader" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
+</a>      </li>
+
+      <li class="tooltipped leftwards" title="Network">
+        <a href="/KeckCAVES/dokuwiki-plugin-publish/network" aria-label="Network" class="js-selected-navigation-item js-disable-pjax" data-selected-links="repo_network /KeckCAVES/dokuwiki-plugin-publish/network">
+          <span class="octicon octicon-git-branch"></span> <span class="full-word">Network</span>
+          <img alt="Octocat-spinner-32" class="mini-loader" height="16" src="https://github.global.ssl.fastly.net/images/spinners/octocat-spinner-32.gif" width="16" />
+</a>      </li>
+
+    </ul>
+
+  </div>
+</div>
+
+            <div class="only-with-full-nav">
+              
+
+  
+
+<div class="clone-url open"
+  data-protocol-type="http"
+  data-url="/users/set_protocol?protocol_selector=http&amp;protocol_type=clone">
+  <h3><strong>HTTPS</strong> clone URL</h3>
+
+  <input type="text" class="clone js-url-field"
+         value="https://github.com/KeckCAVES/dokuwiki-plugin-publish.git" readonly="readonly">
+
+  <span class="js-zeroclipboard url-box-clippy minibutton zeroclipboard-button" data-clipboard-text="https://github.com/KeckCAVES/dokuwiki-plugin-publish.git" data-copied-hint="copied!" title="copy to clipboard"><span class="octicon octicon-clippy"></span></span>
+</div>
+
+  
+
+<div class="clone-url "
+  data-protocol-type="subversion"
+  data-url="/users/set_protocol?protocol_selector=subversion&amp;protocol_type=clone">
+  <h3><strong>Subversion</strong> checkout URL</h3>
+
+  <input type="text" class="clone js-url-field"
+         value="https://github.com/KeckCAVES/dokuwiki-plugin-publish" readonly="readonly">
+
+  <span class="js-zeroclipboard url-box-clippy minibutton zeroclipboard-button" data-clipboard-text="https://github.com/KeckCAVES/dokuwiki-plugin-publish" data-copied-hint="copied!" title="copy to clipboard"><span class="octicon octicon-clippy"></span></span>
+</div>
+
+
+
+<p class="clone-options">You can clone with
+    <a href="#" class="js-clone-selector" data-protocol="http">HTTPS</a>,
+    <a href="#" class="js-clone-selector" data-protocol="subversion">Subversion</a>,
+  and <a href="https://help.github.com/articles/which-remote-url-should-i-use">other methods.</a>
+</p>
+
+
+
+                <a href="/KeckCAVES/dokuwiki-plugin-publish/archive/master.zip"
+                   class="minibutton sidebar-button"
+                   title="Download this repository as a zip file"
+                   rel="nofollow">
+                  <span class="octicon octicon-cloud-download"></span>
+                  Download ZIP
+                </a>
+            </div>
+        </div><!-- /.repository-sidebar -->
+
+        <div id="js-repo-pjax-container" class="repository-content context-loader-container" data-pjax-container>
+          
+
+
+<!-- blob contrib key: blob_contributors:v21:7f07c3160b5cc0c67b87c3eb1c53715c -->
+<!-- blob contrib frag key: views10/v8/blob_contributors:v21:7f07c3160b5cc0c67b87c3eb1c53715c -->
+
+<p title="This is a placeholder element" class="js-history-link-replace hidden"></p>
+
+<a href="/KeckCAVES/dokuwiki-plugin-publish/find/master" data-pjax data-hotkey="t" style="display:none">Show File Finder</a>
+
+<div class="file-navigation">
+  
+
+
+<div class="select-menu js-menu-container js-select-menu" >
+  <span class="minibutton select-menu-button js-menu-target" data-hotkey="w"
+    data-master-branch="master"
+    data-ref="master">
+    <span class="octicon octicon-git-branch"></span>
+    <i>branch:</i>
+    <span class="js-select-button">master</span>
+  </span>
+
+  <div class="select-menu-modal-holder js-menu-content js-navigation-container" data-pjax>
+
+    <div class="select-menu-modal">
+      <div class="select-menu-header">
+        <span class="select-menu-title">Switch branches/tags</span>
+        <span class="octicon octicon-remove-close js-menu-close"></span>
+      </div> <!-- /.select-menu-header -->
+
+      <div class="select-menu-filters">
+        <div class="select-menu-text-filter">
+          <input type="text" id="context-commitish-filter-field" class="js-filterable-field js-navigation-enable" placeholder="Filter branches/tags">
+        </div>
+        <div class="select-menu-tabs">
+          <ul>
+            <li class="select-menu-tab">
+              <a href="#" data-tab-filter="branches" class="js-select-menu-tab">Branches</a>
+            </li>
+            <li class="select-menu-tab">
+              <a href="#" data-tab-filter="tags" class="js-select-menu-tab">Tags</a>
+            </li>
+          </ul>
+        </div><!-- /.select-menu-tabs -->
+      </div><!-- /.select-menu-filters -->
+
+      <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="branches">
+
+        <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
+
+
+            <div class="select-menu-item js-navigation-item selected">
+              <span class="select-menu-item-icon octicon octicon-check"></span>
+              <a href="/KeckCAVES/dokuwiki-plugin-publish/blob/master/images/no.gif" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="master" data-skip-pjax="true" rel="nofollow" title="master">master</a>
+            </div> <!-- /.select-menu-item -->
+        </div>
+
+          <div class="select-menu-no-results">Nothing to show</div>
+      </div> <!-- /.select-menu-list -->
+
+      <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="tags">
+        <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
+
+
+        </div>
+
+        <div class="select-menu-no-results">Nothing to show</div>
+      </div> <!-- /.select-menu-list -->
+
+    </div> <!-- /.select-menu-modal -->
+  </div> <!-- /.select-menu-modal-holder -->
+</div> <!-- /.select-menu -->
+
+  <div class="breadcrumb">
+    <span class='repo-root js-repo-root'><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/KeckCAVES/dokuwiki-plugin-publish" data-branch="master" data-direction="back" data-pjax="true" itemscope="url"><span itemprop="title">dokuwiki-plugin-publish</span></a></span></span><span class="separator"> / </span><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/KeckCAVES/dokuwiki-plugin-publish/tree/master/images" data-branch="master" data-direction="back" data-pjax="true" itemscope="url"><span itemprop="title">images</span></a></span><span class="separator"> / </span><strong class="final-path">no.gif</strong> <span class="js-zeroclipboard minibutton zeroclipboard-button" data-clipboard-text="images/no.gif" data-copied-hint="copied!" title="copy to clipboard"><span class="octicon octicon-clippy"></span></span>
+  </div>
+</div>
+
+
+  
+  <div class="commit file-history-tease">
+    <img class="main-avatar" height="24" src="https://secure.gravatar.com/avatar/9345384a8a03ed07a5b1390f5dba036b?s=140&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="24" />
+    <span class="author"><a href="/daBrado" rel="author">daBrado</a></span>
+    <time class="js-relative-date" datetime="2010-11-08T10:45:56-08:00" title="2010-11-08 10:45:56">November 08, 2010</time>
+    <div class="commit-title">
+        <a href="/KeckCAVES/dokuwiki-plugin-publish/commit/0627d2ee94114e0b7db9d90d5f73a65e59761ddb" class="message" data-pjax="true" title="Initial commit from http://www.dokuwiki.org/plugin:publish">Initial commit from</a> <a href="http://www.dokuwiki.org/plugin:publish">http://www.dokuwiki.org/plugin:publish</a>
+    </div>
+
+    <div class="participation">
+      <p class="quickstat"><a href="#blob_contributors_box" rel="facebox"><strong>1</strong> contributor</a></p>
+      
+    </div>
+    <div id="blob_contributors_box" style="display:none">
+      <h2 class="facebox-header">Users who have contributed to this file</h2>
+      <ul class="facebox-user-list">
+        <li class="facebox-user-list-item">
+          <img height="24" src="https://secure.gravatar.com/avatar/9345384a8a03ed07a5b1390f5dba036b?s=140&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="24" />
+          <a href="/daBrado">daBrado</a>
+        </li>
+      </ul>
+    </div>
+  </div>
+
+
+<div id="files" class="bubble">
+  <div class="file">
+    <div class="meta">
+      <div class="info">
+        <span class="icon"><b class="octicon octicon-file-text"></b></span>
+        <span class="mode" title="File Mode">file</span>
+        <span>0.719 kb</span>
+      </div>
+      <div class="actions">
+        <div class="button-group">
+          <a href="/KeckCAVES/dokuwiki-plugin-publish/raw/master/images/no.gif" class="button minibutton " id="raw-url">Raw</a>
+          <a href="/KeckCAVES/dokuwiki-plugin-publish/commits/master/images/no.gif" class="button minibutton " rel="nofollow">History</a>
+        </div><!-- /.button-group -->
+            <a class="minibutton danger empty-icon js-entice" href=""
+               data-entice="You must be signed in and on a branch to make or propose changes">
+            Delete
+          </a>
+      </div><!-- /.actions -->
+
+    </div>
+        <div class="blob-wrapper data type-text js-blob-data">
+      <div class="image js-image">
+          <span class="border-wrap"><img src="/KeckCAVES/dokuwiki-plugin-publish/blob/master/images/no.gif?raw=true" /></span>
+      </div>
+    <!-- CSVs/TSVs can get pretty big, and they're not being shown if they fail blob.large? -->
+  </div>
+
+  </div>
+</div>
+
+<a href="#jump-to-line" rel="facebox[.linejump]" data-hotkey="l" class="js-jump-to-line" style="display:none">Jump to Line</a>
+<div id="jump-to-line" style="display:none">
+  <form accept-charset="UTF-8" class="js-jump-to-line-form">
+    <input class="linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line&hellip;" autofocus>
+    <button type="submit" class="button">Go</button>
+  </form>
+</div>
+
+        </div>
+
+      </div><!-- /.repo-container -->
+      <div class="modal-backdrop"></div>
+    </div><!-- /.container -->
+  </div><!-- /.site -->
+
+
+    </div><!-- /.wrapper -->
+
+      <div class="container">
+  <div class="site-footer">
+    <ul class="site-footer-links right">
+      <li><a href="https://status.github.com/">Status</a></li>
+      <li><a href="http://developer.github.com">API</a></li>
+      <li><a href="http://training.github.com">Training</a></li>
+      <li><a href="http://shop.github.com">Shop</a></li>
+      <li><a href="/blog">Blog</a></li>
+      <li><a href="/about">About</a></li>
+
+    </ul>
+
+    <a href="/">
+      <span class="mega-octicon octicon-mark-github"></span>
+    </a>
+
+    <ul class="site-footer-links">
+      <li>&copy; 2013 <span title="0.04789s from fe13.rs.github.com">GitHub</span>, Inc.</li>
+        <li><a href="/site/terms">Terms</a></li>
+        <li><a href="/site/privacy">Privacy</a></li>
+        <li><a href="/security">Security</a></li>
+        <li><a href="/contact">Contact</a></li>
+    </ul>
+  </div><!-- /.site-footer -->
+</div><!-- /.container -->
+
+
+    <div class="fullscreen-overlay js-fullscreen-overlay" id="fullscreen_overlay">
+  <div class="fullscreen-container js-fullscreen-container">
+    <div class="textarea-wrap">
+      <textarea name="fullscreen-contents" id="fullscreen-contents" class="js-fullscreen-contents" placeholder="" data-suggester="fullscreen_suggester"></textarea>
+          <div class="suggester-container">
+              <div class="suggester fullscreen-suggester js-navigation-container" id="fullscreen_suggester"
+                 data-url="/KeckCAVES/dokuwiki-plugin-publish/suggestions/commit">
+              </div>
+          </div>
+    </div>
+  </div>
+  <div class="fullscreen-sidebar">
+    <a href="#" class="exit-fullscreen js-exit-fullscreen tooltipped leftwards" title="Exit Zen Mode">
+      <span class="mega-octicon octicon-screen-normal"></span>
+    </a>
+    <a href="#" class="theme-switcher js-theme-switcher tooltipped leftwards"
+      title="Switch themes">
+      <span class="octicon octicon-color-mode"></span>
+    </a>
+  </div>
+</div>
+
+
+
+    <div id="ajax-error-message" class="flash flash-error">
+      <span class="octicon octicon-alert"></span>
+      <a href="#" class="octicon octicon-remove-close close ajax-error-dismiss"></a>
+      Something went wrong with that request. Please try again.
+    </div>
+
+    
+  </body>
+</html>
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/inc_cite.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/inc_cite.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/inc_cite.php	(revision 30132)
@@ -0,0 +1,181 @@
+<?php
+
+/**
+ * Content for the citation page
+ *
+ * This file will be imported by the "main.php".
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:templates
+ */
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+//detect rev
+$rev = (int)$INFO["rev"];
+if ($rev < 1){
+    $rev = (int)$INFO["lastmod"];
+}
+
+//set permanent URL
+$permurl = DOKU_URL.DOKU_SCRIPT."?id=".getID()."&rev=".$rev; //no wl() here to get absolute URLs working without URL rewriting and stuff
+
+?>
+<h1><a name="bibliographic_details" id="bibliographic_details"><?php echo hsc($lang["monobook_cite_bibdetailsfor"]); ?> &quot;<?php tpl_pagetitle(); ?>&quot;</a></h1>
+<div class="level2">
+  <ul>
+    <li class="level1">
+      <div class="li"><?php echo hsc($lang["monobook_cite_pagename"]); ?>: <?php tpl_pagetitle(); ?></div>
+    </li>
+    <li class="level1">
+      <div class="li"><?php echo hsc($lang["monobook_cite_author"]); ?>: <?php echo tpl_getConf("monobook_cite_author"); ?></div>
+    </li>
+    <li class="level1">
+      <div class="li"><?php echo hsc($lang["monobook_cite_publisher"]); ?>: <?php echo hsc($conf["title"]); ?>.</div>
+    </li>
+    <li class="level1">
+      <div class="li"><?php echo hsc($lang["monobook_cite_dateofrev"]); ?>: <?php echo gmdate("j F Y H:i T", $rev); ?></div>
+    </li>
+    <li class="level1">
+      <div class="li"><?php echo hsc($lang["monobook_cite_dateretrieved"]); ?>: <?php echo gmdate("j F Y H:i T"); ?></div>
+    </li>
+    <li class="level1">
+      <div class="li"><?php echo hsc($lang["monobook_cite_permurl"]); ?>: <a rel="nofollow" href="<?php echo hsc($permurl); ?>"><?php echo hsc($permurl); ?></a></div>
+    </li>
+    <li class="level1">
+      <div class="li"><?php echo hsc($lang["monobook_cite_pageversionid"]); ?>: <?php echo hsc($rev); ?></div>
+    </li>
+  </ul>
+  <p>
+    <?php echo hsc($lang["monobook_cite_checkstandards"]); ?>
+  </p>
+</div>
+
+
+<h2><a name="citation_styles_for" id="citation_styles_for"><?php echo hsc($lang["monobook_cite_citationstyles"]); ?> &quot;<?php tpl_pagetitle(); ?>&quot;</a></h2>
+
+<h3><a name="apa_style" id="apa_style">APA</a></h3>
+<div class="level3">
+  <p>
+     <?php tpl_pagetitle(); ?>. (<?php echo gmdate("Y, M j", $rev); ?>).
+     <?php echo hsc($lang["monobook_cite_in"]); ?> <em><?php echo hsc($conf["title"]); ?></em>.
+     <?php echo hsc($lang["monobook_cite_retrieved"])." ".gmdate("H:i, F j, Y,")." ".hsc($lang["monobook_cite_from"]); ?>
+     <a rel="nofollow" href="<?php echo hsc($permurl); ?>"><?php echo hsc($permurl); ?></a>.
+  </p>
+</div>
+
+<h3><a name="mla_style" id="mla_style">MLA</a></h3>
+<div class="level3">
+  <p>
+     <?php echo tpl_getConf("monobook_cite_author"); ?>.
+    "<?php tpl_pagetitle(); ?>".
+     <em><?php echo hsc($conf["title"]); ?></em>.
+     <?php echo gmdate("j M. Y", $rev); ?>. Web. <?php echo gmdate("j M. Y, H:i"); ?>
+  </p>
+</div>
+
+<h3><a name="mhra_style" id="mhra_style">MHRA</a></h3>
+<div class="level3">
+  <p>
+     <?php echo tpl_getConf("monobook_cite_author"); ?>,
+     '<?php tpl_pagetitle(); ?>',
+     <em><?php echo hsc($conf["title"]); ?></em>,
+     <?php echo gmdate("j F Y, H:i T", $rev); ?>,
+     &lt;<a rel="nofollow" href="<?php echo hsc($permurl); ?>"><?php echo hsc($permurl); ?></a>&gt; [<?php echo hsc($lang["monobook_cite_accessed"])." ".gmdate("j F Y"); ?>]
+  </p>
+</div>
+
+<h3><a name="chicago_style" id="chicago_style">Chicago</a></h3>
+<div class="level3">
+  <p>
+    <?php echo tpl_getConf("monobook_cite_author"); ?>,
+    "<?php tpl_pagetitle(); ?>",
+    <em><?php echo hsc($conf["title"]); ?></em>,
+    <a rel="nofollow" href="<?php echo hsc($permurl); ?>"><?php echo hsc($permurl); ?></a> (<?php echo hsc($lang["monobook_cite_accessed"])." ".gmdate("F j, Y"); ?>).
+  </p>
+</div>
+
+<h3><a name="cbe_cse_style" id="cbe_cse_style">CBE/CSE</a></h3>
+<div class="level3">
+  <p>
+    <?php echo tpl_getConf("monobook_cite_author"); ?>.
+    <?php tpl_pagetitle(); ?> [Internet].
+    <?php echo hsc($conf["title"])?>; <?php echo gmdate("Y M j, H:i T", $rev); ?> [<?php echo hsc($lang["monobook_cite_cited"])." ".gmdate("Y M j"); ?>].
+    <?php echo hsc($lang["monobook_cite_availableat"]); ?>: <a rel="nofollow" href="<?php echo hsc($permurl); ?>"><?php echo hsc($permurl); ?></a>.
+  </p>
+</div>
+
+<h3><a name="bluebook_style" id="bluebook_style">Bluebook</a></h3>
+<div class="level3">
+  <p>
+    <?php tpl_pagetitle(); ?>,
+    <a rel="nofollow" href="<?php echo hsc($permurl); ?>"><?php echo hsc($permurl); ?></a> (<?php echo hsc($lang["monobook_cite_lastvisited"])." ".gmdate("F j, Y"); ?>).
+  </p>
+</div>
+
+<h3><a name="ama_style" id="ama_style">AMA</a></h3>
+<div class="level3">
+  <p>
+    <?php echo tpl_getConf("monobook_cite_author"); ?>.
+    <?php tpl_pagetitle(); ?>.
+    <?php echo hsc($conf["title"])?>.
+    <?php echo gmdate("F j, Y, H:i T", $rev); ?>.
+    <?php echo hsc($lang["monobook_cite_availableat"]); ?>: <a rel="nofollow" href="<?php echo hsc($permurl); ?>"><?php echo hsc($permurl); ?></a>.
+    <?php echo hsc($lang["monobook_cite_accessed"])." ".gmdate("F j, Y"); ?>.
+  </p>
+</div>
+
+<h3><a name="bibtex_entry" id="bibtex_entry">BibTeX</a></h3>
+<div class="level3">
+  <pre>
+ @misc{ wiki:xxx,
+   author = &quot;<?php echo str_replace(",", "{,}", tpl_getConf("monobook_cite_author")); ?>&quot;,
+   title = &quot;<?php str_replace(",", "{,}", tpl_pagetitle()); ?> --- <?php echo str_replace(",", "{,}", hsc($conf["title"])); ?>&quot;,
+   year = &quot;<?php echo gmdate("Y", $rev); ?>&quot;,
+   url = &quot;<?php echo str_replace(",", "{,}", hsc($permurl)); ?>&quot;,
+   note = &quot;[Online; accessed <?php echo gmdate("j-F-Y"); ?>]&quot;
+ }
+  </pre>
+  <p>
+    <?php echo hsc($lang["monobook_cite_latexusepackagehint"]); ?>:
+  </p>
+  <pre>
+ @misc{ wiki:xxx,
+   author = &quot;<?php echo str_replace(",", "{,}", tpl_getConf("monobook_cite_author")); ?>&quot;,
+   title = &quot;<?php str_replace(",", "{,}", tpl_pagetitle()); ?> --- <?php echo str_replace(",", "{,}", hsc($conf["title"])); ?>&quot;,
+   year = &quot;<?php echo gmdate("Y", $rev); ?>&quot;,
+   url = &quot;\url{<?php echo str_replace(",", "{,}", hsc($permurl)); ?>}&quot;,
+   note = &quot;[Online; accessed <?php echo gmdate("j-F-Y"); ?>]&quot;
+
+
+   author = &quot;<?php echo tpl_getConf("monobook_cite_author"); ?>&quot;,
+   title = &quot;<?php tpl_pagetitle(); ?> --- <?php echo hsc($conf["title"]); ?>&quot;,
+   year = &quot;<?php echo gmdate("Y", $rev); ?>&quot;,
+   url = &quot;\url{<?php echo hsc($permurl); ?>}&quot;,
+   note = &quot;[Online; accessed <?php echo gmdate("j-F-Y"); ?>]&quot;
+ }
+  </pre>
+</div>
+
+<h3><a name="talk_pages" id="talk_pages"><?php echo hsc($lang["monobook_cite_discussionpages"]); ?></a></h3>
+<div class="level3">
+  <dl>
+    <dt><?php echo hsc($lang["monobook_cite_markup"]); ?></dt>
+    <dd>[[<?php echo hsc(getID()); ?>|<?php tpl_pagetitle(); ?>]] ([[<?php echo hsc(getID()."?rev=".$rev); ?>|<?php echo hsc($lang["monobook_cite_thisversion"]); ?>]])</dd>
+  </dl>
+  <dl>
+    <dt><?php echo hsc($lang["monobook_cite_result"]); ?></dt>
+    <dd><a rel="nofollow" class="wikilink1" href="<?php echo hsc(wl(cleanID(getId()))); ?>"><?php tpl_pagetitle(); ?></a> (<a rel="nofollow" class="wikilink1" href="<?php echo hsc($permurl); ?>"><?php echo hsc($lang["monobook_cite_thisversion"]); ?></a>)</dd>
+  </dl>
+</div>
Index: documentation/trunk/wiki/templates/greenstone-monobook/inc_detail.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/inc_detail.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/inc_detail.php	(revision 30132)
@@ -0,0 +1,91 @@
+<?php
+
+/**
+ * Image detail page
+ *
+ * See "detail.php" if you don't know how this is getting included within the
+ * "main.php".
+ *
+ * NOTE: Based on the detail.php out of the "starter" template by Anika Henke.
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:templates
+ */
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+?>
+
+    <div id="dokuwiki__detail" class="dokuwiki">
+        <?php html_msgarea() ?>
+
+        <?php if($ERROR){ print $ERROR; }else{ ?>
+
+            <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?></h1>
+
+            <div class="content">
+                <?php tpl_img(900,700) ?>
+
+                <div class="img_detail">
+                    <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2>
+
+                    <dl>
+                        <?php
+                            $config_files = getConfigFiles('mediameta');
+                            foreach ($config_files as $config_file) {
+                                if(@file_exists($config_file)) {
+                                    include($config_file);
+                                }
+                            }
+
+                            foreach($fields as $key => $tag){
+                                $t = array();
+                                if (!empty($tag[0])) {
+                                    $t = array($tag[0]);
+                                }
+                                if(is_array($tag[3])) {
+                                    $t = array_merge($t,$tag[3]);
+                                }
+                                $value = tpl_img_getTag($t);
+                                if ($value) {
+                                    echo '<dt>'.$lang[$tag[1]].':</dt><dd>';
+                                    if ($tag[2] == 'date') {
+                                        echo dformat($value);
+                                    } else {
+                                        echo hsc($value);
+                                    }
+                                    echo '</dd>';
+                                }
+                            }
+                        ?>
+                    </dl>
+                    <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw'));?>
+                </div>
+                <div class="clearer"></div>
+            </div><!-- /.content -->
+
+            <p class="back">
+                <?php
+                    $imgNS = getNS($IMG);
+                    $authNS = auth_quickaclcheck("$imgNS:*");
+                    if (($authNS >= AUTH_UPLOAD) && function_exists('media_managerURL')) {
+                        $mmURL = media_managerURL(array('ns' => $imgNS, 'image' => $IMG));
+                        echo '<a href="'.$mmURL.'">'.$lang['img_manager'].'</a><br />';
+                    }
+                ?>
+                &larr; <?php echo $lang['img_backto']?> <?php tpl_pagelink($ID)?>
+            </p>
+
+        <?php } ?>
+    </div>
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/lang/.htaccess
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/lang/.htaccess	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/lang/.htaccess	(revision 30132)
@@ -0,0 +1,7 @@
+#Note: If this file prevents running monobook in your environment, simply delete
+#      it. Everything should be safe even if the files blocked by the following
+#      Apache rules are accessible.
+#      The reason for protecting these files is to to keep searchengines/foo
+#      away from indexing files containing version information, names and/or not
+#      necessarily public template parts by default.
+Deny from all
Index: documentation/trunk/wiki/templates/greenstone-monobook/lang/en/.htaccess
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/lang/en/.htaccess	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/lang/en/.htaccess	(revision 30132)
@@ -0,0 +1,7 @@
+#Note: If this file prevents running monobook in your environment, simply delete
+#      it. Everything should be safe even if the files blocked by the following
+#      Apache rules are accessible.
+#      The reason for protecting these files is to to keep searchengines/foo
+#      away from indexing files containing version information, names and/or not
+#      necessarily public template parts by default.
+Deny from all
Index: documentation/trunk/wiki/templates/greenstone-monobook/lang/en/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/lang/en/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/lang/en/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/lang/en/lang.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/lang/en/lang.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/lang/en/lang.php	(revision 30132)
@@ -0,0 +1,92 @@
+<?php
+
+/**
+ * English language for the "monobook" DokuWiki template
+ *
+ * If your language is not/only partially translated or you found an error/typo,
+ * have a look at the following files:
+ * - "/lib/tpl/monobook/lang/<your lang>/lang.php"
+ * - "/lib/tpl/monobook/lang/<your lang>/settings.php"
+ * If they are not existing, copy and translate the English ones. And don't
+ * forget to mail the translation to me,
+ * Andreas Haerter <development@andreas-haerter.com>. Thanks :-D.
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/config:lang
+ * @link http://www.dokuwiki.org/devel:configuration
+ */
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+//tabs
+$lang["monobook_tab_article"] = "Article";
+$lang["monobook_tab_discussion"] = "Discussion";
+$lang["monobook_tab_userpage"] = "User Page";
+$lang["monobook_tab_specialpage"] = "Special Pages";
+$lang["monobook_tab_mytalk"] = "My Talk";
+$lang["monobook_tab_exportodt"] = "Export: ODT";
+$lang["monobook_tab_exportpdf"] = "Export: PDF";
+
+//headlines for the different bars
+$lang["monobook_bar_views"] = "Views";
+$lang["monobook_bar_personnaltools"] = "Personal Tools";
+$lang["monobook_bar_navigation"] = "Navigation";
+$lang["monobook_bar_toolbox"] = "Toolbox";
+$lang["monobook_bar_inotherlanguages"] = "In Other Languages";
+$lang["monobook_bar_search"] = "Search";
+
+//buttons
+$lang["monobook_btn_go"] = "Go";
+$lang["monobook_btn_search"] = "Search";
+
+//default toolbox
+$lang["monobook_toolbxdef_whatlinkshere"] = "What links here";
+$lang["monobook_toolbxdef_upload"] = "Upload file";
+$lang["monobook_toolbxdef_siteindex"] = "Site index";
+$lang["monobook_toolbxdef_print"] = "Printable version";
+$lang["monobook_toolboxdef_permanent"] = "Permanent link";
+$lang["monobook_toolboxdef_cite"] = "Cite this article";
+
+//cite this article
+$lang["monobook_cite_bibdetailsfor"] = "Bibliographic details for";
+$lang["monobook_cite_pagename"] = "Page name";
+$lang["monobook_cite_author"] = "Author";
+$lang["monobook_cite_publisher"] = "Publisher";
+$lang["monobook_cite_dateofrev"] = "Date of this revision";
+$lang["monobook_cite_dateretrieved"] = "Date retrieved";
+$lang["monobook_cite_permurl"] = "Permanent URL";
+$lang["monobook_cite_pageversionid"] = "Page Version ID";
+$lang["monobook_cite_citationstyles"] = "Citation styles for";
+$lang["monobook_cite_checkstandards"] = "Please remember to check your manual of style, standards guide or instructor's guidelines for the exact syntax to suit your needs";
+$lang["monobook_cite_latexusepackagehint"] = "When using the LaTeX package url (\usepackage{url} somewhere in the preamble), which tends to give much more nicely formatted web addresses, the following may be preferred";
+$lang["monobook_cite_retrieved"] = "Retrieved";
+$lang["monobook_cite_from"] = "from";
+$lang["monobook_cite_in"] = "In";
+$lang["monobook_cite_accessed"] = "Accessed";
+$lang["monobook_cite_cited"] = "Cited";
+$lang["monobook_cite_lastvisited"] = "Last visited";
+$lang["monobook_cite_availableat"] = "Available at";
+$lang["monobook_cite_discussionpages"] = "DokuWiki talk pages";
+$lang["monobook_cite_markup"] = "Markup";
+$lang["monobook_cite_result"] = "Result";
+$lang["monobook_cite_thisversion"] = "this version";
+
+//other
+$lang["monobook_accessdenied"] = "Access denied";
+$lang["monobook_fillplaceholder"] = "Please fill this placeholder";
+$lang["monobook_donate"] = "Donate";
+$lang["monobook_mdtemplatefordw"] = "monobook template for DokuWiki";
+$lang["monobook_recentchanges"] = "Recent changes";
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/lang/en/settings.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/lang/en/settings.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/lang/en/settings.php	(revision 30132)
@@ -0,0 +1,78 @@
+<?php
+
+/**
+ * English language for the Config Manager
+ *
+ * If your language is not/only partially translated or you found an error/typo,
+ * have a look at the following files:
+ * - "/lib/tpl/monobook/lang/<your lang>/lang.php"
+ * - "/lib/tpl/monobook/lang/<your lang>/settings.php"
+ * If they are not existing, copy and translate the English ones. And don't
+ * forget to mail the translation to me,
+ * Andreas Haerter <development@andreas-haerter.com>. Thanks :-D.
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/config:lang
+ * @link http://www.dokuwiki.org/devel:configuration
+ */
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+//user pages
+$lang["monobook_userpage"]    = "Use User pages?";
+$lang["monobook_userpage_ns"] = "If yes, use following ':namespace:' as root for user pages:";
+
+//discussion pages
+$lang["monobook_discuss"]    = "Use discussion tabs/sites?";
+$lang["monobook_discuss_ns"] = "If yes, use following ':namespace:' as root for discussions:";
+
+//site notice
+$lang["monobook_sitenotice"]          = "Show site wide notice?";
+$lang["monobook_sitenotice_location"] = "If yes, use following wiki page for the site wide notice:";
+
+//navigation
+$lang["monobook_navigation"]           = "Show navigation?";
+$lang["monobook_navigation_location"]  = "If yes, use following wiki page as navigation:";
+$lang["monobook_navigation_translate"] = "If yes and <a href=\"http://www.dokuwiki.org/plugin:translation\">Translation plugin</a> available: load language specific navigation?<br />The wiki page of the translated navigation(s) is [value of 'monobook_navigation_location']_[iso lang code] (e.g. ':wiki:navigation_de').";
+
+//custom copyright notice
+$lang["monobook_copyright"]          = "Show copyright notice?";
+$lang["monobook_copyright_default"]  = "If yes, use default copyright notice?";
+$lang["monobook_copyright_location"] = "If not default, use following wiki page as copyright notice:";
+
+//search form
+$lang["monobook_search"] = "Show search form?";
+
+//toolbox
+$lang["monobook_toolbox"]               = "Show toolbox?";
+$lang["monobook_toolbox_default"]       = "If yes, use default toolbox?";
+$lang["monobook_toolbox_default_print"] = "If default toolbox is used, show printable version link?";
+$lang["monobook_toolbox_location"]      = "If not default, use following wiki page as toolbox location:";
+
+//donation link/button
+$lang["monobook_donate"]          = "Show donation link/button?";
+$lang["monobook_donate_default"]  = "If yes, use default donation target URL?";
+$lang["monobook_donate_url"]      = "If not default, use following URL for donations:";
+
+//TOC
+$lang["monobook_toc_position"] = "Table of contents (TOC) position";
+
+//other stuff
+$lang["monobook_breadcrumbs_position"]  = "Position of breadcrumb navigation (if enabled):";
+$lang["monobook_youarehere_position"]   = "Position of 'You are here' navigation (if enabled):";
+$lang["monobook_cite_author"]           = "Author name in 'Cite this Article':";
+$lang["monobook_loaduserjs"]            = "Load 'monobook/user/user.js'?";
+$lang["monobook_closedwiki"]            = "Closed wiki (most links/tabs/boxes are hidden until user is logged in)?";
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/lang/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/lang/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/lang/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/main.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/main.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/main.php	(revision 30132)
@@ -0,0 +1,832 @@
+<?php
+
+/**
+ * Main file of the "monobook" template for DokuWiki
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:templates
+ * @link http://www.dokuwiki.org/devel:coding_style
+ * @link http://www.dokuwiki.org/devel:environment
+ * @link http://www.dokuwiki.org/devel:action_modes
+ */
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+// Hardcode these paths, as this template will be loaded via SkinLoader
+if(!defined('GSMONO_TPL'))
+{
+    define('GSMONO_TPL', DOKU_BASE.'lib/tpl/greenstone-monobook/');
+}
+if(!defined('GSMONO_TPLINC'))
+{
+    define('GSMONO_TPLINC', DOKU_INC.'lib/tpl/greenstone-monobook/');
+}
+
+/** Override some config options - regardless of what is set in dokuwiki */
+$conf['youarehere'] = true;
+$conf['breadcrumbs'] = false;
+$conf['toptoclevel'] = 2;
+
+/**
+ * Stores the template wide action
+ *
+ * Different DokuWiki actions requiring some template logic. Therefore the
+ * template has to know, what we are doing right now - and that is what this
+ * var is for.
+ *
+ * Please have a look at the "detail.php" file in the same folder, it is also
+ * influencing the var's value.
+ *
+ * @var string
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ */
+$monobook_action = "article";
+//note: I used $_REQUEST before (cause DokuWiki controls and fills it. Normally,
+//      using $_REQUEST is a possible security threat. For details, see
+//      <http://www.suspekt.org/2008/10/01/php-53-and-delayed-cross-site-request-forgerieshijacking/>
+//      and <http://forum.dokuwiki.org/post/16524>), but it did not work as
+//      expected by me (maybe it is a reference and setting $monobook_action
+//      also changed the contents of $_REQUEST?!). That is why I switched back,
+//      checking $_GET and $_POST like I did it before.
+if (!empty($_GET["mddo"])){
+    $monobook_action = (string)$_GET["mddo"];
+}elseif (!empty($_POST["mddo"])){
+    $monobook_action = (string)$_POST["mddo"];
+}
+if (!empty($monobook_action) &&
+    $monobook_action !== "article" &&
+    $monobook_action !== "print" &&
+    $monobook_action !== "detail" &&
+    $monobook_action !== "cite"){
+    //ignore unknown values
+    $monobook_action = "article";
+}
+
+
+/**
+ * Stores the template wide context
+ *
+ * This template offers discussion pages via common articles, which should be
+ * marked as "special". DokuWiki does not know any "special" articles, therefore
+ * we have to take care about detecting if the current page is a discussion
+ * page or not.
+ *
+ * @var string
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ */
+$monobook_context = "article";
+if (preg_match("/^".tpl_getConf("monobook_discuss_ns")."?$|^".tpl_getConf("monobook_discuss_ns").".*?$/i", ":".getNS(getID()))){
+    $monobook_context = "discuss";
+}
+
+
+/**
+ * Stores the name the current client used to login
+ *
+ * @var string
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ */
+$loginname = "";
+if (!empty($conf["useacl"])){
+    if (isset($_SERVER["REMOTE_USER"]) && //no empty() but isset(): "0" may be a valid username...
+        $_SERVER["REMOTE_USER"] !== ""){
+        $loginname = $_SERVER["REMOTE_USER"]; //$INFO["client"] would not work here (-> e.g. if
+                                              //current IP differs from the one used to login)
+    }
+}
+
+
+//get needed language array
+include GSMONO_TPLINC."lang/en/lang.php";
+//overwrite English language values with available translations
+if (!empty($conf["lang"]) &&
+    $conf["lang"] !== "en" &&
+    file_exists(GSMONO_TPLINC."/lang/".$conf["lang"]."/lang.php")){
+    //get language file (partially translated language files are no problem
+    //cause non translated stuff is still existing as English array value)
+    include GSMONO_TPLINC."/lang/".$conf["lang"]."/lang.php";
+}
+
+
+//detect revision
+$rev = (int)$INFO["rev"]; //$INFO comes from the DokuWiki core
+if ($rev < 1){
+    $rev = (int)$INFO["lastmod"];
+}
+
+
+//get tab config
+include GSMONO_TPLINC."/conf/tabs.php";  //default
+if (file_exists(GSMONO_TPLINC."/user/tabs.php")){
+    include GSMONO_TPLINC."/user/tabs.php"; //user defined
+}
+
+
+//get boxes config
+include GSMONO_TPLINC."/conf/boxes.php"; //default
+if (file_exists(GSMONO_TPLINC."/user/boxes.php")){
+    include GSMONO_TPLINC."/user/boxes.php"; //user defined
+}
+
+
+//get button config
+include GSMONO_TPLINC."/conf/buttons.php"; //default
+if (file_exists(GSMONO_TPLINC."/user/buttons.php")){
+    include GSMONO_TPLINC."/user/buttons.php"; //user defined
+}
+
+
+/**
+ * Helper to render the tabs (like a dynamic XHTML snippet)
+ *
+ *
+ * NOTE: This function is heavily inspired by "writeMBPortlet(), context.php" of
+ *       the "Monobook for Dokuwiki" template by Terence J. Grant.
+ *
+ * @param array The tab data to render within the snippet. Each element
+ *        is represented through a subarray:
+ *        $array = array("tab1" => array("text"     => "hello world!",
+ *                                       "href"     => "http://www.example.com"
+ *                                       "nofollow" => true),
+ *                       "tab2" => array("text"  => "I did it again",
+ *                                       "href"  => DOKU_BASE."doku.php?id=foobar",
+ *                                       "class" => "foobar-css"),
+ *                       "tab3" => array("text"  => "I did it again and again",
+ *                                       "href"  => wl("start", false, false, "&"),
+ *                                       "class" => "foobar-css"),
+ *                       "tab4" => array("text"      => "Home",
+ *                                       "wiki"      => ":start"
+ *                                       "accesskey" => "H"));
+ *        Available keys within the subarrays:
+ *        - "text" (mandatory)
+ *          The text/label of the element.
+ *        - "href" (optional)
+ *          URL the element should point to (as link). Please submit raw,
+ *          unencoded URLs, the encoding will be done by this function for
+ *          security reasons. If the URL is not relative
+ *          (= starts with http(s)://), the URL will be treated as external
+ *          (=a special style will be used if "class" is not set).
+ *        - "wiki" (optional)
+ *          ID of a WikiPage to link (like ":start" or ":wiki:foobar").
+ *        - "class" (optional)
+ *          Name of an additional CSS class to use for the element content.
+ *          Works only in combination with "text" or "href", NOT with "wiki"
+ *          (will be ignored in this case).
+ *        - "nofollow" (optional)
+ *          If set to TRUE, rel="nofollow" will be added to the link if "href"
+ *          is set (otherwise this flag will do nothing).
+ *        - "accesskey" (optional)
+ *          accesskey="<value>" will be added to the link if "href" is set
+ *          (otherwise this option will do nothing).
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @see _monobook_renderButtons()
+ * @see _monobook_renderBoxes()
+ * @link http://www.wikipedia.org/wiki/Nofollow
+ * @link http://de.selfhtml.org/html/verweise/tastatur.htm#kuerzel
+ * @link http://www.dokuwiki.org/devel:environment
+ * @link http://www.dokuwiki.org/devel:coding_style
+ */
+function _monobook_renderTabs($arr)
+{
+    //is there something useful?
+    if (empty($arr) ||
+        !is_array($arr)){
+        return false; //nope, break operation
+    }
+
+    //array to store the created tabs into
+    $elements = array();
+
+    //handle the tab data
+    foreach($arr as $li_id => $element){
+        //basic check
+        if (empty($element) ||
+            !is_array($element) ||
+            !isset($element["text"])){
+            continue; //ignore invalid stuff and go on
+        }
+        $li_created = true; //flag to control if we created any list element
+        $interim = "";
+        //do we have an external link?
+        if (!empty($element["href"])){
+            //add URL
+            $interim = "<a href=\"".hsc($element["href"])."\""; //@TODO: real URL encoding
+            //add rel="nofollow" attribute to the link?
+            if (!empty($element["nofollow"])){
+                $interim .= " rel=\"nofollow\"";
+            }
+            //add special css class?
+            if (!empty($element["class"])){
+                $interim .= " class=\"".hsc($element["class"])."\"";
+            } elseif (substr($element["href"], 0, 4) === "http" ||
+                      substr($element["href"], 0, 3) === "ftp"){
+                $interim .= " class=\"urlextern\"";
+            }
+            //add access key?
+            if (!empty($element["accesskey"])){
+                $interim .= " accesskey=\"".hsc($element["accesskey"])."\" title=\"[ALT+".hsc(strtoupper($element["accesskey"]))."]\"";
+            }
+            $interim .= ">".hsc($element["text"])."</a>";
+        //internal wiki link
+        }else if (!empty($element["wiki"])){
+            //add special css class?
+            if (!empty($element["class"])){
+                $interim = "<span class=\"".hsc($element["class"])."\">".html_wikilink($element["wiki"], hsc($element["text"]))."</span>";
+            }else{
+                $interim = html_wikilink($element["wiki"], hsc($element["text"]));
+            }
+        /* Following works, but I think it is too heavy... //use a wiki page as content
+        } elseif ($element["wiki_include"]){
+
+            //we have to show a wiki page. get the rendered content of the
+            //defined wiki article to use as content.
+            $interim = tpl_include_page($element["wiki_include"], false);
+            if ($interim === "" ||
+                $interim === false){
+                //show creation/edit link if the defined page got no content
+                $interim = "[&#160;".html_wikilink($element["wiki_include"], hsc($lang["monobook_fillplaceholder"]." (".hsc($element["wiki_include"]).")"))."&#160;]<br />";
+            }*/
+        //text only
+        }else{
+            $interim = "<span";
+            //add special css class?
+            if (!empty($element["class"])){
+                $interim .= " class=\"".hsc($element["class"])."\"";
+            }else{
+                $interim .= " style=\"color:#ccc;\"";
+            }
+            $interim .= ">&#160;".hsc($element["text"])."&#160;</span>";
+        }
+        //store it
+        $elements[] = "        <li id=\"".hsc($li_id)."\">".$interim."</li>\n";
+    }
+
+    //show everything created
+    if (!empty($elements)){
+        echo  "\n"
+             ."    <div id=\"p-cactions\" class=\"portlet\">\n" //don't touch the id, it is needed as css selector
+             ."      <ul>\n";
+        foreach ($elements as $element){
+            echo $element;
+        }
+        echo  "      </ul>\n"
+             ."    </div>\n";
+    }
+    return true;
+}
+
+
+/**
+ * Helper to render the boxes (like a dynamic XHTML snippet)
+ *
+ *
+ * NOTE: This function is heavily inspired by "writeMBPortlet(), context.php" of
+ *       the "Monobook for Dokuwiki" template by Terence J. Grant.
+ *
+ * @param array The box data to render within the snippet. Each box is
+ *        represented through a subarray:
+ *        $array = array("box-id1" => array("headline" => "hello world!",
+ *                                          "xhtml"    => "I am <i>here</i>."));
+ *        Available keys within the subarrays:
+ *        - "xhtml" (mandatory)
+ *          The content of the Box you want to show as XHTML. Attention: YOU
+ *          HAVE TO TAKE CARE ABOUT FILTER EVENTUALLY USED INPUT/SECURITY. Be
+ *          aware of XSS and stuff.
+ *        - "headline" (optional)
+ *          Headline to show above the box. Leave empty/do not set for none.
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @see _monobook_renderButtons()
+ * @see _monobook_renderTabs()
+ * @link http://www.wikipedia.org/wiki/Nofollow
+ * @link http://www.wikipedia.org/wiki/Cross-site_scripting
+ * @link http://www.dokuwiki.org/devel:coding_style
+ */
+function _monobook_renderBoxes($arr)
+{
+    //is there something useful?
+    if (empty($arr) ||
+        !is_array($arr)){
+        return false; //nope, break operation
+    }
+
+    //array to store the created boxes into
+    $boxes          = array();
+    $search_handled = false;
+
+    //handle the box data
+    foreach($arr as $div_id => $contents){
+        //basic check
+        if (empty($contents) ||
+            !is_array($contents) ||
+            !isset($contents["xhtml"])){
+            continue; //ignore invalid stuff and go on
+        }
+        $interim  = "    <div class=\"portlet\" id=\"".hsc($div_id)."\">\n";
+        if (isset($contents["headline"])
+            && $contents["headline"] !== ""){
+            //hack for search box
+            if ($search_handled === true ||
+                $div_id !== "p-search") {
+                $interim .= "      <h5>".hsc($contents["headline"])."</h5>\n";
+            } else {
+                $interim .= "      <h5><label for=\"qsearch__in\">".hsc($contents["headline"])."</label></h5>\n";
+            }
+        }
+        $interim .= "      <div class=\"pBody\">\n"
+                   ."        <div class=\"dokuwiki\">\n" //dokuwiki CSS class needed cause we might have to show rendered page content
+                   .$contents["xhtml"]."\n"
+                   ."        </div>\n"
+                   ."      </div>\n"
+                   ."    </div>\n";
+        //hack for search box
+        if ($search_handled === false &&
+            $div_id === "p-search") {
+            $interim .= "    <div id=\"qsearch__out\" class=\"ajax_qsearch JSpopup\"></div>\n";
+            //set flag
+            $search_handled = true;
+        }
+        //store it
+        $boxes[] = $interim;
+    }
+    //show everything created
+    if (!empty($boxes)){
+        echo  "\n";
+        foreach ($boxes as $box){
+            echo $box;
+        }
+        echo  "\n";
+    }
+
+    return true;
+}
+
+
+/**
+ * Helper to render the footer buttons (like a dynamic XHTML snippet)
+ *
+ * @param array The button data to render within the snippet. Each element
+ *        is represented through a subarray:
+ *        $array = array("btn1" => array("img"      => GSMONO_TPL."static/img/button-monobook.png",
+ *                                       "href"     => "http://andreas-haerter.com/projects/dokuwiki-template-monobook",
+ *                                       "width"    => 80,
+ *                                       "height"   => 15,
+ *                                       "title"    => "monobook for DokuWiki",
+ *                                       "nofollow" => false),
+ *                       "btn2" => array("img"   => GSMONO_TPL."user/mybutton1.png",
+ *                                       "href"  => wl("start", false, false, "&")),
+ *                       "btn3" => array("img"   => GSMONO_TPL."user/mybutton2.png",
+ *                                       "href"  => "http://www.example.com");
+ *        Available keys within the subarrays:
+ *        - "img" (mandatory)
+ *          The relative or full path of an image/button to show. Users may
+ *          place own images within the /user/ dir of this template.
+ *        - "href" (mandatory)
+ *          URL the element should point to (as link). Please submit raw,
+ *          unencoded URLs, the encoding will be done by this function for
+ *          security reasons.
+ *        - "width" (optional)
+ *          width="<value>" will be added to the image tag if both "width" and
+ *          "height" are set (otherwise, this will be ignored).
+ *        - "height" (optional)
+ *          height="<value>" will be added to the image tag if both "height" and
+ *          "width" are set (otherwise, this will be ignored).
+ *        - "nofollow" (optional)
+ *          If set to TRUE, rel="nofollow" will be added to the link.
+ *        - "title" (optional)
+ *          title="<value>"  will be added to the link and image if "title"
+ *          is set + alt="<value>".
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @see _monobook_renderButtons()
+ * @see _monobook_renderBoxes()
+ * @link http://www.wikipedia.org/wiki/Nofollow
+ * @link http://www.dokuwiki.org/devel:coding_style
+ */
+function _monobook_renderButtons($arr)
+{
+    //array to store the created buttons into
+    $elements = array();
+
+    //handle the button data
+    foreach($arr as $li_id => $element){
+        //basic check
+        if (empty($element) ||
+            !is_array($element) ||
+            !isset($element["img"]) ||
+            !isset($element["href"])){
+            continue; //ignore invalid stuff and go on
+        }
+        $interim = "";
+
+        //add URL
+        $interim = "<a href=\"".hsc($element["href"])."\""; //@TODO: real URL encoding
+        //add rel="nofollow" attribute to the link?
+        if (!empty($element["nofollow"])){
+            $interim .= " rel=\"nofollow\"";
+        }
+        //add title attribute to the link?
+        if (!empty($element["title"])){
+            $interim .= " title=\"".hsc($element["title"])."\"";
+        }
+        $interim .= " target=\"_blank\"><img src=\"".hsc($element["img"])."\"";
+        //add width and height attribute to the image?
+        if (!empty($element["width"]) &&
+            !empty($element["height"])){
+            $interim .= " width=\"".(int)$element["width"]."\" height=\"".(int)$element["height"]."\"";
+        }
+        //add title and alt attribute to the image?
+        if (!empty($element["title"])){
+            $interim .= " title=\"".hsc($element["title"])."\" alt=\"".hsc($element["title"])."\"";
+        } else {
+            $interim .= " alt=\"\""; //alt is a mandatory attribute for images
+        }
+        $interim .= " border=\"0\" /></a>";
+
+        //store it
+        $elements[] = "      ".$interim."\n";
+    }
+
+    //show everything created
+    if (!empty($elements)){
+        echo  "\n";
+        foreach ($elements as $element){
+            echo $element;
+        }
+    }
+    return true;
+}
+
+//workaround for the "jumping textarea" IE bug. CSS only fix not possible cause
+//some DokuWiki JavaScript is triggering this bug, too. See the following for
+//info:
+//- <http://blog.andreas-haerter.com/2010/05/28/fix-msie-8-auto-scroll-textarea-css-width-percentage-bug>
+//- <http://msdn.microsoft.com/library/cc817574.aspx>
+if ($ACT === "edit" &&
+    !headers_sent()){
+    header("X-UA-Compatible: IE=EmulateIE7");
+}
+
+?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo hsc($conf["lang"]); ?>" lang="<?php echo hsc($conf["lang"]); ?>" dir="<?php echo hsc($lang["direction"]); ?>">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title><?php tpl_pagetitle(); echo " - ".hsc($conf["title"]); ?></title>
+<?php
+//show meta-tags
+tpl_metaheaders();
+echo "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />";
+
+//manually load needed CSS? this is a workaround for PHP Bug #49642. In some
+//version/os combinations PHP is not able to parse INI-file entries if there
+//are slashes "/" used for the keynames (see bugreport for more information:
+//<http://bugs.php.net/bug.php?id=49692>). to trigger this workaround, simply
+//delete/rename monobook's style.ini.
+if (!file_exists(GSMONO_TPLINC."style.ini")){
+    echo  "<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".GSMONO_TPL."bug49642.php".((!empty($lang["direction"]) && $lang["direction"] === "rtl") ? "?langdir=rtl" : "")."\" />\n"; //var comes from DokuWiki core
+}
+
+//include default or userdefined favicon
+//
+//note: since 2011-04-22 "Rincewind RC1", there is a core function named
+//      "tpl_getFavicon()". But its functionality is not really fitting the
+//      behaviour of this template, therefore I don't use it here.
+if (file_exists(GSMONO_TPLINC."user/favicon.ico")){
+    //user defined - you might find http://tools.dynamicdrive.com/favicon/
+    //useful to generate one
+    echo "\n<link rel=\"shortcut icon\" href=\"".GSMONO_TPL."user/favicon.ico\" />\n";
+}elseif (file_exists(GSMONO_TPLINC."user/favicon.png")){
+    //note: I do NOT recommend PNG for favicons (cause it is not supported by
+    //all browsers), but some users requested this feature.
+    echo "\n<link rel=\"shortcut icon\" href=\"".GSMONO_TPL."user/favicon.png\" />\n";
+}else{
+    //default
+    echo "\n<link rel=\"shortcut icon\" href=\"".GSMONO_TPL."static/3rd/dokuwiki/favicon.ico\" />\n";
+}
+
+//include default or userdefined Apple Touch Icon (see <http://j.mp/sx3NMT> for
+//details)
+if (file_exists(GSMONO_TPLINC."user/apple-touch-icon.png")){
+    echo "<link rel=\"apple-touch-icon\" href=\"".GSMONO_TPL."user/apple-touch-icon.png\" />\n";
+}else{
+    //default
+    echo "<link rel=\"apple-touch-icon\" href=\"".GSMONO_TPL."static/3rd/dokuwiki/apple-touch-icon.png\" />\n";
+}
+
+//load userdefined js?
+if (tpl_getConf("monobook_loaduserjs")){
+    echo "<script type=\"text/javascript\" charset=\"utf-8\" src=\"".GSMONO_TPL."user/user.js\"></script>\n";
+}
+
+//show printable version?
+if ($monobook_action === "print"){
+  //note: this is just a workaround for people searching for a print version.
+  //      don't forget to update the styles.ini, this is the really important
+  //      thing! BTW: good text about this: http://is.gd/5MyG5
+  echo  "<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".GSMONO_TPL."static/css/print.css\" />\n"
+       ."<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".GSMONO_TPL."static/3rd/wikipedia/commonPrint.css\" />\n"
+       ."<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".GSMONO_TPL."user/print.css\" />\n";
+}
+
+//load language specific css hacks?
+if (file_exists(GSMONO_TPLINC."lang/".$conf["lang"]."/style.css")){
+  $interim = trim(file_get_contents(GSMONO_TPLINC."lang/".$conf["lang"]."/style.css"));
+  if (!empty($interim)){
+      echo "<style type=\"text/css\" media=\"all\">\n".hsc($interim)."\n</style>\n";
+  }
+}
+?>
+<!--[if lt IE 5.5000]><link rel="stylesheet" media="all" type="text/css" href="<?php echo GSMONO_TPL; ?>static/3rd/monobook/IE50Fixes.css" /><![endif]-->
+<!--[if IE 5.5000]><link rel="stylesheet" media="all" type="text/css" href="<?php echo GSMONO_TPL; ?>static/3rd/monobook/IE55Fixes.css" /><![endif]-->
+<!--[if IE 6]><link rel="stylesheet" media="all" type="text/css" href="<?php echo GSMONO_TPL; ?>static/3rd/monobook/IE60Fixes.css" /><![endif]-->
+<!--[if IE 7]><link rel="stylesheet" media="all" type="text/css" href="<?php echo GSMONO_TPL; ?>static/3rd/monobook/IE70Fixes.css" /><![endif]-->
+<!--[if lt IE 7]><script type="text/javascript" charset="utf-8" src="<?php echo GSMONO_TPL; ?>static/3rd/wikipedia/IEFixes.js"></script><meta http-equiv="imagetoolbar" content="no" /><![endif]-->
+</head>
+<body class="<?php //different styles/backgrounds for different page types
+             switch (true){
+                 //special: tech
+                 case ($monobook_action === "detail"):
+                 case ($monobook_action === "cite"):
+                 case ($ACT === "media"): //var comes from DokuWiki
+                 case ($ACT === "search"): //var comes from DokuWiki
+                   echo "mediawiki ns-2 ltr";
+                   break;
+                 //special: other
+                 case ($ACT === "edit"): //var comes from DokuWiki
+                 case ($ACT === "draft"): //var comes from DokuWiki
+                 case ($ACT === "revisions"): //var comes from DokuWiki
+                 case ($monobook_context === "discuss"):
+                 case (preg_match("/^wiki$|^wiki:.*?$/i", getNS(getID()))):
+                   echo "mediawiki ns-1 ltr";
+                   break;
+                 //"normal" content
+                 case ($monobook_action === "print"):
+                 default:
+                   echo "mediawiki ns-0 ltr";
+                   break;
+             }
+             ?>">
+<div id="globalWrapper">
+
+  <div id="column-content">
+    <div id="content">
+      <a name="top" id="top"></a>
+      <a name="dokuwiki__top" id="dokuwiki__top"></a>
+      <div id="bodyContent">
+        <div class="dokuwiki">
+          <!-- start main content area -->
+          <?php
+          //show messages (if there are any)
+          html_msgarea();
+          //show site notice
+          if (tpl_getConf("monobook_sitenotice")){
+              //we have to show a custom sitenotice
+              if (empty($conf["useacl"]) ||
+                  auth_quickaclcheck(cleanID(tpl_getConf("monobook_sitenotice_location"))) >= AUTH_READ){ //current user got access?
+                  echo "\n          <div id=\"siteNotice\" class=\"noprint\">\n";
+                  //get the rendered content of the defined wiki article to use as
+                  //custom sitenotice.
+                  $interim = tpl_include_page(tpl_getConf("monobook_sitenotice_location"), false);
+                  if ($interim === "" ||
+                      $interim === false){
+                      //show creation/edit link if the defined page got no content
+                      echo "[&#160;";
+                      tpl_pagelink(tpl_getConf("monobook_sitenotice_location"), hsc($lang["monobook_fillplaceholder"]." (".tpl_getConf("monobook_sitenotice_location").")"));
+                      echo "&#160;]<br />";
+                  }else{
+                      //show the rendered page content
+                      echo $interim;
+                  }
+                  echo "\n          </div>\n";
+              }
+          }
+          //show breadcrumps if enabled and positioned on top
+          if ($conf["breadcrumbs"] == true &&
+              $ACT !== "media" && //var comes from DokuWiki
+              (empty($conf["useacl"]) || //are there any users?
+               $loginname !== "" || //user is logged in?
+               !tpl_getConf("monobook_closedwiki")) &&
+              tpl_getConf("monobook_breadcrumbs_position") === "top"){
+              echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
+              tpl_breadcrumbs();
+              echo "\n          </p></div>\n";
+          }
+          //show hierarchical breadcrumps if enabled and positioned on top
+          if ($conf["youarehere"] == true &&
+              $ACT !== "media" && //var comes from DokuWiki
+              (empty($conf["useacl"]) || //are there any users?
+               $loginname !== "" || //user is logged in?
+               !tpl_getConf("monobook_closedwiki"))){// &&
+                //              tpl_getConf("monobook_youarehere_position") === "top"){
+              echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
+              tpl_youarehere();
+              echo "\n          </p></div>\n";
+          }
+          ?>
+
+          <!-- start rendered wiki content -->
+          <?php
+          //flush the buffer for faster page rendering, heaviest content follows
+          if (function_exists("tpl_flush")) {
+              tpl_flush(); //exists since 2010-11-07 "Anteater"...
+          } else {
+              flush(); //...but I won't loose compatibility to 2009-12-25 "Lemming" right now.
+          }
+          //decide which type of pagecontent we have to show
+          switch ($monobook_action){
+              //"image details"
+              case "detail":
+                  include GSMONO_TPLINC."inc_detail.php";
+                  break;
+              //"cite this article"
+              case "cite":
+                  include GSMONO_TPLINC."inc_cite.php";
+                  break;
+              //show "normal" content
+              default:
+                  tpl_content(((tpl_getConf("monobook_toc_position") === "article") ? true : false));
+                  break;
+          }
+          ?>
+          <!-- end rendered wiki content -->
+
+          <br />
+          <?php
+          //show breadcrumps if enabled and positioned on bottom
+          if ($conf["breadcrumbs"] == true &&
+              $ACT !== "media" && //var comes from DokuWiki
+              (empty($conf["useacl"]) || //are there any users?
+               $loginname !== "" || //user is logged in?
+               !tpl_getConf("monobook_closedwiki")) &&
+              tpl_getConf("monobook_breadcrumbs_position") === "bottom"){
+              echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
+              tpl_breadcrumbs();
+              echo "\n          </p></div>\n";
+          }
+          //show hierarchical breadcrumps if enabled and positioned on bottom
+          if ($conf["youarehere"] == true &&
+              $ACT !== "media" && //var comes from DokuWiki
+              (empty($conf["useacl"]) || //are there any users?
+               $loginname !== "" || //user is logged in?
+               !tpl_getConf("monobook_closedwiki"))){ // &&
+                //              tpl_getConf("monobook_youarehere_position") === "bottom"){
+              echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
+              tpl_youarehere();
+              echo "\n          </p></div>\n";
+          }
+          ?>
+
+          <!-- end main content area -->
+          <div class="visualClear"></div>
+        </div>
+      </div>
+    </div>
+  </div>
+
+  <div id="column-one" class="noprint">
+    <div class="portlet" id="p-logo">
+      <?php
+      //include default or userdefined logo
+      echo "<a href=\"".wl()."\" ";
+      if (file_exists(GSMONO_TPLINC."user/logo.png")){
+          //user defined PNG
+          echo "style=\"background-image:url(".GSMONO_TPL."user/logo.png);\"";
+      }elseif (file_exists(GSMONO_TPLINC."user/logo.gif")){
+          //user defined GIF
+          echo "style=\"background-image:url(".GSMONO_TPL."user/logo.gif);\"";
+      }elseif (file_exists(GSMONO_TPLINC."user/logo.jpg")){
+          //user defined JPG
+          echo "style=\"background-image:url(".GSMONO_TPL."user/logo.jpg);\"";
+      }else{
+          //default
+          echo "style=\"background-image:url(".GSMONO_TPL."static/3rd/dokuwiki/logo.png);\"";
+      }
+      echo " accesskey=\"h\" title=\"Back to start [ALT+H]\"></a>\n";
+      ?>
+    </div>
+    <?php
+    //show tabs, see monobook/user/tabs.php to configure them
+    if (!empty($_monobook_tabs) &&
+         is_array($_monobook_tabs)){
+        _monobook_renderTabs($_monobook_tabs);
+    }
+
+    //show personal tools
+    if (!empty($conf["useacl"])){ //...makes only sense if there are users
+        echo  "\n"
+             ."    <div id=\"p-personal\" class=\"portlet\">\n"
+             ."      <div class=\"pBody\">\n"
+             ."        <ul>\n";
+        //login?
+        if ($loginname === ""){
+            echo  "          <li id=\"pt-login\"><a href=\"".wl(cleanID(getId()), array("do" => "login"))."\" rel=\"nofollow\">".hsc($lang["btn_login"])."</a></li>\n"; //language comes from DokuWiki core
+        }else{
+            //username and userpage
+            echo "          <li id=\"pt-userpage\">".(tpl_getConf("monobook_userpage")
+                                                      ? html_wikilink(tpl_getConf("monobook_userpage_ns").$loginname, hsc($loginname))
+                                                      : hsc($loginname))."</li>";
+            //admin
+            if (!empty($INFO["isadmin"]) ||
+                !empty($INFO["ismanager"])){
+                echo  "          <li id=\"pt-admin\"><a href=\"".wl(cleanID(getId()), array("do" => "admin"))."\" rel=\"nofollow\">".hsc($lang["btn_admin"])."</a></li>\n"; //language comes from DokuWiki core
+            }
+            //personal discussion
+            if (tpl_getConf("monobook_discuss") &&
+                tpl_getConf("monobook_userpage")){
+                echo "          <li id=\"pt-mytalk\">".html_wikilink(tpl_getConf("monobook_discuss_ns").ltrim(tpl_getConf("monobook_userpage_ns"), ":").$loginname, hsc($lang["monobook_tab_mytalk"]))."</li>";
+            }
+            //profile
+            echo  "          <li id=\"pt-preferences\"><a href=\"http://www.greenstone.org/users/change.php\" rel=\"nofollow\">".hsc($lang["btn_profile"])."</a></li>\n"; //language comes from DokuWiki core
+            //logout
+            echo  "          <li id=\"pt-logout\"><a href=\"".wl(cleanID(getId()), array("do" => "logout"))."\" rel=\"nofollow\">".hsc($lang["btn_logout"])."</a></li>\n"; //language comes from DokuWiki core
+        }
+        echo  "        </ul>\n"
+             ."      </div>\n"
+             ."    </div>\n";
+    }
+
+    //show boxes, see monobook/user/boxes.php to configure them
+    if (!empty($_monobook_boxes) &&
+        is_array($_monobook_boxes)){
+        _monobook_renderBoxes($_monobook_boxes);
+    }
+    ?>
+  </div> <!-- end of the left (by default at least) column -->
+
+  <div class="visualClear"></div>
+
+  <div id="footer">
+    <div id="footer-buttons" class="noprint">
+    <?php
+    //show buttons, see monobook/user/buttons.php to configure them
+    if (!empty($_monobook_btns) &&
+        is_array($_monobook_btns)){
+        _monobook_renderButtons($_monobook_btns);
+    }
+    ?>
+    </div>
+    <ul id="f-list">
+      <li id="lastmod">
+        <?php tpl_pageinfo()?><br />
+      </li>
+      <?php
+      //copyright notice
+      if (tpl_getConf("monobook_copyright")){
+          //show dokuwiki's default notice?
+          if (tpl_getConf("monobook_copyright_default")){
+              echo "<li id=\"copyright\">\n        <div class=\"dokuwiki\">";
+              tpl_license(false);
+              echo "</div>\n      </li>\n";
+          //show custom notice.
+          }else{
+              if (empty($conf["useacl"]) ||
+                  auth_quickaclcheck(cleanID(tpl_getConf("monobook_copyright_location"))) >= AUTH_READ){ //current user got access?
+                  echo "<li id=\"copyright\">\n        ";
+                  //get the rendered content of the defined wiki article to use as custom notice
+                  $interim = tpl_include_page(tpl_getConf("monobook_copyright_location"), false);
+                  if ($interim === "" ||
+                      $interim === false){
+                      //show creation/edit link if the defined page got no content
+                      echo "[&#160;";
+                      tpl_pagelink(tpl_getConf("monobook_copyright_location"), hsc($lang["monobook_fillplaceholder"]." (".tpl_getConf("monobook_copyright_location").")"));
+                      echo "&#160;]<br />";
+                  }else{
+                      //show the rendered page content
+                      echo  "<div class=\"dokuwiki\">\n" //dokuwiki CSS class needed cause we are showing rendered page content
+                           .$interim."\n        "
+                           ."</div>";
+                  }
+                  echo "\n      </li>\n";
+              }
+          }
+      }
+      ?>
+      <li id="usermod" class="noprint">
+        <?php tpl_userinfo(); ?><br />
+      </li>
+    </ul>
+  </div>
+
+</div>  <!-- end of global wrap -->
+<a href="<?php echo wl("", array("do" => "recent"));?>" accesskey="r" style="visibility:hidden;" rel="nofollow">&#160;</a>
+<?php
+//provide DokuWiki housekeeping, required in all templates
+tpl_indexerWebBug();
+
+//include web analytics software
+if (file_exists(GSMONO_TPLINC."/user/tracker.php")){
+    include GSMONO_TPLINC."/user/tracker.php";
+}
+?>
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/main.php.bak
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/main.php.bak	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/main.php.bak	(revision 30132)
@@ -0,0 +1,819 @@
+<?php
+
+/**
+ * Main file of the "monobook" template for DokuWiki
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:templates
+ * @link http://www.dokuwiki.org/devel:coding_style
+ * @link http://www.dokuwiki.org/devel:environment
+ * @link http://www.dokuwiki.org/devel:action_modes
+ */
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+
+/**
+ * Stores the template wide action
+ *
+ * Different DokuWiki actions requiring some template logic. Therefore the
+ * template has to know, what we are doing right now - and that is what this
+ * var is for.
+ *
+ * Please have a look at the "detail.php" file in the same folder, it is also
+ * influencing the var's value.
+ *
+ * @var string
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ */
+$monobook_action = "article";
+//note: I used $_REQUEST before (cause DokuWiki controls and fills it. Normally,
+//      using $_REQUEST is a possible security threat. For details, see
+//      <http://www.suspekt.org/2008/10/01/php-53-and-delayed-cross-site-request-forgerieshijacking/>
+//      and <http://forum.dokuwiki.org/post/16524>), but it did not work as
+//      expected by me (maybe it is a reference and setting $monobook_action
+//      also changed the contents of $_REQUEST?!). That is why I switched back,
+//      checking $_GET and $_POST like I did it before.
+if (!empty($_GET["mddo"])){
+    $monobook_action = (string)$_GET["mddo"];
+}elseif (!empty($_POST["mddo"])){
+    $monobook_action = (string)$_POST["mddo"];
+}
+if (!empty($monobook_action) &&
+    $monobook_action !== "article" &&
+    $monobook_action !== "print" &&
+    $monobook_action !== "detail" &&
+    $monobook_action !== "cite"){
+    //ignore unknown values
+    $monobook_action = "article";
+}
+
+
+/**
+ * Stores the template wide context
+ *
+ * This template offers discussion pages via common articles, which should be
+ * marked as "special". DokuWiki does not know any "special" articles, therefore
+ * we have to take care about detecting if the current page is a discussion
+ * page or not.
+ *
+ * @var string
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ */
+$monobook_context = "article";
+if (preg_match("/^".tpl_getConf("monobook_discuss_ns")."?$|^".tpl_getConf("monobook_discuss_ns").".*?$/i", ":".getNS(getID()))){
+    $monobook_context = "discuss";
+}
+
+
+/**
+ * Stores the name the current client used to login
+ *
+ * @var string
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ */
+$loginname = "";
+if (!empty($conf["useacl"])){
+    if (isset($_SERVER["REMOTE_USER"]) && //no empty() but isset(): "0" may be a valid username...
+        $_SERVER["REMOTE_USER"] !== ""){
+        $loginname = $_SERVER["REMOTE_USER"]; //$INFO["client"] would not work here (-> e.g. if
+                                              //current IP differs from the one used to login)
+    }
+}
+
+
+//get needed language array
+include DOKU_TPLINC."lang/en/lang.php";
+//overwrite English language values with available translations
+if (!empty($conf["lang"]) &&
+    $conf["lang"] !== "en" &&
+    file_exists(DOKU_TPLINC."/lang/".$conf["lang"]."/lang.php")){
+    //get language file (partially translated language files are no problem
+    //cause non translated stuff is still existing as English array value)
+    include DOKU_TPLINC."/lang/".$conf["lang"]."/lang.php";
+}
+
+
+//detect revision
+$rev = (int)$INFO["rev"]; //$INFO comes from the DokuWiki core
+if ($rev < 1){
+    $rev = (int)$INFO["lastmod"];
+}
+
+
+//get tab config
+include DOKU_TPLINC."/conf/tabs.php";  //default
+if (file_exists(DOKU_TPLINC."/user/tabs.php")){
+    include DOKU_TPLINC."/user/tabs.php"; //user defined
+}
+
+
+//get boxes config
+include DOKU_TPLINC."/conf/boxes.php"; //default
+if (file_exists(DOKU_TPLINC."/user/boxes.php")){
+    include DOKU_TPLINC."/user/boxes.php"; //user defined
+}
+
+
+//get button config
+include DOKU_TPLINC."/conf/buttons.php"; //default
+if (file_exists(DOKU_TPLINC."/user/buttons.php")){
+    include DOKU_TPLINC."/user/buttons.php"; //user defined
+}
+
+
+/**
+ * Helper to render the tabs (like a dynamic XHTML snippet)
+ *
+ *
+ * NOTE: This function is heavily inspired by "writeMBPortlet(), context.php" of
+ *       the "Monobook for Dokuwiki" template by Terence J. Grant.
+ *
+ * @param array The tab data to render within the snippet. Each element
+ *        is represented through a subarray:
+ *        $array = array("tab1" => array("text"     => "hello world!",
+ *                                       "href"     => "http://www.example.com"
+ *                                       "nofollow" => true),
+ *                       "tab2" => array("text"  => "I did it again",
+ *                                       "href"  => DOKU_BASE."doku.php?id=foobar",
+ *                                       "class" => "foobar-css"),
+ *                       "tab3" => array("text"  => "I did it again and again",
+ *                                       "href"  => wl("start", false, false, "&"),
+ *                                       "class" => "foobar-css"),
+ *                       "tab4" => array("text"      => "Home",
+ *                                       "wiki"      => ":start"
+ *                                       "accesskey" => "H"));
+ *        Available keys within the subarrays:
+ *        - "text" (mandatory)
+ *          The text/label of the element.
+ *        - "href" (optional)
+ *          URL the element should point to (as link). Please submit raw,
+ *          unencoded URLs, the encoding will be done by this function for
+ *          security reasons. If the URL is not relative
+ *          (= starts with http(s)://), the URL will be treated as external
+ *          (=a special style will be used if "class" is not set).
+ *        - "wiki" (optional)
+ *          ID of a WikiPage to link (like ":start" or ":wiki:foobar").
+ *        - "class" (optional)
+ *          Name of an additional CSS class to use for the element content.
+ *          Works only in combination with "text" or "href", NOT with "wiki"
+ *          (will be ignored in this case).
+ *        - "nofollow" (optional)
+ *          If set to TRUE, rel="nofollow" will be added to the link if "href"
+ *          is set (otherwise this flag will do nothing).
+ *        - "accesskey" (optional)
+ *          accesskey="<value>" will be added to the link if "href" is set
+ *          (otherwise this option will do nothing).
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @see _monobook_renderButtons()
+ * @see _monobook_renderBoxes()
+ * @link http://www.wikipedia.org/wiki/Nofollow
+ * @link http://de.selfhtml.org/html/verweise/tastatur.htm#kuerzel
+ * @link http://www.dokuwiki.org/devel:environment
+ * @link http://www.dokuwiki.org/devel:coding_style
+ */
+function _monobook_renderTabs($arr)
+{
+    //is there something useful?
+    if (empty($arr) ||
+        !is_array($arr)){
+        return false; //nope, break operation
+    }
+
+    //array to store the created tabs into
+    $elements = array();
+
+    //handle the tab data
+    foreach($arr as $li_id => $element){
+        //basic check
+        if (empty($element) ||
+            !is_array($element) ||
+            !isset($element["text"])){
+            continue; //ignore invalid stuff and go on
+        }
+        $li_created = true; //flag to control if we created any list element
+        $interim = "";
+        //do we have an external link?
+        if (!empty($element["href"])){
+            //add URL
+            $interim = "<a href=\"".hsc($element["href"])."\""; //@TODO: real URL encoding
+            //add rel="nofollow" attribute to the link?
+            if (!empty($element["nofollow"])){
+                $interim .= " rel=\"nofollow\"";
+            }
+            //add special css class?
+            if (!empty($element["class"])){
+                $interim .= " class=\"".hsc($element["class"])."\"";
+            } elseif (substr($element["href"], 0, 4) === "http" ||
+                      substr($element["href"], 0, 3) === "ftp"){
+                $interim .= " class=\"urlextern\"";
+            }
+            //add access key?
+            if (!empty($element["accesskey"])){
+                $interim .= " accesskey=\"".hsc($element["accesskey"])."\" title=\"[ALT+".hsc(strtoupper($element["accesskey"]))."]\"";
+            }
+            $interim .= ">".hsc($element["text"])."</a>";
+        //internal wiki link
+        }else if (!empty($element["wiki"])){
+            //add special css class?
+            if (!empty($element["class"])){
+                $interim = "<span class=\"".hsc($element["class"])."\">".html_wikilink($element["wiki"], hsc($element["text"]))."</span>";
+            }else{
+                $interim = html_wikilink($element["wiki"], hsc($element["text"]));
+            }
+        /* Following works, but I think it is too heavy... //use a wiki page as content
+        } elseif ($element["wiki_include"]){
+
+            //we have to show a wiki page. get the rendered content of the
+            //defined wiki article to use as content.
+            $interim = tpl_include_page($element["wiki_include"], false);
+            if ($interim === "" ||
+                $interim === false){
+                //show creation/edit link if the defined page got no content
+                $interim = "[&#160;".html_wikilink($element["wiki_include"], hsc($lang["monobook_fillplaceholder"]." (".hsc($element["wiki_include"]).")"))."&#160;]<br />";
+            }*/
+        //text only
+        }else{
+            $interim = "<span";
+            //add special css class?
+            if (!empty($element["class"])){
+                $interim .= " class=\"".hsc($element["class"])."\"";
+            }else{
+                $interim .= " style=\"color:#ccc;\"";
+            }
+            $interim .= ">&#160;".hsc($element["text"])."&#160;</span>";
+        }
+        //store it
+        $elements[] = "        <li id=\"".hsc($li_id)."\">".$interim."</li>\n";
+    }
+
+    //show everything created
+    if (!empty($elements)){
+        echo  "\n"
+             ."    <div id=\"p-cactions\" class=\"portlet\">\n" //don't touch the id, it is needed as css selector
+             ."      <ul>\n";
+        foreach ($elements as $element){
+            echo $element;
+        }
+        echo  "      </ul>\n"
+             ."    </div>\n";
+    }
+    return true;
+}
+
+
+/**
+ * Helper to render the boxes (like a dynamic XHTML snippet)
+ *
+ *
+ * NOTE: This function is heavily inspired by "writeMBPortlet(), context.php" of
+ *       the "Monobook for Dokuwiki" template by Terence J. Grant.
+ *
+ * @param array The box data to render within the snippet. Each box is
+ *        represented through a subarray:
+ *        $array = array("box-id1" => array("headline" => "hello world!",
+ *                                          "xhtml"    => "I am <i>here</i>."));
+ *        Available keys within the subarrays:
+ *        - "xhtml" (mandatory)
+ *          The content of the Box you want to show as XHTML. Attention: YOU
+ *          HAVE TO TAKE CARE ABOUT FILTER EVENTUALLY USED INPUT/SECURITY. Be
+ *          aware of XSS and stuff.
+ *        - "headline" (optional)
+ *          Headline to show above the box. Leave empty/do not set for none.
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @see _monobook_renderButtons()
+ * @see _monobook_renderTabs()
+ * @link http://www.wikipedia.org/wiki/Nofollow
+ * @link http://www.wikipedia.org/wiki/Cross-site_scripting
+ * @link http://www.dokuwiki.org/devel:coding_style
+ */
+function _monobook_renderBoxes($arr)
+{
+    //is there something useful?
+    if (empty($arr) ||
+        !is_array($arr)){
+        return false; //nope, break operation
+    }
+
+    //array to store the created boxes into
+    $boxes          = array();
+    $search_handled = false;
+
+    //handle the box data
+    foreach($arr as $div_id => $contents){
+        //basic check
+        if (empty($contents) ||
+            !is_array($contents) ||
+            !isset($contents["xhtml"])){
+            continue; //ignore invalid stuff and go on
+        }
+        $interim  = "    <div class=\"portlet\" id=\"".hsc($div_id)."\">\n";
+        if (isset($contents["headline"])
+            && $contents["headline"] !== ""){
+            //hack for search box
+            if ($search_handled === true ||
+                $div_id !== "p-search") {
+                $interim .= "      <h5>".hsc($contents["headline"])."</h5>\n";
+            } else {
+                $interim .= "      <h5><label for=\"qsearch__in\">".hsc($contents["headline"])."</label></h5>\n";
+            }
+        }
+        $interim .= "      <div class=\"pBody\">\n"
+                   ."        <div class=\"dokuwiki\">\n" //dokuwiki CSS class needed cause we might have to show rendered page content
+                   .$contents["xhtml"]."\n"
+                   ."        </div>\n"
+                   ."      </div>\n"
+                   ."    </div>\n";
+        //hack for search box
+        if ($search_handled === false &&
+            $div_id === "p-search") {
+            $interim .= "    <div id=\"qsearch__out\" class=\"ajax_qsearch JSpopup\"></div>\n";
+            //set flag
+            $search_handled = true;
+        }
+        //store it
+        $boxes[] = $interim;
+    }
+    //show everything created
+    if (!empty($boxes)){
+        echo  "\n";
+        foreach ($boxes as $box){
+            echo $box;
+        }
+        echo  "\n";
+    }
+
+    return true;
+}
+
+
+/**
+ * Helper to render the footer buttons (like a dynamic XHTML snippet)
+ *
+ * @param array The button data to render within the snippet. Each element
+ *        is represented through a subarray:
+ *        $array = array("btn1" => array("img"      => DOKU_TPL."static/img/button-monobook.png",
+ *                                       "href"     => "http://andreas-haerter.com/projects/dokuwiki-template-monobook",
+ *                                       "width"    => 80,
+ *                                       "height"   => 15,
+ *                                       "title"    => "monobook for DokuWiki",
+ *                                       "nofollow" => false),
+ *                       "btn2" => array("img"   => DOKU_TPL."user/mybutton1.png",
+ *                                       "href"  => wl("start", false, false, "&")),
+ *                       "btn3" => array("img"   => DOKU_TPL."user/mybutton2.png",
+ *                                       "href"  => "http://www.example.com");
+ *        Available keys within the subarrays:
+ *        - "img" (mandatory)
+ *          The relative or full path of an image/button to show. Users may
+ *          place own images within the /user/ dir of this template.
+ *        - "href" (mandatory)
+ *          URL the element should point to (as link). Please submit raw,
+ *          unencoded URLs, the encoding will be done by this function for
+ *          security reasons.
+ *        - "width" (optional)
+ *          width="<value>" will be added to the image tag if both "width" and
+ *          "height" are set (otherwise, this will be ignored).
+ *        - "height" (optional)
+ *          height="<value>" will be added to the image tag if both "height" and
+ *          "width" are set (otherwise, this will be ignored).
+ *        - "nofollow" (optional)
+ *          If set to TRUE, rel="nofollow" will be added to the link.
+ *        - "title" (optional)
+ *          title="<value>"  will be added to the link and image if "title"
+ *          is set + alt="<value>".
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @see _monobook_renderButtons()
+ * @see _monobook_renderBoxes()
+ * @link http://www.wikipedia.org/wiki/Nofollow
+ * @link http://www.dokuwiki.org/devel:coding_style
+ */
+function _monobook_renderButtons($arr)
+{
+    //array to store the created buttons into
+    $elements = array();
+
+    //handle the button data
+    foreach($arr as $li_id => $element){
+        //basic check
+        if (empty($element) ||
+            !is_array($element) ||
+            !isset($element["img"]) ||
+            !isset($element["href"])){
+            continue; //ignore invalid stuff and go on
+        }
+        $interim = "";
+
+        //add URL
+        $interim = "<a href=\"".hsc($element["href"])."\""; //@TODO: real URL encoding
+        //add rel="nofollow" attribute to the link?
+        if (!empty($element["nofollow"])){
+            $interim .= " rel=\"nofollow\"";
+        }
+        //add title attribute to the link?
+        if (!empty($element["title"])){
+            $interim .= " title=\"".hsc($element["title"])."\"";
+        }
+        $interim .= " target=\"_blank\"><img src=\"".hsc($element["img"])."\"";
+        //add width and height attribute to the image?
+        if (!empty($element["width"]) &&
+            !empty($element["height"])){
+            $interim .= " width=\"".(int)$element["width"]."\" height=\"".(int)$element["height"]."\"";
+        }
+        //add title and alt attribute to the image?
+        if (!empty($element["title"])){
+            $interim .= " title=\"".hsc($element["title"])."\" alt=\"".hsc($element["title"])."\"";
+        } else {
+            $interim .= " alt=\"\""; //alt is a mandatory attribute for images
+        }
+        $interim .= " border=\"0\" /></a>";
+
+        //store it
+        $elements[] = "      ".$interim."\n";
+    }
+
+    //show everything created
+    if (!empty($elements)){
+        echo  "\n";
+        foreach ($elements as $element){
+            echo $element;
+        }
+    }
+    return true;
+}
+
+//workaround for the "jumping textarea" IE bug. CSS only fix not possible cause
+//some DokuWiki JavaScript is triggering this bug, too. See the following for
+//info:
+//- <http://blog.andreas-haerter.com/2010/05/28/fix-msie-8-auto-scroll-textarea-css-width-percentage-bug>
+//- <http://msdn.microsoft.com/library/cc817574.aspx>
+if ($ACT === "edit" &&
+    !headers_sent()){
+    header("X-UA-Compatible: IE=EmulateIE7");
+}
+
+?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo hsc($conf["lang"]); ?>" lang="<?php echo hsc($conf["lang"]); ?>" dir="<?php echo hsc($lang["direction"]); ?>">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title><?php tpl_pagetitle(); echo " - ".hsc($conf["title"]); ?></title>
+<?php
+//show meta-tags
+tpl_metaheaders();
+echo "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />";
+
+//manually load needed CSS? this is a workaround for PHP Bug #49642. In some
+//version/os combinations PHP is not able to parse INI-file entries if there
+//are slashes "/" used for the keynames (see bugreport for more information:
+//<http://bugs.php.net/bug.php?id=49692>). to trigger this workaround, simply
+//delete/rename monobook's style.ini.
+if (!file_exists(DOKU_TPLINC."style.ini")){
+    echo  "<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".DOKU_TPL."bug49642.php".((!empty($lang["direction"]) && $lang["direction"] === "rtl") ? "?langdir=rtl" : "")."\" />\n"; //var comes from DokuWiki core
+}
+
+//include default or userdefined favicon
+//
+//note: since 2011-04-22 "Rincewind RC1", there is a core function named
+//      "tpl_getFavicon()". But its functionality is not really fitting the
+//      behaviour of this template, therefore I don't use it here.
+if (file_exists(DOKU_TPLINC."user/favicon.ico")){
+    //user defined - you might find http://tools.dynamicdrive.com/favicon/
+    //useful to generate one
+    echo "\n<link rel=\"shortcut icon\" href=\"".DOKU_TPL."user/favicon.ico\" />\n";
+}elseif (file_exists(DOKU_TPLINC."user/favicon.png")){
+    //note: I do NOT recommend PNG for favicons (cause it is not supported by
+    //all browsers), but some users requested this feature.
+    echo "\n<link rel=\"shortcut icon\" href=\"".DOKU_TPL."user/favicon.png\" />\n";
+}else{
+    //default
+    echo "\n<link rel=\"shortcut icon\" href=\"".DOKU_TPL."static/3rd/dokuwiki/favicon.ico\" />\n";
+}
+
+//include default or userdefined Apple Touch Icon (see <http://j.mp/sx3NMT> for
+//details)
+if (file_exists(DOKU_TPLINC."user/apple-touch-icon.png")){
+    echo "<link rel=\"apple-touch-icon\" href=\"".DOKU_TPL."user/apple-touch-icon.png\" />\n";
+}else{
+    //default
+    echo "<link rel=\"apple-touch-icon\" href=\"".DOKU_TPL."static/3rd/dokuwiki/apple-touch-icon.png\" />\n";
+}
+
+//load userdefined js?
+if (tpl_getConf("monobook_loaduserjs")){
+    echo "<script type=\"text/javascript\" charset=\"utf-8\" src=\"".DOKU_TPL."user/user.js\"></script>\n";
+}
+
+//show printable version?
+if ($monobook_action === "print"){
+  //note: this is just a workaround for people searching for a print version.
+  //      don't forget to update the styles.ini, this is the really important
+  //      thing! BTW: good text about this: http://is.gd/5MyG5
+  echo  "<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".DOKU_TPL."static/css/print.css\" />\n"
+       ."<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".DOKU_TPL."static/3rd/wikipedia/commonPrint.css\" />\n"
+       ."<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".DOKU_TPL."user/print.css\" />\n";
+}
+
+//load language specific css hacks?
+if (file_exists(DOKU_TPLINC."lang/".$conf["lang"]."/style.css")){
+  $interim = trim(file_get_contents(DOKU_TPLINC."lang/".$conf["lang"]."/style.css"));
+  if (!empty($interim)){
+      echo "<style type=\"text/css\" media=\"all\">\n".hsc($interim)."\n</style>\n";
+  }
+}
+?>
+<!--[if lt IE 5.5000]><link rel="stylesheet" media="all" type="text/css" href="<?php echo DOKU_TPL; ?>static/3rd/monobook/IE50Fixes.css" /><![endif]-->
+<!--[if IE 5.5000]><link rel="stylesheet" media="all" type="text/css" href="<?php echo DOKU_TPL; ?>static/3rd/monobook/IE55Fixes.css" /><![endif]-->
+<!--[if IE 6]><link rel="stylesheet" media="all" type="text/css" href="<?php echo DOKU_TPL; ?>static/3rd/monobook/IE60Fixes.css" /><![endif]-->
+<!--[if IE 7]><link rel="stylesheet" media="all" type="text/css" href="<?php echo DOKU_TPL; ?>static/3rd/monobook/IE70Fixes.css" /><![endif]-->
+<!--[if lt IE 7]><script type="text/javascript" charset="utf-8" src="<?php echo DOKU_TPL; ?>static/3rd/wikipedia/IEFixes.js"></script><meta http-equiv="imagetoolbar" content="no" /><![endif]-->
+</head>
+<body class="<?php //different styles/backgrounds for different page types
+             switch (true){
+                 //special: tech
+                 case ($monobook_action === "detail"):
+                 case ($monobook_action === "cite"):
+                 case ($ACT === "media"): //var comes from DokuWiki
+                 case ($ACT === "search"): //var comes from DokuWiki
+                   echo "mediawiki ns-2 ltr";
+                   break;
+                 //special: other
+                 case ($ACT === "edit"): //var comes from DokuWiki
+                 case ($ACT === "draft"): //var comes from DokuWiki
+                 case ($ACT === "revisions"): //var comes from DokuWiki
+                 case ($monobook_context === "discuss"):
+                 case (preg_match("/^wiki$|^wiki:.*?$/i", getNS(getID()))):
+                   echo "mediawiki ns-1 ltr";
+                   break;
+                 //"normal" content
+                 case ($monobook_action === "print"):
+                 default:
+                   echo "mediawiki ns-0 ltr";
+                   break;
+             }
+             ?>">
+<div id="globalWrapper">
+
+  <div id="column-content">
+    <div id="content">
+      <a name="top" id="top"></a>
+      <a name="dokuwiki__top" id="dokuwiki__top"></a>
+      <div id="bodyContent">
+        <div class="dokuwiki">
+          <!-- start main content area -->
+          <?php
+          //show messages (if there are any)
+          html_msgarea();
+          //show site notice
+          if (tpl_getConf("monobook_sitenotice")){
+              //we have to show a custom sitenotice
+              if (empty($conf["useacl"]) ||
+                  auth_quickaclcheck(cleanID(tpl_getConf("monobook_sitenotice_location"))) >= AUTH_READ){ //current user got access?
+                  echo "\n          <div id=\"siteNotice\" class=\"noprint\">\n";
+                  //get the rendered content of the defined wiki article to use as
+                  //custom sitenotice.
+                  $interim = tpl_include_page(tpl_getConf("monobook_sitenotice_location"), false);
+                  if ($interim === "" ||
+                      $interim === false){
+                      //show creation/edit link if the defined page got no content
+                      echo "[&#160;";
+                      tpl_pagelink(tpl_getConf("monobook_sitenotice_location"), hsc($lang["monobook_fillplaceholder"]." (".tpl_getConf("monobook_sitenotice_location").")"));
+                      echo "&#160;]<br />";
+                  }else{
+                      //show the rendered page content
+                      echo $interim;
+                  }
+                  echo "\n          </div>\n";
+              }
+          }
+          //show breadcrumps if enabled and positioned on top
+          if ($conf["breadcrumbs"] == true &&
+              $ACT !== "media" && //var comes from DokuWiki
+              (empty($conf["useacl"]) || //are there any users?
+               $loginname !== "" || //user is logged in?
+               !tpl_getConf("monobook_closedwiki")) &&
+              tpl_getConf("monobook_breadcrumbs_position") === "top"){
+              echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
+              tpl_breadcrumbs();
+              echo "\n          </p></div>\n";
+          }
+          //show hierarchical breadcrumps if enabled and positioned on top
+          if ($conf["youarehere"] == true &&
+              $ACT !== "media" && //var comes from DokuWiki
+              (empty($conf["useacl"]) || //are there any users?
+               $loginname !== "" || //user is logged in?
+               !tpl_getConf("monobook_closedwiki")) &&
+              tpl_getConf("monobook_youarehere_position") === "top"){
+              echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
+              tpl_youarehere();
+              echo "\n          </p></div>\n";
+          }
+          ?>
+
+          <!-- start rendered wiki content -->
+          <?php
+          //flush the buffer for faster page rendering, heaviest content follows
+          if (function_exists("tpl_flush")) {
+              tpl_flush(); //exists since 2010-11-07 "Anteater"...
+          } else {
+              flush(); //...but I won't loose compatibility to 2009-12-25 "Lemming" right now.
+          }
+          //decide which type of pagecontent we have to show
+          switch ($monobook_action){
+              //"image details"
+              case "detail":
+                  include DOKU_TPLINC."inc_detail.php";
+                  break;
+              //"cite this article"
+              case "cite":
+                  include DOKU_TPLINC."inc_cite.php";
+                  break;
+              //show "normal" content
+              default:
+                  tpl_content(((tpl_getConf("monobook_toc_position") === "article") ? true : false));
+                  break;
+          }
+          ?>
+          <!-- end rendered wiki content -->
+
+          <br />
+          <?php
+          //show breadcrumps if enabled and positioned on bottom
+          if ($conf["breadcrumbs"] == true &&
+              $ACT !== "media" && //var comes from DokuWiki
+              (empty($conf["useacl"]) || //are there any users?
+               $loginname !== "" || //user is logged in?
+               !tpl_getConf("monobook_closedwiki")) &&
+              tpl_getConf("monobook_breadcrumbs_position") === "bottom"){
+              echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
+              tpl_breadcrumbs();
+              echo "\n          </p></div>\n";
+          }
+          //show hierarchical breadcrumps if enabled and positioned on bottom
+          if ($conf["youarehere"] == true &&
+              $ACT !== "media" && //var comes from DokuWiki
+              (empty($conf["useacl"]) || //are there any users?
+               $loginname !== "" || //user is logged in?
+               !tpl_getConf("monobook_closedwiki")) &&
+              tpl_getConf("monobook_youarehere_position") === "bottom"){
+              echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
+              tpl_youarehere();
+              echo "\n          </p></div>\n";
+          }
+          ?>
+
+          <!-- end main content area -->
+          <div class="visualClear"></div>
+        </div>
+      </div>
+    </div>
+  </div>
+
+  <div id="column-one" class="noprint">
+    <div class="portlet" id="p-logo">
+      <?php
+      //include default or userdefined logo
+      echo "<a href=\"".wl()."\" ";
+      if (file_exists(DOKU_TPLINC."user/logo.png")){
+          //user defined PNG
+          echo "style=\"background-image:url(".DOKU_TPL."user/logo.png);\"";
+      }elseif (file_exists(DOKU_TPLINC."user/logo.gif")){
+          //user defined GIF
+          echo "style=\"background-image:url(".DOKU_TPL."user/logo.gif);\"";
+      }elseif (file_exists(DOKU_TPLINC."user/logo.jpg")){
+          //user defined JPG
+          echo "style=\"background-image:url(".DOKU_TPL."user/logo.jpg);\"";
+      }else{
+          //default
+          echo "style=\"background-image:url(".DOKU_TPL."static/3rd/dokuwiki/logo.png);\"";
+      }
+      echo " accesskey=\"h\" title=\"[ALT+H]\"></a>\n";
+      ?>
+    </div>
+    <?php
+    //show tabs, see monobook/user/tabs.php to configure them
+    if (!empty($_monobook_tabs) &&
+         is_array($_monobook_tabs)){
+        _monobook_renderTabs($_monobook_tabs);
+    }
+
+    //show personal tools
+    if (!empty($conf["useacl"])){ //...makes only sense if there are users
+        echo  "\n"
+             ."    <div id=\"p-personal\" class=\"portlet\">\n"
+             ."      <div class=\"pBody\">\n"
+             ."        <ul>\n";
+        //login?
+        if ($loginname === ""){
+            echo  "          <li id=\"pt-login\"><a href=\"".wl(cleanID(getId()), array("do" => "login"))."\" rel=\"nofollow\">".hsc($lang["btn_login"])."</a></li>\n"; //language comes from DokuWiki core
+        }else{
+            //username and userpage
+            echo "          <li id=\"pt-userpage\">".(tpl_getConf("monobook_userpage")
+                                                      ? html_wikilink(tpl_getConf("monobook_userpage_ns").$loginname, hsc($loginname))
+                                                      : hsc($loginname))."</li>";
+            //admin
+            if (!empty($INFO["isadmin"]) ||
+                !empty($INFO["ismanager"])){
+                echo  "          <li id=\"pt-admin\"><a href=\"".wl(cleanID(getId()), array("do" => "admin"))."\" rel=\"nofollow\">".hsc($lang["btn_admin"])."</a></li>\n"; //language comes from DokuWiki core
+            }
+            //personal discussion
+            if (tpl_getConf("monobook_discuss") &&
+                tpl_getConf("monobook_userpage")){
+                echo "          <li id=\"pt-mytalk\">".html_wikilink(tpl_getConf("monobook_discuss_ns").ltrim(tpl_getConf("monobook_userpage_ns"), ":").$loginname, hsc($lang["monobook_tab_mytalk"]))."</li>";
+            }
+            //profile
+            echo  "          <li id=\"pt-preferences\"><a href=\"".wl(cleanID(getId()), array("do" => "profile"))."\" rel=\"nofollow\">".hsc($lang["btn_profile"])."</a></li>\n"; //language comes from DokuWiki core
+            //logout
+            echo  "          <li id=\"pt-logout\"><a href=\"".wl(cleanID(getId()), array("do" => "logout"))."\" rel=\"nofollow\">".hsc($lang["btn_logout"])."</a></li>\n"; //language comes from DokuWiki core
+        }
+        echo  "        </ul>\n"
+             ."      </div>\n"
+             ."    </div>\n";
+    }
+
+    //show boxes, see monobook/user/boxes.php to configure them
+    if (!empty($_monobook_boxes) &&
+        is_array($_monobook_boxes)){
+        _monobook_renderBoxes($_monobook_boxes);
+    }
+    ?>
+  </div> <!-- end of the left (by default at least) column -->
+
+  <div class="visualClear"></div>
+
+  <div id="footer">
+    <div id="footer-buttons" class="noprint">
+    <?php
+    //show buttons, see monobook/user/buttons.php to configure them
+    if (!empty($_monobook_btns) &&
+        is_array($_monobook_btns)){
+        _monobook_renderButtons($_monobook_btns);
+    }
+    ?>
+    </div>
+    <ul id="f-list">
+      <li id="lastmod">
+        <?php tpl_pageinfo()?><br />
+      </li>
+      <?php
+      //copyright notice
+      if (tpl_getConf("monobook_copyright")){
+          //show dokuwiki's default notice?
+          if (tpl_getConf("monobook_copyright_default")){
+              echo "<li id=\"copyright\">\n        <div class=\"dokuwiki\">";
+              tpl_license(false);
+              echo "</div>\n      </li>\n";
+          //show custom notice.
+          }else{
+              if (empty($conf["useacl"]) ||
+                  auth_quickaclcheck(cleanID(tpl_getConf("monobook_copyright_location"))) >= AUTH_READ){ //current user got access?
+                  echo "<li id=\"copyright\">\n        ";
+                  //get the rendered content of the defined wiki article to use as custom notice
+                  $interim = tpl_include_page(tpl_getConf("monobook_copyright_location"), false);
+                  if ($interim === "" ||
+                      $interim === false){
+                      //show creation/edit link if the defined page got no content
+                      echo "[&#160;";
+                      tpl_pagelink(tpl_getConf("monobook_copyright_location"), hsc($lang["monobook_fillplaceholder"]." (".tpl_getConf("monobook_copyright_location").")"));
+                      echo "&#160;]<br />";
+                  }else{
+                      //show the rendered page content
+                      echo  "<div class=\"dokuwiki\">\n" //dokuwiki CSS class needed cause we are showing rendered page content
+                           .$interim."\n        "
+                           ."</div>";
+                  }
+                  echo "\n      </li>\n";
+              }
+          }
+      }
+      ?>
+      <li id="usermod" class="noprint">
+        <?php tpl_userinfo(); ?><br />
+      </li>
+    </ul>
+  </div>
+
+</div>  <!-- end of global wrap -->
+<a href="<?php echo wl("", array("do" => "recent"));?>" accesskey="r" style="visibility:hidden;" rel="nofollow">&#160;</a>
+<?php
+//provide DokuWiki housekeeping, required in all templates
+tpl_indexerWebBug();
+
+//include web analytics software
+if (file_exists(DOKU_TPLINC."/user/tracker.php")){
+    include DOKU_TPLINC."/user/tracker.php";
+}
+?>
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/main.php~
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/main.php~	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/main.php~	(revision 30132)
@@ -0,0 +1,827 @@
+<?php
+
+/**
+ * Main file of the "monobook" template for DokuWiki
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:templates
+ * @link http://www.dokuwiki.org/devel:coding_style
+ * @link http://www.dokuwiki.org/devel:environment
+ * @link http://www.dokuwiki.org/devel:action_modes
+ */
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+// Hardcode these paths, as this template will be loaded via SkinLoader
+if(!defined('GSMONO_TPL'))
+{
+    define('GSMONO_TPL', DOKU_BASE.'lib/tpl/greenstone-monobook/');
+}
+if(!defined('GSMONO_TPLINC'))
+{
+    define('GSMONO_TPLINC', DOKU_INC.'lib/tpl/greenstone-monobook/');
+}
+
+/**
+ * Stores the template wide action
+ *
+ * Different DokuWiki actions requiring some template logic. Therefore the
+ * template has to know, what we are doing right now - and that is what this
+ * var is for.
+ *
+ * Please have a look at the "detail.php" file in the same folder, it is also
+ * influencing the var's value.
+ *
+ * @var string
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ */
+$monobook_action = "article";
+//note: I used $_REQUEST before (cause DokuWiki controls and fills it. Normally,
+//      using $_REQUEST is a possible security threat. For details, see
+//      <http://www.suspekt.org/2008/10/01/php-53-and-delayed-cross-site-request-forgerieshijacking/>
+//      and <http://forum.dokuwiki.org/post/16524>), but it did not work as
+//      expected by me (maybe it is a reference and setting $monobook_action
+//      also changed the contents of $_REQUEST?!). That is why I switched back,
+//      checking $_GET and $_POST like I did it before.
+if (!empty($_GET["mddo"])){
+    $monobook_action = (string)$_GET["mddo"];
+}elseif (!empty($_POST["mddo"])){
+    $monobook_action = (string)$_POST["mddo"];
+}
+if (!empty($monobook_action) &&
+    $monobook_action !== "article" &&
+    $monobook_action !== "print" &&
+    $monobook_action !== "detail" &&
+    $monobook_action !== "cite"){
+    //ignore unknown values
+    $monobook_action = "article";
+}
+
+
+/**
+ * Stores the template wide context
+ *
+ * This template offers discussion pages via common articles, which should be
+ * marked as "special". DokuWiki does not know any "special" articles, therefore
+ * we have to take care about detecting if the current page is a discussion
+ * page or not.
+ *
+ * @var string
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ */
+$monobook_context = "article";
+if (preg_match("/^".tpl_getConf("monobook_discuss_ns")."?$|^".tpl_getConf("monobook_discuss_ns").".*?$/i", ":".getNS(getID()))){
+    $monobook_context = "discuss";
+}
+
+
+/**
+ * Stores the name the current client used to login
+ *
+ * @var string
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ */
+$loginname = "";
+if (!empty($conf["useacl"])){
+    if (isset($_SERVER["REMOTE_USER"]) && //no empty() but isset(): "0" may be a valid username...
+        $_SERVER["REMOTE_USER"] !== ""){
+        $loginname = $_SERVER["REMOTE_USER"]; //$INFO["client"] would not work here (-> e.g. if
+                                              //current IP differs from the one used to login)
+    }
+}
+
+
+//get needed language array
+include GSMONO_TPLINC."lang/en/lang.php";
+//overwrite English language values with available translations
+if (!empty($conf["lang"]) &&
+    $conf["lang"] !== "en" &&
+    file_exists(GSMONO_TPLINC."/lang/".$conf["lang"]."/lang.php")){
+    //get language file (partially translated language files are no problem
+    //cause non translated stuff is still existing as English array value)
+    include GSMONO_TPLINC."/lang/".$conf["lang"]."/lang.php";
+}
+
+
+//detect revision
+$rev = (int)$INFO["rev"]; //$INFO comes from the DokuWiki core
+if ($rev < 1){
+    $rev = (int)$INFO["lastmod"];
+}
+
+
+//get tab config
+include GSMONO_TPLINC."/conf/tabs.php";  //default
+if (file_exists(GSMONO_TPLINC."/user/tabs.php")){
+    include GSMONO_TPLINC."/user/tabs.php"; //user defined
+}
+
+
+//get boxes config
+include GSMONO_TPLINC."/conf/boxes.php"; //default
+if (file_exists(GSMONO_TPLINC."/user/boxes.php")){
+    include GSMONO_TPLINC."/user/boxes.php"; //user defined
+}
+
+
+//get button config
+include GSMONO_TPLINC."/conf/buttons.php"; //default
+if (file_exists(GSMONO_TPLINC."/user/buttons.php")){
+    include GSMONO_TPLINC."/user/buttons.php"; //user defined
+}
+
+
+/**
+ * Helper to render the tabs (like a dynamic XHTML snippet)
+ *
+ *
+ * NOTE: This function is heavily inspired by "writeMBPortlet(), context.php" of
+ *       the "Monobook for Dokuwiki" template by Terence J. Grant.
+ *
+ * @param array The tab data to render within the snippet. Each element
+ *        is represented through a subarray:
+ *        $array = array("tab1" => array("text"     => "hello world!",
+ *                                       "href"     => "http://www.example.com"
+ *                                       "nofollow" => true),
+ *                       "tab2" => array("text"  => "I did it again",
+ *                                       "href"  => DOKU_BASE."doku.php?id=foobar",
+ *                                       "class" => "foobar-css"),
+ *                       "tab3" => array("text"  => "I did it again and again",
+ *                                       "href"  => wl("start", false, false, "&"),
+ *                                       "class" => "foobar-css"),
+ *                       "tab4" => array("text"      => "Home",
+ *                                       "wiki"      => ":start"
+ *                                       "accesskey" => "H"));
+ *        Available keys within the subarrays:
+ *        - "text" (mandatory)
+ *          The text/label of the element.
+ *        - "href" (optional)
+ *          URL the element should point to (as link). Please submit raw,
+ *          unencoded URLs, the encoding will be done by this function for
+ *          security reasons. If the URL is not relative
+ *          (= starts with http(s)://), the URL will be treated as external
+ *          (=a special style will be used if "class" is not set).
+ *        - "wiki" (optional)
+ *          ID of a WikiPage to link (like ":start" or ":wiki:foobar").
+ *        - "class" (optional)
+ *          Name of an additional CSS class to use for the element content.
+ *          Works only in combination with "text" or "href", NOT with "wiki"
+ *          (will be ignored in this case).
+ *        - "nofollow" (optional)
+ *          If set to TRUE, rel="nofollow" will be added to the link if "href"
+ *          is set (otherwise this flag will do nothing).
+ *        - "accesskey" (optional)
+ *          accesskey="<value>" will be added to the link if "href" is set
+ *          (otherwise this option will do nothing).
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @see _monobook_renderButtons()
+ * @see _monobook_renderBoxes()
+ * @link http://www.wikipedia.org/wiki/Nofollow
+ * @link http://de.selfhtml.org/html/verweise/tastatur.htm#kuerzel
+ * @link http://www.dokuwiki.org/devel:environment
+ * @link http://www.dokuwiki.org/devel:coding_style
+ */
+function _monobook_renderTabs($arr)
+{
+    //is there something useful?
+    if (empty($arr) ||
+        !is_array($arr)){
+        return false; //nope, break operation
+    }
+
+    //array to store the created tabs into
+    $elements = array();
+
+    //handle the tab data
+    foreach($arr as $li_id => $element){
+        //basic check
+        if (empty($element) ||
+            !is_array($element) ||
+            !isset($element["text"])){
+            continue; //ignore invalid stuff and go on
+        }
+        $li_created = true; //flag to control if we created any list element
+        $interim = "";
+        //do we have an external link?
+        if (!empty($element["href"])){
+            //add URL
+            $interim = "<a href=\"".hsc($element["href"])."\""; //@TODO: real URL encoding
+            //add rel="nofollow" attribute to the link?
+            if (!empty($element["nofollow"])){
+                $interim .= " rel=\"nofollow\"";
+            }
+            //add special css class?
+            if (!empty($element["class"])){
+                $interim .= " class=\"".hsc($element["class"])."\"";
+            } elseif (substr($element["href"], 0, 4) === "http" ||
+                      substr($element["href"], 0, 3) === "ftp"){
+                $interim .= " class=\"urlextern\"";
+            }
+            //add access key?
+            if (!empty($element["accesskey"])){
+                $interim .= " accesskey=\"".hsc($element["accesskey"])."\" title=\"[ALT+".hsc(strtoupper($element["accesskey"]))."]\"";
+            }
+            $interim .= ">".hsc($element["text"])."</a>";
+        //internal wiki link
+        }else if (!empty($element["wiki"])){
+            //add special css class?
+            if (!empty($element["class"])){
+                $interim = "<span class=\"".hsc($element["class"])."\">".html_wikilink($element["wiki"], hsc($element["text"]))."</span>";
+            }else{
+                $interim = html_wikilink($element["wiki"], hsc($element["text"]));
+            }
+        /* Following works, but I think it is too heavy... //use a wiki page as content
+        } elseif ($element["wiki_include"]){
+
+            //we have to show a wiki page. get the rendered content of the
+            //defined wiki article to use as content.
+            $interim = tpl_include_page($element["wiki_include"], false);
+            if ($interim === "" ||
+                $interim === false){
+                //show creation/edit link if the defined page got no content
+                $interim = "[&#160;".html_wikilink($element["wiki_include"], hsc($lang["monobook_fillplaceholder"]." (".hsc($element["wiki_include"]).")"))."&#160;]<br />";
+            }*/
+        //text only
+        }else{
+            $interim = "<span";
+            //add special css class?
+            if (!empty($element["class"])){
+                $interim .= " class=\"".hsc($element["class"])."\"";
+            }else{
+                $interim .= " style=\"color:#ccc;\"";
+            }
+            $interim .= ">&#160;".hsc($element["text"])."&#160;</span>";
+        }
+        //store it
+        $elements[] = "        <li id=\"".hsc($li_id)."\">".$interim."</li>\n";
+    }
+
+    //show everything created
+    if (!empty($elements)){
+        echo  "\n"
+             ."    <div id=\"p-cactions\" class=\"portlet\">\n" //don't touch the id, it is needed as css selector
+             ."      <ul>\n";
+        foreach ($elements as $element){
+            echo $element;
+        }
+        echo  "      </ul>\n"
+             ."    </div>\n";
+    }
+    return true;
+}
+
+
+/**
+ * Helper to render the boxes (like a dynamic XHTML snippet)
+ *
+ *
+ * NOTE: This function is heavily inspired by "writeMBPortlet(), context.php" of
+ *       the "Monobook for Dokuwiki" template by Terence J. Grant.
+ *
+ * @param array The box data to render within the snippet. Each box is
+ *        represented through a subarray:
+ *        $array = array("box-id1" => array("headline" => "hello world!",
+ *                                          "xhtml"    => "I am <i>here</i>."));
+ *        Available keys within the subarrays:
+ *        - "xhtml" (mandatory)
+ *          The content of the Box you want to show as XHTML. Attention: YOU
+ *          HAVE TO TAKE CARE ABOUT FILTER EVENTUALLY USED INPUT/SECURITY. Be
+ *          aware of XSS and stuff.
+ *        - "headline" (optional)
+ *          Headline to show above the box. Leave empty/do not set for none.
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @see _monobook_renderButtons()
+ * @see _monobook_renderTabs()
+ * @link http://www.wikipedia.org/wiki/Nofollow
+ * @link http://www.wikipedia.org/wiki/Cross-site_scripting
+ * @link http://www.dokuwiki.org/devel:coding_style
+ */
+function _monobook_renderBoxes($arr)
+{
+    //is there something useful?
+    if (empty($arr) ||
+        !is_array($arr)){
+        return false; //nope, break operation
+    }
+
+    //array to store the created boxes into
+    $boxes          = array();
+    $search_handled = false;
+
+    //handle the box data
+    foreach($arr as $div_id => $contents){
+        //basic check
+        if (empty($contents) ||
+            !is_array($contents) ||
+            !isset($contents["xhtml"])){
+            continue; //ignore invalid stuff and go on
+        }
+        $interim  = "    <div class=\"portlet\" id=\"".hsc($div_id)."\">\n";
+        if (isset($contents["headline"])
+            && $contents["headline"] !== ""){
+            //hack for search box
+            if ($search_handled === true ||
+                $div_id !== "p-search") {
+                $interim .= "      <h5>".hsc($contents["headline"])."</h5>\n";
+            } else {
+                $interim .= "      <h5><label for=\"qsearch__in\">".hsc($contents["headline"])."</label></h5>\n";
+            }
+        }
+        $interim .= "      <div class=\"pBody\">\n"
+                   ."        <div class=\"dokuwiki\">\n" //dokuwiki CSS class needed cause we might have to show rendered page content
+                   .$contents["xhtml"]."\n"
+                   ."        </div>\n"
+                   ."      </div>\n"
+                   ."    </div>\n";
+        //hack for search box
+        if ($search_handled === false &&
+            $div_id === "p-search") {
+            $interim .= "    <div id=\"qsearch__out\" class=\"ajax_qsearch JSpopup\"></div>\n";
+            //set flag
+            $search_handled = true;
+        }
+        //store it
+        $boxes[] = $interim;
+    }
+    //show everything created
+    if (!empty($boxes)){
+        echo  "\n";
+        foreach ($boxes as $box){
+            echo $box;
+        }
+        echo  "\n";
+    }
+
+    return true;
+}
+
+
+/**
+ * Helper to render the footer buttons (like a dynamic XHTML snippet)
+ *
+ * @param array The button data to render within the snippet. Each element
+ *        is represented through a subarray:
+ *        $array = array("btn1" => array("img"      => GSMONO_TPL."static/img/button-monobook.png",
+ *                                       "href"     => "http://andreas-haerter.com/projects/dokuwiki-template-monobook",
+ *                                       "width"    => 80,
+ *                                       "height"   => 15,
+ *                                       "title"    => "monobook for DokuWiki",
+ *                                       "nofollow" => false),
+ *                       "btn2" => array("img"   => GSMONO_TPL."user/mybutton1.png",
+ *                                       "href"  => wl("start", false, false, "&")),
+ *                       "btn3" => array("img"   => GSMONO_TPL."user/mybutton2.png",
+ *                                       "href"  => "http://www.example.com");
+ *        Available keys within the subarrays:
+ *        - "img" (mandatory)
+ *          The relative or full path of an image/button to show. Users may
+ *          place own images within the /user/ dir of this template.
+ *        - "href" (mandatory)
+ *          URL the element should point to (as link). Please submit raw,
+ *          unencoded URLs, the encoding will be done by this function for
+ *          security reasons.
+ *        - "width" (optional)
+ *          width="<value>" will be added to the image tag if both "width" and
+ *          "height" are set (otherwise, this will be ignored).
+ *        - "height" (optional)
+ *          height="<value>" will be added to the image tag if both "height" and
+ *          "width" are set (otherwise, this will be ignored).
+ *        - "nofollow" (optional)
+ *          If set to TRUE, rel="nofollow" will be added to the link.
+ *        - "title" (optional)
+ *          title="<value>"  will be added to the link and image if "title"
+ *          is set + alt="<value>".
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @see _monobook_renderButtons()
+ * @see _monobook_renderBoxes()
+ * @link http://www.wikipedia.org/wiki/Nofollow
+ * @link http://www.dokuwiki.org/devel:coding_style
+ */
+function _monobook_renderButtons($arr)
+{
+    //array to store the created buttons into
+    $elements = array();
+
+    //handle the button data
+    foreach($arr as $li_id => $element){
+        //basic check
+        if (empty($element) ||
+            !is_array($element) ||
+            !isset($element["img"]) ||
+            !isset($element["href"])){
+            continue; //ignore invalid stuff and go on
+        }
+        $interim = "";
+
+        //add URL
+        $interim = "<a href=\"".hsc($element["href"])."\""; //@TODO: real URL encoding
+        //add rel="nofollow" attribute to the link?
+        if (!empty($element["nofollow"])){
+            $interim .= " rel=\"nofollow\"";
+        }
+        //add title attribute to the link?
+        if (!empty($element["title"])){
+            $interim .= " title=\"".hsc($element["title"])."\"";
+        }
+        $interim .= " target=\"_blank\"><img src=\"".hsc($element["img"])."\"";
+        //add width and height attribute to the image?
+        if (!empty($element["width"]) &&
+            !empty($element["height"])){
+            $interim .= " width=\"".(int)$element["width"]."\" height=\"".(int)$element["height"]."\"";
+        }
+        //add title and alt attribute to the image?
+        if (!empty($element["title"])){
+            $interim .= " title=\"".hsc($element["title"])."\" alt=\"".hsc($element["title"])."\"";
+        } else {
+            $interim .= " alt=\"\""; //alt is a mandatory attribute for images
+        }
+        $interim .= " border=\"0\" /></a>";
+
+        //store it
+        $elements[] = "      ".$interim."\n";
+    }
+
+    //show everything created
+    if (!empty($elements)){
+        echo  "\n";
+        foreach ($elements as $element){
+            echo $element;
+        }
+    }
+    return true;
+}
+
+//workaround for the "jumping textarea" IE bug. CSS only fix not possible cause
+//some DokuWiki JavaScript is triggering this bug, too. See the following for
+//info:
+//- <http://blog.andreas-haerter.com/2010/05/28/fix-msie-8-auto-scroll-textarea-css-width-percentage-bug>
+//- <http://msdn.microsoft.com/library/cc817574.aspx>
+if ($ACT === "edit" &&
+    !headers_sent()){
+    header("X-UA-Compatible: IE=EmulateIE7");
+}
+
+?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo hsc($conf["lang"]); ?>" lang="<?php echo hsc($conf["lang"]); ?>" dir="<?php echo hsc($lang["direction"]); ?>">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title><?php tpl_pagetitle(); echo " - ".hsc($conf["title"]); ?></title>
+<?php
+//show meta-tags
+tpl_metaheaders();
+echo "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />";
+
+//manually load needed CSS? this is a workaround for PHP Bug #49642. In some
+//version/os combinations PHP is not able to parse INI-file entries if there
+//are slashes "/" used for the keynames (see bugreport for more information:
+//<http://bugs.php.net/bug.php?id=49692>). to trigger this workaround, simply
+//delete/rename monobook's style.ini.
+if (!file_exists(GSMONO_TPLINC."style.ini")){
+    echo  "<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".GSMONO_TPL."bug49642.php".((!empty($lang["direction"]) && $lang["direction"] === "rtl") ? "?langdir=rtl" : "")."\" />\n"; //var comes from DokuWiki core
+}
+
+//include default or userdefined favicon
+//
+//note: since 2011-04-22 "Rincewind RC1", there is a core function named
+//      "tpl_getFavicon()". But its functionality is not really fitting the
+//      behaviour of this template, therefore I don't use it here.
+if (file_exists(GSMONO_TPLINC."user/favicon.ico")){
+    //user defined - you might find http://tools.dynamicdrive.com/favicon/
+    //useful to generate one
+    echo "\n<link rel=\"shortcut icon\" href=\"".GSMONO_TPL."user/favicon.ico\" />\n";
+}elseif (file_exists(GSMONO_TPLINC."user/favicon.png")){
+    //note: I do NOT recommend PNG for favicons (cause it is not supported by
+    //all browsers), but some users requested this feature.
+    echo "\n<link rel=\"shortcut icon\" href=\"".GSMONO_TPL."user/favicon.png\" />\n";
+}else{
+    //default
+    echo "\n<link rel=\"shortcut icon\" href=\"".GSMONO_TPL."static/3rd/dokuwiki/favicon.ico\" />\n";
+}
+
+//include default or userdefined Apple Touch Icon (see <http://j.mp/sx3NMT> for
+//details)
+if (file_exists(GSMONO_TPLINC."user/apple-touch-icon.png")){
+    echo "<link rel=\"apple-touch-icon\" href=\"".GSMONO_TPL."user/apple-touch-icon.png\" />\n";
+}else{
+    //default
+    echo "<link rel=\"apple-touch-icon\" href=\"".GSMONO_TPL."static/3rd/dokuwiki/apple-touch-icon.png\" />\n";
+}
+
+//load userdefined js?
+if (tpl_getConf("monobook_loaduserjs")){
+    echo "<script type=\"text/javascript\" charset=\"utf-8\" src=\"".GSMONO_TPL."user/user.js\"></script>\n";
+}
+
+//show printable version?
+if ($monobook_action === "print"){
+  //note: this is just a workaround for people searching for a print version.
+  //      don't forget to update the styles.ini, this is the really important
+  //      thing! BTW: good text about this: http://is.gd/5MyG5
+  echo  "<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".GSMONO_TPL."static/css/print.css\" />\n"
+       ."<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".GSMONO_TPL."static/3rd/wikipedia/commonPrint.css\" />\n"
+       ."<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".GSMONO_TPL."user/print.css\" />\n";
+}
+
+//load language specific css hacks?
+if (file_exists(GSMONO_TPLINC."lang/".$conf["lang"]."/style.css")){
+  $interim = trim(file_get_contents(GSMONO_TPLINC."lang/".$conf["lang"]."/style.css"));
+  if (!empty($interim)){
+      echo "<style type=\"text/css\" media=\"all\">\n".hsc($interim)."\n</style>\n";
+  }
+}
+?>
+<!--[if lt IE 5.5000]><link rel="stylesheet" media="all" type="text/css" href="<?php echo GSMONO_TPL; ?>static/3rd/monobook/IE50Fixes.css" /><![endif]-->
+<!--[if IE 5.5000]><link rel="stylesheet" media="all" type="text/css" href="<?php echo GSMONO_TPL; ?>static/3rd/monobook/IE55Fixes.css" /><![endif]-->
+<!--[if IE 6]><link rel="stylesheet" media="all" type="text/css" href="<?php echo GSMONO_TPL; ?>static/3rd/monobook/IE60Fixes.css" /><![endif]-->
+<!--[if IE 7]><link rel="stylesheet" media="all" type="text/css" href="<?php echo GSMONO_TPL; ?>static/3rd/monobook/IE70Fixes.css" /><![endif]-->
+<!--[if lt IE 7]><script type="text/javascript" charset="utf-8" src="<?php echo GSMONO_TPL; ?>static/3rd/wikipedia/IEFixes.js"></script><meta http-equiv="imagetoolbar" content="no" /><![endif]-->
+</head>
+<body class="<?php //different styles/backgrounds for different page types
+             switch (true){
+                 //special: tech
+                 case ($monobook_action === "detail"):
+                 case ($monobook_action === "cite"):
+                 case ($ACT === "media"): //var comes from DokuWiki
+                 case ($ACT === "search"): //var comes from DokuWiki
+                   echo "mediawiki ns-2 ltr";
+                   break;
+                 //special: other
+                 case ($ACT === "edit"): //var comes from DokuWiki
+                 case ($ACT === "draft"): //var comes from DokuWiki
+                 case ($ACT === "revisions"): //var comes from DokuWiki
+                 case ($monobook_context === "discuss"):
+                 case (preg_match("/^wiki$|^wiki:.*?$/i", getNS(getID()))):
+                   echo "mediawiki ns-1 ltr";
+                   break;
+                 //"normal" content
+                 case ($monobook_action === "print"):
+                 default:
+                   echo "mediawiki ns-0 ltr";
+                   break;
+             }
+             ?>">
+<div id="globalWrapper">
+
+  <div id="column-content">
+    <div id="content">
+      <a name="top" id="top"></a>
+      <a name="dokuwiki__top" id="dokuwiki__top"></a>
+      <div id="bodyContent">
+        <div class="dokuwiki">
+          <!-- start main content area -->
+          <?php
+          //show messages (if there are any)
+          html_msgarea();
+          //show site notice
+          if (tpl_getConf("monobook_sitenotice")){
+              //we have to show a custom sitenotice
+              if (empty($conf["useacl"]) ||
+                  auth_quickaclcheck(cleanID(tpl_getConf("monobook_sitenotice_location"))) >= AUTH_READ){ //current user got access?
+                  echo "\n          <div id=\"siteNotice\" class=\"noprint\">\n";
+                  //get the rendered content of the defined wiki article to use as
+                  //custom sitenotice.
+                  $interim = tpl_include_page(tpl_getConf("monobook_sitenotice_location"), false);
+                  if ($interim === "" ||
+                      $interim === false){
+                      //show creation/edit link if the defined page got no content
+                      echo "[&#160;";
+                      tpl_pagelink(tpl_getConf("monobook_sitenotice_location"), hsc($lang["monobook_fillplaceholder"]." (".tpl_getConf("monobook_sitenotice_location").")"));
+                      echo "&#160;]<br />";
+                  }else{
+                      //show the rendered page content
+                      echo $interim;
+                  }
+                  echo "\n          </div>\n";
+              }
+          }
+          //show breadcrumps if enabled and positioned on top
+          if ($conf["breadcrumbs"] == true &&
+              $ACT !== "media" && //var comes from DokuWiki
+              (empty($conf["useacl"]) || //are there any users?
+               $loginname !== "" || //user is logged in?
+               !tpl_getConf("monobook_closedwiki")) &&
+              tpl_getConf("monobook_breadcrumbs_position") === "top"){
+              echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
+              tpl_breadcrumbs();
+              echo "\n          </p></div>\n";
+          }
+          //show hierarchical breadcrumps if enabled and positioned on top
+          if ($conf["youarehere"] == true &&
+              $ACT !== "media" && //var comes from DokuWiki
+              (empty($conf["useacl"]) || //are there any users?
+               $loginname !== "" || //user is logged in?
+               !tpl_getConf("monobook_closedwiki"))){// &&
+                //              tpl_getConf("monobook_youarehere_position") === "top"){
+              echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
+              tpl_youarehere();
+              echo "\n          </p></div>\n";
+          }
+          ?>
+
+          <!-- start rendered wiki content -->
+          <?php
+          //flush the buffer for faster page rendering, heaviest content follows
+          if (function_exists("tpl_flush")) {
+              tpl_flush(); //exists since 2010-11-07 "Anteater"...
+          } else {
+              flush(); //...but I won't loose compatibility to 2009-12-25 "Lemming" right now.
+          }
+          //decide which type of pagecontent we have to show
+          switch ($monobook_action){
+              //"image details"
+              case "detail":
+                  include GSMONO_TPLINC."inc_detail.php";
+                  break;
+              //"cite this article"
+              case "cite":
+                  include GSMONO_TPLINC."inc_cite.php";
+                  break;
+              //show "normal" content
+              default:
+                  tpl_content(((tpl_getConf("monobook_toc_position") === "article") ? true : false));
+                  break;
+          }
+          ?>
+          <!-- end rendered wiki content -->
+
+          <br />
+          <?php
+          //show breadcrumps if enabled and positioned on bottom
+          if ($conf["breadcrumbs"] == true &&
+              $ACT !== "media" && //var comes from DokuWiki
+              (empty($conf["useacl"]) || //are there any users?
+               $loginname !== "" || //user is logged in?
+               !tpl_getConf("monobook_closedwiki")) &&
+              tpl_getConf("monobook_breadcrumbs_position") === "bottom"){
+              echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
+              tpl_breadcrumbs();
+              echo "\n          </p></div>\n";
+          }
+          //show hierarchical breadcrumps if enabled and positioned on bottom
+          if ($conf["youarehere"] == true &&
+              $ACT !== "media" && //var comes from DokuWiki
+              (empty($conf["useacl"]) || //are there any users?
+               $loginname !== "" || //user is logged in?
+               !tpl_getConf("monobook_closedwiki"))){ // &&
+                //              tpl_getConf("monobook_youarehere_position") === "bottom"){
+              echo "\n          <div class=\"catlinks noprint\"><p>\n            ";
+              tpl_youarehere();
+              echo "\n          </p></div>\n";
+          }
+          ?>
+
+          <!-- end main content area -->
+          <div class="visualClear"></div>
+        </div>
+      </div>
+    </div>
+  </div>
+
+  <div id="column-one" class="noprint">
+    <div class="portlet" id="p-logo">
+      <?php
+      //include default or userdefined logo
+      echo "<a href=\"".wl()."\" ";
+      if (file_exists(GSMONO_TPLINC."user/logo.png")){
+          //user defined PNG
+          echo "style=\"background-image:url(".GSMONO_TPL."user/logo.png);\"";
+      }elseif (file_exists(GSMONO_TPLINC."user/logo.gif")){
+          //user defined GIF
+          echo "style=\"background-image:url(".GSMONO_TPL."user/logo.gif);\"";
+      }elseif (file_exists(GSMONO_TPLINC."user/logo.jpg")){
+          //user defined JPG
+          echo "style=\"background-image:url(".GSMONO_TPL."user/logo.jpg);\"";
+      }else{
+          //default
+          echo "style=\"background-image:url(".GSMONO_TPL."static/3rd/dokuwiki/logo.png);\"";
+      }
+      echo " accesskey=\"h\" title=\"Back to start [ALT+H]\"></a>\n";
+      ?>
+    </div>
+    <?php
+    //show tabs, see monobook/user/tabs.php to configure them
+    if (!empty($_monobook_tabs) &&
+         is_array($_monobook_tabs)){
+        _monobook_renderTabs($_monobook_tabs);
+    }
+
+    //show personal tools
+    if (!empty($conf["useacl"])){ //...makes only sense if there are users
+        echo  "\n"
+             ."    <div id=\"p-personal\" class=\"portlet\">\n"
+             ."      <div class=\"pBody\">\n"
+             ."        <ul>\n";
+        //login?
+        if ($loginname === ""){
+            echo  "          <li id=\"pt-login\"><a href=\"".wl(cleanID(getId()), array("do" => "login"))."\" rel=\"nofollow\">".hsc($lang["btn_login"])."</a></li>\n"; //language comes from DokuWiki core
+        }else{
+            //username and userpage
+            echo "          <li id=\"pt-userpage\">".(tpl_getConf("monobook_userpage")
+                                                      ? html_wikilink(tpl_getConf("monobook_userpage_ns").$loginname, hsc($loginname))
+                                                      : hsc($loginname))."</li>";
+            //admin
+            if (!empty($INFO["isadmin"]) ||
+                !empty($INFO["ismanager"])){
+                echo  "          <li id=\"pt-admin\"><a href=\"".wl(cleanID(getId()), array("do" => "admin"))."\" rel=\"nofollow\">".hsc($lang["btn_admin"])."</a></li>\n"; //language comes from DokuWiki core
+            }
+            //personal discussion
+            if (tpl_getConf("monobook_discuss") &&
+                tpl_getConf("monobook_userpage")){
+                echo "          <li id=\"pt-mytalk\">".html_wikilink(tpl_getConf("monobook_discuss_ns").ltrim(tpl_getConf("monobook_userpage_ns"), ":").$loginname, hsc($lang["monobook_tab_mytalk"]))."</li>";
+            }
+            //profile
+            echo  "          <li id=\"pt-preferences\"><a href=\"http://www.greenstone.org/users/change.php\" rel=\"nofollow\">".hsc($lang["btn_profile"])."</a></li>\n"; //language comes from DokuWiki core
+            //logout
+            echo  "          <li id=\"pt-logout\"><a href=\"".wl(cleanID(getId()), array("do" => "logout"))."\" rel=\"nofollow\">".hsc($lang["btn_logout"])."</a></li>\n"; //language comes from DokuWiki core
+        }
+        echo  "        </ul>\n"
+             ."      </div>\n"
+             ."    </div>\n";
+    }
+
+    //show boxes, see monobook/user/boxes.php to configure them
+    if (!empty($_monobook_boxes) &&
+        is_array($_monobook_boxes)){
+        _monobook_renderBoxes($_monobook_boxes);
+    }
+    ?>
+  </div> <!-- end of the left (by default at least) column -->
+
+  <div class="visualClear"></div>
+
+  <div id="footer">
+    <div id="footer-buttons" class="noprint">
+    <?php
+    //show buttons, see monobook/user/buttons.php to configure them
+    if (!empty($_monobook_btns) &&
+        is_array($_monobook_btns)){
+        _monobook_renderButtons($_monobook_btns);
+    }
+    ?>
+    </div>
+    <ul id="f-list">
+      <li id="lastmod">
+        <?php tpl_pageinfo()?><br />
+      </li>
+      <?php
+      //copyright notice
+      if (tpl_getConf("monobook_copyright")){
+          //show dokuwiki's default notice?
+          if (tpl_getConf("monobook_copyright_default")){
+              echo "<li id=\"copyright\">\n        <div class=\"dokuwiki\">";
+              tpl_license(false);
+              echo "</div>\n      </li>\n";
+          //show custom notice.
+          }else{
+              if (empty($conf["useacl"]) ||
+                  auth_quickaclcheck(cleanID(tpl_getConf("monobook_copyright_location"))) >= AUTH_READ){ //current user got access?
+                  echo "<li id=\"copyright\">\n        ";
+                  //get the rendered content of the defined wiki article to use as custom notice
+                  $interim = tpl_include_page(tpl_getConf("monobook_copyright_location"), false);
+                  if ($interim === "" ||
+                      $interim === false){
+                      //show creation/edit link if the defined page got no content
+                      echo "[&#160;";
+                      tpl_pagelink(tpl_getConf("monobook_copyright_location"), hsc($lang["monobook_fillplaceholder"]." (".tpl_getConf("monobook_copyright_location").")"));
+                      echo "&#160;]<br />";
+                  }else{
+                      //show the rendered page content
+                      echo  "<div class=\"dokuwiki\">\n" //dokuwiki CSS class needed cause we are showing rendered page content
+                           .$interim."\n        "
+                           ."</div>";
+                  }
+                  echo "\n      </li>\n";
+              }
+          }
+      }
+      ?>
+      <li id="usermod" class="noprint">
+        <?php tpl_userinfo(); ?><br />
+      </li>
+    </ul>
+  </div>
+
+</div>  <!-- end of global wrap -->
+<a href="<?php echo wl("", array("do" => "recent"));?>" accesskey="r" style="visibility:hidden;" rel="nofollow">&#160;</a>
+<?php
+//provide DokuWiki housekeeping, required in all templates
+tpl_indexerWebBug();
+
+//include web analytics software
+if (file_exists(GSMONO_TPLINC."/user/tracker.php")){
+    include GSMONO_TPLINC."/user/tracker.php";
+}
+?>
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/mediamanager.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/mediamanager.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/mediamanager.php	(revision 30132)
@@ -0,0 +1,110 @@
+<?php
+
+/**
+ * DokuWiki Media Manager Popup
+ *
+ * NOTE: Based on the mediamanager.php out of the "starter" template by
+ *       Anika Henke.
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:templates
+ */
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo hsc($conf["lang"]); ?>" lang="<?php echo hsc($conf["lang"]); ?>" dir="<?php echo hsc($lang["direction"]); ?>" class="popup">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title><?php echo hsc($lang["mediaselect"]); echo " - ".hsc($conf["title"]); ?></title>
+<?php
+//show meta-tags
+tpl_metaheaders();
+echo "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />";
+
+//manually load needed CSS? this is a workaround for PHP Bug #49642. In some
+//version/os combinations PHP is not able to parse INI-file entries if there
+//are slashes "/" used for the keynames (see bugreport for more information:
+//<http://bugs.php.net/bug.php?id=49692>). to trigger this workaround, simply
+//delete/rename monobook's style.ini.
+if (!file_exists(DOKU_TPLINC."style.ini")){
+    echo  "<link rel=\"stylesheet\" media=\"all\" type=\"text/css\" href=\"".DOKU_TPL."bug49642.php".((!empty($lang["direction"]) && $lang["direction"] === "rtl") ? "?langdir=rtl" : "")."\" />\n"; //var comes from DokuWiki core
+}
+
+//include default or userdefined favicon
+//
+//note: since 2011-04-22 "Rincewind RC1", there is a core function named
+//      "tpl_getFavicon()". But its functionality is not really fitting the
+//      behaviour of this template, therefore I don't use it here.
+if (file_exists(DOKU_TPLINC."user/favicon.ico")){
+    //user defined - you might find http://tools.dynamicdrive.com/favicon/
+    //useful to generate one
+    echo "\n<link rel=\"shortcut icon\" href=\"".DOKU_TPL."user/favicon.ico\" />\n";
+}elseif (file_exists(DOKU_TPLINC."user/favicon.png")){
+    //note: I do NOT recommend PNG for favicons (cause it is not supported by
+    //all browsers), but some users requested this feature.
+    echo "\n<link rel=\"shortcut icon\" href=\"".DOKU_TPL."user/favicon.png\" />\n";
+}else{
+    //default
+    echo "\n<link rel=\"shortcut icon\" href=\"".DOKU_TPL."static/3rd/dokuwiki/favicon.ico\" />\n";
+}
+
+//include default or userdefined Apple Touch Icon (see <http://j.mp/sx3NMT> for
+//details)
+if (file_exists(DOKU_TPLINC."user/apple-touch-icon.png")){
+    echo "<link rel=\"apple-touch-icon\" href=\"".DOKU_TPL."user/apple-touch-icon.png\" />\n";
+}else{
+    //default
+    echo "<link rel=\"apple-touch-icon\" href=\"".DOKU_TPL."static/3rd/dokuwiki/apple-touch-icon.png\" />\n";
+}
+
+//load userdefined js?
+if (tpl_getConf("monobook_loaduserjs")){
+    echo "<script type=\"text/javascript\" charset=\"utf-8\" src=\"".DOKU_TPL."user/user.js\"></script>\n";
+}
+
+//load language specific css hacks?
+if (file_exists(DOKU_TPLINC."lang/".$conf["lang"]."/style.css")){
+  $interim = trim(file_get_contents(DOKU_TPLINC."lang/".$conf["lang"]."/style.css"));
+  if (!empty($interim)){
+      echo "<style type=\"text/css\" media=\"all\">\n".hsc($interim)."\n</style>\n";
+  }
+}
+?>
+<!--[if lt IE 5.5000]><link rel="stylesheet" media="all" type="text/css" href="<?php echo DOKU_TPL; ?>static/3rd/monobook/IE50Fixes.css" /><![endif]-->
+<!--[if IE 5.5000]><link rel="stylesheet" media="all" type="text/css" href="<?php echo DOKU_TPL; ?>static/3rd/monobook/IE55Fixes.css" /><![endif]-->
+<!--[if IE 6]><link rel="stylesheet" media="all" type="text/css" href="<?php echo DOKU_TPL; ?>static/3rd/monobook/IE60Fixes.css" /><![endif]-->
+<!--[if IE 7]><link rel="stylesheet" media="all" type="text/css" href="<?php echo DOKU_TPL; ?>static/3rd/monobook/IE70Fixes.css" /><![endif]-->
+<!--[if lt IE 7]><script type="text/javascript" charset="utf-8" src="<?php echo DOKU_TPL; ?>static/3rd/wikipedia/IEFixes.js"></script><meta http-equiv="imagetoolbar" content="no" /><![endif]-->
+</head>
+
+<body>
+    <div id="media__manager" class="dokuwiki">
+        <?php html_msgarea() ?>
+        <div id="mediamgr__aside"><div class="pad">
+            <h1><?php echo hsc($lang['mediaselect'])?></h1>
+
+            <?php /* keep the id! additional elements are inserted via JS here */?>
+            <div id="media__opts"></div>
+
+            <?php tpl_mediaTree() ?>
+        </div></div>
+
+        <div id="mediamgr__content"><div class="pad">
+            <?php tpl_mediaContent() ?>
+        </div></div>
+    </div>
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/00_starter-tmpl-notes.txt
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/00_starter-tmpl-notes.txt	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/00_starter-tmpl-notes.txt	(revision 30132)
@@ -0,0 +1,19 @@
+I) starter template CSS version
+  <https://github.com/selfthinker/dokuwiki_template_starter/zipball/master> at
+  2011-11-23 22:35
+
+
+II) Modifications
+  - I edited _fileuploader.css, _links.css, _media_fullscreen.css, _toc.css:
+    All url(images/[...]) rules were changed (-> "static/3rd/dokuwiki/"). To
+    make this clear, a comment was added at the top of the files.
+  - "static/3rd/dokuwiki/bullet|close|open.gif" were re-saved as PNG.
+
+
+III) Notes
+  The css files were taken from the "starter template". See the following for
+  more information:
+  - <http://blog.andreas-haerter.com/2011/03/16/how-to-create-a-maintainable-dokuwiki-template>
+  - <http://www.dokuwiki.org/template:starter>
+  - ../../../README
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_admin.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_admin.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_admin.css	(revision 30132)
@@ -0,0 +1,47 @@
+/**
+ * This file provides styles for the Administration overview
+ * (?do=admin).
+ */
+
+.dokuwiki ul.admin_tasks {
+    float: left;
+    width: 40%;
+    list-style-type: none;
+    font-size: 1.125em;
+}
+
+.dokuwiki ul.admin_tasks li {
+    padding-left: 35px;
+    margin: 0 0 1em 0;
+    font-weight: bold;
+    list-style-type: none;
+    background: transparent none no-repeat scroll 0 0;
+    color: inherit;
+}
+
+.dokuwiki ul.admin_tasks li.admin_acl {
+    background-image: url(../../images/admin/acl.png);
+}
+.dokuwiki ul.admin_tasks li.admin_usermanager {
+    background-image: url(../../images/admin/usermanager.png);
+}
+.dokuwiki ul.admin_tasks li.admin_plugin {
+    background-image: url(../../images/admin/plugin.png);
+}
+.dokuwiki ul.admin_tasks li.admin_config {
+    background-image: url(../../images/admin/config.png);
+}
+.dokuwiki ul.admin_tasks li.admin_revert {
+    background-image: url(../../images/admin/revert.png);
+}
+.dokuwiki ul.admin_tasks li.admin_popularity {
+    background-image: url(../../images/admin/popularity.png);
+}
+
+/* DokuWiki version below */
+.dokuwiki #admin__version {
+    clear: left;
+    float: right;
+    color: __text_neu__;
+    background-color: inherit;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_diff.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_diff.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_diff.css	(revision 30132)
@@ -0,0 +1,65 @@
+/**
+ * This file provides styles for the diff view, which shows you
+ * differences between two versions of a page (?do=diff).
+ */
+
+.dokuwiki table.diff {
+    width: 100%;
+    border-width: 0;
+}
+.dokuwiki table.diff th,
+.dokuwiki table.diff td {
+    vertical-align: top;
+    padding: 0;
+    border-width: 0;
+    /* no style.ini colours because deleted and added lines have a fixed background colour */
+    background-color: #fff;
+    color: #333;
+}
+
+/* table header */
+.dokuwiki table.diff th {
+    border-bottom: 1px solid __border__;
+    font-size: 110%;
+    width: 50%;
+    font-weight: normal;
+}
+.dokuwiki table.diff th a {
+    font-weight: bold;
+}
+.dokuwiki table.diff th span.user {
+    font-size: .9em;
+}
+.dokuwiki table.diff th span.sum {
+    font-size: .9em;
+    font-weight: bold;
+}
+.dokuwiki table.diff th.minor {
+    color: #999;
+}
+
+/* table body */
+.dokuwiki table.diff td {
+    font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
+}
+.dokuwiki table.diff td.diff-blockheader {
+    font-weight: bold;
+}
+.dokuwiki table.diff .diff-addedline {
+    background-color: #cfc;
+    color: inherit;
+}
+.dokuwiki table.diff .diff-deletedline {
+    background-color: #fdd;
+    color: inherit;
+}
+.dokuwiki table.diff td.diff-context {
+    background-color: #eee;
+    color: inherit;
+}
+.dokuwiki table.diff td.diff-addedline strong,
+.dokuwiki table.diff td.diff-deletedline strong {
+    color: #f00;
+    background-color: inherit;
+    font-weight: bold;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_edit.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_edit.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_edit.css	(revision 30132)
@@ -0,0 +1,115 @@
+/**
+ * This file provides styles for the edit view (?do=edit), preview
+ * and section edit buttons.
+ */
+
+/* edit view
+********************************************************************/
+
+/*____________ toolbar ____________*/
+
+.dokuwiki div.toolbar {
+    margin-bottom: .5em;
+}
+.dokuwiki div.toolbar #draft__status {
+    float: right;
+    color: __text_alt__;
+    background-color: inherit;
+}
+.dokuwiki div.toolbar #tool__bar {
+}
+
+/* buttons inside of toolbar */
+.dokuwiki div.toolbar button.toolbutton {
+}
+/* picker popups (outside of .dokuwiki) */
+div.picker {
+    width: 300px;
+    border: 1px solid __border__;
+    background-color: __background_alt__;
+    color: inherit;
+}
+/* picker for headlines */
+div.picker.pk_hl {
+    width: auto;
+}
+/* buttons inside of picker */
+div.picker button.pickerbutton {
+}
+
+/*____________ edit textarea ____________*/
+
+.dokuwiki textarea.edit {
+    /* should just be "width: 100%", but IE8 doesn't like it, see FS#1910 + FS#1667 */
+    width: 700px;
+    min-width: 100%;
+    max-width: 100%;
+    margin-bottom: .5em;
+}
+
+/*____________ below the textarea ____________*/
+
+.dokuwiki #wiki__editbar {
+    overflow: hidden;
+    margin-bottom: .5em;
+}
+
+/* size and wrap controls */
+.dokuwiki #wiki__editbar #size__ctl {
+    float: right;
+}
+.dokuwiki #wiki__editbar #size__ctl img {
+    cursor: pointer;
+}
+
+/* edit buttons */
+.dokuwiki #wiki__editbar .editButtons {
+    display: inline;
+    margin-right: 1em;
+}
+.dokuwiki #wiki__editbar .editButtons input {
+}
+
+/* summary input and minor changes checkbox */
+.dokuwiki #wiki__editbar .summary {
+    display: inline;
+}
+.dokuwiki #wiki__editbar .summary label {
+    vertical-align: middle;
+    white-space: nowrap;
+}
+.dokuwiki #wiki__editbar .summary label span {
+    vertical-align: middle;
+}
+.dokuwiki #wiki__editbar .summary input {
+}
+/* change background colour if summary is missing */
+.dokuwiki #wiki__editbar .summary input.missing {
+    color: __text__;
+    background-color: #ffcccc;
+}
+
+/* preview
+********************************************************************/
+
+.dokuwiki div.preview {
+    border: dashed __border__;
+    border-width: .2em 0;
+    padding: 1.4em 0;
+    margin-bottom: 1.4em;
+}
+
+/* section edit buttons
+********************************************************************/
+
+.dokuwiki .secedit {
+    float: right;
+    margin-top: -1.4em;
+}
+.dokuwiki .secedit input.button {
+    font-size: 75%;
+}
+.dokuwiki .section_highlight {
+    background-color: __background_alt__ !important;
+    color: inherit;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_fileuploader.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_fileuploader.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_fileuploader.css	(revision 30132)
@@ -0,0 +1,121 @@
+/* ATTENTION: This file was edited for the "monobook template for DokuWiki".
+   - All url(images/[...]) rules where changed.
+   See 00_starter-tmpl-notes.txt for details. */
+
+
+/**
+ * This file provides the styles for the file uploader
+ * used in the media manager (both fullscreen and popup).
+ */
+
+.qq-uploader {
+    position: relative;
+    width: 100%;
+}
+
+.qq-uploader .error {
+    color: #f00;
+    background-color: #fff;
+}
+
+/* select file button */
+
+.qq-upload-button {
+    display: inline-block;
+    border: 1px solid __border__;
+    color: __text__;
+    background:  __background__ url(static/3rd/dokuwiki/buttonshadow.png) repeat-x bottom;
+    text-decoration: none;
+    font-size: 100%;
+    cursor: pointer;
+    margin: 1px 1px 5px;
+    padding: 0.125em 0.4em;
+}
+
+* html .qq-upload-button,
+*+html .qq-upload-button {
+    display: inline;
+}
+
+.qq-upload-button-focus {
+    outline: 1px dotted;
+}
+
+/* drop area */
+
+.qq-upload-drop-area {
+    position: absolute;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 100%;
+    min-height: 70px;
+    z-index: 2;
+    background: __background_neu__;
+    color: __text__;
+    text-align: center;
+}
+
+.qq-upload-drop-area span {
+    display: block;
+    position: absolute;
+    top: 50%;
+    width: 100%;
+    margin-top: -8px;
+    font-size: 120%;
+}
+
+.qq-upload-drop-area-active {
+    background: __background_alt__;
+}
+
+/* list of files to upload */
+
+div.qq-uploader ul {
+    margin: 0;
+    padding: 0;
+    list-style: none;
+}
+
+.qq-uploader li {
+    margin: 0 0 5px;
+    color: __text__;
+}
+
+.qq-uploader li span,
+.qq-uploader li input,
+.qq-uploader li a {
+    margin-right: 5px;
+}
+
+.qq-upload-file {
+    display: block;
+    font-weight: bold;
+}
+
+.qq-upload-spinner {
+    display: inline-block;
+    background: url("../../images/throbber.gif");
+    width: 15px;
+    height: 15px;
+    vertical-align: text-bottom;
+}
+
+.qq-upload-size,
+.qq-upload-cancel {
+    font-size: 85%;
+}
+
+.qq-upload-failed-text {
+    display: none;
+}
+.qq-upload-fail .qq-upload-failed-text {
+    display: inline;
+}
+
+.qq-action-container * {
+    vertical-align: middle;
+}
+.qq-overwrite-check input {
+    margin-left: 10px;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_footnotes.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_footnotes.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_footnotes.css	(revision 30132)
@@ -0,0 +1,28 @@
+/**
+ * This file provides styles for footnotes.
+ */
+
+/*____________ footnotes inside the text ____________*/
+
+/* link to footnote inside the text */
+.dokuwiki sup a.fn_top {
+}
+/* JSpopup */
+div.insitu-footnote {
+    max-width: 40%;
+    min-width: 5em;
+}
+
+/*____________ footnotes at the bottom of the page ____________*/
+
+.dokuwiki div.footnotes {
+    border-top: 1px solid __border__;
+    padding: .5em 0 0 0;
+    margin: 1em 0 0 0;
+    clear: both;
+}
+.dokuwiki div.footnotes div.fn {
+}
+.dokuwiki div.footnotes div.fn sup a.fn_bot {
+    font-weight: bold;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_forms.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_forms.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_forms.css	(revision 30132)
@@ -0,0 +1,82 @@
+
+/* TODO */
+
+/**
+ * This file provides styles for forms in general and specifically
+ * for ?do=
+ *   - login
+ *   - resendpwd
+ *   - register
+ *   - profile
+ *   - subscribe
+ */
+
+/* ---------------- forms ------------------------ */
+
+div.dokuwiki form {
+  border: none;
+  display: inline;
+}
+
+div.dokuwiki label.block {
+  display: block;
+  text-align: right;
+  font-weight: bold;
+}
+
+div.dokuwiki label.simple {
+  display: block;
+  text-align: left;
+  font-weight: normal;
+}
+
+div.dokuwiki label.block input.edit {
+  width: 50%;
+}
+
+div.dokuwiki label span {
+    vertical-align: middle;
+}
+
+div.dokuwiki fieldset {
+  width: 400px;
+  text-align: center;
+  border: 1px solid __border__;
+  padding: 0.5em;
+  margin: auto;
+}
+
+
+div.dokuwiki input.edit,
+div.dokuwiki select.edit {
+  vertical-align: middle;
+}
+div.dokuwiki select.edit {
+  padding: 0.1em 0;
+}
+
+
+.dokuwiki input.button,
+.dokuwiki button.button {
+    vertical-align: middle;
+}
+
+/**
+ * Styles for the subscription page
+ */
+
+form#subscribe__form {
+    display: block;
+    width: 400px;
+    text-align: center;
+}
+
+form#subscribe__form fieldset {
+    text-align: left;
+    margin: 0.5em 0;
+}
+
+form#subscribe__form label {
+    display: block;
+    margin: 0 0.5em 0.5em;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_imgdetail.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_imgdetail.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_imgdetail.css	(revision 30132)
@@ -0,0 +1,32 @@
+/**
+ * This file provides styles for the image detail page (detail.php).
+ */
+
+#dokuwiki__detail {
+    padding: 1em;
+}
+#dokuwiki__detail h1 {
+}
+
+#dokuwiki__detail div.content {
+}
+
+#dokuwiki__detail div.content img {
+    float: left;
+    margin-right: 1.5em;
+}
+#dokuwiki__detail div.content div.img_detail {
+    float: left;
+}
+
+#dokuwiki__detail div.img_detail h2 {
+}
+#dokuwiki__detail div.img_detail dl {
+}
+#dokuwiki__detail div.img_detail dl dt {
+}
+#dokuwiki__detail div.img_detail dl dd {
+}
+
+#dokuwiki__detail p.back {
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_links.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_links.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_links.css	(revision 30132)
@@ -0,0 +1,70 @@
+/* ATTENTION: This file was edited for the "monobook template for DokuWiki".
+   - All url(images/[...]) rules where changed.
+   See 00_starter-tmpl-notes.txt for details. */
+
+
+/**
+ * This file provides styles for all types of links.
+ */
+
+/*____________ links to wiki pages ____________*/
+
+/* existing wikipage */
+.dokuwiki a.wikilink1 {
+    color: __existing__;
+    background-color: inherit;
+}
+/* not existing wikipage */
+.dokuwiki a.wikilink2 {
+    color: __missing__;
+    background-color: inherit;
+    text-decoration: none;
+}
+.dokuwiki a.wikilink2:link,
+.dokuwiki a.wikilink2:visited {
+    border-bottom: 1px dashed;
+}
+.dokuwiki a.wikilink2:hover,
+.dokuwiki a.wikilink2:active,
+.dokuwiki a.wikilink2:focus {
+    border-bottom-width: 0;
+}
+
+/* any link to current page */
+.dokuwiki span.curid a {
+    font-weight: bold;
+}
+
+/*____________ other link types ____________*/
+
+.dokuwiki a.urlextern,
+.dokuwiki a.windows,
+.dokuwiki a.mail,
+.dokuwiki a.mediafile,
+.dokuwiki a.interwiki {
+    background-repeat: no-repeat;
+    background-position: 0 center;
+    padding: 0 0 0 20px;
+}
+/* external link */
+.dokuwiki a.urlextern {
+    background-image: url(static/3rd/dokuwiki/link_icon.gif);
+    padding: 0 0 0 17px;
+}
+/* windows share */
+.dokuwiki a.windows {
+    background-image: url(static/3rd/dokuwiki/windows.gif);
+}
+/* email link */
+.dokuwiki a.mail {
+    background-image: url(static/3rd/dokuwiki/mail_icon.gif);
+}
+
+/* icons of the following are set by dokuwiki in lib/exe/css.php */
+/* link to some embedded media */
+.dokuwiki a.mediafile {
+}
+/* interwiki link */
+.dokuwiki a.interwiki {
+    padding: 0 0 0 17px;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_media_fullscreen.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_media_fullscreen.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_media_fullscreen.css	(revision 30132)
@@ -0,0 +1,462 @@
+/* ATTENTION: This file was edited for the "monobook template for DokuWiki".
+   - All url(images/[...]) rules where changed.
+   See 00_starter-tmpl-notes.txt for details. */
+
+
+/**
+ * This file provides the styles for the fullscreen media manager
+ * (?do=media).
+ *
+ * What most templates would probably need to change (depending on
+ * their site width) are the 4 min-width's (search for @change).
+ */
+
+
+/*____________ structure ____________*/
+
+#mediamanager__page h1 {
+    margin: 0 0 .5em;
+}
+
+#mediamanager__page {
+    /* min-width must be summary of all 3 panels' min-widths */
+    min-width: 50em; /* @change */
+    width: 100%;
+    text-align: left;
+}
+
+#mediamanager__page .panel {
+    float: left;
+}
+
+#mediamanager__page .namespaces {
+    width: 20%;
+    min-width: 10em; /* @change */
+}
+#mediamanager__page .filelist {
+    width: 50%;
+    min-width: 25em; /* @change */
+}
+#mediamanager__page .file {
+    width: 30%;
+    min-width: 15em; /* @change */
+}
+
+#mediamanager__page .panelHeader {
+    background-color: __background_alt__;
+    margin: 0 10px 10px 0;
+    padding: 10px 10px 8px;
+    text-align: left;
+    min-height: 20px;
+    overflow: hidden;
+}
+
+#mediamanager__page .panelContent {
+    overflow-y: auto;
+    overflow-x: hidden;
+    padding: 0;
+    margin: 0 10px 10px 0;
+    position: relative;
+}
+
+#mediamanager__page .file .panelHeader,
+#mediamanager__page .file .panelContent {
+    margin-right: 0;
+}
+
+#mediamanager__page .ui-resizable-e {
+    width: 6px;
+    right: 2px;
+    background: transparent url(static/3rd/dokuwiki/resizecol.png) center center no-repeat;
+}
+#mediamanager__page .ui-resizable-e:hover {
+    background-color: __background_alt__;
+}
+
+
+#mediamanager__page dd {
+    margin: 0;
+}
+
+#mediamanager__page .panelHeader h3 {
+    float: left;
+    font-weight: normal;
+    font-size: 1em;
+    padding: 0;
+    margin: 0 0 3px;
+}
+
+
+/*____________ namespaces panel ____________*/
+
+#mediamanager__page .namespaces h2 {
+    font-size: 1em;
+    display: inline-block;
+    border-width: 0;
+    padding: .3em .8em;
+    margin: 0 .3em 0 0;
+    border-radius: .5em .5em 0 0;
+    font-weight: normal;
+    background-color: __background_alt__;
+    color: __text__;
+    line-height: 1.4em;
+}
+* html #mediamanager__page .namespaces h2,
+*+html #mediamanager__page .namespaces h2 {
+    display: inline;
+}
+
+#mediamanager__page .namespaces ul {
+    margin-left: .2em;
+    margin-bottom: 0;
+    padding: 0;
+    list-style: none;
+}
+#mediamanager__page .namespaces ul ul {
+    margin-left: 1em;
+}
+#mediamanager__page .namespaces ul ul li {
+    margin: 0;
+}
+
+#mediamanager__page .namespaces ul .selected {
+    background-color: __highlight__;
+    font-weight: bold;
+}
+
+
+/*____________ file list panel ____________*/
+
+/* file list header */
+
+#mediamanager__page .panelHeader form.options {
+    float: right;
+    margin-top: -3px;
+}
+
+#mediamanager__page .panelHeader ul {
+    list-style: none;
+    margin: 0;
+    padding: 0;
+}
+#mediamanager__page .panelHeader ul li {
+    color: __text__;
+    float: left;
+    line-height: 1;
+    padding-left: 3px;
+}
+
+#mediamanager__page .panelHeader ul li.listType {
+    padding-left: 30px;
+    background: url('../../images/icon-list.png') 3px 1px no-repeat;
+}
+#mediamanager__page .panelHeader ul li.sortBy {
+    padding-left: 30px;
+    background: url('../../images/icon-sort.png') 3px 1px no-repeat;
+}
+
+#mediamanager__page .panelHeader form.options .ui-buttonset label{
+    font-size: 90%;
+    margin-right: -0.4em;
+}
+#mediamanager__page .panelHeader form.options .ui-buttonset .ui-button-text {
+    padding: .3em .5em;
+    line-height: 1;
+}
+
+/* file list content */
+
+#mediamanager__page .filelist ul {
+    padding: 0;
+    margin: 0;
+}
+
+#mediamanager__page .filelist .panelContent ul li:hover {
+    background-color: __background_alt__;
+}
+
+#mediamanager__page .filelist li dt a {
+    vertical-align: middle;
+    display: table-cell;
+    overflow: hidden;
+}
+* html #mediamanager__page .filelist .thumbs li dt a,
+*+html #mediamanager__page .filelist .thumbs li dt a {
+    display: block;
+}
+* html #mediamanager__page .filelist .rows li dt a,
+*+html #mediamanager__page .filelist .rows li dt a {
+    display: inline;
+}
+
+/* file list as thumbs */
+
+#mediamanager__page .filelist .thumbs li {
+    width: 100px;
+    min-height: 130px;
+    display: inline-block;
+    display: -moz-inline-stack;
+    /* the right margin should visually be 10px, but because of its inline-block nature the whitespace inbetween is about 4px more */
+    margin: 0 6px 10px 0;
+    background-color: __background_neu__;
+    color: __text__;
+    padding: 5px;
+    vertical-align: top;
+    text-align: center;
+    position: relative;
+    line-height: 1.2;
+}
+* html #mediamanager__page .filelist .thumbs li,
+*+html #mediamanager__page .filelist .thumbs li {
+    display: inline;
+    zoom: 1;
+}
+
+#mediamanager__page .filelist .thumbs li dt a {
+    width: 100px;
+    height: 90px;
+}
+
+#mediamanager__page .filelist .thumbs li dt a img {
+    max-width: 90px;
+    max-height: 90px;
+}
+
+#mediamanager__page .filelist .thumbs li .name,
+#mediamanager__page .filelist .thumbs li .size,
+#mediamanager__page .filelist .thumbs li .filesize,
+#mediamanager__page .filelist .thumbs li .date {
+    display: block;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    width: 90px;
+    white-space: nowrap;
+}
+#mediamanager__page .filelist .thumbs li .name {
+    padding: 5px 0;
+    font-weight: bold;
+}
+#mediamanager__page .filelist .thumbs li .date {
+    font-style: italic;
+    white-space: normal;
+}
+
+/* file list as rows */
+
+#mediamanager__page .filelist .rows li {
+    list-style: none;
+    display: block;
+    position: relative;
+    max-height: 50px;
+    margin: 0;
+    margin-bottom: 3px;
+    background-color: __background__;
+    color: __text__;
+    overflow: hidden;
+}
+
+#mediamanager__page .filelist .rows li:nth-child(2n+1) {
+    background-color: __background_neu__;
+}
+
+#mediamanager__page .filelist .rows li dt {
+    float: left;
+    width: 10%;
+    height: 40px;
+    text-align: center;
+}
+
+#mediamanager__page .filelist .rows li dt a {
+    width: 100px;
+    height: 40px;
+}
+
+#mediamanager__page .filelist .rows li dt a img {
+    max-width: 40px;
+    max-height: 40px;
+}
+
+#mediamanager__page .filelist .rows li .name,
+#mediamanager__page .filelist .rows li .size,
+#mediamanager__page .filelist .rows li .filesize,
+#mediamanager__page .filelist .rows li .date {
+    overflow: hidden;
+    text-overflow: ellipsis;
+    float: left;
+    margin-left: 1%;
+    white-space: nowrap;
+}
+
+#mediamanager__page .filelist .rows li .name {
+    width: 30%;
+    font-weight: bold;
+}
+#mediamanager__page .filelist .rows li .size,
+#mediamanager__page .filelist .rows li .filesize {
+    width: 15%;
+}
+#mediamanager__page .filelist .rows li .date {
+    width: 20%;
+    font-style: italic;
+    white-space: normal;
+}
+
+/* upload form */
+
+#mediamanager__page div.upload {
+    padding-bottom: 0.5em;
+}
+
+/*____________ file panel ____________*/
+
+#mediamanager__page .file ul.actions {
+    text-align: center;
+    margin: 0 0 5px;
+    padding: 0;
+    list-style: none;
+}
+#mediamanager__page .file ul.actions li {
+    display: inline;
+    margin: 0;
+}
+
+#mediamanager__page .file div.image {
+    margin-bottom: 5px;
+    text-align: center;
+}
+
+#mediamanager__page .file div.image img {
+    width: 100%;
+}
+
+#mediamanager__page .file dl {
+    margin-bottom: 0;
+}
+#mediamanager__page .file dl dt {
+    font-weight: bold;
+    display: block;
+    background-color: __background_alt__;
+}
+#mediamanager__page .file dl dd {
+    display: block;
+    background-color: __background_neu__;
+}
+
+
+/* file meta data edit form */
+
+#mediamanager__page form.meta div.row {
+    margin-bottom: 5px;
+}
+
+#mediamanager__page form.meta label span {
+    display: block;
+}
+
+#mediamanager__page form.meta input {
+    width: 50%;
+}
+
+#mediamanager__page form.meta input.button {
+    width: auto;
+}
+
+#mediamanager__page form.meta textarea.edit {
+    height: 6em;
+    width: 95%;
+    min-width: 95%;
+    max-width: 95%;
+}
+
+/* file revisions form */
+
+#mediamanager__page #page__revisions ul {
+    margin-left: 10px;
+    padding: 0;
+    list-style-type: none;
+}
+
+#mediamanager__page #page__revisions ul li div.li div {
+    font-size: 90%;
+    color: __text_neu__;
+    padding-left: 18px;
+}
+
+#mediamanager__page #page__revisions ul li div.li input {
+    position: relative;
+    top: 1px;
+}
+
+/* file diff view */
+
+#mediamanager__diff table {
+    table-layout: fixed;
+    border-width: 0;
+}
+
+#mediamanager__diff td,
+#mediamanager__diff th {
+    width: 48%;
+    margin: 0 5px 10px 0;
+    padding: 0;
+    vertical-align: top;
+    text-align: left;
+    border-color: __background__;
+}
+
+#mediamanager__diff th {
+    font-weight: normal;
+    background-color: __background__;
+    line-height: 1.2;
+}
+#mediamanager__diff th a {
+    font-weight: bold;
+}
+#mediamanager__diff th span {
+    font-size: 90%;
+}
+
+#mediamanager__diff dl dd strong{
+    background-color: __highlight__;
+    color: __text__;
+    font-weight: normal;
+}
+
+/* image diff views */
+
+#mediamanager__page .file form.diffView {
+    margin-bottom: 10px;
+    display: block;
+}
+
+#mediamanager__diff div.slider {
+    margin: 10px;
+    width: 95%;
+}
+
+#mediamanager__diff .imageDiff {
+    position: relative;
+}
+#mediamanager__diff .imageDiff .image1,
+#mediamanager__diff .imageDiff .image2 {
+    position: absolute;
+    top: 0;
+    left: 0;
+    width: 97%;
+}
+
+#mediamanager__diff .imageDiff.opacity .image2 {
+    -moz-opacity: 0.5;
+    -khtml-opacity: 0.5;
+    opacity: 0.5;
+}
+
+#mediamanager__diff .imageDiff.portions .image2 {
+    border-right: 1px solid red;
+    overflow: hidden;
+}
+
+#mediamanager__diff .imageDiff img {
+    width: 100%;
+}
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_media_popup.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_media_popup.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_media_popup.css	(revision 30132)
@@ -0,0 +1,205 @@
+/**
+ * This file provides styles for the media manager popup
+ * (mediamanager.php).
+ */
+
+/*____________ structure ____________*/
+
+html.popup {
+    overflow: auto;
+}
+
+#media__manager {
+    height: 100%;
+    overflow: hidden;
+}
+
+#mediamgr__aside {
+    width: 30%;
+    height: 100%;
+    overflow: auto;
+    position: absolute;
+    left: 0;
+    border-right: 1px solid __border__;
+}
+#mediamgr__aside .pad {
+    padding: .5em;
+}
+
+#mediamgr__content {
+    width: 69.7%;
+    height: 100%;
+    overflow: auto;
+    position: absolute;
+    right: 0;
+}
+#mediamgr__content .pad {
+    padding: .5em;
+}
+
+#media__manager h1,
+#media__manager h2 {
+    font-size: 1.5em;
+    margin-bottom: .5em;
+    padding-bottom: .2em;
+    border-bottom: 1px solid __border__;
+}
+
+/* left side
+********************************************************************/
+
+/*____________ options ____________*/
+
+#media__opts {
+    margin-bottom: .5em;
+}
+
+#media__opts input {
+    margin-right: .3em;
+}
+#media__opts label {
+}
+
+/*____________ tree ____________*/
+
+#media__tree ul {
+    padding-left: .2em;
+}
+#media__tree ul li {
+    clear: left;
+    list-style-type: none;
+    list-style-image: none;
+    margin-left: 0;
+}
+#media__tree ul li img {
+    float: left;
+    padding: .5em .3em 0 0;
+}
+#media__tree ul li div.li {
+    display: inline;
+}
+#media__tree ul li li {
+    margin-left: 1.5em;
+}
+
+/* right side
+********************************************************************/
+
+/*____________ upload form ____________*/
+
+/* upload info */
+#media__content div.upload {
+    font-size: .9em;
+    margin-bottom: .5em;
+}
+
+#mediamanager__uploader {
+    margin-bottom: 1em;
+}
+#mediamanager__uploader p {
+    margin-bottom: .5em;
+}
+
+/*____________ file list ____________*/
+
+#media__content img.load {
+    margin: 1em auto;
+}
+
+#media__content .odd,
+#media__content .even {
+    padding: .5em;
+}
+#media__content .odd {
+    background-color: __background_alt__;
+}
+#media__content .even {
+}
+/* highlight newly uploaded or edited file */
+#media__content #scroll__here {
+    border: 1px dashed __border__;
+}
+
+/* link which inserts media file */
+#media__content a.mediafile {
+    margin-right: 1.5em;
+    font-weight: bold;
+}
+#media__content span.info {
+}
+#media__content img.btn {
+    vertical-align: text-bottom;
+}
+
+/* info how to insert media, if JS disabled */
+#media__content div.example {
+    color: __text_neu__;
+    margin-left: 1em;
+}
+
+#media__content div.detail {
+    padding: .2em 0;
+}
+#media__content div.detail div.thumb {
+    float: left;
+    margin: 0 .5em 0 18px;
+}
+#media__content div.detail div.thumb a {
+    display: block;
+    cursor: pointer;
+}
+#media__content div.detail p {
+    margin-bottom: 0;
+}
+
+
+/*____________ media search ____________*/
+
+form#dw__mediasearch {
+}
+form#dw__mediasearch p {
+}
+form#dw__mediasearch label {
+}
+form#dw__mediasearch label span {
+}
+form#dw__mediasearch input.edit {
+}
+form#dw__mediasearch input.button {
+}
+
+
+/* meta edit form
+********************************************************************/
+
+#media__content form.meta {
+}
+
+#media__content form.meta div.metafield {
+    clear: left;
+    margin-bottom: .5em;
+    overflow: hidden;
+}
+
+#media__content form.meta label {
+    display: block;
+    width: 25%;
+    float: left;
+    font-weight: bold;
+    clear: left;
+}
+#media__content form.meta .edit {
+    float: left;
+    width: 70%;
+    margin: 0;
+}
+#media__content form.meta textarea.edit {
+    /* needed because of IE8 hack in _edit.css for textarea.edit: */
+    max-width: 70%;
+    min-width: 70%;
+}
+
+#media__content form.meta div.buttons {
+    clear: left;
+    margin: .2em 0 0 25%;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_modal.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_modal.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_modal.css	(revision 30132)
@@ -0,0 +1,83 @@
+/**
+ * This file provides styles for modal dialogues.
+ */
+
+.dokuwiki .ui-widget {
+    font-size: 100%;
+}
+
+
+/* link wizard (opens from the link button in the edit toolbar)
+********************************************************************/
+
+#link__wiz {
+}
+
+#link__wiz_result {
+    background-color: __background__;
+    width:  293px;
+    height: 193px;
+    overflow: auto;
+    border: 1px solid __border__;
+    margin: 3px auto;
+    text-align: left;
+    line-height: 1;
+}
+
+#link__wiz_result div {
+    padding: 3px 3px 3px 0;
+}
+
+#link__wiz_result div a {
+    display: block;
+    padding-left: 22px;
+    min-height: 16px;
+    background: transparent 3px center no-repeat;
+}
+
+#link__wiz_result div.type_u a {
+    background-image: url(../../images/up.png);
+}
+#link__wiz_result div.type_f a {
+    background-image: url(../../images/page.png);
+}
+#link__wiz_result div.type_d a {
+    background-image: url(../../images/ns.png);
+}
+
+#link__wiz_result div.even {
+    background-color: __background_neu__;
+}
+
+#link__wiz_result div.selected {
+    background-color: __background_alt__;
+}
+
+#link__wiz_result span {
+    display: block;
+    color: __text_neu__;
+    margin-left: 22px;
+}
+
+
+/* media option wizard (opens when inserting media in the media popup)
+********************************************************************/
+
+#media__popup {
+    /* for backwards compatibility (not needed since Rincewind) */
+    display: none;
+}
+
+#media__popup_content p {
+    margin: 0 0 .5em;
+}
+
+#media__popup_content label {
+    margin-right: .5em;
+    cursor: default;
+}
+
+#media__popup_content .button {
+    margin-right: 1px;
+    cursor: pointer;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_recent.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_recent.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_recent.css	(revision 30132)
@@ -0,0 +1,70 @@
+/**
+ * This file provides styles for the recent changes (?do=recent) and
+ * old revisions (?do=revisions).
+ */
+
+/*____________ list of revisions / recent changes ____________*/
+
+/* select type of revisions (media/pages), should have a class on it's own, but hasn't */
+.dokuwiki #dw__recent label {
+    margin-bottom: .5em;
+    display: block;
+}
+
+.dokuwiki #dw__recent ul li,
+.dokuwiki #page__revisions ul li {
+    list-style: none;
+    margin-left: 0;
+}
+.dokuwiki #dw__recent ul li span,
+.dokuwiki #dw__recent ul li a,
+.dokuwiki #page__revisions ul li span,
+.dokuwiki #page__revisions ul li a {
+    vertical-align: middle;
+}
+.dokuwiki #dw__recent ul li span.user a,
+.dokuwiki #page__revisions ul li span.user a {
+    vertical-align: bottom;
+}
+.dokuwiki #dw__recent ul li.minor,
+.dokuwiki #page__revisions ul li.minor {
+    color: __text_alt__;
+    background-color: inherit;
+}
+
+.dokuwiki #dw__recent li span.date,
+.dokuwiki #page__revisions li span.date {
+}
+.dokuwiki #dw__recent li a.diff_link,
+.dokuwiki #page__revisions li a.diff_link {
+    vertical-align: baseline;
+}
+.dokuwiki #dw__recent li a.revisions_link,
+.dokuwiki #page__revisions li a.revisions_link {
+    vertical-align: baseline;
+}
+.dokuwiki #dw__recent li a.wikilink1,
+.dokuwiki #dw__recent li a.wikilink2,
+.dokuwiki #page__revisions li a.wikilink1,
+.dokuwiki #page__revisions li a.wikilink2 {
+}
+.dokuwiki #dw__recent li span.sum,
+.dokuwiki #page__revisions li span.sum {
+    font-weight: bold;
+}
+.dokuwiki #dw__recent li span.user,
+.dokuwiki #page__revisions li span.user {
+}
+
+
+/*____________ page navigator ____________*/
+
+.dokuwiki div.pagenav {
+    text-align: center;
+    margin: 1.4em 0;
+}
+.dokuwiki div.pagenav-prev,
+.dokuwiki div.pagenav-next {
+    display: inline;
+    margin: 0 .5em;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_search.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_search.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_search.css	(revision 30132)
@@ -0,0 +1,93 @@
+/**
+ * This file provides styles for the search results page (?do=search)
+ * and the AJAX search popup.
+ */
+
+/* search results page
+********************************************************************/
+
+/* loading gif */
+.dokuwiki #dw__loading {
+}
+
+/*____________ matching pagenames ____________*/
+
+.dokuwiki div.search_quickresult {
+    margin-bottom: 1.4em;
+}
+.dokuwiki div.search_quickresult h3 {
+}
+.dokuwiki div.search_quickresult ul {
+    padding: 0;
+}
+.dokuwiki div.search_quickresult ul li {
+    float: left;
+    width: 12em;
+    margin: 0 1.5em;
+}
+
+/*____________ search results ____________*/
+
+/* container for one search result */
+.dokuwiki div.search_result {
+    margin-bottom: 1.4em;
+}
+/* search snippet */
+.dokuwiki div.search_result div.search_snippet {
+    color: __text_alt__;
+    background-color: inherit;
+}
+
+/* search hit in normal text */
+.dokuwiki .search_hit {
+    color: __text__;
+    background-color: __highlight__;
+}
+/* search hit in search results */
+.dokuwiki div.search_result strong.search_hit {
+    font-weight: normal;
+}
+/* ellipsis separating snippets */
+.dokuwiki div.search_result .search_sep {
+    color: __text__;
+    background-color: inherit;
+}
+
+/* "nothing found" at search + media */
+.dokuwiki div.nothing {
+    margin-bottom: 1.4em;
+}
+
+
+/* AJAX quicksearch popup
+********************************************************************/
+
+.dokuwiki form.search div.no {
+    position: relative;
+}
+
+/* .JSpopup */
+.dokuwiki form.search div.ajax_qsearch {
+    position: absolute;
+    top: 0;
+    left: -13.5em; /* -( width of #qsearch__in + padding of .ajax_qsearch + a bit more ) */
+    width: 12em;
+    padding: 0.5em;
+    font-size: .9em;
+    z-index: 20;
+    text-align: left;
+    display: none;
+}
+.dokuwiki form.search div.ajax_qsearch strong {
+    display: block;
+    margin-bottom: .3em;
+}
+.dokuwiki form.search div.ajax_qsearch ul {
+    margin: 0 !important;
+    padding: 0 !important;
+}
+.dokuwiki form.search div.ajax_qsearch ul li {
+    margin: 0;
+    padding: 0;
+    display: block !important;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_tabs.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_tabs.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_tabs.css	(revision 30132)
@@ -0,0 +1,38 @@
+/**
+ * This file provides the styles for general tabs.
+ */
+
+.dokuwiki ul.tabs {
+    padding: 0;
+    margin: 0;
+    overflow: hidden;
+}
+.dokuwiki ul.tabs li {
+    float: left;
+    padding: 0;
+    margin: 0;
+    list-style: none;
+}
+
+.dokuwiki ul.tabs li strong,
+.dokuwiki ul.tabs li a {
+    float: left;
+    padding: .3em .8em;
+    margin: 0 .3em 0 0;
+    border-radius: .5em .5em 0 0;
+}
+.dokuwiki ul.tabs li strong {
+    font-weight: normal;
+}
+
+.dokuwiki ul.tabs li a:link,
+.dokuwiki ul.tabs li a:visited {
+}
+.dokuwiki ul.tabs li a:hover,
+.dokuwiki ul.tabs li a:active,
+.dokuwiki ul.tabs li a:focus,
+.dokuwiki ul.tabs li strong {
+    background-color: __background_alt__;
+    color: __text__;
+    text-decoration: none;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_tabs.css.bak
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_tabs.css.bak	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_tabs.css.bak	(revision 30132)
@@ -0,0 +1,40 @@
+/**
+ * This file provides the styles for general tabs.
+ */
+
+.dokuwiki ul.tabs {
+    padding: 0;
+    margin: 0;
+    overflow: hidden;
+}
+.dokuwiki ul.tabs li {
+    float: left;
+    padding: 0;
+    margin: 0;
+    list-style: none;
+}
+
+.dokuwiki ul.tabs li strong,
+.dokuwiki ul.tabs li a {
+    float: left;
+    padding: .3em .8em;
+    margin: 0 .3em 0 0;
+    background-color: __background_neu__;
+    color: __text__;
+    border-radius: .5em .5em 0 0;
+}
+.dokuwiki ul.tabs li strong {
+    font-weight: normal;
+}
+
+.dokuwiki ul.tabs li a:link,
+.dokuwiki ul.tabs li a:visited {
+}
+.dokuwiki ul.tabs li a:hover,
+.dokuwiki ul.tabs li a:active,
+.dokuwiki ul.tabs li a:focus,
+.dokuwiki ul.tabs li strong {
+    background-color: __background_alt__;
+    color: __text__;
+    text-decoration: none;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_toc.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_toc.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_toc.css	(revision 30132)
@@ -0,0 +1,142 @@
+/* ATTENTION: This file was edited for the "monobook template for DokuWiki".
+   - All url(images/[...]) rules where changed.
+   See 00_starter-tmpl-notes.txt for details. */
+
+/**
+ * This file provides styles for the TOC (table of contents), the
+ * sitemap (?do=index) and backlinks (?do=backlink).
+ */
+
+/* toc
+********************************************************************/
+
+/* toc container */
+.dokuwiki div.toc, /* old, until 2012-01-25 */
+#dw__toc /* new */ {
+    float: right;
+    margin: 0 0 1.4em 1.4em;
+    width: 200px; /*12em;*/
+    background-color: __background__;
+    color: inherit;
+}
+[dir=rtl] .dokuwiki div.toc, /* old, until 2012-01-25 */
+[dir=rtl] #dw__toc /* new */ {
+    float: left;
+    margin: 0 1.4em 1.4em 0;
+}
+
+/*____________ toc header ____________*/
+
+.dokuwiki div.tocheader, /* old */
+#dw__toc h3 /* new */ {
+    padding: .2em .5em;
+    font-weight: bold;
+    margin-bottom: 0;
+    font-size: 1em;
+    text-indent: initial;
+}
+
+/* More specific than overriding h3 style - jmt12 */
+div#content .dokuwiki div#dw__toc h3 {
+    background-color: __background_alt__;
+    border: 1px solid #8CACBB;
+    font-size: 80%;
+}
+
+.dokuwiki .toc span.toc_open, /* old */
+.dokuwiki .toc span.toc_close, /* old */
+#dw__toc h3 strong /* new */ {
+    float: right;
+    margin: 0 .2em;
+    line-height: 1;
+}
+[dir=rtl] .dokuwiki .toc span.toc_open, /* old */
+[dir=rtl] .dokuwiki .toc span.toc_close, /* old */
+[dir=rtl] #dw__toc h3 strong /* new */ {
+    float: left;
+}
+
+/*____________ toc list ____________*/
+
+.dokuwiki #toc__inside,
+#dw__toc > div {
+    padding: 0px; /*.2em .5em;*/
+    border:1px solid #8CACBB;
+}
+.dokuwiki #toc__inside ul, /* old */
+#dw__toc ul /* new */ {
+    padding: 0;
+    margin: 0;
+}
+.dokuwiki #toc__inside ul li, /* old */
+#dw__toc ul li /* new */ {
+    list-style: none;
+    padding: 0;
+    margin: 0;
+    line-height: 1.1;
+}
+.dokuwiki #toc__inside ul li div.li, /* old */
+#dw__toc ul li div.li /* new */ {
+    padding: .15em 0;
+    font-size: 80%;
+}
+.dokuwiki #toc__inside ul ul, /* old */
+#dw__toc ul ul /* new */ {
+    padding-left: 1em;
+}
+[dir=rtl] .dokuwiki #toc__inside ul ul, /* old */
+[dir=rtl] #dw__toc ul ul /* new */ {
+    padding-left: 0;
+    padding-right: 1em;
+}
+.dokuwiki #toc__inside ul ul li, /* old */
+#dw__toc ul ul li /* new */ {
+}
+.dokuwiki #toc__inside ul li a, /* old */
+#dw__toc ul li a /* new */ {
+}
+
+/* in case of toc list jumping one level
+  (e.g. if heading level 3 follows directly after heading level 1) */
+.dokuwiki #toc__inside ul li.clear, /* old */
+#dw__toc ul li.clear /* new */ {
+}
+
+
+/* sitemap (and backlinks)
+********************************************************************/
+
+.dokuwiki ul.idx {
+    padding-left: 0;
+}
+[dir=rtl] .dokuwiki ul.idx {
+    padding-right: 0;
+}
+.dokuwiki ul.idx li {
+    list-style-image: url(static/3rd/dokuwiki/bullet.png);
+    /*
+    @deprecated, change since Adora Belle:
+    list-style-image: url(../../images/bullet.png);
+    */
+}
+.dokuwiki ul.idx li.open {
+    list-style-image: url(static/3rd/dokuwiki/open.png);
+    /*
+    @deprecated, change since Adora Belle:
+    list-style-image: url(../../images/open.png);
+    */
+}
+.dokuwiki ul.idx li.closed {
+    list-style-image: url(static/3rd/dokuwiki/closed.png);
+    /*
+    @deprecated, change since Adora Belle:
+    list-style-image: url(../../images/closed.png);
+    */
+}
+[dir=rtl] .dokuwiki ul.idx li.closed {
+    list-style-image: url(static/3rd/dokuwiki/closed-rtl.png);
+    /*
+    @deprecated, change since Adora Belle:
+    list-style-image: url(../../images/closed-rtl.png);
+    */
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_toc.css.original
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_toc.css.original	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/_toc.css.original	(revision 30132)
@@ -0,0 +1,96 @@
+/* ATTENTION: This file was edited for the "monobook template for DokuWiki".
+   - All url(images/[...]) rules where changed.
+   See 00_starter-tmpl-notes.txt for details. */
+
+
+/**
+ * This file provides styles for the TOC (table of contents), the
+ * sitemap (?do=index) and backlinks (?do=backlink).
+ */
+
+/* toc
+********************************************************************/
+
+/* toc container */
+.dokuwiki div.toc {
+    float: right;
+    margin: 0 0 1.4em 1.4em;
+    width: 12em;
+}
+
+/*____________ toc header ____________*/
+
+.dokuwiki div.tocheader {
+    padding: .2em .5em;
+    margin-bottom: .2em;
+    font-weight: bold;
+    background-color: __background_alt__;
+    color: __text__;
+}
+
+/* css arrow */
+.dokuwiki .toc span.toc_open,
+.dokuwiki .toc span.toc_close {
+    border: .4em solid __background_alt__;
+    float: right;
+    display: block;
+    margin: 0 .2em 0 0;
+}
+.dokuwiki .toc span.toc_open span,
+.dokuwiki .toc span.toc_close span {
+    display: none;
+}
+.dokuwiki .toc span.toc_open {
+    margin-top: .4em;
+    border-top: .4em solid __text__;
+}
+.dokuwiki .toc span.toc_close {
+    margin-top: 0;
+    border-bottom: .4em solid __text__;
+}
+
+/*____________ toc list ____________*/
+
+.dokuwiki #toc__inside {
+    padding: .2em .5em;
+    background-color: __background_alt__;
+    color: __text__;
+}
+.dokuwiki #toc__inside ul {
+    padding: 0;
+    margin: 0;
+}
+.dokuwiki #toc__inside ul li {
+    list-style: none;
+    padding: 0;
+    margin: 0;
+}
+.dokuwiki #toc__inside ul ul {
+    padding-left: 1em;
+}
+.dokuwiki #toc__inside ul ul li {
+}
+.dokuwiki #toc__inside ul li a {
+}
+
+/* in case of toc list jumping one level
+  (e.g. if heading level 3 follows directly after heading level 1) */
+.dokuwiki #toc__inside ul li.clear {
+}
+
+
+/* sitemap (and backlinkss)
+********************************************************************/
+
+.dokuwiki ul.idx {
+    padding-left: 0;
+}
+.dokuwiki ul.idx li {
+    list-style-image: url(static/3rd/dokuwiki/bullet.png);
+}
+.dokuwiki ul.idx li.open {
+    list-style-image: url(static/3rd/dokuwiki/open.png);
+}
+.dokuwiki ul.idx li.closed {
+    list-style-image: url(static/3rd/dokuwiki/closed.png);
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/logo.png-readme.txt
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/logo.png-readme.txt	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/logo.png-readme.txt	(revision 30132)
@@ -0,0 +1,6 @@
+en: To use an own logo, DO NOT replace the logo.png in here. Simply store your
+logo.[png|gif|jpg] into "/monobook/user/". See README for details.
+
+de: Um ein eigenes Logo zu nutzen bitte NICHT die logo.png in diesem Verzeichnis
+ersetzen, sondern einfach eine logo.[png|gif|jpg] unterhalb "/monobook/user/"
+abspeichern. Siehe README fÃŒr weiter Details.
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/print.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/print.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/print.css	(revision 30132)
@@ -0,0 +1,123 @@
+/**
+ * This file provides the styles for printing.
+ *
+ * @todo: improve and finish
+ */
+
+body {
+    /*
+    font: normal 12pt/1.2 serif;
+    color: #000;
+    background-color: #fff;
+    */
+}
+
+/* hide certain sections */
+.a11y,
+div.notify, div.info, div.success, div.error,
+#dokuwiki__header .tools, #dokuwiki__aside,
+.dokuwiki .breadcrumbs, .dokuwiki .toc, .dokuwiki .secedit,
+#dokuwiki__pagetools, #dokuwiki__footer {
+    display: none;
+}
+
+.dokuwiki h1, .dokuwiki h2, .dokuwiki h3, .dokuwiki h4, .dokuwiki h5,
+.dokuwiki caption, .dokuwiki legend {
+    clear: both;
+}
+.dokuwiki ul             { list-style: disc outside; }
+.dokuwiki ol             { list-style: decimal outside; }
+.dokuwiki ol ol          { list-style-type: lower-alpha; }
+.dokuwiki ol ol ol       { list-style-type: upper-roman; }
+.dokuwiki ol ol ol ol    { list-style-type: upper-alpha; }
+.dokuwiki ol ol ol ol ol { list-style-type: lower-roman; }
+
+/* undo icons */
+.dokuwiki a:link, .dokuwiki a:visited {
+    text-decoration: underline;
+    color: #333;
+    background-color: inherit;
+    background-image: none;
+    padding: 0;
+}
+
+/* display href after link */
+a.urlextern:after,
+a.interwiki:after,
+a.mail:after {
+   content: " [" attr(href) "]";
+   font-size: 90%;
+}
+
+/* code blocks */
+.dokuwiki pre {
+    font-family: monospace;
+}
+.dokuwiki dl.code dt, .dokuwiki dl.file dt {
+    font-weight: bold;
+}
+
+/* images */
+.dokuwiki img             { border-width: 0; vertical-align: middle; }
+.dokuwiki img.medialeft   { margin: .5em 1.5em .5em 0; float: left; }
+.dokuwiki img.mediaright  { margin: .5em 0 .5em 1.5em; float: right; }
+.dokuwiki img.mediacenter { margin: .5em auto; display: block; }
+
+/* align table cells */
+.dokuwiki .leftalign   { text-align: left; }
+.dokuwiki .centeralign { text-align: center; }
+.dokuwiki .rightalign  { text-align: right; }
+
+/* underline */
+.dokuwiki em.u { font-style: normal; text-decoration: underline; }
+.dokuwiki em em.u { font-style: italic; }
+
+div.clearer {
+    clear: both;
+    line-height: 0;
+    height: 0;
+    overflow: hidden;
+}
+
+.dokuwiki blockquote {
+    padding: 0 10pt;
+    margin: 0;
+    border: solid #ccc;
+    border-width: 0 0 0 2pt;
+}
+
+/* tables */
+.dokuwiki table {
+    border-collapse: collapse;
+    empty-cells: show;
+    border-spacing: 0;
+    border: 1pt solid #ccc;
+}
+.dokuwiki th, .dokuwiki td {
+    padding: 3pt 5pt;
+    margin: 0;
+    vertical-align: top;
+    border: 1pt solid #666;
+    text-align: left;
+}
+.dokuwiki th {
+    font-weight: bold;
+}
+
+
+/*____________ a bit of layout ____________*/
+
+#dokuwiki__header {
+    border-bottom: 2pt solid #ccc;
+}
+#dokuwiki__header h1 {
+    font-size: 1.5em;
+}
+#dokuwiki__header h1 a {
+    text-decoration: none;
+}
+.dokuwiki div.footnotes {
+    clear: both;
+    border-top: 1pt solid #000;
+    margin-top: 10pt;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/rtl.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/rtl.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/dokuwiki/rtl.css	(revision 30132)
@@ -0,0 +1,309 @@
+/**
+ * This file provides layout and design corrections for right-to-left
+ * languages.
+ *
+ * @author Anika Henke <anika@selfthinker.org>
+ */
+
+/*____________ basic ____________*/
+
+caption,
+td,
+th {
+    text-align: right;
+}
+
+ul, ol {
+    padding: 0 1.5em 0 0;
+}
+li, dd {
+    margin: 0 1.5em 0 0;
+}
+blockquote {
+    border-width: 0 .25em 0 0;
+}
+
+h1, h2, h3, h4, h5, h6,
+caption, legend {
+    clear: right;
+}
+
+.a11y {
+    left: auto;
+    right: -9000px;
+}
+
+/*____________ structure ____________*/
+
+#dokuwiki__header .headings {
+    float: right;
+}
+#dokuwiki__header .tools {
+    float: left;
+    text-align: left;
+}
+
+.mode_show #dokuwiki__aside {
+    float: right;
+}
+#dokuwiki__aside .pad {
+    margin: 0 0 0 1.5em;
+}
+
+.mode_show #dokuwiki__content {
+    float: left;
+    margin-left: 0;
+    margin-right: -__sidebar_width__;
+}
+.mode_show #dokuwiki__content .pad {
+    margin-left: 0;
+    margin-right: __sidebar_width__;
+}
+
+/*____________ design ____________*/
+
+#dokuwiki__header form.search #qsearch__in {
+    margin-right: 0;
+    margin-left: .5em;
+}
+
+#dokuwiki__usertools ul li.user {
+    float: right;
+    margin-right: 0;
+}
+#dokuwiki__pagetools ul li a.action.top {
+    float: left;
+}
+
+#dokuwiki__aside ul, #dokuwiki__aside ol {
+    padding-right: 0;
+}
+
+/*____________ content ____________*/
+
+/* section indenting
+.dokuwiki .page h1 {margin-left: 0; margin-right: 0;}
+.dokuwiki .page h2 {margin-left: 0; margin-right: .666em;}
+.dokuwiki .page h3 {margin-left: 0; margin-right: 1.776em;}
+.dokuwiki .page h4 {margin-left: 0; margin-right: 3em;}
+.dokuwiki .page h5 {margin-left: 0; margin-right: 4.5712em;}
+.dokuwiki .page div.level1 {margin-left: 0; margin-right: 0;}
+.dokuwiki .page div.level2 {margin-left: 0; margin-right: 1em;}
+.dokuwiki .page div.level3 {margin-left: 0; margin-right: 2em;}
+.dokuwiki .page div.level4 {margin-left: 0; margin-right: 3em;}
+.dokuwiki .page div.level5 {margin-left: 0; margin-right: 4em;}
+*/
+
+.dokuwiki dl.code dt,
+.dokuwiki dl.file dt {
+    margin-left: 0;
+    margin-right: 1em;
+}
+
+.JSpopup ul,
+.JSpopup ol {
+    padding-right: 0;
+}
+
+
+/*____________ _imgdetail ____________*/
+
+#dokuwiki__detail div.content img {
+    float: right;
+    margin-right: 0;
+    margin-left: 1.5em;
+}
+#dokuwiki__detail div.content div.img_detail {
+    float: right
+}
+
+
+/*____________ _mediamanager ____________*/
+
+#mediamgr__aside {
+    left: auto;
+    right: 0;
+    border-right-width: 0;
+    border-left: 1px solid __border__;
+}
+#mediamgr__content {
+    right: auto;
+    left: 0;
+}
+
+#media__opts input {
+    margin-right: 0;
+    margin-left: .3em;
+}
+
+#media__tree ul {
+    padding-left: 0;
+    padding-right: .2em;
+}
+#media__tree ul li {
+    clear: right;
+    margin-right: 0;
+}
+#media__tree ul li img {
+    float: right;
+    padding: .5em 0 0 .3em;
+}
+#media__tree ul li li {
+    margin-left: 0;
+    margin-right: 1.5em;
+}
+
+#media__content a.mediafile {
+    margin-right: 0;
+    margin-left: 1.5em;
+}
+#media__content div.detail div.thumb {
+    float: right;
+    margin: 0 18px 0 .5em;
+}
+#media__content form.meta div.metafield {
+    clear: right;
+}
+#media__content form.meta label {
+    float: right;
+    clear: right;
+}
+#media__content form.meta .edit {
+    float: right;
+}
+#media__content form.meta div.buttons {
+    clear: right;
+    margin: .2em 25% 0 0;
+}
+
+
+/*____________ _links ____________*/
+
+/* if link icons don't work as expected, remove the following lines */
+.dokuwiki a.urlextern,
+.dokuwiki a.windows,
+.dokuwiki a.mail,
+.dokuwiki a.interwiki,
+.dokuwiki a.mediafile {
+    background-position: right center;
+    padding: 0 17px 0 0;
+}
+
+
+/*____________ _toc ____________*/
+
+.dokuwiki div.toc {
+    float: left;
+    margin: 0 1.4em 1.4em 0;
+}
+.dokuwiki .toc span.toc_open,
+.dokuwiki .toc span.toc_close {
+    float: left;
+    margin: 0 0 0 .2em;
+}
+.dokuwiki #toc__inside ul ul {
+    padding-left: 0;
+    padding-right: 1em;
+}
+.dokuwiki ul.idx {
+    padding-right: 0;
+}
+
+
+/*____________ _footnotes ____________*/
+
+
+/*____________ _search ____________*/
+
+.dokuwiki div.search_quickresult ul li {
+    float: right;
+}
+.dokuwiki form.search div.ajax_qsearch {
+    left: auto;
+    right: -13.5em;
+    text-align: right;
+}
+
+
+/*____________ _recent ____________*/
+
+.dokuwiki #dw__recent ul li,
+.dokuwiki #page__revisions ul li {
+    margin-right: 0;
+}
+
+
+/*____________ _diff ____________*/
+
+
+/*____________ _edit ____________*/
+
+.dokuwiki div.toolbar #draft__status {
+    float: left;
+}
+.dokuwiki #wiki__editbar #size__ctl {
+    float: left;
+}
+.dokuwiki #wiki__editbar #size__ctl img {
+    cursor: pointer;
+}
+.dokuwiki #wiki__editbar .editButtons {
+    margin-right: 0;
+    margin-left: 1em;
+}
+
+.dokuwiki .secedit {
+    float: left;
+}
+
+
+/*____________ _modal ____________*/
+
+#link__wiz_close {
+    float: left;
+}
+#link__wiz_result {
+    text-align: right;
+}
+#link__wiz_result div.type_u,
+#link__wiz_result div.type_f,
+#link__wiz_result div.type_d {
+    padding: 3px 22px 3px 3px;
+    background-position: 257px 3px;
+}
+
+
+/*____________ _forms ____________*/
+
+.dokuwiki label.block {
+    text-align: left;
+}
+.dokuwiki label.simple {
+    text-align: right;
+}
+
+form#subscribe__form fieldset {
+    text-align: right;
+}
+
+
+/*____________ _admin ____________*/
+
+.dokuwiki ul.admin_tasks {
+    float: right;
+}
+.dokuwiki ul.admin_tasks li {
+    padding-left: 0;
+    padding-right: 35px;
+    background-position: right 0;
+}
+
+.dokuwiki #admin__version {
+    clear: right;
+    float: left;
+}
+
+
+/*____________ includes ____________*/
+
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IE50Fixes.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IE50Fixes.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IE50Fixes.css	(revision 30132)
@@ -0,0 +1,67 @@
+/*
+** IE5.0 Fix Stylesheet
+*/
+
+#column-content {
+	margin: 0 !important;
+	float: none;
+}
+#column-content #content { 
+	margin-top: 3em; 
+	height: 1%;
+}
+#column-one {
+	position: absolute;
+	overflow: visible;
+	top: 0;
+	left: 0;
+	z-index: 3;
+}
+#footer {
+	margin: 0 0 0 13.6em;
+}
+
+/* IE 5 & 5.5 interpret keyword sizes one off */
+body { font-size: xx-small; }
+/*
+** the edit tabs
+*/
+#p-cactions li {
+	float: left;
+	padding-top: 0;
+	padding-bottom: 0 !important;
+	height: 0.9em;
+}
+#p-cactions li a {
+	display: block;
+	padding-bottom: 0.045em;
+}
+#p-cactions li.selected a {
+	padding-bottom: 0.17em;
+}
+#p-cactions li a:hover {
+	padding-bottom: 0.17em;
+}
+/* 5.0 doesn't like the background icon for external links and user */
+.link-external,
+.external {
+	background: none;
+	padding: 0;
+}
+#p-personal ul { float: right }
+#p-personal li { float: left }
+li#pt-userpage,
+li#pt-anonuserpage,
+li#pt-login,
+li#pt-logout {
+	background: none;
+	padding-left: none;
+}
+.visualClear {
+	width: 100%;
+	height: 0px;
+	padding:0;
+	margin: 0;
+}
+.firstHeading { margin-bottom: .3em; }
+/*div{ border:1px solid Red !important;}*/
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IE55Fixes.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IE55Fixes.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IE55Fixes.css	(revision 30132)
@@ -0,0 +1,85 @@
+/* IE5.5/win- only fixes */
+
+#column-content { 
+	float: none; 
+	margin-left: 0;
+	height: 1%;
+}
+#column-content #content {
+	position: relative;
+	z-index: 5;
+	margin-left: 12.2em;
+	margin-top: 3em;
+	height: 1%;
+}
+#column-one {
+	position: absolute;
+	top: 0;
+	left: 0;
+	z-index: 4;
+	width: 100%;
+}
+#footer {
+	margin-left: 13.6em;
+	border-left: 1px solid #fabd23;
+}
+
+/*#bodyContent div,
+#bodyContent pre { overflow: auto; }*/
+
+#p-personal { padding-bottom: .1em; }
+
+body { font-size: xx-small; }
+
+#p-cactions {
+	width: 76% !important;
+	z-index: 3 !important;
+	float: none;
+}
+#p-cactions li {
+	padding-bottom: 0 !important;
+	border: none;
+	background-color: transparent;
+	cursor: default;
+	float: none !important;
+}
+#p-cactions li a {
+	display: inline-block !important;
+	vertical-align: top;
+	padding-bottom: 0;
+	border: solid #aaa;
+	border-width: 1px 1px 0;
+}
+#p-cactions li.selected a {
+	border-color: #fabd23;
+	padding-bottom: 0.17em;
+}
+#p-cactions li a:hover {
+	padding-bottom: 0.17em;
+}
+#p-navigation a {
+	display: inline-block;
+	width: 100%;
+}
+.portlet {
+	overflow: hidden;
+}
+#bodyContent a.external {
+	background: url(external.png) center right no-repeat;
+	padding-right: 13px;
+}
+/* show the hand */
+#p-logo a,
+#p-logo a:hover {
+	cursor: pointer;
+}
+.visualClear {
+	width: 90%;
+	height: 1px;
+	padding: 0;
+	margin: 0;
+}
+
+#editform {
+	width: 100%;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IE60Fixes.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IE60Fixes.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IE60Fixes.css	(revision 30132)
@@ -0,0 +1,89 @@
+/* ATTENTION: This file was edited for the "monobook template for DokuWiki".
+              - "#catlinks" was replaced with ".catlinks"
+              See README for details. */
+
+
+/* 6.0 - only fixes */
+/* content area */
+/* workaround for various ie float bugs */
+#column-content {
+	float: none;
+	margin-left: 0;
+	height: 1%;
+}
+#column-content #content {
+	margin-left: 12.2em;
+	margin-top: 3em;
+	height: 1%;
+}
+#column-one {
+	position: absolute;
+	top: 0;
+	left: 0;
+	z-index: 4;
+}
+#footer {
+	margin-left: 13.6em;
+	border-left: 1px solid #fabd23;
+}
+
+/* the tabs */
+
+#p-cactions {
+	z-index: 3;
+}
+
+#p-cactions li {
+	padding-bottom: 0 !important;
+	border: none;
+	background-color: transparent;
+	cursor: default;
+	float: none !important;
+}
+#p-cactions li a {
+	display: inline-block !important;
+	vertical-align: top;
+	padding-bottom: 0;
+	border: solid #aaa;
+	border-width: 1px 1px 0;
+}
+#p-cactions li.selected a {
+	border-color: #fabd23;
+	padding-bottom: 0.17em;
+}
+#p-cactions li a:hover {
+	padding-bottom: 0.17em;
+}
+#p-navigation a {
+	display: inline-block;
+	width: 100%;
+}
+#portal-personaltools {
+	padding-bottom: 0.1em;
+}
+#bodyContent a.external {
+	background: url(external.png) center right no-repeat;
+	padding-right: 13px;
+}
+
+/* show the hand */
+#p-logo a,
+#p-logo a:hover {
+	cursor: pointer;
+}
+div.visualClear {
+	width:100%;
+	line-height: 0;
+}
+textarea {
+	width: 96%;
+}
+
+div.editsection,
+.catlinks,
+div.tright,
+div.tleft {
+	position: relative;
+}
+/*{ border:1px solid Red !important;}*/
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IE70Fixes.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IE70Fixes.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IE70Fixes.css	(revision 30132)
@@ -0,0 +1,75 @@
+/* 7.0 - only fixes */
+/* content area */ 
+/* workaround for various ie float bugs */
+
+/* This bit is needed to make links clickable... WTF */
+#column-content #content {
+	margin-left: 12.2em;
+	margin-top: 3em;
+	height: 1%;
+}
+
+.rtl #column-one {
+	/* For some reason it tries to inherit the padding-top into every div,
+	 * and I can't figure out how to get it back off.
+	 */
+	padding-top: 0;
+}
+.rtl #column-one #p-navigation {
+	margin-top: 160px;
+}
+
+/* the tabs */
+
+#p-cactions {
+	z-index: 3;
+}
+
+
+#p-cactions li {
+	padding-bottom: 0 !important;
+	border: none;
+	background-color: transparent;
+	cursor: default;
+	float: none !important;
+}
+
+#p-cactions li a {
+	display: inline-block !important;
+	vertical-align: top;
+	padding-bottom: 0;
+	border: solid #aaa;
+	border-width: 1px 1px 0;
+}
+#p-cactions li.selected a {
+	border-color: #fabd23;
+	padding-bottom: 0.17em;
+}
+#p-cactions li a:hover {
+	padding-bottom: 0.17em;
+}
+#p-navigation a {
+	display: inline-block;
+	width: 100%;
+}
+#portal-personaltools {
+	padding-bottom: 0.1em;
+}
+textarea {
+	width: 96%;
+}
+
+/*
+div.editsection,
+#catlinks,
+div.tright,
+div.tleft {
+	position: relative;
+}
+*/
+
+
+#footer li {
+	/* Work around bug with inline <li> tags with right margins and nowrap */
+	margin-right: 0;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IEMacFixes.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IEMacFixes.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/IEMacFixes.css	(revision 30132)
@@ -0,0 +1,44 @@
+/* IE/Mac only fix stylesheet, imported from main.css */
+#portal-column-content {
+	margin: 0 0 4.8em 0;
+	float: none;
+}
+#portal-column-content #content {
+	z-index: 0;
+}
+#portal-column-one {
+	position: absolute;
+	top: 0;
+	left: 0;
+	z-index: 3;
+}
+#portal-footer {
+	margin-left: 12em; 
+}
+/*
+#portlet-contentViews {
+	top: 0.6em !important;
+	left: 14.5em !important;
+}
+*/
+#portlet-contentViews li,
+#portlet-contentViews .selected {
+	border: none !important;
+}
+#portlet-contentViews li a   {
+	border: 1px solid #aaaaaa;
+	border-bottom: none;
+}
+#portlet-contentViews li.selected a {
+	border: 1px solid #fabd23;
+	border-bottom: none;
+}
+/* no background images */
+li#personaltools-userpage,
+li#personaltools-login/* */ {
+	background: none;
+	padding-left: none;
+}
+#mactest {
+	color: green;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/main.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/main.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/main.css	(revision 30132)
@@ -0,0 +1,1464 @@
+/* ATTENTION: This file was edited for the "monobook template for DokuWiki".
+              - All url() rules where changed.
+              - "#catlinks" was replaced with ".catlinks"
+              See README for details. */
+
+
+/*
+** MediaWiki 'monobook' style sheet for CSS2-capable browsers.
+** Copyright Gabriel Wicke - http://wikidev.net/
+** License: GPL (http://www.gnu.org/copyleft/gpl.html)
+**
+** Loosely based on http://www.positioniseverything.net/ordered-floats.html by Big John
+** and the Plone 2.0 styles, see http://plone.org/ (Alexander Limi,Joe Geldart & Tom Croucher,
+** Michael Zeltner and Geir BÃŠkholt)
+** All you guys rock :)
+*/
+
+#column-content {
+	width: 100%;
+	float: right;
+	margin: 0 0 .6em -12.2em;
+	padding: 0;
+}
+#content {
+	margin: 2.8em 0 0 12.2em;
+	padding: 0 1em 1.5em 1em;
+	background: white;
+	color: black;
+	border: 1px solid #aaa;
+	/*border-right: none;*/
+	line-height: 1.5em;
+	position: relative;
+	z-index: 2;
+}
+#column-one {
+	padding-top: 160px;
+}
+/* the left column width is specified in class .portlet */
+
+/* Font size:
+** We take advantage of keyword scaling- browsers won't go below 9px
+** More at http://www.w3.org/2003/07/30-font-size
+** http://style.cleverchimp.com/font_size_intervals/altintervals.html
+*/
+
+body {
+	font: x-small sans-serif;
+	background: #f9f9f9 url(static/3rd/monobook/headbg.jpg) 0 0 no-repeat;
+	color: black;
+	margin: 0;
+	padding: 0;
+}
+
+/* scale back up to a sane default */
+#globalWrapper {
+	font-size: 127%;
+	width: 1024px;
+	margin: 0 auto;
+	padding: 0;
+}
+.visualClear {
+	clear: both;
+}
+
+/* general styles */
+
+table {
+	background: white;
+	font-size: 100%;
+	color: black;
+}
+a {
+	text-decoration: none;
+	color: #002bb8;
+	background: none no-repeat;
+}
+a:visited {
+	color: #5a3696;
+}
+a:active {
+	color: #faa700;
+}
+a:hover {
+	text-decoration: underline;
+}
+a.stub {
+	color: #772233;
+}
+a.new, #p-personal a.new {
+	color: #ba0000;
+}
+a.new:visited, #p-personal a.new:visited {
+	color: #a55858;
+}
+
+img {
+	border: none;
+	vertical-align: middle;
+}
+p {
+	margin: .4em 0 .5em 0;
+	line-height: 1.5em;
+}
+p img {
+	margin: 0;
+}
+
+hr {
+	height: 1px;
+	color: #aaa;
+	background-color: #aaa;
+	border: 0;
+	margin: .2em 0 .2em 0;
+}
+
+h1, h2, h3, h4, h5, h6 {
+	color: black;
+	background: none;
+	font-weight: normal;
+	margin: 0;
+	padding-top: .5em;
+	padding-bottom: .17em;
+	border-bottom: 1px solid #aaa;
+}
+h1 { font-size: 188%; }
+h2 { font-size: 150%; }
+h3, h4, h5, h6 {
+	border-bottom: none;
+	font-weight: bold;
+}
+h3 { font-size: 132%; }
+h4 { font-size: 116%; }
+h5 { font-size: 100%; }
+h6 { font-size: 80%;  }
+
+ul {
+	line-height: 1.5em;
+	list-style-type: square;
+	margin: .3em 0 0 1.5em;
+	padding: 0;
+	list-style-image: url(static/3rd/monobook/bullet.gif);
+}
+ol {
+	line-height: 1.5em;
+	margin: .3em 0 0 3.2em;
+	padding: 0;
+	list-style-image: none;
+}
+li {
+	margin-bottom: .1em;
+}
+dt {
+	font-weight: bold;
+	margin-bottom: .1em;
+}
+dl {
+	margin-top: .2em;
+	margin-bottom: .5em;
+}
+dd {
+	line-height: 1.5em;
+	margin-left: 2em;
+	margin-bottom: .1em;
+}
+
+fieldset {
+	border: 1px solid #2f6fab;
+	margin: 1em 0 1em 0;
+	padding: 0 1em 1em;
+	line-height: 1.5em;
+}
+legend {
+	background: white;
+	padding: .5em;
+	font-size: 95%;
+}
+form {
+	border: none;
+	margin: 0;
+}
+
+textarea {
+	width: 100%;
+	padding: .1em;
+}
+
+input.historysubmit {
+	padding: 0 .3em .3em .3em !important;
+	font-size: 94%;
+	cursor: pointer;
+	height: 1.7em !important;
+	margin-left: 1.6em;
+}
+select {
+	vertical-align: top;
+}
+abbr, acronym, .explain {
+	border-bottom: 1px dotted black;
+	color: black;
+	background: none;
+	cursor: help;
+}
+q {
+	font-family: Times, "Times New Roman", serif;
+	font-style: italic;
+}
+/* disabled for now
+blockquote {
+	font-family: Times, "Times New Roman", serif;
+	font-style: italic;
+}*/
+code {
+	background-color: #f9f9f9;
+}
+pre {
+	padding: 1em;
+	border: 1px dashed #2f6fab;
+	color: black;
+	background-color: #f9f9f9;
+	line-height: 1.1em;
+}
+
+/*
+** the main content area
+*/
+
+#siteSub {
+	display: none;
+}
+
+#jump-to-nav {
+	display: none;
+}
+
+#contentSub, #contentSub2 {
+	font-size: 84%;
+	line-height: 1.2em;
+	margin: 0 0 1.4em 1em;
+	color: #7d7d7d;
+	width: auto;
+}
+span.subpages {
+	display: block;
+}
+
+/* Some space under the headers in the content area */
+#bodyContent h1, #bodyContent h2 {
+	margin-bottom: .6em;
+}
+#bodyContent h3, #bodyContent h4, #bodyContent h5 {
+	margin-bottom: .3em;
+}
+.firstHeading {
+	margin-bottom: .1em;
+}
+
+/* user notification thing */
+.usermessage {
+	background-color: #ffce7b;
+	border: 1px solid #ffa500;
+	color: black;
+	font-weight: bold;
+	margin: 2em 0 1em;
+	padding: .5em 1em;
+	vertical-align: middle;
+}
+#siteNotice {
+	text-align: center;
+	font-size: 95%;
+	padding: 0 .9em;
+}
+#siteNotice p {
+	margin: 0;
+	padding: 0;
+}
+.error {
+	color: red;
+	font-size: larger;
+}
+.errorbox, .successbox {
+	font-size: larger;
+	border: 2px solid;
+	padding: .5em 1em;
+	float: left;
+	margin-bottom: 2em;
+	color: #000;
+}
+.errorbox {
+	border-color: red;
+	background-color: #fff2f2;
+}
+.successbox {
+	border-color: green;
+	background-color: #dfd;
+}
+.errorbox h2, .successbox h2 {
+	font-size: 1em;
+	font-weight: bold;
+	display: inline;
+	margin: 0 .5em 0 0;
+	border: none;
+}
+
+.catlinks {
+	border: 1px solid #aaa;
+	background-color: #f9f9f9;
+	padding: 5px;
+	margin-top: 1em;
+	clear: both;
+}
+/* currently unused, intended to be used by a metadata box
+in the bottom-right corner of the content area */
+.documentDescription {
+	/* The summary text describing the document */
+	font-weight: bold;
+	display: block;
+	margin: 1em 0;
+	line-height: 1.5em;
+}
+.documentByLine {
+	text-align: right;
+	font-size: 90%;
+	clear: both;
+	font-weight: normal;
+	color: #76797c;
+}
+
+/* emulate center */
+.center {
+	width: 100%;
+	text-align: center;
+}
+*.center * {
+	margin-left: auto;
+	margin-right: auto;
+}
+/* small for tables and similar */
+.small, .small * {
+	font-size: 94%;
+}
+table.small {
+	font-size: 100%;
+}
+
+/*
+** content styles
+*/
+
+/*
+#toc,
+.toc,
+.mw-warning {
+	border: 1px solid #aaa;
+	background-color: #f9f9f9;
+	padding: 5px;
+	font-size: 95%;
+}
+#toc h2,
+.toc h2 {
+	display: inline;
+	border: none;
+	padding: 0;
+	font-size: 100%;
+	font-weight: bold;
+}
+#toc #toctitle,
+.toc #toctitle,
+#toc .toctitle,
+.toc .toctitle {
+	text-align: center;
+}
+#toc ul,
+.toc ul {
+	list-style-type: none;
+	list-style-image: none;
+	margin-left: 0;
+	padding-left: 0;
+	text-align: left;
+}
+#toc ul ul,
+.toc ul ul {
+	margin: 0 0 0 2em;
+}
+#toc .toctoggle,
+.toc .toctoggle {
+	font-size: 94%;
+}
+*/
+
+.mw-warning {
+	margin-left: 50px;
+	margin-right: 50px;
+	text-align: center;
+}
+
+/* images */
+div.floatright, table.floatright {
+	clear: right;
+	float: right;
+	position: relative;
+	margin: 0 0 .5em .5em;
+	border: 0;
+/*
+	border: .5em solid white;
+	border-width: .5em 0 .8em 1.4em;
+*/
+}
+div.floatright p { font-style: italic; }
+div.floatleft, table.floatleft {
+	float: left;
+	position: relative;
+	margin: 0 .5em .5em 0;
+	border: 0;
+/*
+	margin: .3em .5em .5em 0;
+	border: .5em solid white;
+	border-width: .5em 1.4em .8em 0;
+*/
+}
+div.floatleft p { font-style: italic; }
+/* thumbnails */
+div.thumb {
+	margin-bottom: .5em;
+	border-style: solid;
+	border-color: white;
+	width: auto;
+}
+div.thumb div {
+	border: 1px solid #ccc;
+	padding: 3px !important;
+	background-color: #f9f9f9;
+	font-size: 94%;
+	text-align: center;
+	overflow: hidden;
+}
+div.thumb div a img {
+	border: 1px solid #ccc;
+}
+div.thumb div div.thumbcaption {
+	border: none;
+	text-align: left;
+	line-height: 1.4em;
+	padding: .3em 0 .1em 0;
+}
+div.magnify {
+	float: right;
+	border: none !important;
+	background: none !important;
+}
+div.magnify a, div.magnify img {
+	display: block;
+	border: none !important;
+	background: none !important;
+}
+div.tright {
+	clear: right;
+	float: right;
+	border-width: .5em 0 .8em 1.4em;
+}
+div.tleft {
+	float: left;
+	margin-right: .5em;
+	border-width: .5em 1.4em .8em 0;
+}
+
+.hiddenStructure {
+	display: none;
+	speak: none;
+}
+img.tex {
+	vertical-align: middle;
+}
+span.texhtml {
+	font-family: serif;
+}
+
+/*
+** classes for special content elements like town boxes
+** intended to be referenced directly from the wiki src
+*/
+
+/*
+** User styles
+*/
+/* table standards */
+table.rimage {
+	float: right;
+	position: relative;
+	margin-left: 1em;
+	margin-bottom: 1em;
+	text-align: center;
+}
+.toccolours {
+	border: 1px solid #aaa;
+	background-color: #f9f9f9;
+	padding: 5px;
+	font-size: 95%;
+}
+div.townBox {
+	position: relative;
+	float: right;
+	background: white;
+	margin-left: 1em;
+	border: 1px solid gray;
+	padding: .3em;
+	width: 200px;
+	overflow: hidden;
+	clear: right;
+}
+div.townBox dl {
+	padding: 0;
+	margin: 0 0 .3em;
+	font-size: 96%;
+}
+div.townBox dl dt {
+	background: none;
+	margin: .4em 0 0;
+}
+div.townBox dl dd {
+	margin: .1em 0 0 1.1em;
+	background-color: #f3f3f3;
+}
+
+/*
+** edit views etc
+*/
+.special li {
+	line-height: 1.4em;
+	margin: 0;
+	padding: 0;
+}
+
+/* Page history styling */
+/* the auto-generated edit comments */
+.autocomment {
+	color: gray;
+}
+#pagehistory span.user {
+	margin-left: 1.4em;
+	margin-right: .4em;
+}
+#pagehistory span.minor {
+	font-weight: bold;
+}
+#pagehistory li {
+	border: 1px solid white;
+}
+#pagehistory li.selected {
+	background-color: #f9f9f9;
+	border: 1px dashed #aaa;
+}
+
+/*
+** Diff rendering
+*/
+table.diff, td.diff-otitle, td.diff-ntitle {
+	background-color: white;
+}
+td.diff-addedline {
+	background: #cfc;
+	font-size: smaller;
+}
+td.diff-deletedline {
+	background: #ffa;
+	font-size: smaller;
+}
+td.diff-context {
+	background: #eee;
+	font-size: smaller;
+}
+span.diffchange {
+	color: red;
+	font-weight: bold;
+}
+
+/*
+** keep the whitespace in front of the ^=, hides rule from konqueror
+** this is css3, the validator doesn't like it when validating as css2
+*/
+/*
+#bodyContent a.external,
+#bodyContent a[href ^="gopher://"] {
+	background: url(static/3rd/monobook/external.png) center right no-repeat;
+	padding-right: 13px;
+}
+#bodyContent a[href ^="https://"],
+.link-https {
+	background: url(static/3rd/monobook/lock_icon.gif) center right no-repeat;
+	padding-right: 16px;
+}
+#bodyContent a[href ^="mailto:"],
+.link-mailto {
+	background: url(static/3rd/monobook/mail_icon.gif) center right no-repeat;
+	padding-right: 18px;
+}
+#bodyContent a[href ^="news://"] {
+	background: url(static/3rd/monobook/news_icon.png) center right no-repeat;
+	padding-right: 18px;
+}
+#bodyContent a[href ^="ftp://"],
+.link-ftp {
+	background: url(static/3rd/monobook/file_icon.gif) center right no-repeat;
+	padding-right: 18px;
+}
+#bodyContent a[href ^="irc://"],
+.link-irc {
+	background: url(static/3rd/monobook/discussionitem_icon.gif) center right no-repeat;
+	padding-right: 18px;
+}
+*/
+/* disable interwiki styling */
+#bodyContent a.extiw,
+#bodyContent a.extiw:active {
+	color: #36b;
+	background: none;
+	padding: 0;
+}
+#bodyContent a.external {
+	color: #36b;
+}
+
+/* this can be used in the content area to switch off
+special external link styling */
+/*
+#bodyContent .plainlinks a {
+	background: none !important;
+	padding: 0 !important;
+}
+*/
+
+/*
+** Structural Elements
+*/
+
+/*
+** general portlet styles (elements in the quickbar)
+*/
+.portlet {
+	border: none;
+	margin: 0 0 .5em;
+	padding: 0;
+	float: none;
+	width: 11.6em;
+	overflow: hidden;
+}
+.portlet h4 {
+	font-size: 95%;
+	font-weight: normal;
+	white-space: nowrap;
+}
+.portlet h5 {
+	background: transparent;
+	padding: 0 1em 0 .5em;
+	display: inline;
+	height: 1em;
+	text-transform: lowercase;
+	font-size: 91%;
+	font-weight: normal;
+	white-space: nowrap;
+}
+.portlet h6 {
+	background: #ffae2e;
+	border: 1px solid #2f6fab;
+	border-style: solid solid none solid;
+	padding: 0 1em 0 1em;
+	text-transform: lowercase;
+	display: block;
+	font-size: 1em;
+	height: 1.2em;
+	font-weight: normal;
+	white-space: nowrap;
+}
+.pBody {
+	font-size: 95%;
+	background-color: white;
+	color: black;
+	border-collapse: collapse;
+	border: 1px solid #aaa;
+	padding: 0 .8em .3em .5em;
+}
+.portlet h1,
+.portlet h2,
+.portlet h3,
+.portlet h4 {
+	margin: 0;
+	padding: 0;
+}
+.portlet ul {
+	line-height: 1.5em;
+	list-style-type: square;
+	list-style-image: url(static/3rd/monobook/bullet.gif);
+	font-size: 95%;
+}
+.portlet li {
+	padding: 0;
+	margin: 0;
+}
+
+/*
+** Logo properties
+*/
+
+#p-logo {
+	z-index: 3;
+	position: absolute; /*needed to use z-index */
+	top: 0;
+	/*left: 0;*/
+	height: 155px;
+	width: 12em;
+	overflow: visible;
+}
+#p-logo h5 {
+	display: none;
+}
+#p-logo a,
+#p-logo a:hover {
+	display: block;
+	height: 155px;
+	width: 12.2em;
+	background-repeat: no-repeat;
+	background-position: 35% 50% !important;
+	text-decoration: none;
+}
+
+/*
+** the navigation portlet
+*/
+
+#p-navigation {
+	position: relative;
+	z-index: 3;
+}
+
+#p-navigation .pBody {
+	padding-right: 0;
+}
+
+#p-navigation a {
+	display: block;
+}
+
+#p-navigation li.active a, #p-navigation li.active a:hover {
+	text-decoration: none;
+	display: inline;
+	font-weight: bold;
+}
+
+
+/*
+** Search portlet
+*/
+#p-search {
+	position: relative;
+	z-index: 3;
+}
+input.searchButton {
+	margin-top: 1px;
+	font-size: 95%;
+}
+#searchGoButton {
+	padding-left: .5em;
+	padding-right: .5em;
+	font-weight: bold;
+}
+#searchInput {
+	width: 10.9em;
+	margin: 0;
+	font-size: 95%;
+}
+#p-search .pBody {
+	padding: .5em .4em .4em .4em;
+	text-align: center;
+}
+
+/*
+** the personal toolbar
+*/
+
+#p-personal {
+	width: 100%;
+	white-space: nowrap;
+	padding: 0;
+	margin: 0;
+	position: absolute;
+	left: 0;
+	top: 0;
+	z-index: 0;
+	border: none;
+	background: none;
+	overflow: visible;
+	line-height: 1.2em;
+}
+
+#p-personal h5 {
+	display: none;
+}
+#p-personal .portlet,
+#p-personal .pBody {
+	padding: 0;
+	margin: 0;
+	border: none;
+	z-index: 0;
+	overflow: visible;
+	background: none;
+}
+/* this is the ul contained in the portlet */
+#p-personal ul {
+	border: none;
+	line-height: 1.4em;
+	color: #2f6fab;
+	padding: 0 2em 0 3em;
+	margin: 0;
+	text-align: right;
+	text-transform: lowercase;
+	list-style: none;
+	z-index: 0;
+	background: none;
+	cursor: default;
+}
+#p-personal li {
+	z-index: 0;
+	border: none;
+	padding: 0;
+	display: inline;
+	color: #2f6fab;
+	margin-left: 1em;
+	line-height: 1.2em;
+	background: none;
+}
+#p-personal li.active {
+	font-weight: bold;
+}
+#p-personal li a {
+	text-decoration: none;
+	color: #005896;
+	padding-bottom: .2em;
+	background: none;
+}
+#p-personal li a:hover {
+	background-color: white;
+	padding-bottom: .2em;
+	text-decoration: none;
+}
+#p-personal li.active a:hover {
+	background-color: transparent;
+}
+/* the icon in front of the user name, single quotes
+in bg url to hide it from iemac */
+li#pt-userpage,
+li#pt-anonuserpage,
+li#pt-login {
+	background: url(static/3rd/monobook/user.gif) top left no-repeat;
+	padding-left: 20px;
+	text-transform: none;
+}
+
+/*
+** the page-related actions- page/talk, edit etc
+*/
+#p-cactions {
+	position: absolute;
+	top: 1.3em;
+	/*left: 11.5em;*/
+	margin: 0;
+	white-space: nowrap;
+	width: 1024px;
+	line-height: 1.1em;
+	overflow: visible;
+	background: none;
+	border-collapse: collapse;
+	padding-left: 154px;
+        margin: 0 auto;
+	list-style: none;
+	font-size: 95%;
+font-weight: normal;
+}
+#p-cactions .hiddenStructure {
+	display: none;
+}
+#p-cactions ul {
+	list-style: none;
+}
+#p-cactions li {
+	display: inline;
+	border: 1px solid #aaa;
+	border-bottom: none;
+	padding: 0 0 .1em 0;
+	margin: 0 .3em 0 0;
+	overflow: visible;
+	background: white;
+}
+#p-cactions li.selected {
+	border-color: #fabd23;
+	padding: 0 0 .2em 0;
+	font-weight: bold;
+}
+#p-cactions li a {
+	background-color: #fbfbfb;
+	color: #002bb8;
+	border: none;
+	padding: 0 .8em .3em;
+	text-decoration: none;
+	text-transform: lowercase;
+	position: relative;
+	z-index: 0;
+	margin: 0;
+}
+#p-cactions li.selected a {
+	z-index: 3;
+		background-color: #fff;
+	padding: 0 1em .2em!important;
+}
+#p-cactions .new a {
+	color: #ba0000;
+}
+#p-cactions li a:hover {
+	z-index: 3;
+	text-decoration: none;
+		background-color: #fff;
+}
+#p-cactions h5 {
+	display: none;
+}
+#p-cactions li.istalk {
+	margin-right: 0;
+}
+#p-cactions li.istalk a {
+	padding-right: .5em;
+}
+#p-cactions #ca-addsection a {
+	padding-left: .4em;
+	padding-right: .4em;
+}
+/* offsets to distinguish the tab groups */
+li#ca-talk {
+	margin-right: 1.6em;
+}
+li#ca-watch, li#ca-unwatch, li#ca-varlang-0, li#ca-print {
+	margin-left: 1.6em;
+}
+
+/*
+** the remaining portlets
+*/
+#p-tbx,
+#p-lang {
+	position: relative;
+	z-index: 3;
+}
+
+/* TODO: #t-iscite is only used by the Cite extension, come up with some
+ * system which allows extensions to add to this file on the fly
+ */
+#t-ispermalink, #t-iscite {
+	color: #999;
+}
+/*
+** footer
+*/
+#footer {
+	background-color: white;
+	border-top: 1px solid #fabd23;
+	border-bottom: 1px solid #fabd23;
+	margin: .6em 0 1em 0;
+	padding: .4em 0 1.2em 0;
+	text-align: center;
+	font-size: 90%;
+}
+#footer li {
+	display: inline;
+	margin: 0 1.3em;
+}
+/* hide from incapable browsers */
+head:first-child+body #footer li { white-space: nowrap; }
+#f-poweredbyico, #f-copyrightico {
+	margin: 0 8px;
+	position: relative;
+	top: -2px; /* Bump it up just a tad */
+}
+#f-poweredbyico {
+	float: right;
+	height: 1%;
+}
+#f-copyrightico {
+	float: left;
+	height: 1%;
+}
+
+/* js pref toc */
+#preftoc {
+	margin: 0;
+	padding: 0;
+	width: 100%;
+	clear: both;
+}
+#preftoc li {
+	margin: 1px -2px 1px 2px;
+	float: left;
+	padding: 2px 0 3px 0;
+	background-color: #f0f0f0;
+	color: #000;
+	border: 1px solid #fff;
+	border-right-color: #716f64;
+	border-bottom: 0;
+	position: relative;
+	white-space: nowrap;
+	list-style-type: none;
+	list-style-image: none;
+	z-index: 3;
+}
+#preftoc li.selected {
+	font-weight: bold;
+	background-color: #f9f9f9;
+	border: 1px solid #aaa;
+	border-bottom: none;
+	cursor: default;
+	top: 1px;
+	padding-top: 2px;
+	margin-right: -3px;
+}
+#preftoc > li.selected {
+	top: 2px;
+}
+#preftoc a,
+#preftoc a:active {
+	display: block;
+	color: #000;
+	padding: 0 .7em;
+	position: relative;
+	text-decoration: none;
+}
+#preftoc li.selected a {
+	cursor: default;
+	text-decoration: none;
+}
+#prefcontrol {
+	padding-top: 2em;
+	clear: both;
+}
+#preftitle {
+	margin: 0;
+	border: 1px solid #aaa;
+	clear: both;
+	padding: 1.5em;
+	background-color: #F9F9F9;
+}
+.prefsection {
+	border: none;
+	padding: 0;
+	margin: 0;
+}
+.prefsection fieldset {
+	border: 1px solid #aaa;
+	float: left;
+	margin-right: 2em;
+}
+.prefsection legend {
+	font-weight: bold;
+}
+.prefsection table, .prefsection legend {
+	background-color: #F9F9F9;
+}
+.mainLegend {
+	display: none;
+}
+div.prefsectiontip {
+	font-size: 95%;
+	margin-top: 0;
+	background-color: #FFC1C1;
+	padding: .2em .7em;
+	clear: both;
+}
+.btnSavePrefs {
+	font-weight: bold;
+	padding-left: .3em;
+	padding-right: .3em;
+}
+
+.preferences-login {
+	clear: both;
+	margin-bottom: 1.5em;
+}
+
+.prefcache {
+	font-size: 90%;
+	margin-top: 2em;
+}
+
+div#userloginForm form,
+div#userlogin form#userlogin2 {
+	margin: 0 3em 1em 0;
+	border: 1px solid #aaa;
+	clear: both;
+	padding: 1.5em 2em;
+	background-color: #f9f9f9;
+	float: left;
+}
+
+div#userloginForm table,
+div#userlogin form#userlogin2 table {
+	background-color: #f9f9f9;
+}
+
+div#userloginForm h2,
+div#userlogin form#userlogin2 h2 {
+	padding-top: 0;
+}
+
+div#userlogin .captcha {
+	border: 1px solid #bbb;
+	padding: 1.5em 2em;
+	width: 400px;
+	background-color: white;
+}
+
+
+#userloginprompt, #languagelinks {
+	font-size: 85%;
+}
+
+#login-sectiontip {
+	font-size: 85%;
+	line-height: 1.2;
+	padding-top: 2em;
+}
+
+#userlogin .loginText, #userlogin .loginPassword {
+	width: 12em;
+}
+
+#userloginlink a, #wpLoginattempt, #wpCreateaccount {
+	font-weight: bold;
+}
+
+/*
+** IE/Mac fixes, hope to find a validating way to move this
+** to a separate stylesheet. This would work but doesn't validate:
+** @import("IEMacFixes.css");
+*/
+/* tabs: border on the a, not the div */
+* > html #p-cactions li { border: none; }
+* > html #p-cactions li a {
+	border: 1px solid #aaa;
+	border-bottom: none;
+}
+* > html #p-cactions li.selected a { border-color: #fabd23; }
+/* footer icons need a fixed width */
+* > html #f-poweredbyico,
+* > html #f-copyrightico { width: 88px; }
+* > html #bodyContent,
+* > html #bodyContent pre {
+	overflow-x: auto;
+	width: 100%;
+	padding-bottom: 25px;
+}
+
+/* more IE fixes */
+/* float/negative margin brokenness */
+* html #footer {margin-top: 0;}
+* html #column-content {
+	display: inline;
+	margin-bottom: 0;
+}
+* html div.editsection { font-size: smaller; }
+#pagehistory li.selected { position: relative; }
+
+/* Mac IE 5.0 fix; floated content turns invisible */
+* > html #column-content {
+	float: none;
+}
+* > html #column-one {
+	position: absolute;
+	left: 0;
+	top: 0;
+}
+* > html #footer {
+	margin-left: 13.2em;
+}
+.redirectText {
+	font-size: 150%;
+	margin: 5px;
+}
+
+.printfooter {
+	display: none;
+}
+
+.not-patrolled {
+	background-color: #ffa;
+}
+div.patrollink {
+	font-size: 75%;
+	text-align: right;
+}
+span.newpage, span.minor, span.searchmatch, span.bot {
+	font-weight: bold;
+}
+span.unpatrolled {
+	font-weight: bold;
+	color: red;
+}
+
+span.searchmatch {
+	color: red;
+}
+.sharedUploadNotice {
+	font-style: italic;
+}
+
+span.updatedmarker {
+	color: black;
+	background-color: #0f0;
+}
+span.newpageletter {
+	font-weight: bold;
+	color: black;
+	background-color: yellow;
+}
+span.minoreditletter {
+	color: black;
+	background-color: #c5ffe6;
+}
+
+table.gallery {
+	border: 1px solid #ccc;
+	margin: 2px;
+	padding: 2px;
+	background-color: white;
+}
+
+table.gallery tr {
+	vertical-align: top;
+}
+
+table.gallery td {
+	vertical-align: top;
+	background-color: #f9f9f9;
+	border: solid 2px white;
+}
+
+table.gallery td.galleryheader {
+	text-align: center;
+	font-weight: bold;
+}
+
+div.gallerybox {
+	margin: 2px;
+	width:  150px;
+}
+
+div.gallerybox div.thumb {
+	text-align: center;
+	border: 1px solid #ccc;
+	margin: 2px;
+}
+
+div.gallerytext {
+	font-size: 94%;
+	padding: 2px 4px;
+}
+
+span.comment {
+	font-style: italic;
+}
+
+span.changedby {
+	font-size: 95%;
+}
+
+.previewnote {
+	text-indent: 3em;
+	color: #c00;
+	border-bottom: 1px solid #aaa;
+	padding-bottom: 1em;
+	margin-bottom: 1em;
+}
+
+.previewnote p {
+	margin: 0;
+	padding: 0;
+}
+
+.editExternally {
+	border: 1px solid gray;
+	background-color: #ffffff;
+	padding: 3px;
+	margin-top: 0.5em;
+	float: left;
+	font-size: small;
+	text-align: center;
+}
+.editExternallyHelp {
+	font-style: italic;
+	color: gray;
+}
+
+li span.deleted, span.history-deleted {
+	text-decoration: line-through;
+	color: #888;
+	font-style: italic;
+}
+
+.toggle {
+	margin-left: 2em;
+	text-indent: -2em;
+}
+
+/* Classes for EXIF data display */
+table.mw_metadata {
+	font-size: 0.8em;
+	margin-left: 0.5em;
+	margin-bottom: 0.5em;
+	width: 300px;
+}
+
+table.mw_metadata caption {
+	font-weight: bold;
+}
+
+table.mw_metadata th {
+	font-weight: normal;
+}
+
+table.mw_metadata td {
+	padding: 0.1em;
+}
+
+table.mw_metadata {
+	border: none;
+	border-collapse: collapse;
+}
+
+table.mw_metadata td, table.mw_metadata th {
+	text-align: center;
+	border: 1px solid #aaaaaa;
+	padding-left: 0.1em;
+	padding-right: 0.1em;
+}
+
+table.mw_metadata th {
+	background-color: #f9f9f9;
+}
+
+table.mw_metadata td {
+	background-color: #fcfcfc;
+}
+
+table.collapsed tr.collapsable {
+	display: none;
+}
+
+
+/* filetoc */
+ul#filetoc {
+	text-align: center;
+	border: 1px solid #aaaaaa;
+	background-color: #f9f9f9;
+	padding: 5px;
+	font-size: 95%;
+	margin-bottom: 0.5em;
+	margin-left: 0;
+	margin-right: 0;
+}
+
+#filetoc li {
+	display: inline;
+	list-style-type: none;
+	padding-right: 2em;
+}
+
+/* @bug 1714 */
+input#wpSave, input#wpDiff {
+	margin-right: 0.33em;
+}
+
+#editform .editOptions {
+	display: inline;
+}
+
+#wpSave {
+	font-weight: bold;
+}
+
+/* Classes for article validation */
+
+table.revisionform_default {
+	border: 1px solid #000000;
+}
+
+table.revisionform_focus {
+	border: 1px solid #000000;
+	background-color:#00BBFF;
+}
+
+tr.revision_tr_default {
+	background-color:#EEEEEE;
+}
+
+tr.revision_tr_first {
+	background-color:#DDDDDD;
+}
+
+p.revision_saved {
+	color: green;
+	font-weight:bold;
+}
+
+#mw_trackbacks {
+	border: solid 1px #bbbbff;
+	background-color: #eeeeff;
+	padding: 0.2em;
+}
+
+
+/* Allmessages table */
+
+#allmessagestable th {
+	background-color: #b2b2ff;
+}
+
+#allmessagestable tr.orig {
+	background-color: #ffe2e2;
+}
+
+#allmessagestable tr.new {
+	background-color: #e2ffe2;
+}
+
+#allmessagestable tr.def {
+	background-color: #f0f0ff;
+}
+
+
+/* noarticletext */
+div.noarticletext {
+	border: 1px solid #ccc;
+	background: #fff;
+	padding: .2em 1em;
+	color: #000;
+}
+
+div#searchTargetContainer {
+	left:       10px;
+	top:        10px;
+	width:      90%;
+	background: white;
+}
+
+div#searchTarget {
+	padding:    3px;
+	margin:     5px;
+	background: #F0F0F0;
+	border:     solid 1px blue;
+}
+
+div#searchTarget ul li {
+	list-style: none;
+}
+
+div#searchTarget ul li:before {
+	color: orange;
+	content: "\00BB \0020";
+}
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/main.css.bak
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/main.css.bak	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/main.css.bak	(revision 30132)
@@ -0,0 +1,1461 @@
+/* ATTENTION: This file was edited for the "monobook template for DokuWiki".
+              - All url() rules where changed.
+              - "#catlinks" was replaced with ".catlinks"
+              See README for details. */
+
+
+/*
+** MediaWiki 'monobook' style sheet for CSS2-capable browsers.
+** Copyright Gabriel Wicke - http://wikidev.net/
+** License: GPL (http://www.gnu.org/copyleft/gpl.html)
+**
+** Loosely based on http://www.positioniseverything.net/ordered-floats.html by Big John
+** and the Plone 2.0 styles, see http://plone.org/ (Alexander Limi,Joe Geldart & Tom Croucher,
+** Michael Zeltner and Geir BÃŠkholt)
+** All you guys rock :)
+*/
+
+#column-content {
+	width: 100%;
+	float: right;
+	margin: 0 0 .6em -12.2em;
+	padding: 0;
+}
+#content {
+	margin: 2.8em 0 0 12.2em;
+	padding: 0 1em 1.5em 1em;
+	background: white;
+	color: black;
+	border: 1px solid #aaa;
+	border-right: none;
+	line-height: 1.5em;
+	position: relative;
+	z-index: 2;
+}
+#column-one {
+	padding-top: 160px;
+}
+/* the left column width is specified in class .portlet */
+
+/* Font size:
+** We take advantage of keyword scaling- browsers won't go below 9px
+** More at http://www.w3.org/2003/07/30-font-size
+** http://style.cleverchimp.com/font_size_intervals/altintervals.html
+*/
+
+body {
+	font: x-small sans-serif;
+	background: #f9f9f9 url(static/3rd/monobook/headbg.jpg) 0 0 no-repeat;
+	color: black;
+	margin: 0;
+	padding: 0;
+}
+
+/* scale back up to a sane default */
+#globalWrapper {
+	font-size: 127%;
+	padding: 0;
+}
+.visualClear {
+	clear: both;
+}
+
+/* general styles */
+
+table {
+	background: white;
+	font-size: 100%;
+	color: black;
+}
+a {
+	text-decoration: none;
+	color: #002bb8;
+	background: none no-repeat;
+}
+a:visited {
+	color: #5a3696;
+}
+a:active {
+	color: #faa700;
+}
+a:hover {
+	text-decoration: underline;
+}
+a.stub {
+	color: #772233;
+}
+a.new, #p-personal a.new {
+	color: #ba0000;
+}
+a.new:visited, #p-personal a.new:visited {
+	color: #a55858;
+}
+
+img {
+	border: none;
+	vertical-align: middle;
+}
+p {
+	margin: .4em 0 .5em 0;
+	line-height: 1.5em;
+}
+p img {
+	margin: 0;
+}
+
+hr {
+	height: 1px;
+	color: #aaa;
+	background-color: #aaa;
+	border: 0;
+	margin: .2em 0 .2em 0;
+}
+
+h1, h2, h3, h4, h5, h6 {
+	color: black;
+	background: none;
+	font-weight: normal;
+	margin: 0;
+	padding-top: .5em;
+	padding-bottom: .17em;
+	border-bottom: 1px solid #aaa;
+}
+h1 { font-size: 188%; }
+h2 { font-size: 150%; }
+h3, h4, h5, h6 {
+	border-bottom: none;
+	font-weight: bold;
+}
+h3 { font-size: 132%; }
+h4 { font-size: 116%; }
+h5 { font-size: 100%; }
+h6 { font-size: 80%;  }
+
+ul {
+	line-height: 1.5em;
+	list-style-type: square;
+	margin: .3em 0 0 1.5em;
+	padding: 0;
+	list-style-image: url(static/3rd/monobook/bullet.gif);
+}
+ol {
+	line-height: 1.5em;
+	margin: .3em 0 0 3.2em;
+	padding: 0;
+	list-style-image: none;
+}
+li {
+	margin-bottom: .1em;
+}
+dt {
+	font-weight: bold;
+	margin-bottom: .1em;
+}
+dl {
+	margin-top: .2em;
+	margin-bottom: .5em;
+}
+dd {
+	line-height: 1.5em;
+	margin-left: 2em;
+	margin-bottom: .1em;
+}
+
+fieldset {
+	border: 1px solid #2f6fab;
+	margin: 1em 0 1em 0;
+	padding: 0 1em 1em;
+	line-height: 1.5em;
+}
+legend {
+	background: white;
+	padding: .5em;
+	font-size: 95%;
+}
+form {
+	border: none;
+	margin: 0;
+}
+
+textarea {
+	width: 100%;
+	padding: .1em;
+}
+
+input.historysubmit {
+	padding: 0 .3em .3em .3em !important;
+	font-size: 94%;
+	cursor: pointer;
+	height: 1.7em !important;
+	margin-left: 1.6em;
+}
+select {
+	vertical-align: top;
+}
+abbr, acronym, .explain {
+	border-bottom: 1px dotted black;
+	color: black;
+	background: none;
+	cursor: help;
+}
+q {
+	font-family: Times, "Times New Roman", serif;
+	font-style: italic;
+}
+/* disabled for now
+blockquote {
+	font-family: Times, "Times New Roman", serif;
+	font-style: italic;
+}*/
+code {
+	background-color: #f9f9f9;
+}
+pre {
+	padding: 1em;
+	border: 1px dashed #2f6fab;
+	color: black;
+	background-color: #f9f9f9;
+	line-height: 1.1em;
+}
+
+/*
+** the main content area
+*/
+
+#siteSub {
+	display: none;
+}
+
+#jump-to-nav {
+	display: none;
+}
+
+#contentSub, #contentSub2 {
+	font-size: 84%;
+	line-height: 1.2em;
+	margin: 0 0 1.4em 1em;
+	color: #7d7d7d;
+	width: auto;
+}
+span.subpages {
+	display: block;
+}
+
+/* Some space under the headers in the content area */
+#bodyContent h1, #bodyContent h2 {
+	margin-bottom: .6em;
+}
+#bodyContent h3, #bodyContent h4, #bodyContent h5 {
+	margin-bottom: .3em;
+}
+.firstHeading {
+	margin-bottom: .1em;
+}
+
+/* user notification thing */
+.usermessage {
+	background-color: #ffce7b;
+	border: 1px solid #ffa500;
+	color: black;
+	font-weight: bold;
+	margin: 2em 0 1em;
+	padding: .5em 1em;
+	vertical-align: middle;
+}
+#siteNotice {
+	text-align: center;
+	font-size: 95%;
+	padding: 0 .9em;
+}
+#siteNotice p {
+	margin: 0;
+	padding: 0;
+}
+.error {
+	color: red;
+	font-size: larger;
+}
+.errorbox, .successbox {
+	font-size: larger;
+	border: 2px solid;
+	padding: .5em 1em;
+	float: left;
+	margin-bottom: 2em;
+	color: #000;
+}
+.errorbox {
+	border-color: red;
+	background-color: #fff2f2;
+}
+.successbox {
+	border-color: green;
+	background-color: #dfd;
+}
+.errorbox h2, .successbox h2 {
+	font-size: 1em;
+	font-weight: bold;
+	display: inline;
+	margin: 0 .5em 0 0;
+	border: none;
+}
+
+.catlinks {
+	border: 1px solid #aaa;
+	background-color: #f9f9f9;
+	padding: 5px;
+	margin-top: 1em;
+	clear: both;
+}
+/* currently unused, intended to be used by a metadata box
+in the bottom-right corner of the content area */
+.documentDescription {
+	/* The summary text describing the document */
+	font-weight: bold;
+	display: block;
+	margin: 1em 0;
+	line-height: 1.5em;
+}
+.documentByLine {
+	text-align: right;
+	font-size: 90%;
+	clear: both;
+	font-weight: normal;
+	color: #76797c;
+}
+
+/* emulate center */
+.center {
+	width: 100%;
+	text-align: center;
+}
+*.center * {
+	margin-left: auto;
+	margin-right: auto;
+}
+/* small for tables and similar */
+.small, .small * {
+	font-size: 94%;
+}
+table.small {
+	font-size: 100%;
+}
+
+/*
+** content styles
+*/
+
+/*
+#toc,
+.toc,
+.mw-warning {
+	border: 1px solid #aaa;
+	background-color: #f9f9f9;
+	padding: 5px;
+	font-size: 95%;
+}
+#toc h2,
+.toc h2 {
+	display: inline;
+	border: none;
+	padding: 0;
+	font-size: 100%;
+	font-weight: bold;
+}
+#toc #toctitle,
+.toc #toctitle,
+#toc .toctitle,
+.toc .toctitle {
+	text-align: center;
+}
+#toc ul,
+.toc ul {
+	list-style-type: none;
+	list-style-image: none;
+	margin-left: 0;
+	padding-left: 0;
+	text-align: left;
+}
+#toc ul ul,
+.toc ul ul {
+	margin: 0 0 0 2em;
+}
+#toc .toctoggle,
+.toc .toctoggle {
+	font-size: 94%;
+}
+*/
+
+.mw-warning {
+	margin-left: 50px;
+	margin-right: 50px;
+	text-align: center;
+}
+
+/* images */
+div.floatright, table.floatright {
+	clear: right;
+	float: right;
+	position: relative;
+	margin: 0 0 .5em .5em;
+	border: 0;
+/*
+	border: .5em solid white;
+	border-width: .5em 0 .8em 1.4em;
+*/
+}
+div.floatright p { font-style: italic; }
+div.floatleft, table.floatleft {
+	float: left;
+	position: relative;
+	margin: 0 .5em .5em 0;
+	border: 0;
+/*
+	margin: .3em .5em .5em 0;
+	border: .5em solid white;
+	border-width: .5em 1.4em .8em 0;
+*/
+}
+div.floatleft p { font-style: italic; }
+/* thumbnails */
+div.thumb {
+	margin-bottom: .5em;
+	border-style: solid;
+	border-color: white;
+	width: auto;
+}
+div.thumb div {
+	border: 1px solid #ccc;
+	padding: 3px !important;
+	background-color: #f9f9f9;
+	font-size: 94%;
+	text-align: center;
+	overflow: hidden;
+}
+div.thumb div a img {
+	border: 1px solid #ccc;
+}
+div.thumb div div.thumbcaption {
+	border: none;
+	text-align: left;
+	line-height: 1.4em;
+	padding: .3em 0 .1em 0;
+}
+div.magnify {
+	float: right;
+	border: none !important;
+	background: none !important;
+}
+div.magnify a, div.magnify img {
+	display: block;
+	border: none !important;
+	background: none !important;
+}
+div.tright {
+	clear: right;
+	float: right;
+	border-width: .5em 0 .8em 1.4em;
+}
+div.tleft {
+	float: left;
+	margin-right: .5em;
+	border-width: .5em 1.4em .8em 0;
+}
+
+.hiddenStructure {
+	display: none;
+	speak: none;
+}
+img.tex {
+	vertical-align: middle;
+}
+span.texhtml {
+	font-family: serif;
+}
+
+/*
+** classes for special content elements like town boxes
+** intended to be referenced directly from the wiki src
+*/
+
+/*
+** User styles
+*/
+/* table standards */
+table.rimage {
+	float: right;
+	position: relative;
+	margin-left: 1em;
+	margin-bottom: 1em;
+	text-align: center;
+}
+.toccolours {
+	border: 1px solid #aaa;
+	background-color: #f9f9f9;
+	padding: 5px;
+	font-size: 95%;
+}
+div.townBox {
+	position: relative;
+	float: right;
+	background: white;
+	margin-left: 1em;
+	border: 1px solid gray;
+	padding: .3em;
+	width: 200px;
+	overflow: hidden;
+	clear: right;
+}
+div.townBox dl {
+	padding: 0;
+	margin: 0 0 .3em;
+	font-size: 96%;
+}
+div.townBox dl dt {
+	background: none;
+	margin: .4em 0 0;
+}
+div.townBox dl dd {
+	margin: .1em 0 0 1.1em;
+	background-color: #f3f3f3;
+}
+
+/*
+** edit views etc
+*/
+.special li {
+	line-height: 1.4em;
+	margin: 0;
+	padding: 0;
+}
+
+/* Page history styling */
+/* the auto-generated edit comments */
+.autocomment {
+	color: gray;
+}
+#pagehistory span.user {
+	margin-left: 1.4em;
+	margin-right: .4em;
+}
+#pagehistory span.minor {
+	font-weight: bold;
+}
+#pagehistory li {
+	border: 1px solid white;
+}
+#pagehistory li.selected {
+	background-color: #f9f9f9;
+	border: 1px dashed #aaa;
+}
+
+/*
+** Diff rendering
+*/
+table.diff, td.diff-otitle, td.diff-ntitle {
+	background-color: white;
+}
+td.diff-addedline {
+	background: #cfc;
+	font-size: smaller;
+}
+td.diff-deletedline {
+	background: #ffa;
+	font-size: smaller;
+}
+td.diff-context {
+	background: #eee;
+	font-size: smaller;
+}
+span.diffchange {
+	color: red;
+	font-weight: bold;
+}
+
+/*
+** keep the whitespace in front of the ^=, hides rule from konqueror
+** this is css3, the validator doesn't like it when validating as css2
+*/
+/*
+#bodyContent a.external,
+#bodyContent a[href ^="gopher://"] {
+	background: url(static/3rd/monobook/external.png) center right no-repeat;
+	padding-right: 13px;
+}
+#bodyContent a[href ^="https://"],
+.link-https {
+	background: url(static/3rd/monobook/lock_icon.gif) center right no-repeat;
+	padding-right: 16px;
+}
+#bodyContent a[href ^="mailto:"],
+.link-mailto {
+	background: url(static/3rd/monobook/mail_icon.gif) center right no-repeat;
+	padding-right: 18px;
+}
+#bodyContent a[href ^="news://"] {
+	background: url(static/3rd/monobook/news_icon.png) center right no-repeat;
+	padding-right: 18px;
+}
+#bodyContent a[href ^="ftp://"],
+.link-ftp {
+	background: url(static/3rd/monobook/file_icon.gif) center right no-repeat;
+	padding-right: 18px;
+}
+#bodyContent a[href ^="irc://"],
+.link-irc {
+	background: url(static/3rd/monobook/discussionitem_icon.gif) center right no-repeat;
+	padding-right: 18px;
+}
+*/
+/* disable interwiki styling */
+#bodyContent a.extiw,
+#bodyContent a.extiw:active {
+	color: #36b;
+	background: none;
+	padding: 0;
+}
+#bodyContent a.external {
+	color: #36b;
+}
+
+/* this can be used in the content area to switch off
+special external link styling */
+/*
+#bodyContent .plainlinks a {
+	background: none !important;
+	padding: 0 !important;
+}
+*/
+
+/*
+** Structural Elements
+*/
+
+/*
+** general portlet styles (elements in the quickbar)
+*/
+.portlet {
+	border: none;
+	margin: 0 0 .5em;
+	padding: 0;
+	float: none;
+	width: 11.6em;
+	overflow: hidden;
+}
+.portlet h4 {
+	font-size: 95%;
+	font-weight: normal;
+	white-space: nowrap;
+}
+.portlet h5 {
+	background: transparent;
+	padding: 0 1em 0 .5em;
+	display: inline;
+	height: 1em;
+	text-transform: lowercase;
+	font-size: 91%;
+	font-weight: normal;
+	white-space: nowrap;
+}
+.portlet h6 {
+	background: #ffae2e;
+	border: 1px solid #2f6fab;
+	border-style: solid solid none solid;
+	padding: 0 1em 0 1em;
+	text-transform: lowercase;
+	display: block;
+	font-size: 1em;
+	height: 1.2em;
+	font-weight: normal;
+	white-space: nowrap;
+}
+.pBody {
+	font-size: 95%;
+	background-color: white;
+	color: black;
+	border-collapse: collapse;
+	border: 1px solid #aaa;
+	padding: 0 .8em .3em .5em;
+}
+.portlet h1,
+.portlet h2,
+.portlet h3,
+.portlet h4 {
+	margin: 0;
+	padding: 0;
+}
+.portlet ul {
+	line-height: 1.5em;
+	list-style-type: square;
+	list-style-image: url(static/3rd/monobook/bullet.gif);
+	font-size: 95%;
+}
+.portlet li {
+	padding: 0;
+	margin: 0;
+}
+
+/*
+** Logo properties
+*/
+
+#p-logo {
+	z-index: 3;
+	position: absolute; /*needed to use z-index */
+	top: 0;
+	left: 0;
+	height: 155px;
+	width: 12em;
+	overflow: visible;
+}
+#p-logo h5 {
+	display: none;
+}
+#p-logo a,
+#p-logo a:hover {
+	display: block;
+	height: 155px;
+	width: 12.2em;
+	background-repeat: no-repeat;
+	background-position: 35% 50% !important;
+	text-decoration: none;
+}
+
+/*
+** the navigation portlet
+*/
+
+#p-navigation {
+	position: relative;
+	z-index: 3;
+}
+
+#p-navigation .pBody {
+	padding-right: 0;
+}
+
+#p-navigation a {
+	display: block;
+}
+
+#p-navigation li.active a, #p-navigation li.active a:hover {
+	text-decoration: none;
+	display: inline;
+	font-weight: bold;
+}
+
+
+/*
+** Search portlet
+*/
+#p-search {
+	position: relative;
+	z-index: 3;
+}
+input.searchButton {
+	margin-top: 1px;
+	font-size: 95%;
+}
+#searchGoButton {
+	padding-left: .5em;
+	padding-right: .5em;
+	font-weight: bold;
+}
+#searchInput {
+	width: 10.9em;
+	margin: 0;
+	font-size: 95%;
+}
+#p-search .pBody {
+	padding: .5em .4em .4em .4em;
+	text-align: center;
+}
+
+/*
+** the personal toolbar
+*/
+
+#p-personal {
+	width: 100%;
+	white-space: nowrap;
+	padding: 0;
+	margin: 0;
+	position: absolute;
+	left: 0;
+	top: 0;
+	z-index: 0;
+	border: none;
+	background: none;
+	overflow: visible;
+	line-height: 1.2em;
+}
+
+#p-personal h5 {
+	display: none;
+}
+#p-personal .portlet,
+#p-personal .pBody {
+	padding: 0;
+	margin: 0;
+	border: none;
+	z-index: 0;
+	overflow: visible;
+	background: none;
+}
+/* this is the ul contained in the portlet */
+#p-personal ul {
+	border: none;
+	line-height: 1.4em;
+	color: #2f6fab;
+	padding: 0 2em 0 3em;
+	margin: 0;
+	text-align: right;
+	text-transform: lowercase;
+	list-style: none;
+	z-index: 0;
+	background: none;
+	cursor: default;
+}
+#p-personal li {
+	z-index: 0;
+	border: none;
+	padding: 0;
+	display: inline;
+	color: #2f6fab;
+	margin-left: 1em;
+	line-height: 1.2em;
+	background: none;
+}
+#p-personal li.active {
+	font-weight: bold;
+}
+#p-personal li a {
+	text-decoration: none;
+	color: #005896;
+	padding-bottom: .2em;
+	background: none;
+}
+#p-personal li a:hover {
+	background-color: white;
+	padding-bottom: .2em;
+	text-decoration: none;
+}
+#p-personal li.active a:hover {
+	background-color: transparent;
+}
+/* the icon in front of the user name, single quotes
+in bg url to hide it from iemac */
+li#pt-userpage,
+li#pt-anonuserpage,
+li#pt-login {
+	background: url(static/3rd/monobook/user.gif) top left no-repeat;
+	padding-left: 20px;
+	text-transform: none;
+}
+
+/*
+** the page-related actions- page/talk, edit etc
+*/
+#p-cactions {
+	position: absolute;
+	top: 1.3em;
+	left: 11.5em;
+	margin: 0;
+	white-space: nowrap;
+	line-height: 1.1em;
+	overflow: visible;
+	background: none;
+	border-collapse: collapse;
+	padding-left: 154px;
+        margin: 0 auto;
+	list-style: none;
+	font-size: 95%;
+        font-weight: normal;
+}
+#p-cactions .hiddenStructure {
+	display: none;
+}
+#p-cactions ul {
+	list-style: none;
+}
+#p-cactions li {
+	display: inline;
+	border: 1px solid #aaa;
+	border-bottom: none;
+	padding: 0 0 .1em 0;
+	margin: 0 .3em 0 0;
+	overflow: visible;
+	background: white;
+}
+#p-cactions li.selected {
+	border-color: #fabd23;
+	padding: 0 0 .2em 0;
+	font-weight: bold;
+}
+#p-cactions li a {
+	background-color: #fbfbfb;
+	color: #002bb8;
+	border: none;
+	padding: 0 .8em .3em;
+	text-decoration: none;
+	text-transform: lowercase;
+	position: relative;
+	z-index: 0;
+	margin: 0;
+}
+#p-cactions li.selected a {
+	z-index: 3;
+		background-color: #fff;
+	padding: 0 1em .2em!important;
+}
+#p-cactions .new a {
+	color: #ba0000;
+}
+#p-cactions li a:hover {
+	z-index: 3;
+	text-decoration: none;
+		background-color: #fff;
+}
+#p-cactions h5 {
+	display: none;
+}
+#p-cactions li.istalk {
+	margin-right: 0;
+}
+#p-cactions li.istalk a {
+	padding-right: .5em;
+}
+#p-cactions #ca-addsection a {
+	padding-left: .4em;
+	padding-right: .4em;
+}
+/* offsets to distinguish the tab groups */
+li#ca-talk {
+	margin-right: 1.6em;
+}
+li#ca-watch, li#ca-unwatch, li#ca-varlang-0, li#ca-print {
+	margin-left: 1.6em;
+}
+
+/*
+** the remaining portlets
+*/
+#p-tbx,
+#p-lang {
+	position: relative;
+	z-index: 3;
+}
+
+/* TODO: #t-iscite is only used by the Cite extension, come up with some
+ * system which allows extensions to add to this file on the fly
+ */
+#t-ispermalink, #t-iscite {
+	color: #999;
+}
+/*
+** footer
+*/
+#footer {
+	background-color: white;
+	border-top: 1px solid #fabd23;
+	border-bottom: 1px solid #fabd23;
+	margin: .6em 0 1em 0;
+	padding: .4em 0 1.2em 0;
+	text-align: center;
+	font-size: 90%;
+}
+#footer li {
+	display: inline;
+	margin: 0 1.3em;
+}
+/* hide from incapable browsers */
+head:first-child+body #footer li { white-space: nowrap; }
+#f-poweredbyico, #f-copyrightico {
+	margin: 0 8px;
+	position: relative;
+	top: -2px; /* Bump it up just a tad */
+}
+#f-poweredbyico {
+	float: right;
+	height: 1%;
+}
+#f-copyrightico {
+	float: left;
+	height: 1%;
+}
+
+/* js pref toc */
+#preftoc {
+	margin: 0;
+	padding: 0;
+	width: 100%;
+	clear: both;
+}
+#preftoc li {
+	margin: 1px -2px 1px 2px;
+	float: left;
+	padding: 2px 0 3px 0;
+	background-color: #f0f0f0;
+	color: #000;
+	border: 1px solid #fff;
+	border-right-color: #716f64;
+	border-bottom: 0;
+	position: relative;
+	white-space: nowrap;
+	list-style-type: none;
+	list-style-image: none;
+	z-index: 3;
+}
+#preftoc li.selected {
+	font-weight: bold;
+	background-color: #f9f9f9;
+	border: 1px solid #aaa;
+	border-bottom: none;
+	cursor: default;
+	top: 1px;
+	padding-top: 2px;
+	margin-right: -3px;
+}
+#preftoc > li.selected {
+	top: 2px;
+}
+#preftoc a,
+#preftoc a:active {
+	display: block;
+	color: #000;
+	padding: 0 .7em;
+	position: relative;
+	text-decoration: none;
+}
+#preftoc li.selected a {
+	cursor: default;
+	text-decoration: none;
+}
+#prefcontrol {
+	padding-top: 2em;
+	clear: both;
+}
+#preferences {
+	margin: 0;
+	border: 1px solid #aaa;
+	clear: both;
+	padding: 1.5em;
+	background-color: #F9F9F9;
+}
+.prefsection {
+	border: none;
+	padding: 0;
+	margin: 0;
+}
+.prefsection fieldset {
+	border: 1px solid #aaa;
+	float: left;
+	margin-right: 2em;
+}
+.prefsection legend {
+	font-weight: bold;
+}
+.prefsection table, .prefsection legend {
+	background-color: #F9F9F9;
+}
+.mainLegend {
+	display: none;
+}
+div.prefsectiontip {
+	font-size: 95%;
+	margin-top: 0;
+	background-color: #FFC1C1;
+	padding: .2em .7em;
+	clear: both;
+}
+.btnSavePrefs {
+	font-weight: bold;
+	padding-left: .3em;
+	padding-right: .3em;
+}
+
+.preferences-login {
+	clear: both;
+	margin-bottom: 1.5em;
+}
+
+.prefcache {
+	font-size: 90%;
+	margin-top: 2em;
+}
+
+div#userloginForm form,
+div#userlogin form#userlogin2 {
+	margin: 0 3em 1em 0;
+	border: 1px solid #aaa;
+	clear: both;
+	padding: 1.5em 2em;
+	background-color: #f9f9f9;
+	float: left;
+}
+
+div#userloginForm table,
+div#userlogin form#userlogin2 table {
+	background-color: #f9f9f9;
+}
+
+div#userloginForm h2,
+div#userlogin form#userlogin2 h2 {
+	padding-top: 0;
+}
+
+div#userlogin .captcha {
+	border: 1px solid #bbb;
+	padding: 1.5em 2em;
+	width: 400px;
+	background-color: white;
+}
+
+
+#userloginprompt, #languagelinks {
+	font-size: 85%;
+}
+
+#login-sectiontip {
+	font-size: 85%;
+	line-height: 1.2;
+	padding-top: 2em;
+}
+
+#userlogin .loginText, #userlogin .loginPassword {
+	width: 12em;
+}
+
+#userloginlink a, #wpLoginattempt, #wpCreateaccount {
+	font-weight: bold;
+}
+
+/*
+** IE/Mac fixes, hope to find a validating way to move this
+** to a separate stylesheet. This would work but doesn't validate:
+** @import("IEMacFixes.css");
+*/
+/* tabs: border on the a, not the div */
+* > html #p-cactions li { border: none; }
+* > html #p-cactions li a {
+	border: 1px solid #aaa;
+	border-bottom: none;
+}
+* > html #p-cactions li.selected a { border-color: #fabd23; }
+/* footer icons need a fixed width */
+* > html #f-poweredbyico,
+* > html #f-copyrightico { width: 88px; }
+* > html #bodyContent,
+* > html #bodyContent pre {
+	overflow-x: auto;
+	width: 100%;
+	padding-bottom: 25px;
+}
+
+/* more IE fixes */
+/* float/negative margin brokenness */
+* html #footer {margin-top: 0;}
+* html #column-content {
+	display: inline;
+	margin-bottom: 0;
+}
+* html div.editsection { font-size: smaller; }
+#pagehistory li.selected { position: relative; }
+
+/* Mac IE 5.0 fix; floated content turns invisible */
+* > html #column-content {
+	float: none;
+}
+* > html #column-one {
+	position: absolute;
+	left: 0;
+	top: 0;
+}
+* > html #footer {
+	margin-left: 13.2em;
+}
+.redirectText {
+	font-size: 150%;
+	margin: 5px;
+}
+
+.printfooter {
+	display: none;
+}
+
+.not-patrolled {
+	background-color: #ffa;
+}
+div.patrollink {
+	font-size: 75%;
+	text-align: right;
+}
+span.newpage, span.minor, span.searchmatch, span.bot {
+	font-weight: bold;
+}
+span.unpatrolled {
+	font-weight: bold;
+	color: red;
+}
+
+span.searchmatch {
+	color: red;
+}
+.sharedUploadNotice {
+	font-style: italic;
+}
+
+span.updatedmarker {
+	color: black;
+	background-color: #0f0;
+}
+span.newpageletter {
+	font-weight: bold;
+	color: black;
+	background-color: yellow;
+}
+span.minoreditletter {
+	color: black;
+	background-color: #c5ffe6;
+}
+
+table.gallery {
+	border: 1px solid #ccc;
+	margin: 2px;
+	padding: 2px;
+	background-color: white;
+}
+
+table.gallery tr {
+	vertical-align: top;
+}
+
+table.gallery td {
+	vertical-align: top;
+	background-color: #f9f9f9;
+	border: solid 2px white;
+}
+
+table.gallery td.galleryheader {
+	text-align: center;
+	font-weight: bold;
+}
+
+div.gallerybox {
+	margin: 2px;
+	width:  150px;
+}
+
+div.gallerybox div.thumb {
+	text-align: center;
+	border: 1px solid #ccc;
+	margin: 2px;
+}
+
+div.gallerytext {
+	font-size: 94%;
+	padding: 2px 4px;
+}
+
+span.comment {
+	font-style: italic;
+}
+
+span.changedby {
+	font-size: 95%;
+}
+
+.previewnote {
+	text-indent: 3em;
+	color: #c00;
+	border-bottom: 1px solid #aaa;
+	padding-bottom: 1em;
+	margin-bottom: 1em;
+}
+
+.previewnote p {
+	margin: 0;
+	padding: 0;
+}
+
+.editExternally {
+	border: 1px solid gray;
+	background-color: #ffffff;
+	padding: 3px;
+	margin-top: 0.5em;
+	float: left;
+	font-size: small;
+	text-align: center;
+}
+.editExternallyHelp {
+	font-style: italic;
+	color: gray;
+}
+
+li span.deleted, span.history-deleted {
+	text-decoration: line-through;
+	color: #888;
+	font-style: italic;
+}
+
+.toggle {
+	margin-left: 2em;
+	text-indent: -2em;
+}
+
+/* Classes for EXIF data display */
+table.mw_metadata {
+	font-size: 0.8em;
+	margin-left: 0.5em;
+	margin-bottom: 0.5em;
+	width: 300px;
+}
+
+table.mw_metadata caption {
+	font-weight: bold;
+}
+
+table.mw_metadata th {
+	font-weight: normal;
+}
+
+table.mw_metadata td {
+	padding: 0.1em;
+}
+
+table.mw_metadata {
+	border: none;
+	border-collapse: collapse;
+}
+
+table.mw_metadata td, table.mw_metadata th {
+	text-align: center;
+	border: 1px solid #aaaaaa;
+	padding-left: 0.1em;
+	padding-right: 0.1em;
+}
+
+table.mw_metadata th {
+	background-color: #f9f9f9;
+}
+
+table.mw_metadata td {
+	background-color: #fcfcfc;
+}
+
+table.collapsed tr.collapsable {
+	display: none;
+}
+
+
+/* filetoc */
+ul#filetoc {
+	text-align: center;
+	border: 1px solid #aaaaaa;
+	background-color: #f9f9f9;
+	padding: 5px;
+	font-size: 95%;
+	margin-bottom: 0.5em;
+	margin-left: 0;
+	margin-right: 0;
+}
+
+#filetoc li {
+	display: inline;
+	list-style-type: none;
+	padding-right: 2em;
+}
+
+/* @bug 1714 */
+input#wpSave, input#wpDiff {
+	margin-right: 0.33em;
+}
+
+#editform .editOptions {
+	display: inline;
+}
+
+#wpSave {
+	font-weight: bold;
+}
+
+/* Classes for article validation */
+
+table.revisionform_default {
+	border: 1px solid #000000;
+}
+
+table.revisionform_focus {
+	border: 1px solid #000000;
+	background-color:#00BBFF;
+}
+
+tr.revision_tr_default {
+	background-color:#EEEEEE;
+}
+
+tr.revision_tr_first {
+	background-color:#DDDDDD;
+}
+
+p.revision_saved {
+	color: green;
+	font-weight:bold;
+}
+
+#mw_trackbacks {
+	border: solid 1px #bbbbff;
+	background-color: #eeeeff;
+	padding: 0.2em;
+}
+
+
+/* Allmessages table */
+
+#allmessagestable th {
+	background-color: #b2b2ff;
+}
+
+#allmessagestable tr.orig {
+	background-color: #ffe2e2;
+}
+
+#allmessagestable tr.new {
+	background-color: #e2ffe2;
+}
+
+#allmessagestable tr.def {
+	background-color: #f0f0ff;
+}
+
+
+/* noarticletext */
+div.noarticletext {
+	border: 1px solid #ccc;
+	background: #fff;
+	padding: .2em 1em;
+	color: #000;
+}
+
+div#searchTargetContainer {
+	left:       10px;
+	top:        10px;
+	width:      90%;
+	background: white;
+}
+
+div#searchTarget {
+	padding:    3px;
+	margin:     5px;
+	background: #F0F0F0;
+	border:     solid 1px blue;
+}
+
+div#searchTarget ul li {
+	list-style: none;
+}
+
+div#searchTarget ul li:before {
+	color: orange;
+	content: "\00BB \0020";
+}
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/rtl.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/rtl.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/monobook/rtl.css	(revision 30132)
@@ -0,0 +1,212 @@
+/*
+Right-to-left fixes for MonoBook.
+Places sidebar on right, tweaks various alignment issues.
+
+Works mostly ok nicely on Safari 1.2.1; fine in Mozilla.
+
+Safari bugs (1.2.1):
+* Tabs are still appearing in left-to-right order. (Try after localizing)
+
+Opera bugs (7.23 linux):
+* Some bits of ltr text (sidebar box titles) have forward and backward versions overlapping each other
+
+IE/mac bugs:
+* The thing barfs on Hebrew and Arabic anyway, so no point testing.
+
+Missing features due to lack of support:
+* external link icons
+
+To test:
+* Opera6
+* IE 5.0
+* etc
+
+*/
+body {
+	direction: rtl;
+/*    unicode-bidi: bidi-override;*/
+	unicode-bidi: embed;
+}
+#column-content {
+	margin: 0 -12.2em 0 0;
+	float: left;
+}
+#column-content #content{
+	margin-left: 0;
+	margin-right: 12.2em;
+	border-right: 1px solid #aaaaaa;
+	border-left: none;
+}
+html>body .portlet {
+	float: right;
+	clear: right;
+}
+/* recover IEMac (might be fine with the float, but usually it's close to IE */
+*>body .portlet {
+	float: none;
+	clear: none;
+}
+.pBody {
+	padding-right: 0.8em;
+	padding-left: 0.5em;
+}
+
+/* Fix alignment */
+.documentByLine,
+.portletDetails,
+.portletMore,
+#p-personal {
+	text-align: left;
+}
+
+div div.thumbcaption {
+	text-align: right;
+}
+
+div.magnify,
+#div.townBox,
+#p-logo {
+	left: auto;
+	right: 0;
+}
+#p-personal {
+	left: auto;
+	right: 0;
+}
+
+#p-cactions {
+	left: auto;
+	right: 11.5em;
+	padding-left: 0;
+	padding-right: 1em;
+}
+#p-cactions li {
+	margin-left: 0.3em;
+	margin-right: 0;
+	float: right;
+}
+* html #p-cactions li a {
+	display: block;
+	padding-bottom: 0;
+}
+* html #p-cactions li a:hover {
+	padding-bottom: 0.2em;
+}
+/* offsets to distinguish the tab groups */
+li#ca-talk {
+	margin-right: auto;
+	margin-left: 1.6em;
+}
+li#ca-watch,li#ca-unwatch {
+	margin-right: 1.6em !important;
+}
+
+/* Fix margins for non-css2 browsers */
+/* top right bottom left */
+
+ul {
+	margin-left: 0;
+	margin-right: 1.5em;
+}
+ol {
+	margin-left: 0;
+	margin-right: 2.4em;
+}
+dd {
+	margin-left: 0;
+	margin-right: 1.6em;
+}
+#contentSub {
+	margin-right: 1em;
+	margin-left: 0;
+}
+.tocindent {
+	margin-left: 0;
+	margin-right: 2em;
+}
+div.tright, div.floatright, table.floatright {
+	clear: none;
+}
+div.tleft, div.floatleft, table.floatleft {
+	clear: left;
+}
+div.townBox {
+	margin-left: 0;
+	margin-right: 1em;
+}
+div.townBox dl dd {
+	margin-left: 0;
+	margin-right: 1.1em;
+}
+#p-personal li {
+	margin-left: 0;
+	margin-right: 1em;
+}
+
+li#ca-talk,
+li#ca-watch {
+	margin-right: auto;
+	margin-left: 1.6em;
+}
+
+#p-personal li {
+	float: left;
+}
+/* Fix link icons */
+.external {
+	padding: 0 !important;
+	background: none !important;
+}
+#footer {
+	clear: both;
+}
+* html #footer {
+	margin-left: 0;
+	margin-right: 13.6em;
+	border-left: 0;
+	border-right: 1px solid #fabd23;
+} 
+* html #column-content { 
+	float: none;
+	margin-left: 0;
+	margin-right: 0;
+}
+* html #column-content #content {
+	margin-left: 0;
+	margin-top: 3em;
+}
+* html #column-one { right: 0; }
+
+/* js pref toc */
+
+#preftoc {
+	margin-right: 1em;
+}
+
+.errorbox, .successbox, #preftoc li, .prefsection fieldset {
+	float: right;
+}
+
+.prefsection {
+	padding-right: 2em;
+}
+
+/* workaround for moz bug, displayed bullets on left side */
+
+#toc ul {
+	text-align: right;
+}
+
+#toc ul ul {
+	margin: 0 2em 0 0;
+}
+
+input#wpSave, input#wpDiff {
+	margin-right: 0;
+	margin-left: .33em;
+}
+
+#userlogin {
+	float: right;
+	margin: 0 0 1em 3em;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/wikipedia/IEFixes.js
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/wikipedia/IEFixes.js	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/wikipedia/IEFixes.js	(revision 30132)
@@ -0,0 +1,127 @@
+// IE fixes javascript
+
+var isMSIE55 = (window.showModalDialog && window.clipboardData && window.createPopup);
+var doneIETransform;
+var doneIEAlphaFix;
+
+if (document.attachEvent)
+  document.attachEvent('onreadystatechange', hookit);
+
+function hookit() {
+    if (!doneIETransform && document.getElementById && document.getElementById('bodyContent')) {
+        doneIETransform = true;
+        relativeforfloats();
+        fixalpha();
+    }
+}
+
+// png alpha transparency fixes
+function fixalpha( logoId ) {
+    // bg
+    if (isMSIE55 && !doneIEAlphaFix)
+    {
+        var plogo = document.getElementById( logoId || 'p-logo' );
+        if (!plogo) return;
+
+        var logoa = plogo.getElementsByTagName('a')[0];
+        if (!logoa) return;
+
+        var bg = logoa.currentStyle.backgroundImage;
+        var imageUrl = bg.substring(5, bg.length-2);
+
+        doneIEAlphaFix = true;
+
+        if (imageUrl.substr(imageUrl.length-4).toLowerCase() == '.png') {
+            var logospan = logoa.appendChild(document.createElement('span'));
+
+            logoa.style.backgroundImage = 'none';
+            logospan.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=' + imageUrl + ')';
+            logospan.style.height = '100%';
+            logospan.style.position = 'absolute';
+            logospan.style.width = logoa.currentStyle.width;
+            logospan.style.cursor = 'hand';
+            // Center image with hack for IE5.5
+            if (document.documentElement.dir == "rtl")
+            {
+              logospan.style.right = '50%';
+              logospan.style.setExpression('marginRight', '"-" + (this.offsetWidth / 2) + "px"');
+            }
+            else
+            {
+              logospan.style.left = '50%';
+              logospan.style.setExpression('marginLeft', '"-" + (this.offsetWidth / 2) + "px"');
+            }
+            logospan.style.top = '50%';
+            logospan.style.setExpression('marginTop', '"-" + (this.offsetHeight / 2) + "px"');
+
+            var linkFix = logoa.appendChild(logoa.cloneNode());
+            linkFix.style.position = 'absolute';
+            linkFix.style.height = '100%';
+            linkFix.style.width = '100%';
+        }
+    }
+}
+
+// fix ie6 disappering float bug
+function relativeforfloats() {
+    var bc = document.getElementById('bodyContent');
+    if (bc) {
+        var tables = bc.getElementsByTagName('table');
+        var divs = bc.getElementsByTagName('div');
+    }
+    setrelative(tables);
+    setrelative(divs);
+}
+function setrelative (nodes) {
+    var i = 0;
+    while (i < nodes.length) {
+        if(((nodes[i].style.float && nodes[i].style.float != ('none') ||
+        (nodes[i].align && nodes[i].align != ('none'))) &&
+        (!nodes[i].style.position || nodes[i].style.position != 'relative'))) 
+        {
+            nodes[i].style.position = 'relative';
+        }
+        i++;
+    }
+}
+
+
+// Expand links for printing
+
+String.prototype.hasClass = function(classWanted)
+{
+    var classArr = this.split(/\s/);
+    for (var i=0; i<classArr.length; i++)
+      if (classArr[i].toLowerCase() == classWanted.toLowerCase()) return true;
+    return false;
+}
+
+var expandedURLs;
+
+onbeforeprint = function() { 
+    expandedURLs = [];
+
+    var contentEl = document.getElementById("content");
+
+    if (contentEl)
+    {
+      var allLinks = contentEl.getElementsByTagName("a");
+
+      for (var i=0; i < allLinks.length; i++) {
+          if (allLinks[i].className.hasClass("external") && !allLinks[i].className.hasClass("free")) {
+              var expandedLink = document.createElement("span");
+              var expandedText = document.createTextNode(" (" + allLinks[i].href + ")");
+              expandedLink.appendChild(expandedText);
+              allLinks[i].parentNode.insertBefore(expandedLink, allLinks[i].nextSibling);
+              expandedURLs[i] = expandedLink;
+          }
+      }
+   }
+}
+
+onafterprint = function()
+{
+    for (var i=0; i < expandedURLs.length; i++)
+        if (expandedURLs[i])
+            expandedURLs[i].removeNode(true);
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/wikipedia/commonPrint.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/wikipedia/commonPrint.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/wikipedia/commonPrint.css	(revision 30132)
@@ -0,0 +1,249 @@
+/*
+** MediaWiki Print style sheet for CSS2-capable browsers.
+** Copyright Gabriel Wicke, http://www.aulinx.de/
+**
+** Derived from the plone (http://plone.org/) styles
+** Copyright Alexander Limi
+*/
+
+/* Thanks to A List Apart (http://alistapart.com/) for useful extras */
+a.stub,
+a.new{ color:#ba0000; text-decoration:none; }
+
+#toc { 
+    /*border:1px solid #2f6fab;*/
+    border:1px solid #aaaaaa;
+    background-color:#f9f9f9;
+    padding:5px;
+}
+.tocindent {
+	margin-left: 2em;
+}
+.tocline {
+	margin-bottom: 0px;
+}
+
+/* images */
+div.floatright { 
+    float: right;
+    clear: right;
+    margin: 0;
+    position:relative;
+    border: 0.5em solid White;
+    border-width: 0.5em 0 0.8em 1.4em;
+}
+div.floatright p { font-style: italic;} 
+div.floatleft { 
+    float: left; 
+    margin: 0.3em 0.5em 0.5em 0;
+    position:relative;
+    border: 0.5em solid White;
+    border-width: 0.5em 1.4em 0.8em 0;
+}
+div.floatleft p { font-style: italic; } 
+/* thumbnails */
+div.thumb {
+    margin-bottom: 0.5em;
+    border-style: solid; border-color: White;
+    width: auto;
+    overflow: hidden;
+}
+div.thumb div {
+    border:1px solid #cccccc;
+    padding: 3px !important;
+    background-color:#f9f9f9;
+    font-size: 94%;
+    text-align: center;
+}
+div.thumb div a img {
+    border:1px solid #cccccc;
+}
+div.thumb div div.thumbcaption {
+    border: none;
+    padding: 0.3em 0 0.1em 0;
+}
+div.magnify { display: none; }
+div.tright {
+    float: right;
+    clear: right;
+    border-width: 0.5em 0 0.8em 1.4em;
+}
+div.tleft {
+    float: left;
+    margin-right:0.5em;
+    border-width: 0.5em 1.4em 0.8em 0;
+}
+img.thumbborder {
+	border: 1px solid #dddddd;
+}
+
+/* table standards */
+table.rimage {
+    float:right; 
+    width:1pt; 
+    position:relative;
+    margin-left:1em; 
+    margin-bottom:1em;
+    text-align:center;
+}
+
+body {
+    background: White;
+    /*font-size: 11pt !important;*/
+    color: Black;
+    margin: 0;
+    padding: 0;
+}
+
+.noprint,
+div#jump-to-nav,
+div.top,
+div#column-one,
+#colophon,
+.editsection,
+.toctoggle,
+.tochidden,
+div#f-poweredbyico,
+div#f-copyrightico,
+li#viewcount,
+li#about,
+li#disclaimer,
+li#privacy,
+#mw-hidden-catlinks {
+    /* Hides all the elements irrelevant for printing */
+    display: none;
+}
+
+ul { 
+    list-style-type: square;
+}
+
+#content {
+    background: none;
+    border: none ! important;
+    padding: 0 ! important;
+    margin: 0 ! important;
+}
+#footer {
+	background : white;
+	color : black;
+    border-top: 1px solid black;
+}
+
+h1, h2, h3, h4, h5, h6 {
+	font-weight: bold;
+}
+
+p, .documentDescription {
+    margin: 1em 0 ! important;
+    line-height: 1.2em;
+}
+
+.tocindent p {
+	margin: 0 0 0 0 ! important;
+}
+
+pre {
+    border: 1pt dashed black;
+    white-space: pre;
+    font-size: 8pt;
+    overflow: auto;
+    padding: 1em 0;
+	background : white;
+	color : black;
+}
+
+table.listing,
+table.listing td {
+    border: 1pt solid black;
+    border-collapse: collapse;
+}
+
+a {
+    color: Black !important;
+    background: none !important;
+    padding: 0 !important;
+}
+
+a:link, a:visited {
+    color: #520;
+    background: transparent;
+    text-decoration: underline;
+}
+
+#content a.external.text:after, #content a.external.autonumber:after {
+    /* Expand URLs for printing */
+    content: " (" attr(href) ") ";
+}
+
+#globalWrapper {
+    width: 100% !important;
+    min-width: 0 !important;
+}
+
+#content {
+	background : white;
+	color : black;
+}
+
+#column-content {
+    margin: 0 !important;
+}
+
+#column-content #content {
+    padding: 1em;
+    margin: 0 !important;
+}
+/* MSIE/Win doesn't understand 'inherit' */
+a, a.external, a.new, a.stub {
+	color: black ! important;
+	text-decoration: none ! important;
+}
+
+/* Continue ... */
+a, a.external, a.new, a.stub {
+	color: inherit ! important;
+	text-decoration: inherit ! important;
+}
+
+img { border: none; }
+img.tex { vertical-align: middle; }
+span.texhtml { font-family: serif; }
+
+#siteNotice { display: none; }
+
+div.gallerybox {
+	border: 1px solid #cccccc;
+	background-color:#f9f9f9;
+	width:  150px;
+}
+
+div.gallerytext {
+	overflow: visible;
+}       
+
+/*
+** Diff rendering
+*/
+table.diff { background:white; }
+td.diff-otitle { background:#ffffff; }
+td.diff-ntitle { background:#ffffff; }
+td.diff-addedline {
+    background:#ccffcc;
+    font-size: smaller;
+    border: solid 2px black;
+}
+td.diff-deletedline {
+    background:#ffffaa;
+    font-size: smaller;
+    border: dotted 2px black;
+}
+td.diff-context {
+    background:#eeeeee;
+    font-size: smaller;
+}
+.diffchange {
+    color: silver;
+    font-weight: bold;
+    text-decoration: underline;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/wikipedia/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/wikipedia/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/3rd/wikipedia/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/css/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/css/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/css/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/css/print.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/css/print.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/css/print.css	(revision 30132)
@@ -0,0 +1,50 @@
+/******************************************************************************
+ ********************************  ATTENTION  *********************************
+         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
+ ******************************************************************************
+  If you want to add some own print CSS, have a look at the README of this
+  template and "/user/print.css". You have been warned!
+ *****************************************************************************/
+
+
+/* define the "noprint" class and hide some elements */
+.noprint,
+.toc { /* TOC */
+  display: none;
+}
+
+/* remove interwiki link icons */
+div.dokuwiki a.interwiki {
+  background: transparent none;
+  padding: 0;
+}
+
+/* quotes */
+div#content .dokuwiki blockquote {
+  border-left: 2px solid __border__;
+  padding-left: 3px;
+  margin-left: 0.2em;
+}
+
+/* preformatted stuff, source code */
+div#content .dokuwiki code,
+div#content .dokuwiki pre,
+div#content .dokuwiki pre.code,
+div#content .dokuwiki pre.file {
+  font-size: 100%;
+}
+div#content .dokuwiki pre,
+div#content .dokuwiki pre.code,
+div#content .dokuwiki pre.file {
+  line-height: 1.2em;
+  background-color: __background_other__;
+}
+div#content .dokuwiki dl.file,
+div#content .dokuwiki dl.file dd,
+div#content .dokuwiki dl.file dt {
+  margin-left: 0;
+}
+div#content .dokuwiki dl.file dt {
+  background-color: __background_other__;
+}
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/css/rtl.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/css/rtl.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/css/rtl.css	(revision 30132)
@@ -0,0 +1,10 @@
+/******************************************************************************
+ ********************************  ATTENTION  *********************************
+         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
+ ******************************************************************************
+  If you want to add some own print CSS, have a look at the README of this
+  template and "/user/rtl.css". You have been warned!
+ *****************************************************************************/
+
+/* right-to-left-support is still TODO - Feel free to send patches to me
+   (Andreas Haerter) */
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/css/screen.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/css/screen.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/css/screen.css	(revision 30132)
@@ -0,0 +1,1349 @@
+/******************************************************************************
+ ********************************  ATTENTION  *********************************
+         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
+ ******************************************************************************
+  If you want to add some own screen CSS, have a look at the README of this
+  template and "/user/screen.css". You have been warned!
+ *****************************************************************************/
+
+/* Notes about how the template CSS works:
+
+   - This template includes 3rd party CSS files:
+     1) CSS from the "starter" DokuWiki template by Anika Henke (brings
+        important and basic styling for syntax and core features)
+     2) CSS from the original "monobook" skin for MediaWiki (brings the basic
+        layout and overwrites some "default" styling)
+     These files will be included BEFORE this specific CSS file. In this file,
+     I just overwrite non fitting MediaWiki "monobook" and DokuWiki "starter"
+     CSS + add some CSS for some exclusive objects of this template
+   - Why I am doing this? Well, read <http://j.mp/eq8zSo>. I followed the main
+     principle described there and simply apply it to the two sources ("starter"
+     template and "monobook" skin).
+   - This way also ensures a painless update, if there are new versions of
+     MediaWiki monobook or DokuWiki CSS files. Cause these 3rd party components
+     were not edited or partially copied, I do not have to track their changes
+     in detail.
+
+   Explanation of the different sections in here:
+   - "Styles/corrections for the template itself"
+     General CSS targeting the template structure. This section overwrites non
+     fitting CSS of the "monobook" MediaWiki skin and "starter" DokuWiki
+     template. Read the notes above and <http://j.mp/eq8zSo> if you do not know
+     why I am doing it this way.
+   - "Browser Hacks and corrections"
+     Section containing bigger hacks for browser specific problems.
+*/
+
+
+/******************************************************************************
+ ************** Styles/corrections for the template itself ********************
+ ******************************************************************************/
+/* --------------- general styling --------------- */
+html {
+  background-color: #f9f9f9;
+  color: __text__;
+  margin: 0;
+  padding: 0;
+  overflow-x: auto;
+  overflow-y: auto;
+}
+hr {
+  border: 0 none;
+  text-align: center;
+  width: 100%;
+  clear: both;
+}
+pre,
+code,
+samp,
+kbd {
+  font-family: monospace,sans-serif;
+}
+pre {
+  overflow: auto;
+}
+img {
+  border-width: 0;
+  background-color: transparent;
+}
+blockquote {
+  padding: 0 1.25em;
+  border: solid __border__;
+  border-width: 0 0 0 .25em;
+}
+q:before,
+q:after {
+  content: '';
+}
+sub,
+sup {
+  font-size: .8em;
+  line-height: 1;
+}
+sub {
+  vertical-align: sub;
+}
+sup {
+  vertical-align: super;
+}
+
+/* forms */
+form {
+  display: inline;
+  padding: 0;
+}
+label {
+  vertical-align: middle;
+  cursor: pointer;
+}
+input,
+textarea,
+button,
+select,
+optgroup,
+option {
+  font: inherit;
+  color: inherit;
+  /* background-color destroys button look */
+  line-height: 1;
+  margin: 0;
+  vertical-align: middle;
+}
+input[type=text],
+input[type=password],
+textarea {
+  padding: .1em;
+}
+input[type=radio],
+input[type=checkbox],
+input.check {
+  padding: 0;
+}
+input[type=submit],
+input.button,
+button {
+  cursor: pointer;
+}
+input[disabled],
+button[disabled],
+input[readonly],
+button[readonly] {
+  cursor: auto;
+}
+optgroup {
+  font-style: italic;
+  font-weight: bold;
+}
+option {
+  font-style: normal;
+  font-weight: normal;
+}
+
+/* tables */
+table {
+  border-collapse: collapse;
+  empty-cells: show;
+  border-spacing: 0;
+  border: 1px solid __border__;
+}
+caption {
+  caption-side: top;
+  text-align: left;
+  margin: 0 0 .3em;
+}
+th,
+td {
+  padding: .3em .5em;
+  margin: 0;
+  vertical-align: top;
+  border: 1px solid __border__;
+  text-align: left;
+}
+th {
+  font-weight: bold;
+  background-color: __background_alt__;
+}
+
+/* basic margins and paddings */
+p,
+pre,
+table,
+blockquote,
+fieldset,
+address {
+  margin: 0 0 1.4em 0; /* bottom margin = line-height */
+  padding: 0;
+}
+div {
+  margin: 0;
+  padding: 0;
+}
+
+/* lists */
+li,
+dd {
+  padding: 0;
+  margin: 0 0 0 1.5em;
+}
+dt {
+  font-weight: bold;
+  margin: 0;
+  padding: 0;
+}
+li ul,
+li ol,
+li dl,
+dl ul,
+dl ol,
+dl dl {
+  margin-bottom: 0;
+  padding: 0;
+}
+li li {
+  font-size: 100%;
+}
+ul             { list-style: square outside; }
+ol             { list-style: decimal outside; }
+ol ol          { list-style-type: lower-alpha; }
+ol ol ol       { list-style-type: upper-roman; }
+ol ol ol ol    { list-style-type: upper-alpha; }
+ol ol ol ol ol { list-style-type: lower-roman; }
+
+/* general classes */
+div.clearer {
+  /* additional to what's already in DokuWiki's lib/styles/all.css: */
+  font-size: 1px;
+  visibility: hidden;
+}
+.a11y {
+  position: absolute;
+  left: -9000px;
+  top: -4000px;
+  width: 0;
+  height: 0;
+  overflow: hidden;
+  display: inline;
+}
+
+/* special pages background: discussion */
+.ns-1 #content,
+.ns-1 #p-cactions li,
+.ns-1 #p-cactions li a {
+   background: #f8fcff;
+}
+
+/* special pages background: media/cite etc. */
+.ns-2 #content,
+.ns-2 #p-cactions li,
+.ns-2 #p-cactions li a,
+.ns-2 #media__manager_table {
+   background: #f3f3ff;
+}
+
+/* bold tabs */
+#p-cactions .selected,
+#ca-edit { /* edit tab should be always bold */
+  font-weight: bold;
+}
+
+/* take care about hiding the bottom border when tab is selected */
+#p-cactions .selected,
+#p-cactions .selected a,
+#p-cactions .selected span {
+  z-index: 3;
+  padding-bottom: 0.17em; /* fix for <= IE7 */
+}
+.ns-0 #p-cactions .selected,
+.ns-0 #p-cactions .selected a,
+.ns-0 #p-cactions .selected span {
+  background-color: __background__;
+}
+
+/* link to current page */
+.dokuwiki span.curid a {
+  /*font-weight: normal;*/
+}
+
+/* internal link, existing */
+.dokuwiki a.wikilink1,
+.dokuwiki a.wikilink1:visited {
+  color: __existing__ !important;
+}
+
+/* missing page red: common */
+a.wikilink2:link,
+a.wikilink2:visited,
+a.wikilink2:hover {
+  color: __missing__ !important;
+}
+
+/* missing page red: tabs */
+#p-cactions li a.wikilink2 {
+  color: __missing__;
+}
+
+
+/* --------------- content styling --------------- */
+
+/* embedded images (styles are already partly set in DokuWiki's lib/styles/all.css) */
+.dokuwiki img.media       { }
+.dokuwiki img.medialeft   { margin: .5em 1.5em .5em 0; }
+.dokuwiki img.mediaright  { margin: .5em 0 .5em 1.5em; }
+.dokuwiki img.mediacenter { margin: .5em auto; }
+
+/* general tags */
+div.dokuwiki p,
+div.dokuwiki blockquote,
+div.dokuwiki table,
+div.dokuwiki pre {
+  margin: 0 0 1.0em 0;
+}
+div.dokuwiki caption {
+  font-family: sans-serif;
+}
+
+/* forms */
+div.dokuwiki textarea.edit {
+  font-family: monospace, serif;
+  /* second generic font fixes problem with font-size, see
+http://meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/ */
+  font-size: 14px;
+  color: __text__;
+  background-color: __background__;
+  border: 1px solid __border__;
+  padding: 0.3em 0 0 0.3em;
+  width: 100%;
+  line-height: 17px;
+}
+
+div.dokuwiki legend {
+  font-family: sans-serif;
+  font-weight: normal;
+  background-color: transparent;
+  text-align: left; /* needed for webkit browsers */
+}
+
+/* nice alphatransparency background except for IE <7 */
+html>body div.dokuwiki textarea.edit {
+  background: __background__ url(static/3rd/dokuwiki/inputshadow.png) repeat-x top;
+}
+
+div.dokuwiki input.edit,
+div.dokuwiki select.edit {
+  font-size: 100%;
+  border: 1px solid __border__;
+  color: __text__;
+  background-color: __background__;
+  vertical-align: middle;
+  margin: 1px;
+  padding: 0.20em 0.3em;
+  display: inline;
+  font-weight: normal;
+}
+
+/* nice alphatransparency background except for IE <7 */
+html>body div.dokuwiki input.edit,
+html>body div.dokuwiki select.edit {
+  background: __background__ url(static/3rd/dokuwiki/inputshadow.png) repeat-x top;
+}
+
+div.dokuwiki select.edit {
+  padding: 0.1em 0;
+}
+
+div.dokuwiki input.missing {
+  font-size: 100%;
+  border: 1px solid __border__;
+  color: __text__;
+  background-color: #ffcccc;
+  vertical-align: middle;
+  margin: 1px;
+  padding: 0.20em 0.3em;
+  display: inline;
+}
+
+/* disabled style - not understood by IE */
+div.dokuwiki textarea.edit[disabled],
+div.dokuwiki textarea.edit[readonly],
+div.dokuwiki input.edit[disabled],
+div.dokuwiki input.edit[readonly],
+div.dokuwiki input.button[disabled],
+div.dokuwiki select.edit[disabled] {
+  background-color: __background_neu__!important;
+  color: __text_neu__!important;
+  font-weight: normal;
+}
+
+/* edit form */
+div.dokuwiki div.toolbar,
+div.dokuwiki div#wiki__editbar {
+   margin: 2px 0;
+   text-align: left;
+}
+div.dokuwiki div#size__ctl {
+   float: right;
+   width: 60px;
+   height: 2.7em;
+}
+div.dokuwiki #size__ctl img {
+   cursor: pointer;
+}
+div.dokuwiki div#wiki__editbar div.editButtons {
+   float: left;
+   padding: 0 1.0em 0.7em 0;
+}
+div.dokuwiki div#wiki__editbar div.summary {
+   float: left;
+}
+div.dokuwiki .nowrap {
+   white-space: nowrap;
+}
+div.dokuwiki div#draft__status {
+  float: right;
+  color: __text_alt__;
+}
+
+div.dokuwiki div.license {
+  padding: 0.5em;
+  font-size: 90%;
+  text-align: center;
+}
+
+div.dokuwiki form#dw__editform div.license {
+  clear: left;
+  font-size: 90%;
+}
+
+/* buttons */
+div.dokuwiki input.button,
+div.dokuwiki button.button {
+  border: 1px solid __border__;
+  color: __text__;
+  background-color: __background__;
+  vertical-align: middle;
+  text-decoration: none;
+  font-size: 100%;
+  cursor: pointer;
+  margin: 1px;
+  padding: 0.125em 0.4em;
+  font-weight: normal;
+  line-height: 1.333em;
+  /* line-height: 1em; *//* fix MSIE 6, 7 */
+}
+div.dokuwiki button.toolbutton {
+  height: 20px;
+  width: 24px;
+  padding: 1px 3px;
+  line-height: 16px;
+  text-align: center;
+  height: 22px\9; /* fix MSIE 6, 7, 8 */
+}
+/* nice alphatransparency background except for IE <7 */
+html>body div.dokuwiki input.button,
+html>body div.dokuwiki button.button {
+  background: __background__ url(static/3rd/dokuwiki/buttonshadow.png) repeat-x bottom;
+}
+
+* html div.dokuwiki input.button,
+* html div.dokuwiki button.button {
+  height: 1.8em;
+}
+
+div.dokuwiki div.secedit input.button {
+  border: 1px solid __border__;
+  color: __text__;
+  background-color: __background__;
+  vertical-align: middle;
+  text-decoration: none;
+  margin: 0;
+  padding: 0;
+  font-size: 10px;
+  cursor: pointer;
+  float: right;
+  display: inline;
+}
+
+
+/* links */
+div.dokuwiki a:link,
+div.dokuwiki a:visited {
+  color: #436976;
+  text-decoration: none;
+}
+div.dokuwiki a:hover,
+div.dokuwiki a:active {
+  color: __text__;
+  text-decoration: underline;
+}
+
+/* external link */
+div.dokuwiki a.urlextern {
+  background: transparent url(static/3rd/monobook/external.png) center right no-repeat;
+  padding: 1px 13px 1px 0px;
+  color: #436976;
+  text-decoration: none;
+}
+div.dokuwiki a.urlextern:visited {
+  color: purple;
+}
+
+/* interwiki link */
+div.dokuwiki a.interwiki {
+  color: #436976;
+}
+div.dokuwiki a.interwiki:visited {
+  color: purple;
+}
+
+/* windows share */
+div.dokuwiki a.windows {
+  background: transparent url(static/3rd/dokuwiki/windows.gif) center left no-repeat;
+  color: #436976;
+}
+
+/* email link */
+div.dokuwiki a.mail {
+  background: transparent url(static/3rd/dokuwiki/mail_icon.gif) center left no-repeat;
+  color: #436976;
+}
+
+/* headlines */
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+  font-family: sans-serif;
+  background-color: inherit;
+  padding: 0;
+  clear: left; /* ideally 'both', but problems with toc */
+}
+div#content .dokuwiki h1,
+div#content .dokuwiki h2,
+div#content .dokuwiki h3,
+div#content .dokuwiki h4,
+div#content .dokuwiki h5,
+div#content .dokuwiki h6 {
+  border-bottom: 1px solid #aaa;
+  color: __text__;
+  margin: 0;
+  padding-bottom: 0.17em;
+  padding-top: 0.5em;
+}
+div#content .dokuwiki h1 a,
+div#content .dokuwiki h2 a,
+div#content .dokuwiki h3 a,
+div#content .dokuwiki h4 a,
+div#content .dokuwiki h6 a {
+  color: __text__;
+}
+div#content .dokuwiki h5 a {
+  color: __background__;
+}
+div#content .dokuwiki h1 a:hover,
+div#content .dokuwiki h2 a:hover,
+div#content .dokuwiki h3 a:hover,
+div#content .dokuwiki h4 a:hover,
+div#content .dokuwiki h5 a:hover,
+div#content .dokuwiki h6 a:hover {
+  text-decoration: none;
+}
+div#content .dokuwiki h1 {
+  font-size: 160%;
+}
+div#content .dokuwiki h1,
+div#content .dokuwiki h2 {
+  margin-bottom: 0.6em;
+  font-weight: normal;
+}
+div#content .dokuwiki h3,
+div#content .dokuwiki h4,
+div#content .dokuwiki h5,
+div#content .dokuwiki h6 {
+  font-weight: bold;
+  border-bottom: none;
+  margin-bottom: 0.3em;
+}
+div#content .dokuwiki h3 {
+  font-size: 132%;
+}
+div#content .dokuwiki h4 {
+  font-size: 116%;
+}
+div#content .dokuwiki h5 {
+  font-size: 100%;
+  color: __background__;
+}
+div#content .dokuwiki h6 {
+  font-size: 80%;
+}
+
+/* remove indent from different sections */
+div#content .dokuwiki div.level1,
+div#content .dokuwiki div.level2,
+div#content .dokuwiki div.level3,
+div#content .dokuwiki div.level4,
+div#content .dokuwiki div.level5 {
+  margin-left: 0;
+}
+
+/* lists */
+div.dokuwiki ul {
+  line-height: 1.5em;
+  padding: 0;
+  list-style-type: square;
+  list-style-image: url(static/3rd/monobook/bullet.gif) !important;
+  margin: 0.3em 0 1em 1.5em;
+  color: __text_alt__;
+}
+
+div.dokuwiki ol {
+  line-height: 1.5em;
+  padding: 0;
+  list-style-image: none;
+  margin: 0.3em 0 1em 3.2em;
+  color: __text_alt__;
+  font-weight: bold;
+}
+
+div.dokuwiki li ul,
+div.dokuwiki li ol {
+  margin: 0 0 0 1.5em; /* no bottom gap in between and smaller left margin for nested lists */
+}
+
+div.dokuwiki .li {
+  color: __text__;  /* the list items overriding the ul/ol definition */
+  font-weight: normal;
+}
+
+div.dokuwiki ol { list-style-type: decimal; }
+div.dokuwiki ol ol { list-style-type: upper-roman; }
+div.dokuwiki ol ol ol { list-style-type: lower-alpha; }
+div.dokuwiki ol ol ol ol { list-style-type: lower-greek; }
+
+div.dokuwiki li.open {
+  list-style-image: url(static/3rd/dokuwiki/images/open.gif);
+}
+
+div.dokuwiki li.closed {
+  list-style-image: url(static/3rd/dokuwiki/closed.gif);
+}
+
+div#content div.dokuwiki li {
+  margin-left: 0;
+  margin-bottom: 0;
+}
+
+/* quotes */
+div#content .dokuwiki blockquote {
+  border-left: 2px solid __border__;
+  padding-left: 3px;
+  padding-right: 0;
+  margin-left: 0.2em;
+}
+
+/* preformatted stuff, source code */
+.dokuwiki dl.code dt,
+.dokuwiki dl.file dt {
+  background-color: __background_alt__;
+  border: solid __border__;
+  border-width: 1px 1px 0;
+  color: inherit;
+  display: inline;
+  padding: 0 .5em;
+  margin-left: 1em;
+}
+.dokuwiki dl.code dd,
+.dokuwiki dl.file dd {
+  margin: 0;
+}
+div#content .dokuwiki code,
+div#content .dokuwiki pre,
+div#content .dokuwiki pre.code,
+div#content .dokuwiki pre.file,
+div#content .dokuwiki samp,
+div#content .dokuwiki kbd,
+div#content .dokuwiki tt {
+  font-size: 110%;
+  line-height: 1.4em;
+  font-family: monospace;
+  background-color: #f9f9f9;
+  direction: ltr;
+  text-align: left;
+}
+div#content .dokuwiki em.u code { /* fix if background-color hides underlining */
+  text-decoration: underline;
+}
+div#content .dokuwiki pre,
+div#content .dokuwiki pre.code,
+div#content .dokuwiki pre.file {
+  line-height: 1.2em;
+  padding: 0.5em;
+  border-style: dashed;
+  overflow: scroll;
+  width: 800px;
+}
+div#content .dokuwiki dl.file,
+div#content .dokuwiki dl.file dd {
+  margin-left: 0;
+}
+div#content .dokuwiki dl.file dt,
+div#content .dokuwiki dl.code dt {
+  background-color: #f9f9f9;
+  border-bottom: 2px solid #f9f9f9;
+  border-top: 1px dashed __border__;
+  border-left: 1px dashed __border__;
+  border-right: 1px dashed __border__;
+  display: inline;
+  margin-left: 2em;
+  padding: 0.1em 1em;
+}
+div#content .dokuwiki dl.file dt a,
+div#content .dokuwiki dl.code dt a {
+  color: __text__;
+}
+div#content .dokuwiki dl.file dt a.mediafile {
+  padding-top: 1px;
+}
+
+/* "you are here" and "breadcrumbs" */
+.catlinks {
+  margin-bottom: 0.5em;
+}
+.catlinks p {
+  margin: 0.3em 0 !important;
+}
+
+/* tables */
+th,
+td {
+  border: 0;
+}
+td[align="right"],
+th[align="right"] {
+  text-align: right;
+}
+div.dokuwiki table.inline {
+  background-color: __background__;
+}
+div.dokuwiki table.inline th,
+div.dokuwiki table.inline td {
+  border: 1px solid __border__;
+}
+div.dokuwiki table.inline th {
+  background-color: __background_alt__;
+}
+div.dokuwiki table.inline tr:hover td,
+div.dokuwiki table.inline tr:hover th,
+div.dokuwiki table.inline th:hover {
+  background-color: __background_alt__;
+}
+
+/* different stuff */
+#p-cactions #ca-addsection a {
+  padding-left: .4em;
+  padding-right: .4em;
+}
+
+/* customize ajax "matching pagename" searchbox */
+#qsearch__in {
+  width: 10.9em;
+  margin: 0;
+  font-size: 95%;
+}
+#qsearch__out {
+  background-color: #f9f9f9;
+  border: 1px solid __border__;
+  display: none;
+  font-size: 80%;
+  line-height: 1.2em;
+  opacity: 0.9;
+  padding: 4px;
+  text-align: left;
+  position: absolute;
+  left: 150px;
+  z-index: 30000;
+  margin-top: -60px;
+}
+div.dokuwiki div.ajax_qsearch {
+  position: absolute;
+  width: 200px;
+  opacity: 0.9;
+  display: none;
+  font-size: 80%;
+  line-height: 1.2em;
+  border: 1px solid #8cacbb;
+  background-color: #f7f9fa;
+  text-align: left;
+  padding: 4px;
+}
+
+/* offsets to distinguish the tab groups */
+li#ca-talk {
+    margin-right: 1.6em;
+}
+li#ca-watch, li#ca-unwatch, li#ca-varlang-0, li#ca-print {
+    margin-left: 1.6em;
+}
+
+/* section edit buttons */
+.dokuwiki .secedit {
+  margin-top: 0;
+}
+div.secedit input.button{
+  border: 0 none !important;
+  text-transform: lowercase;
+  color: blue !important;
+  background: none 0 !important;
+  vertical-align: middle;
+  text-decoration: none;
+  margin: 0px;
+  padding: 0px;
+  font-size: 10px;
+  cursor: pointer;
+  height: 15px !important;
+  max-height: 15px !important;
+  min-height: 15px !important;
+  float:right;
+}
+div.secedit2 {
+  text-align: right;
+}
+div.secedit2 a {
+  border: 0px;
+  text-transform: lowercase;
+  color: blue;
+  background-color: transparent;
+  vertical-align: middle;
+  text-decoration: none;
+  font-size: 10px;
+  cursor: pointer;
+}
+
+/* personal tools */
+div#column-one #p-personal.portlet .pBody ul {
+  background: transparent none 0 0;
+  line-height: 1.4em !important;
+  list-style-image: none !important;
+  list-style-position: outside;
+  list-style-type: none !important;
+  margin: 0 !important;
+  padding: 0 2em 0 3em !important;
+  text-align: right;
+}
+
+/* footnotes */
+div.dokuwiki div.fn {
+  font-size: 90%;
+}
+
+/* link to footnote inside the text */
+.dokuwiki sup a.fn_top {
+  color: #436976;
+}
+
+/* link to text from footnote */
+.dokuwiki sup a.fn_bot {
+  color: #436976;
+}
+
+/* insitu-footnotes */
+div.insitu-footnote {
+  font-size: 100% !important;
+  padding: 4px 7px;
+  z-index: 3 !important; /* z-index needed, otherwise the footnotes will be rendered below
+                            the main content area of monobook */
+}
+
+/* Toolbar */
+button.toolbutton {
+  background-color: __background__;
+  padding: 0px;
+  margin: 0 1px 0 0;
+  border: 1px solid __border__;
+  cursor: pointer;
+}
+
+/* nice alphatransparency background except for IE <7 */
+html>body button.toolbutton {
+  background: __background__ url(static/3rd/dokuwiki/buttonshadow.png) repeat-x bottom;
+}
+
+div.picker {
+  width: 250px;
+  border: 1px solid __border__;
+  background-color: __background_alt__;
+  font-size: 11px;
+  line-height: 13px;
+}
+
+div.pk_hl {
+  width: 125px;
+}
+
+button.pickerbutton {
+  padding: 0px;
+  margin: 0 1px 1px 0;
+  border: 0;
+  background-color: transparent;
+  font-size: 80%;
+  cursor: pointer;
+}
+
+/* gallery plugin compatibilty */
+div.dokuwiki .gallery table,
+div.dokuwiki .gallery td {
+  border: 0 none;
+}
+
+/* bureaucracy plugin compatibilty */
+div.dokuwiki form.bureaucracy__plugin fieldset {
+  text-align: center;
+}
+div.dokuwiki form.bureaucracy__plugin label {
+  width: 95% !important;
+  margin-left: auto;
+  margin-right: auto;
+}
+div.dokuwiki form.bureaucracy__plugin label span,
+div.dokuwiki form.bureaucracy__plugin input.edit,
+div.dokuwiki form.bureaucracy__plugin textarea.edit,
+div.dokuwiki form.bureaucracy__plugin fieldset textarea.edit {
+   text-align: left;
+   margin: auto 5px;
+   float: none !important;
+   width: 97% !important;
+   min-width: 97% !important;
+   max-width: 97% !important;
+}
+
+
+/* --------------- sidebar --------------- */
+div#column-one .portlet .pBody ul {
+  font-size: 95%;
+  line-height: 1.5em;
+  list-style-image: url(static/3rd/monobook/bullet.gif);
+  list-style-type: square;
+  margin: 0.3em 0 0 1.5em;
+  padding: 0;
+}
+div#column-one .portlet .pBody a {
+  background: transparent none no-repeat scroll 0 0;
+  color: #002bb8;
+  text-decoration: none;
+  border-bottom: 0 none !important;
+}
+div#column-one .portlet .pBody a:visited {
+  color: #002bb8;
+}
+div#column-one .portlet .pBody a:hover {
+  text-decoration: underline !important;
+}
+/* translation plugin by Anreas Gohr */
+div#column-one .pBody .dokuwiki .plugin_translation span {
+  display: none;
+}
+div#column-one .pBody .dokuwiki .plugin_translation {
+  padding-right: 0 !important;
+  text-align: left;
+}
+div#column-one .pBody .dokuwiki .plugin_translation,
+div#column-one .pBody .dokuwiki .plugin_translation ul,
+div#column-one .pBody .dokuwiki .plugin_translation li {
+  float: none;
+  margin: 0;
+  padding-right: 0;
+  line-height: 1.5em;
+  font-size: 100%;
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul {
+  list-style-image: url(static/3rd/monobook/bullet.gif);
+  list-style-type: square !important;
+  margin: 0.3em 0 0 1.5em;
+  padding: 0;
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:link,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:hover,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:active,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:visited,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:link,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:hover,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:active,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:visited {
+  background-color: transparent;
+  margin: 0;
+  padding: 0;
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:before,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:before {
+  content: attr(title) " (";
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:after,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:after {
+  content: ") ";
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1 {
+  color: __existing__ !important;
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2 {
+  color: __missing__ !important;
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:hover {
+  text-decoration: underline;
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:hover {
+  text-decoration: underline !important;
+}
+div#column-one .pBody .dokuwiki .plugin_translation select {
+  width: 90%;
+  margin: auto !important;
+  text-align: left;
+}
+div#column-one .pBody .dokuwiki .plugin_translation option,
+div#column-one .pBody .dokuwiki .plugin_translation option.wikilink1,
+div#column-one .pBody .dokuwiki .plugin_translation option.wikilink2 {
+  padding: auto 5px !important;
+  text-align: left;
+}
+
+
+/* --------------- Table of contents (TOC) ---------------  */
+div.dokuwiki div.toc {
+  margin: 1.2em 0 0 2em;
+  float: right;
+  width: 200px;
+  font-size: 80%;
+  clear: both;
+}
+
+div.dokuwiki div.tocheader {
+  border: 1px solid __border__;
+  background-color: __background_alt__;
+  text-align: left;
+  font-weight: bold;
+  padding: 3px;
+  margin-bottom: 2px;
+}
+
+div.dokuwiki span.toc_open,
+div.dokuwiki span.toc_close {
+  border: 0.4em solid __background_alt__;
+  float: right;
+  display: block;
+  margin: 0.4em 3px 0 0;
+}
+
+div.dokuwiki span.toc_open span,
+div.dokuwiki span.toc_close span {
+  display: none;
+}
+
+div.dokuwiki span.toc_open {
+  margin-top: 0.4em;
+  border-top: 0.4em solid __text__;
+}
+
+div.dokuwiki span.toc_close {
+  margin-top: 0;
+  border-bottom: 0.4em solid __text__;
+}
+
+div.dokuwiki #toc__inside {
+  border: 1px solid __border__;
+  background-color: __background__;
+  text-align: left;
+  padding: 0.5em 0 0.7em 0;
+}
+
+div.dokuwiki ul.toc {
+  list-style-type: none;
+  list-style-image: none;
+  line-height: 1.2em;
+  padding: 0 !important;
+  margin: 0.3em 0 0 1.5em !important;
+}
+
+div.dokuwiki ul.toc li {
+  list-style-image: none;
+  list-style-type: none;
+  background: transparent url(static/3rd/dokuwiki/tocdot2.gif) 0 0.6em no-repeat;
+  padding-left: 0.4em !important;
+  margin-bottom: 0.1em !important;
+}
+
+div.dokuwiki ul.toc li.clear {
+  background-image: none;
+  padding-left: 0.4em;
+}
+
+div.dokuwiki a.toc:link,
+div.dokuwiki a.toc:visited {
+  color: #436976;
+}
+
+div.dokuwiki a.toc:hover,
+div.dokuwiki a.toc:active {
+  color: __text__;
+}
+
+
+/* --------------- admin menu --------------- */
+/* "remember me" checkbox, login */
+div.dokuwiki form#dw__login label.simple {
+  text-align: center;
+  padding-bottom: 0.4em;
+}
+/* main menu */
+.dokuwiki ul.admin_tasks li {
+  background: transparent none no-repeat scroll 0 0;
+  list-style-type: none;
+  list-style-image: none;
+  margin-bottom: 1em !important;
+}
+.dokuwiki ul.admin_tasks li a {
+  font-weight: bold;
+}
+.picker {
+  z-index: 3; /* z-index needed, otherwise the pull-down menus will be rendered
+                 below the main content area of monobook */
+}
+/* acl tree */
+#acl__tree li {
+  list-style-image: none;
+  list-style-type: none;
+}
+
+
+/* --------------- media manager popup --------------- */
+html.popup {
+  background-color: #fff;
+}
+html.popup body {
+  font: 13px/17px sans-serif;
+  background-image: none;
+  background-color: #fff;
+}
+html.popup #media__manager {
+  min-height: 465px;
+}
+* html.popup #media__manager {
+  height: 465px; /* fix MSIE 6 */
+}
+html.popup #media__manager h1,
+html.popup #media__manager h2,
+html.popup #media__popup h1,
+html.popup #media__popup h2 {
+  font-size: 1em !important;
+  line-height: 1em !important;
+  font-weight: bold !important;
+}
+html.popup #media__opts {
+  padding-left: 1em;
+  margin-bottom: 0.5em;
+}
+html.popup #media__opts input {
+  float: left;
+  display: block;
+  margin-top: 4px;
+  position: absolute;
+}
+*+html.popup #media__opts input,
+* html.popup #media__opts input {
+  position: static;
+}
+html.popup #media__opts label {
+  display: block;
+  float: left;
+  margin-left: 20px;
+  margin-bottom: 4px;
+}
+*+html.popup #media__opts label,
+* html.popup #media__opts label {
+  margin-left: 10px;
+}
+html.popup #media__opts br {
+  clear: left;
+}
+
+
+/* --------------- media manager page --------------- */
+#mediamanager__page h2,
+#mediamanager__page h3 {
+  font-size: 1em !important;
+  line-height: 1.5em !important;
+  font-weight: normal !important;
+  padding: 3px 10px !important;
+}
+#mediamanager__page div.namespaces h2 {
+  margin-bottom: 0;
+  border-bottom: 0;
+}
+#mediamanager__page div.namespaces div.panelHeader {
+  padding-top: 11px;
+}
+#mediamanager__page h3,
+#mediamanager__page ul.tabs li {
+  margin: 0 !important;
+  padding: 0 !important;
+}
+#mediamanager__page .panelHeader ul {
+  list-style-image: none !important;
+}
+#mediamanager__page .panelHeader ul .ui-buttonset {
+  font-size: 12px;
+}
+#mediamanager__page .panelHeader ul li.ui-buttonset {
+  background-position: 3px 0;
+  padding-bottom: 3px;
+}
+#mediamanager__page .panelHeader div.no input.button {
+  padding: 1px;
+  line-height: 1em;
+}
+
+
+/* --------------- link wizard --------------- */
+#link__wiz {
+  text-align: center;
+}
+#link__wiz_result div.even {
+  background-color: #f5f5f5;
+}
+
+
+/* --------------- footer --------------- */
+/* default copyright notice layout */
+div#footer li#copyright .license {
+  font-size: 100%;
+  padding: 0;
+}
+div#footer li#copyright .license a.urlextern {
+  margin-left: 0.4em;
+}
+
+
+/* --------------- search result formating --------------- */
+div.dokuwiki .search_result {
+  margin-bottom: 6px;
+  padding: 0 10px 0 30px;
+}
+
+div.dokuwiki .search_snippet {
+  font-size: 12px;
+  margin-left: 20px;
+}
+
+div.dokuwiki .search_sep {
+  color: __text__;
+}
+
+div.dokuwiki .search_hit {
+  color: __text__;
+  background-color: __highlight__;
+}
+div.dokuwiki strong.search_hit {
+  font-weight: normal;
+}
+
+div.dokuwiki div.search_quickresult {
+  margin: 0 0 15px 30px;
+  padding: 0 10px 10px 0;
+  border-bottom: 1px dashed __border__;
+}
+div.dokuwiki div.search_quickresult h3 {
+  margin: 0 0 1.0em 0;
+  font-size: 1em;
+  font-weight: bold;
+}
+
+div.dokuwiki ul.search_quickhits {
+  margin: 0 0 0.5em 1.0em;
+}
+
+div.dokuwiki ul.search_quickhits li {
+  margin: 0 1.0em 0 1.0em;
+  float: left;
+  width: 30%;
+}
+
+div.dokuwiki .section_highlight {
+  background-color: __background_alt__ !important;
+}
+
+
+/* --------------- JS popup ----------------- */
+.JSpopup {
+  background-color: __background__;
+  color: __text__;
+  border: 1px solid __border__;
+  line-height: 1.2;
+  padding: 0 .2em;
+}
+.JSpopup ul,
+.JSpopup ol {
+  padding-left: 0;
+}
+
+
+/* --------------- diff view ----------------- */
+.dokuwiki table.diff td {
+  font-size: 12px;
+  line-height: 17px;
+}
+.dokuwiki table.diff th {
+  font-size: 12px;
+}
+.dokuwiki table.diff td.diff-addedline,
+.dokuwiki table.diff td.diff-deletedline,
+.dokuwiki table.diff td.diff-context {
+  padding-left: 2px;
+  padding-right: 2px;
+}
+
+
+/******************************************************************************
+ ********************* Browser Hacks and corrections **************************
+ ******************************************************************************/
+/* MSIE 7: renders the anchor in headlines in two lines?! */
+*:first-child+html div#content .dokuwiki h1 a,
+*:first-child+html div#content .dokuwiki h2 a,
+*:first-child+html div#content .dokuwiki h3 a {
+  display: inline-block;
+}
+*:first-child+html div#content .dokuwiki h1 a {
+  padding-bottom: 2px;
+}
+*:first-child+html div#content .dokuwiki h2 a,
+*:first-child+html div#content .dokuwiki h3 a {
+  padding-bottom: 1px;
+}
+/* MSIE 7: media manager */
+*:first-child+html #mediamanager__page .panelContent li {
+  list-style: none !important;
+  list-style-image: none !important;
+}
+*:first-child+html #mediamanager__page .panelContent ul.thumbs dl {
+  margin-left: 0;
+}
+/* MSIE: fix textarea in admin menu (incl. jumping bug MSIE8) */
+textarea,
+.dokuwiki #dw__editform textarea.edit {
+  /* fix scrollbar flickers in IE8 standards mode, see
+     http://j.mp/bHExde and http://j.mp/ad7Abj for details */
+  width: 450px\9;
+  max-width: 100%\9;
+  min-width: 100%\9;
+  /* overwrite original monobook with fixes for IE6/7 */
+  /*width: 100% !important;*/
+  border: auto;
+}
+/* admin menu icons: MSIE 6/7 */
+.dokuwiki ul.admin_tasks li div.li {
+  /*font-weight: bold;*/
+  /*border-left: 1px dashed __background__;*/ /* invisible border triggers IE to render the stuff */
+}
+
+div.tab {
+ margin-top:-1px;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/css/screen.css.bak
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/css/screen.css.bak	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/css/screen.css.bak	(revision 30132)
@@ -0,0 +1,1340 @@
+/******************************************************************************
+ ********************************  ATTENTION  *********************************
+         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
+ ******************************************************************************
+  If you want to add some own screen CSS, have a look at the README of this
+  template and "/user/screen.css". You have been warned!
+ *****************************************************************************/
+
+/* Notes about how the template CSS works:
+
+   - This template includes 3rd party CSS files:
+     1) CSS from the "starter" DokuWiki template by Anika Henke (brings
+        important and basic styling for syntax and core features)
+     2) CSS from the original "monobook" skin for MediaWiki (brings the basic
+        layout and overwrites some "default" styling)
+     These files will be included BEFORE this specific CSS file. In this file,
+     I just overwrite non fitting MediaWiki "monobook" and DokuWiki "starter"
+     CSS + add some CSS for some exclusive objects of this template
+   - Why I am doing this? Well, read <http://j.mp/eq8zSo>. I followed the main
+     principle described there and simply apply it to the two sources ("starter"
+     template and "monobook" skin).
+   - This way also ensures a painless update, if there are new versions of
+     MediaWiki monobook or DokuWiki CSS files. Cause these 3rd party components
+     were not edited or partially copied, I do not have to track their changes
+     in detail.
+
+   Explanation of the different sections in here:
+   - "Styles/corrections for the template itself"
+     General CSS targeting the template structure. This section overwrites non
+     fitting CSS of the "monobook" MediaWiki skin and "starter" DokuWiki
+     template. Read the notes above and <http://j.mp/eq8zSo> if you do not know
+     why I am doing it this way.
+   - "Browser Hacks and corrections"
+     Section containing bigger hacks for browser specific problems.
+*/
+
+
+/******************************************************************************
+ ************** Styles/corrections for the template itself ********************
+ ******************************************************************************/
+/* --------------- general styling --------------- */
+html {
+  background-color: #f9f9f9;
+  color: __text__;
+  margin: 0;
+  padding: 0;
+  overflow-x: auto;
+  overflow-y: auto;
+}
+hr {
+  border: 0 none;
+  text-align: center;
+  width: 100%;
+  clear: both;
+}
+pre,
+code,
+samp,
+kbd {
+  font-family: monospace,sans-serif;
+}
+pre {
+  overflow: auto;
+}
+img {
+  border-width: 0;
+  background-color: transparent;
+}
+blockquote {
+  padding: 0 1.25em;
+  border: solid __border__;
+  border-width: 0 0 0 .25em;
+}
+q:before,
+q:after {
+  content: '';
+}
+sub,
+sup {
+  font-size: .8em;
+  line-height: 1;
+}
+sub {
+  vertical-align: sub;
+}
+sup {
+  vertical-align: super;
+}
+
+/* forms */
+form {
+  display: inline;
+  padding: 0;
+}
+label {
+  vertical-align: middle;
+  cursor: pointer;
+}
+input,
+textarea,
+button,
+select,
+optgroup,
+option {
+  font: inherit;
+  color: inherit;
+  /* background-color destroys button look */
+  line-height: 1;
+  margin: 0;
+  vertical-align: middle;
+}
+input[type=text],
+input[type=password],
+textarea {
+  padding: .1em;
+}
+input[type=radio],
+input[type=checkbox],
+input.check {
+  padding: 0;
+}
+input[type=submit],
+input.button,
+button {
+  cursor: pointer;
+}
+input[disabled],
+button[disabled],
+input[readonly],
+button[readonly] {
+  cursor: auto;
+}
+optgroup {
+  font-style: italic;
+  font-weight: bold;
+}
+option {
+  font-style: normal;
+  font-weight: normal;
+}
+
+/* tables */
+table {
+  border-collapse: collapse;
+  empty-cells: show;
+  border-spacing: 0;
+  border: 1px solid __border__;
+}
+caption {
+  caption-side: top;
+  text-align: left;
+  margin: 0 0 .3em;
+}
+th,
+td {
+  padding: .3em .5em;
+  margin: 0;
+  vertical-align: top;
+  border: 1px solid __border__;
+  text-align: left;
+}
+th {
+  font-weight: bold;
+  background-color: __background_alt__;
+}
+
+/* basic margins and paddings */
+p,
+pre,
+table,
+blockquote,
+fieldset,
+address {
+  margin: 0 0 1.4em 0; /* bottom margin = line-height */
+  padding: 0;
+}
+div {
+  margin: 0;
+  padding: 0;
+}
+
+/* lists */
+li,
+dd {
+  padding: 0;
+  margin: 0 0 0 1.5em;
+}
+dt {
+  font-weight: bold;
+  margin: 0;
+  padding: 0;
+}
+li ul,
+li ol,
+li dl,
+dl ul,
+dl ol,
+dl dl {
+  margin-bottom: 0;
+  padding: 0;
+}
+li li {
+  font-size: 100%;
+}
+ul             { list-style: square outside; }
+ol             { list-style: decimal outside; }
+ol ol          { list-style-type: lower-alpha; }
+ol ol ol       { list-style-type: upper-roman; }
+ol ol ol ol    { list-style-type: upper-alpha; }
+ol ol ol ol ol { list-style-type: lower-roman; }
+
+/* general classes */
+div.clearer {
+  /* additional to what's already in DokuWiki's lib/styles/all.css: */
+  font-size: 1px;
+  visibility: hidden;
+}
+.a11y {
+  position: absolute;
+  left: -9000px;
+  top: -4000px;
+  width: 0;
+  height: 0;
+  overflow: hidden;
+  display: inline;
+}
+
+/* special pages background: discussion */
+.ns-1 #content,
+.ns-1 #p-cactions li,
+.ns-1 #p-cactions li a {
+   background: #f8fcff;
+}
+
+/* special pages background: media/cite etc. */
+.ns-2 #content,
+.ns-2 #p-cactions li,
+.ns-2 #p-cactions li a,
+.ns-2 #media__manager_table {
+   background: #f3f3ff;
+}
+
+/* bold tabs */
+#p-cactions .selected,
+#ca-edit { /* edit tab should be always bold */
+  font-weight: bold;
+}
+
+/* take care about hiding the bottom border when tab is selected */
+#p-cactions .selected,
+#p-cactions .selected a,
+#p-cactions .selected span {
+  z-index: 3;
+  padding-bottom: 0.17em; /* fix for <= IE7 */
+}
+.ns-0 #p-cactions .selected,
+.ns-0 #p-cactions .selected a,
+.ns-0 #p-cactions .selected span {
+  background-color: __background__;
+}
+
+/* link to current page */
+.dokuwiki span.curid a {
+  font-weight: normal;
+}
+
+/* internal link, existing */
+.dokuwiki a.wikilink1,
+.dokuwiki a.wikilink1:visited {
+  color: __existing__ !important;
+}
+
+/* missing page red: common */
+a.wikilink2:link,
+a.wikilink2:visited,
+a.wikilink2:hover {
+  color: __missing__ !important;
+}
+
+/* missing page red: tabs */
+#p-cactions li a.wikilink2 {
+  color: __missing__;
+}
+
+
+/* --------------- content styling --------------- */
+
+/* embedded images (styles are already partly set in DokuWiki's lib/styles/all.css) */
+.dokuwiki img.media       { }
+.dokuwiki img.medialeft   { margin: .5em 1.5em .5em 0; }
+.dokuwiki img.mediaright  { margin: .5em 0 .5em 1.5em; }
+.dokuwiki img.mediacenter { margin: .5em auto; }
+
+/* general tags */
+div.dokuwiki p,
+div.dokuwiki blockquote,
+div.dokuwiki table,
+div.dokuwiki pre {
+  margin: 0 0 1.0em 0;
+}
+div.dokuwiki caption {
+  font-family: sans-serif;
+}
+
+/* forms */
+div.dokuwiki textarea.edit {
+  font-family: monospace, serif;
+  /* second generic font fixes problem with font-size, see
+http://meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/ */
+  font-size: 14px;
+  color: __text__;
+  background-color: __background__;
+  border: 1px solid __border__;
+  padding: 0.3em 0 0 0.3em;
+  width: 100%;
+  line-height: 17px;
+}
+
+div.dokuwiki legend {
+  font-family: sans-serif;
+  font-weight: normal;
+  background-color: transparent;
+  text-align: left; /* needed for webkit browsers */
+}
+
+/* nice alphatransparency background except for IE <7 */
+html>body div.dokuwiki textarea.edit {
+  background: __background__ url(static/3rd/dokuwiki/inputshadow.png) repeat-x top;
+}
+
+div.dokuwiki input.edit,
+div.dokuwiki select.edit {
+  font-size: 100%;
+  border: 1px solid __border__;
+  color: __text__;
+  background-color: __background__;
+  vertical-align: middle;
+  margin: 1px;
+  padding: 0.20em 0.3em;
+  display: inline;
+  font-weight: normal;
+}
+
+/* nice alphatransparency background except for IE <7 */
+html>body div.dokuwiki input.edit,
+html>body div.dokuwiki select.edit {
+  background: __background__ url(static/3rd/dokuwiki/inputshadow.png) repeat-x top;
+}
+
+div.dokuwiki select.edit {
+  padding: 0.1em 0;
+}
+
+div.dokuwiki input.missing {
+  font-size: 100%;
+  border: 1px solid __border__;
+  color: __text__;
+  background-color: #ffcccc;
+  vertical-align: middle;
+  margin: 1px;
+  padding: 0.20em 0.3em;
+  display: inline;
+}
+
+/* disabled style - not understood by IE */
+div.dokuwiki textarea.edit[disabled],
+div.dokuwiki textarea.edit[readonly],
+div.dokuwiki input.edit[disabled],
+div.dokuwiki input.edit[readonly],
+div.dokuwiki input.button[disabled],
+div.dokuwiki select.edit[disabled] {
+  background-color: __background_neu__!important;
+  color: __text_neu__!important;
+  font-weight: normal;
+}
+
+/* edit form */
+div.dokuwiki div.toolbar,
+div.dokuwiki div#wiki__editbar {
+   margin: 2px 0;
+   text-align: left;
+}
+div.dokuwiki div#size__ctl {
+   float: right;
+   width: 60px;
+   height: 2.7em;
+}
+div.dokuwiki #size__ctl img {
+   cursor: pointer;
+}
+div.dokuwiki div#wiki__editbar div.editButtons {
+   float: left;
+   padding: 0 1.0em 0.7em 0;
+}
+div.dokuwiki div#wiki__editbar div.summary {
+   float: left;
+}
+div.dokuwiki .nowrap {
+   white-space: nowrap;
+}
+div.dokuwiki div#draft__status {
+  float: right;
+  color: __text_alt__;
+}
+
+div.dokuwiki div.license {
+  padding: 0.5em;
+  font-size: 90%;
+  text-align: center;
+}
+
+div.dokuwiki form#dw__editform div.license {
+  clear: left;
+  font-size: 90%;
+}
+
+/* buttons */
+div.dokuwiki input.button,
+div.dokuwiki button.button {
+  border: 1px solid __border__;
+  color: __text__;
+  background-color: __background__;
+  vertical-align: middle;
+  text-decoration: none;
+  font-size: 100%;
+  cursor: pointer;
+  margin: 1px;
+  padding: 0.125em 0.4em;
+  font-weight: normal;
+  line-height: 1.333em;
+  #line-height: 1em; /* fix MSIE 6, 7 */
+}
+div.dokuwiki button.toolbutton {
+  height: 20px;
+  width: 24px;
+  padding: 1px 3px;
+  line-height: 16px;
+  text-align: center;
+  height: 22px\9; /* fix MSIE 6, 7, 8 */
+}
+/* nice alphatransparency background except for IE <7 */
+html>body div.dokuwiki input.button,
+html>body div.dokuwiki button.button {
+  background: __background__ url(static/3rd/dokuwiki/buttonshadow.png) repeat-x bottom;
+}
+
+* html div.dokuwiki input.button,
+* html div.dokuwiki button.button {
+  height: 1.8em;
+}
+
+div.dokuwiki div.secedit input.button {
+  border: 1px solid __border__;
+  color: __text__;
+  background-color: __background__;
+  vertical-align: middle;
+  text-decoration: none;
+  margin: 0;
+  padding: 0;
+  font-size: 10px;
+  cursor: pointer;
+  float: right;
+  display: inline;
+}
+
+
+/* links */
+div.dokuwiki a:link,
+div.dokuwiki a:visited {
+  color: #436976;
+  text-decoration: none;
+}
+div.dokuwiki a:hover,
+div.dokuwiki a:active {
+  color: __text__;
+  text-decoration: underline;
+}
+
+/* external link */
+div.dokuwiki a.urlextern {
+  background: transparent url(static/3rd/monobook/external.png) center right no-repeat;
+  padding: 1px 13px 1px 0px;
+  color: #436976;
+  text-decoration: none;
+}
+div.dokuwiki a.urlextern:visited {
+  color: purple;
+}
+
+/* interwiki link */
+div.dokuwiki a.interwiki {
+  color: #436976;
+}
+div.dokuwiki a.interwiki:visited {
+  color: purple;
+}
+
+/* windows share */
+div.dokuwiki a.windows {
+  background: transparent url(static/3rd/dokuwiki/windows.gif) center left no-repeat;
+  color: #436976;
+}
+
+/* email link */
+div.dokuwiki a.mail {
+  background: transparent url(static/3rd/dokuwiki/mail_icon.gif) center left no-repeat;
+  color: #436976;
+}
+
+/* headlines */
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+  font-family: sans-serif;
+  background-color: inherit;
+  padding: 0;
+  clear: left; /* ideally 'both', but problems with toc */
+}
+div#content .dokuwiki h1,
+div#content .dokuwiki h2,
+div#content .dokuwiki h3,
+div#content .dokuwiki h4,
+div#content .dokuwiki h5,
+div#content .dokuwiki h6 {
+  border-bottom: 1px solid #aaa;
+  color: __text__;
+  margin: 0;
+  padding-bottom: 0.17em;
+  padding-top: 0.5em;
+}
+div#content .dokuwiki h1 a,
+div#content .dokuwiki h2 a,
+div#content .dokuwiki h3 a,
+div#content .dokuwiki h4 a,
+div#content .dokuwiki h5 a,
+div#content .dokuwiki h6 a {
+  color: __text__;
+}
+div#content .dokuwiki h1 a:hover,
+div#content .dokuwiki h2 a:hover,
+div#content .dokuwiki h3 a:hover,
+div#content .dokuwiki h4 a:hover,
+div#content .dokuwiki h5 a:hover,
+div#content .dokuwiki h6 a:hover {
+  text-decoration: none;
+}
+div#content .dokuwiki h1 {
+  font-size: 160%;
+}
+div#content .dokuwiki h1,
+div#content .dokuwiki h2 {
+  margin-bottom: 0.6em;
+  font-weight: normal;
+}
+div#content .dokuwiki h3,
+div#content .dokuwiki h4,
+div#content .dokuwiki h5,
+div#content .dokuwiki h6 {
+  font-weight: bold;
+  border-bottom: none;
+  margin-bottom: 0.3em;
+}
+div#content .dokuwiki h3 {
+  font-size: 132%;
+}
+div#content .dokuwiki h4 {
+  font-size: 116%;
+}
+div#content .dokuwiki h5 {
+  font-size: 100%;
+}
+div#content .dokuwiki h6 {
+  font-size: 80%;
+}
+
+/* remove indent from different sections */
+div#content .dokuwiki div.level1,
+div#content .dokuwiki div.level2,
+div#content .dokuwiki div.level3,
+div#content .dokuwiki div.level4,
+div#content .dokuwiki div.level5 {
+  margin-left: 0;
+}
+
+/* lists */
+div.dokuwiki ul {
+  line-height: 1.5em;
+  padding: 0;
+  list-style-type: square;
+  list-style-image: url(static/3rd/monobook/bullet.gif) !important;
+  margin: 0.3em 0 1em 1.5em;
+  color: __text_alt__;
+}
+
+div.dokuwiki ol {
+  line-height: 1.5em;
+  padding: 0;
+  list-style-image: none;
+  margin: 0.3em 0 1em 3.2em;
+  color: __text_alt__;
+  font-weight: bold;
+}
+
+div.dokuwiki li ul,
+div.dokuwiki li ol {
+  margin: 0 0 0 1.5em; /* no bottom gap in between and smaller left margin for nested lists */
+}
+
+div.dokuwiki .li {
+  color: __text__;  /* the list items overriding the ul/ol definition */
+  font-weight: normal;
+}
+
+div.dokuwiki ol { list-style-type: decimal; }
+div.dokuwiki ol ol { list-style-type: upper-roman; }
+div.dokuwiki ol ol ol { list-style-type: lower-alpha; }
+div.dokuwiki ol ol ol ol { list-style-type: lower-greek; }
+
+div.dokuwiki li.open {
+  list-style-image: url(static/3rd/dokuwiki/images/open.gif);
+}
+
+div.dokuwiki li.closed {
+  list-style-image: url(static/3rd/dokuwiki/closed.gif);
+}
+
+div#content div.dokuwiki li {
+  margin-left: 0;
+  margin-bottom: 1px;
+}
+
+/* quotes */
+div#content .dokuwiki blockquote {
+  border-left: 2px solid __border__;
+  padding-left: 3px;
+  padding-right: 0;
+  margin-left: 0.2em;
+}
+
+/* preformatted stuff, source code */
+.dokuwiki dl.code dt,
+.dokuwiki dl.file dt {
+  background-color: __background_alt__;
+  border: solid __border__;
+  border-width: 1px 1px 0;
+  color: inherit;
+  display: inline;
+  padding: 0 .5em;
+  margin-left: 1em;
+}
+.dokuwiki dl.code dd,
+.dokuwiki dl.file dd {
+  margin: 0;
+}
+div#content .dokuwiki code,
+div#content .dokuwiki pre,
+div#content .dokuwiki pre.code,
+div#content .dokuwiki pre.file,
+div#content .dokuwiki samp,
+div#content .dokuwiki kbd,
+div#content .dokuwiki tt {
+  font-size: 110%;
+  line-height: 1.4em;
+  font-family: monospace;
+  background-color: #f9f9f9;
+  direction: ltr;
+  text-align: left;
+}
+div#content .dokuwiki em.u code { /* fix if background-color hides underlining */
+  text-decoration: underline;
+}
+div#content .dokuwiki pre,
+div#content .dokuwiki pre.code,
+div#content .dokuwiki pre.file {
+  line-height: 1.2em;
+  padding: 0.5em;
+  border-style: dashed;
+}
+div#content .dokuwiki dl.file,
+div#content .dokuwiki dl.file dd {
+  margin-left: 0;
+}
+div#content .dokuwiki dl.file dt,
+div#content .dokuwiki dl.code dt {
+  background-color: #f9f9f9;
+  border-bottom: 2px solid #f9f9f9;
+  border-top: 1px dashed __border__;
+  border-left: 1px dashed __border__;
+  border-right: 1px dashed __border__;
+  display: inline;
+  margin-left: 2em;
+  padding: 0.1em 1em;
+}
+div#content .dokuwiki dl.file dt a,
+div#content .dokuwiki dl.code dt a {
+  color: __text__;
+}
+div#content .dokuwiki dl.file dt a.mediafile {
+  padding-top: 1px;
+}
+
+/* "you are here" and "breadcrumbs" */
+.catlinks {
+  margin-bottom: 0.5em;
+}
+.catlinks p {
+  margin: 0.3em 0 !important;
+}
+
+/* tables */
+th,
+td {
+  border: 0;
+}
+td[align="right"],
+th[align="right"] {
+  text-align: right;
+}
+div.dokuwiki table.inline {
+  background-color: __background__;
+}
+div.dokuwiki table.inline th,
+div.dokuwiki table.inline td {
+  border: 1px solid __border__;
+}
+div.dokuwiki table.inline th {
+  background-color: __background_alt__;
+}
+div.dokuwiki table.inline tr:hover td,
+div.dokuwiki table.inline tr:hover th,
+div.dokuwiki table.inline th:hover {
+  background-color: __background_alt__;
+}
+
+/* different stuff */
+#p-cactions #ca-addsection a {
+  padding-left: .4em;
+  padding-right: .4em;
+}
+
+/* customize ajax "matching pagename" searchbox */
+#qsearch__in {
+  width: 10.9em;
+  margin: 0;
+  font-size: 95%;
+}
+#qsearch__out {
+  background-color: #f9f9f9;
+  border: 1px solid __border__;
+  display: none;
+  font-size: 80%;
+  line-height: 1.2em;
+  opacity: 0.9;
+  padding: 4px;
+  text-align: left;
+  position: absolute;
+  left: 150px;
+  z-index: 30000;
+  margin-top: -60px;
+}
+div.dokuwiki div.ajax_qsearch {
+  position: absolute;
+  width: 200px;
+  opacity: 0.9;
+  display: none;
+  font-size: 80%;
+  line-height: 1.2em;
+  border: 1px solid #8cacbb;
+  background-color: #f7f9fa;
+  text-align: left;
+  padding: 4px;
+}
+
+/* offsets to distinguish the tab groups */
+li#ca-talk {
+    margin-right: 1.6em;
+}
+li#ca-watch, li#ca-unwatch, li#ca-varlang-0, li#ca-print {
+    margin-left: 1.6em;
+}
+
+/* section edit buttons */
+.dokuwiki .secedit {
+  margin-top: 0;
+}
+div.secedit input.button{
+  border: 0 none !important;
+  text-transform: lowercase;
+  color: blue !important;
+  background: none 0 !important;
+  vertical-align: middle;
+  text-decoration: none;
+  margin: 0px;
+  padding: 0px;
+  font-size: 10px;
+  cursor: pointer;
+  height: 15px !important;
+  max-height: 15px !important;
+  min-height: 15px !important;
+  float:right;
+}
+div.secedit2 {
+  text-align: right;
+}
+div.secedit2 a {
+  border: 0px;
+  text-transform: lowercase;
+  color: blue;
+  background-color: transparent;
+  vertical-align: middle;
+  text-decoration: none;
+  font-size: 10px;
+  cursor: pointer;
+}
+
+/* personal tools */
+div#column-one #p-personal.portlet .pBody ul {
+  background: transparent none 0 0;
+  line-height: 1.4em !important;
+  list-style-image: none !important;
+  list-style-position: outside;
+  list-style-type: none !important;
+  margin: 0 !important;
+  padding: 0 2em 0 3em !important;
+  text-align: right;
+}
+
+/* footnotes */
+div.dokuwiki div.fn {
+  font-size: 90%;
+}
+
+/* link to footnote inside the text */
+.dokuwiki sup a.fn_top {
+  color: #436976;
+}
+
+/* link to text from footnote */
+.dokuwiki sup a.fn_bot {
+  color: #436976;
+}
+
+/* insitu-footnotes */
+div.insitu-footnote {
+  font-size: 100% !important;
+  padding: 4px 7px;
+  z-index: 3 !important; /* z-index needed, otherwise the footnotes will be rendered below
+                            the main content area of monobook */
+}
+
+/* Toolbar */
+button.toolbutton {
+  background-color: __background__;
+  padding: 0px;
+  margin: 0 1px 0 0;
+  border: 1px solid __border__;
+  cursor: pointer;
+}
+
+/* nice alphatransparency background except for IE <7 */
+html>body button.toolbutton {
+  background: __background__ url(static/3rd/dokuwiki/buttonshadow.png) repeat-x bottom;
+}
+
+div.picker {
+  width: 250px;
+  border: 1px solid __border__;
+  background-color: __background_alt__;
+  font-size: 11px;
+  line-height: 13px;
+}
+
+div.pk_hl {
+  width: 125px;
+}
+
+button.pickerbutton {
+  padding: 0px;
+  margin: 0 1px 1px 0;
+  border: 0;
+  background-color: transparent;
+  font-size: 80%;
+  cursor: pointer;
+}
+
+/* gallery plugin compatibilty */
+div.dokuwiki .gallery table,
+div.dokuwiki .gallery td {
+  border: 0 none;
+}
+
+/* bureaucracy plugin compatibilty */
+div.dokuwiki form.bureaucracy__plugin fieldset {
+  text-align: center;
+}
+div.dokuwiki form.bureaucracy__plugin label {
+  width: 95% !important;
+  margin-left: auto;
+  margin-right: auto;
+}
+div.dokuwiki form.bureaucracy__plugin label span,
+div.dokuwiki form.bureaucracy__plugin input.edit,
+div.dokuwiki form.bureaucracy__plugin textarea.edit,
+div.dokuwiki form.bureaucracy__plugin fieldset textarea.edit {
+   text-align: left;
+   margin: auto 5px;
+   float: none !important;
+   width: 97% !important;
+   min-width: 97% !important;
+   max-width: 97% !important;
+}
+
+
+/* --------------- sidebar --------------- */
+div#column-one .portlet .pBody ul {
+  font-size: 95%;
+  line-height: 1.5em;
+  list-style-image: url(static/3rd/monobook/bullet.gif);
+  list-style-type: square;
+  margin: 0.3em 0 0 1.5em;
+  padding: 0;
+}
+div#column-one .portlet .pBody a {
+  background: transparent none no-repeat scroll 0 0;
+  color: #002bb8;
+  text-decoration: none;
+  border-bottom: 0 none !important;
+}
+div#column-one .portlet .pBody a:visited {
+  color: #002bb8;
+}
+div#column-one .portlet .pBody a:hover {
+  text-decoration: underline !important;
+}
+/* translation plugin by Anreas Gohr */
+div#column-one .pBody .dokuwiki .plugin_translation span {
+  display: none;
+}
+div#column-one .pBody .dokuwiki .plugin_translation {
+  padding-right: 0 !important;
+  text-align: left;
+}
+div#column-one .pBody .dokuwiki .plugin_translation,
+div#column-one .pBody .dokuwiki .plugin_translation ul,
+div#column-one .pBody .dokuwiki .plugin_translation li {
+  float: none;
+  margin: 0;
+  padding-right: 0;
+  line-height: 1.5em;
+  font-size: 100%;
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul {
+  list-style-image: url(static/3rd/monobook/bullet.gif);
+  list-style-type: square !important;
+  margin: 0.3em 0 0 1.5em;
+  padding: 0;
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:link,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:hover,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:active,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:visited,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:link,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:hover,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:active,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:visited {
+  background-color: transparent;
+  margin: 0;
+  padding: 0;
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:before,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:before {
+  content: attr(title) " (";
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:after,
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:after {
+  content: ") ";
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1 {
+  color: __existing__ !important;
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2 {
+  color: __missing__ !important;
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink1:hover {
+  text-decoration: underline;
+}
+div#column-one .pBody .dokuwiki .plugin_translation ul li a.wikilink2:hover {
+  text-decoration: underline !important;
+}
+div#column-one .pBody .dokuwiki .plugin_translation select {
+  width: 90%;
+  margin: auto !important;
+  text-align: left;
+}
+div#column-one .pBody .dokuwiki .plugin_translation option,
+div#column-one .pBody .dokuwiki .plugin_translation option.wikilink1,
+div#column-one .pBody .dokuwiki .plugin_translation option.wikilink2 {
+  padding: auto 5px !important;
+  text-align: left;
+}
+
+
+/* --------------- Table of contents (TOC) ---------------  */
+div.dokuwiki div.toc {
+  margin: 1.2em 0 0 2em;
+  float: right;
+  width: 200px;
+  font-size: 80%;
+  clear: both;
+}
+
+div.dokuwiki div.tocheader {
+  border: 1px solid __border__;
+  background-color: __background_alt__;
+  text-align: left;
+  font-weight: bold;
+  padding: 3px;
+  margin-bottom: 2px;
+}
+
+div.dokuwiki span.toc_open,
+div.dokuwiki span.toc_close {
+  border: 0.4em solid __background_alt__;
+  float: right;
+  display: block;
+  margin: 0.4em 3px 0 0;
+}
+
+div.dokuwiki span.toc_open span,
+div.dokuwiki span.toc_close span {
+  display: none;
+}
+
+div.dokuwiki span.toc_open {
+  margin-top: 0.4em;
+  border-top: 0.4em solid __text__;
+}
+
+div.dokuwiki span.toc_close {
+  margin-top: 0;
+  border-bottom: 0.4em solid __text__;
+}
+
+div.dokuwiki #toc__inside {
+  border: 1px solid __border__;
+  background-color: __background__;
+  text-align: left;
+  padding: 0.5em 0 0.7em 0;
+}
+
+div.dokuwiki ul.toc {
+  list-style-type: none;
+  list-style-image: none;
+  line-height: 1.2em;
+  padding: 0 !important;
+  margin: 0.3em 0 0 1.5em !important;
+}
+
+div.dokuwiki ul.toc li {
+  list-style-image: none;
+  list-style-type: none;
+  background: transparent url(static/3rd/dokuwiki/tocdot2.gif) 0 0.6em no-repeat;
+  padding-left: 0.4em !important;
+  margin-bottom: 0.1em !important;
+}
+
+div.dokuwiki ul.toc li.clear {
+  background-image: none;
+  padding-left: 0.4em;
+}
+
+div.dokuwiki a.toc:link,
+div.dokuwiki a.toc:visited {
+  color: #436976;
+}
+
+div.dokuwiki a.toc:hover,
+div.dokuwiki a.toc:active {
+  color: __text__;
+}
+
+
+/* --------------- admin menu --------------- */
+/* "remember me" checkbox, login */
+div.dokuwiki form#dw__login label.simple {
+  text-align: center;
+  padding-bottom: 0.4em;
+}
+/* main menu */
+.dokuwiki ul.admin_tasks li {
+  background: transparent none no-repeat scroll 0 0;
+  list-style-type: none;
+  list-style-image: none;
+  margin-bottom: 1em !important;
+}
+.dokuwiki ul.admin_tasks li a {
+  font-weight: bold;
+}
+.picker {
+  z-index: 3; /* z-index needed, otherwise the pull-down menus will be rendered
+                 below the main content area of monobook */
+}
+/* acl tree */
+#acl__tree li {
+  list-style-image: none;
+  list-style-type: none;
+}
+
+
+/* --------------- media manager popup --------------- */
+html.popup {
+  background-color: #fff;
+}
+html.popup body {
+  font: 13px/17px sans-serif;
+  background-image: none;
+  background-color: #fff;
+}
+html.popup #media__manager {
+  min-height: 465px;
+}
+* html.popup #media__manager {
+  height: 465px; /* fix MSIE 6 */
+}
+html.popup #media__manager h1,
+html.popup #media__manager h2,
+html.popup #media__popup h1,
+html.popup #media__popup h2 {
+  font-size: 1em !important;
+  line-height: 1em !important;
+  font-weight: bold !important;
+}
+html.popup #media__opts {
+  padding-left: 1em;
+  margin-bottom: 0.5em;
+}
+html.popup #media__opts input {
+  float: left;
+  display: block;
+  margin-top: 4px;
+  position: absolute;
+}
+*+html.popup #media__opts input,
+* html.popup #media__opts input {
+  position: static;
+}
+html.popup #media__opts label {
+  display: block;
+  float: left;
+  margin-left: 20px;
+  margin-bottom: 4px;
+}
+*+html.popup #media__opts label,
+* html.popup #media__opts label {
+  margin-left: 10px;
+}
+html.popup #media__opts br {
+  clear: left;
+}
+
+
+/* --------------- media manager page --------------- */
+#mediamanager__page h2,
+#mediamanager__page h3 {
+  font-size: 1em !important;
+  line-height: 1.5em !important;
+  font-weight: normal !important;
+  padding: 3px 10px !important;
+}
+#mediamanager__page div.namespaces h2 {
+  margin-bottom: 0;
+  border-bottom: 0;
+}
+#mediamanager__page div.namespaces div.panelHeader {
+  padding-top: 11px;
+}
+#mediamanager__page h3,
+#mediamanager__page ul.tabs li {
+  margin: 0 !important;
+  padding: 0 !important;
+}
+#mediamanager__page .panelHeader ul {
+  list-style-image: none !important;
+}
+#mediamanager__page .panelHeader ul .ui-buttonset {
+  font-size: 12px;
+}
+#mediamanager__page .panelHeader ul li.ui-buttonset {
+  background-position: 3px 0;
+  padding-bottom: 3px;
+}
+#mediamanager__page .panelHeader div.no input.button {
+  padding: 1px;
+  line-height: 1em;
+}
+
+
+/* --------------- link wizard --------------- */
+#link__wiz {
+  text-align: center;
+}
+#link__wiz_result div.even {
+  background-color: #f5f5f5;
+}
+
+
+/* --------------- footer --------------- */
+/* default copyright notice layout */
+div#footer li#copyright .license {
+  font-size: 100%;
+  padding: 0;
+}
+div#footer li#copyright .license a.urlextern {
+  margin-left: 0.4em;
+}
+
+
+/* --------------- search result formating --------------- */
+div.dokuwiki .search_result {
+  margin-bottom: 6px;
+  padding: 0 10px 0 30px;
+}
+
+div.dokuwiki .search_snippet {
+  font-size: 12px;
+  margin-left: 20px;
+}
+
+div.dokuwiki .search_sep {
+  color: __text__;
+}
+
+div.dokuwiki .search_hit {
+  color: __text__;
+  background-color: __highlight__;
+}
+div.dokuwiki strong.search_hit {
+  font-weight: normal;
+}
+
+div.dokuwiki div.search_quickresult {
+  margin: 0 0 15px 30px;
+  padding: 0 10px 10px 0;
+  border-bottom: 1px dashed __border__;
+}
+div.dokuwiki div.search_quickresult h3 {
+  margin: 0 0 1.0em 0;
+  font-size: 1em;
+  font-weight: bold;
+}
+
+div.dokuwiki ul.search_quickhits {
+  margin: 0 0 0.5em 1.0em;
+}
+
+div.dokuwiki ul.search_quickhits li {
+  margin: 0 1.0em 0 1.0em;
+  float: left;
+  width: 30%;
+}
+
+div.dokuwiki .section_highlight {
+  background-color: __background_alt__ !important;
+}
+
+
+/* --------------- JS popup ----------------- */
+.JSpopup {
+  background-color: __background__;
+  color: __text__;
+  border: 1px solid __border__;
+  line-height: 1.2;
+  padding: 0 .2em;
+}
+.JSpopup ul,
+.JSpopup ol {
+  padding-left: 0;
+}
+
+
+/* --------------- diff view ----------------- */
+.dokuwiki table.diff td {
+  font-size: 12px;
+  line-height: 17px;
+}
+.dokuwiki table.diff th {
+  font-size: 12px;
+}
+.dokuwiki table.diff td.diff-addedline,
+.dokuwiki table.diff td.diff-deletedline,
+.dokuwiki table.diff td.diff-context {
+  padding-left: 2px;
+  padding-right: 2px;
+}
+
+
+/******************************************************************************
+ ********************* Browser Hacks and corrections **************************
+ ******************************************************************************/
+/* MSIE 7: renders the anchor in headlines in two lines?! */
+*:first-child+html div#content .dokuwiki h1 a,
+*:first-child+html div#content .dokuwiki h2 a,
+*:first-child+html div#content .dokuwiki h3 a {
+  display: inline-block;
+}
+*:first-child+html div#content .dokuwiki h1 a {
+  padding-bottom: 2px;
+}
+*:first-child+html div#content .dokuwiki h2 a,
+*:first-child+html div#content .dokuwiki h3 a {
+  padding-bottom: 1px;
+}
+/* MSIE 7: media manager */
+*:first-child+html #mediamanager__page .panelContent li {
+  list-style: none !important;
+  list-style-image: none !important;
+}
+*:first-child+html #mediamanager__page .panelContent ul.thumbs dl {
+  margin-left: 0;
+}
+/* MSIE: fix textarea in admin menu (incl. jumping bug MSIE8) */
+textarea,
+.dokuwiki #dw__editform textarea.edit {
+  /* fix scrollbar flickers in IE8 standards mode, see
+     http://j.mp/bHExde and http://j.mp/ad7Abj for details */
+  width: 450px\9;
+  max-width: 100%\9;
+  min-width: 100%\9;
+  /* overwrite original monobook with fixes for IE6/7 */
+  #width: 100% !important;
+  border: auto;
+}
+/* admin menu icons: MSIE 6/7 */
+.dokuwiki ul.admin_tasks li div.li {
+  #font-weight: bold;
+  #border-left: 1px dashed __background__; /* invisible border triggers IE to render the stuff */
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/img/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/img/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/img/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/static/js/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/static/js/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/static/js/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/style.ini
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/style.ini	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/style.ini	(revision 30132)
@@ -0,0 +1,121 @@
+;;
+; INI to handle loading of the CSS files of the "monobook" template for DokuWiki
+;
+;
+; LICENSE: This file is open source software (OSS) and may be copied under
+;          certain conditions. See COPYING file for details or try to contact
+;          the author(s) of this file in doubt.
+;
+; @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+; @author Andreas Haerter <development@andreas-haerter.com>
+; @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+; @link http://www.dokuwiki.org/template:monobook
+; @link http://www.dokuwiki.org/devel:css#styleini
+
+
+
+; Please see http://www.php.net/manual/en/function.parse-ini-file.php
+; for limitations of the ini format used here
+
+; Define the stylesheets your template uses here. The second value
+; defines for which output media the style should be loaded. Currently
+; print, screen and rtl are supported. rtl styles are loaded additionally
+; to screen styles if a right-to-left language is selected (eg. hebrew)
+[stylesheets]
+
+; screen
+; note to myself: don't forget to respect the workaround within "bug49642.php"
+;                 when adding new screen styles.
+; load the DokuWiki styles. See <http://j.mp/eq8zSo> why I am doing this.
+static/3rd/dokuwiki/_imgdetail.css        = screen
+static/3rd/dokuwiki/_media_popup.css      = screen
+static/3rd/dokuwiki/_media_fullscreen.css = screen
+static/3rd/dokuwiki/_fileuploader.css     = screen
+static/3rd/dokuwiki/_tabs.css             = screen
+static/3rd/dokuwiki/_links.css            = screen
+static/3rd/dokuwiki/_toc.css              = screen
+static/3rd/dokuwiki/_footnotes.css        = screen
+static/3rd/dokuwiki/_search.css           = screen
+static/3rd/dokuwiki/_recent.css           = screen
+static/3rd/dokuwiki/_diff.css             = screen
+static/3rd/dokuwiki/_edit.css             = screen
+static/3rd/dokuwiki/_modal.css            = screen
+static/3rd/dokuwiki/_forms.css            = screen
+static/3rd/dokuwiki/_admin.css            = screen
+
+; load the most important MediaWiki monobook styles
+static/3rd/monobook/main.css = screen
+
+; load the specific "monobook for dokuwiki" styles
+static/css/screen.css = screen
+user/screen.css       = screen
+
+
+; print
+; note to myself: don't forget to respect the "print" action for the "printable
+;                 version" within "main.php" when adding new print styles.
+;                 I think this function is silly (cause therefore we got
+;                 different "media" but some people *always* searching for such
+;                 print version links). Good text about this: <http://j.mp/6r3Kgf>
+; note to myself: don't forget to respect the workaround within "bug49642.php"
+;                 when adding new print styles.
+; load the DokuWiki styles. See <http://j.mp/eq8zSo> why I am doing this.
+static/3rd/dokuwiki/print.css = print
+
+publish/print.css = print
+
+; load Wikipedia print styles
+static/3rd/wikipedia/commonPrint.css = print
+
+; load the specific "monobook for dokuwiki" styles
+static/css/print.css = print
+user/print.css       = print
+
+
+; right-to-left
+; note to myself: don't forget to respect the workaround within "bug49642.php"
+;                 when adding new rtl styles.
+; load the DokuWiki styles. See <http://j.mp/eq8zSo> why I am doing this.
+static/3rd/dokuwiki/rtl.css = rtl
+
+; load the most important MediaWiki monobook styles
+static/3rd/monobook/rtl.css = rtl
+
+; load the specific "monobook for dokuwiki" styles
+static/css/rtl.css = rtl
+user/rtl.css       = rtl
+
+; This section is used to configure some placeholder values used in
+; the stylesheets. Changing this file is the simplest method to
+; give your wiki a new look.
+[replacements]
+
+;--------------------------------------------------------------------------
+;------ guaranteed dokuwiki color placeholders that every plugin can use
+; main text and background colors
+;
+;note to myself: don't forget to respect the workaround within "bug49642.php"
+;                when changing values in here.
+__text__           = "#000"
+__background__     = "#fff"
+; alternative text and background colors
+__text_alt__       = "#000"
+__background_alt__ = "#dee7ec" ;"#eef3f8"
+; neutral text and background colors
+__text_neu__       = "#000"
+__background_neu__ = "#fff"
+; border color
+__border__         = "#8cacbb"
+;--------------------------------------------------------------------------
+
+; these are used for links
+__existing__  = "#002bb8" ;use #090 for dokuwiki-green links
+__missing__   = "#ba0000"
+
+; highlighting search snippets
+__highlight__ = "#ff9"
+
+; starter template css base compatibility: NOT USED, DO NOT CHANGE!
+__site_width__    = "64em"
+__sidebar_width__ = "16em"
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/template.info.txt
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/template.info.txt	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/template.info.txt	(revision 30132)
@@ -0,0 +1,7 @@
+﻿base     greenstone-monobook
+author   John Thompson
+email    jmt12@students.waikato.ac.nz
+date     2015-08-21
+name     greenstone-monobook template
+desc     Extends Andreas Haerter's awesome MediaWiki/Wikipedia look and feel template with customizations for Greenstone
+url      http://wiki.greenstone.org/
Index: documentation/trunk/wiki/templates/greenstone-monobook/template.info.txt~
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/template.info.txt~	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/template.info.txt~	(revision 30132)
@@ -0,0 +1,7 @@
+﻿base     monobook
+author   Andreas Haerter
+email    development@andreas-haerter.com
+date     2011-12-10
+name     monobook template
+desc     monobook brings you the traditional MediaWiki/Wikipedia look and feel for DokuWiki
+url      http://andreas-haerter.com/projects/dokuwiki-template-monobook
Index: documentation/trunk/wiki/templates/greenstone-monobook/user/.htaccess
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/user/.htaccess	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/user/.htaccess	(revision 30132)
@@ -0,0 +1,10 @@
+#Note: If this file prevents running monobook in your environment, simply delete
+#      it. Everything should be safe even if the files blocked by the following
+#      Apache rules are accessible.
+#      The reason for protecting these files is to to keep searchengines/foo
+#      away from indexing files containing version information, names and/or not
+#      necessarily public template parts by default.
+<FilesMatch "^(tabs|buttons|boxes)\.php$">
+  Order Deny,Allow
+  Deny from all
+</FilesMatch>
Index: documentation/trunk/wiki/templates/greenstone-monobook/user/boxes.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/user/boxes.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/user/boxes.php	(revision 30132)
@@ -0,0 +1,229 @@
+<?php
+
+/**
+ * Default box configuration of the "monobook" DokuWiki template
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:configuration
+ */
+
+
+
+/******************************************************************************
+ ********************************  ATTENTION  *********************************
+         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
+ ******************************************************************************
+  If you want to add some own boxes, have a look at the README of this
+  template and "/user/boxes.php". You have been warned!
+ *****************************************************************************/
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+
+//note: The boxes will be rendered in the order they were defined. Means:
+//      first box will be rendered first, last box will be rendered at last.
+
+
+//hide boxes for anonymous clients (closed wiki)?
+if (empty($conf["useacl"]) || //are there any users?
+    $loginname !== "" || //user is logged in?
+    !tpl_getConf("monobook_closedwiki")){
+
+    //Languages/translations provided by Andreas Gohr's translation plugin,
+    //see <http://www.dokuwiki.org/plugin:translation>. Create plugin object if
+    //needed.
+    if (file_exists(DOKU_PLUGIN."translation/syntax.php") &&
+        !plugin_isdisabled("translation")){
+        $transplugin = &plugin_load("syntax", "translation");
+    } else {
+        $transplugin = false;
+    }
+
+    //navigation
+    if (tpl_getConf("monobook_navigation")){
+        //headline
+        $_monobook_boxes["p-x-navigation"]["headline"] = $lang["monobook_bar_navigation"];
+
+        //detect wiki page to load as content
+        if (!empty($transplugin) &&
+            is_object($transplugin) &&
+            tpl_getConf("monobook_navigation_translate")){
+            //translated navigation?
+            $transplugin_langcur = $transplugin->hlp->getLangPart(cleanID(getId())); //current language part
+            $transplugin_langs   = explode(" ", trim($transplugin->getConf("translations"))); //available languages
+            if (empty($transplugin_langs) ||
+                empty($transplugin_langcur) ||
+                !is_array($transplugin_langs) ||
+                !in_array($transplugin_langcur, $transplugin_langs)) {
+                //current page is no translation or something is wrong, load default navigation
+                $nav_location = tpl_getConf("monobook_navigation_location");
+            } else {
+                //load language specific navigation
+                $nav_location = tpl_getConf("monobook_navigation_location")."_".$transplugin_langcur;
+            }
+        }else{
+            //default navigation, no translation
+            $nav_location = tpl_getConf("monobook_navigation_location");
+        }
+
+        //content
+        if (empty($conf["useacl"]) ||
+            auth_quickaclcheck(cleanID($nav_location)) >= AUTH_READ){ //current user got access?
+            //get the rendered content of the defined wiki article to use as custom navigation
+            $interim = tpl_include_page($nav_location, false);
+            if ($interim === "" ||
+                $interim === false){
+                //creation/edit link if the defined page got no content
+                $_monobook_boxes["p-x-navigation"]["xhtml"] = "[&#160;".html_wikilink($nav_location, hsc($lang["monobook_fillplaceholder"]." (".$nav_location.")"))."&#160;]<br />";
+            }else{
+                //the rendered page content
+                $_monobook_boxes["p-x-navigation"]["xhtml"] = $interim;
+            }
+        }
+        unset($nav_location);
+    }
+
+    //table of contents (TOC) - show outside the article? (this is a dirty hack but often requested)
+    if (tpl_getConf("monobook_toc_position") === "sidebar"){
+        //check if the current page got a TOC
+        $toc = tpl_toc(true);
+        if (!empty($toc)) {
+            //headline
+            $_monobook_boxes["p-toc"]["headline"] = $lang["toc"]; //language comes from DokuWiki core
+
+            //content
+            $_monobook_boxes["p-toc"]["xhtml"]    = //get rid of some styles and the embedded headline
+                                                    str_replace(//search
+                                                    array("<div class=\"tocheader toctoggle\" id=\"toc__header\">".$lang["toc"]."</div>", //language comes from DokuWiki core
+                                                          " class=\"toc\"",
+                                                          " id=\"toc__inside\""),
+                                                    //replace
+                                                    "",
+                                                    //haystack
+                                                    $toc);
+        }
+        unset($toc);
+    }
+
+    //search
+    if (tpl_getConf("monobook_search") &&
+        actionOK("search")){ //check if action is disabled
+        //headline
+        $_monobook_boxes["p-search"]["headline"] = $lang["monobook_bar_search"];
+
+        //content
+        $_monobook_boxes["p-search"]["xhtml"] =  "<form action=\"".wl()."\" accept-charset=\"utf-8\" id=\"dw__search\" name=\"dw__search\">\n"
+                                                ."  <input type=\"hidden\" name=\"do\" value=\"search\" />\n"
+                                                ."  <input id=\"qsearch__in\" name=\"id\" type=\"text\" accesskey=\"f\" value=\"\" />\n"
+                                                ."  <input type=\"button\" class=\"searchButton\" id=\"searchGoButton\" value=\"".hsc($lang["monobook_btn_go"])."\" onclick=\"document.location.href='".DOKU_BASE.DOKU_SCRIPT."?id='+document.getElementById('qsearch__in').value;\" />&#160;\n"
+                                                ."  <input type=\"submit\" name=\"fulltext\" class=\"searchButton\" value=\"".hsc($lang["monobook_btn_search"])."\" />\n"
+                                                ."</form>";
+    }
+
+    //toolbox
+    if (tpl_getConf("monobook_toolbox")){
+        //headline
+        $_monobook_boxes["p-tb"]["headline"] = $lang["monobook_bar_toolbox"];
+
+        //content
+        if (tpl_getConf("monobook_toolbox_default")){
+            //define default, predefined toolbox
+            $_monobook_boxes["p-tb"]["xhtml"] =  "        <ul>\n";
+            $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-refresh\"><a href=\"".wl(cleanID(getId()), array("purge" => "true"))."\" rel=\"nofollow\">Refresh Page</a></li>\n";
+            if (actionOK("backlink")){ //check if action is disabled
+                $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-whatlinkshere\"><a href=\"".wl(cleanID(getId()), array("do" => "backlink"))."\">".hsc($lang["monobook_toolbxdef_whatlinkshere"])."</a></li>\n"; //we might use tpl_actionlink("backlink", "", "", hsc($lang["monobook_toolbxdef_whatlinkshere"]), true), but it would be the only toolbox link where this is possible... therefore I don't use it to be consistent
+            }
+            if (actionOK("recent")){ //check if action is disabled
+                $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-recent\"><a href=\"".wl("", array("do" => "recent"))."\" rel=\"nofollow\">".hsc($lang["btn_recent"])."</a></li>\n"; //language comes from DokuWiki core
+            }
+            /*
+            if (actionOK("media")){ //check if action is disabled
+                if (function_exists("media_managerURL")) {
+                    //use new media manager (available on releases newer than 2011-05-25a "Rincewind" / since 2011-11-10 "Angua" RC1)
+                    $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-upload\"><a href=\"".wl("", array("do" => "media"))."\" rel=\"nofollow\">".hsc($lang["btn_media"])."</a></li>\n"; //language comes from DokuWiki core
+                }else{
+                    $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-upload\"><a href=\"".DOKU_BASE."lib/exe/mediamanager.php?ns=".getNS(getID())."\" rel=\"nofollow\">".hsc($lang["monobook_toolbxdef_upload"])."</a></li>\n";
+                }
+            }
+            */
+            if (actionOK("index")){ //check if action is disabled
+              //$_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-special\"><a href=\"".wl("", array("do" => "index"))."\" rel=\"nofollow\">".hsc($lang["monobook_toolbxdef_siteindex"])."</a></li>\n";
+              $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-special\"><a href=\"".wl("", array("id" => "wiki:special"))."\" rel=\"nofollow\">Special Pages</a></li>\n";
+	      // add a link to All Pages --kjdon
+	      // $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-all\"><a href=\"".wl("", array("id" => "wiki:special", "do" => "index"))."\" rel=\"nofollow\">All Pages</a></li>\n";
+	      // changed the All Pages link to make the en namespace be open --kjdon
+	      $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-all\"><a href=\"".wl("", array("idx" => "en"))."\" rel=\"nofollow\">All Pages</a></li>\n";
+            }
+            //add link to a printable version? this is not needed in every case (and
+            //therefore configurable) cause the print stylesheets are used automatically
+            //by common browsers if the user wants to print. but often users are
+            //searching for a print version instead of using the browser's printing
+            //preview...
+            if (tpl_getConf("monobook_toolbox_default_print")){
+                $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-print\"><a href=\"".wl(cleanID(getId()), array("rev" =>(int)$rev, "mddo" => "print"))."\" rel=\"nofollow\">".hsc($lang["monobook_toolbxdef_print"])."</a></li>\n";
+            }
+            $_monobook_boxes["p-tb"]["xhtml"] .= "          <li id=\"tb-permanent\"><a href=\"".wl(cleanID(getId()), array("rev" =>(int)$rev))."\" rel=\"nofollow\">".hsc($lang["monobook_toolboxdef_permanent"])."</a></li>\n"
+                                                ."          <li id=\"tb-cite\"><a href=\"".wl(cleanID(getId()), array("rev" =>(int)$rev, "mddo" => "cite"))."\" rel=\"nofollow\">".hsc($lang["monobook_toolboxdef_cite"])."</a></li>\n"
+                                                ."        </ul>";
+        }else{
+            //we have to use a custom toolbox
+            if (empty($conf["useacl"]) ||
+                auth_quickaclcheck(cleanID(tpl_getConf("monobook_toolbox_location"))) >= AUTH_READ){ //current user got access?
+                //get the rendered content of the defined wiki article to use as
+                //custom toolbox
+                $interim = tpl_include_page(tpl_getConf("monobook_toolbox_location"), false);
+                if ($interim === "" ||
+                    $interim === false){
+                    //add creation/edit link if the defined page got no content
+                    $_monobook_boxes["p-tb"]["xhtml"] =  "<li>[&#160;".html_wikilink(tpl_getConf("monobook_toolbox_location"), hsc($lang["monobook_fillplaceholder"]." (".tpl_getConf("monobook_toolbox_location").")"), null)."&#160;]<br /></li>";
+                }else{
+                    //add the rendered page content
+                    $_monobook_boxes["p-tb"]["xhtml"] =  $interim."\n";
+                }
+            }else{
+                //we are not allowed to show the content of the defined wiki
+                //article to use as custom sitenotice.
+                //$_monobook_boxes["p-tb"]["xhtml"] = hsc($lang["monobook_accessdenied"])." (".tpl_getConf("monobook_toolbox_location").")";
+            }
+        }
+    }
+
+    //Languages/translations provided by Andreas Gohr's translation plugin,
+    //see <http://www.dokuwiki.org/plugin:translation>
+    if (!empty($transplugin) &&
+        is_object($transplugin)){
+        $_monobook_boxes["p-lang"]["headline"] = $lang["monobook_bar_inotherlanguages"];
+        $_monobook_boxes["p-lang"]["xhtml"]    = $transplugin->_showTranslations();
+    }
+
+}else{
+
+    //headline
+    $_monobook_boxes["p-login"]["headline"] = $lang["btn_login"];
+    $_monobook_boxes["p-login"]["xhtml"] =  "      <ul>\n"
+                                           ."        <li id=\"t-login\"><a href=\"".wl(cleanID(getId()), array("do" => "login"))."\" rel=\"nofollow\">".hsc($lang["btn_login"])."</a></li>\n" //language comes from DokuWiki core
+                                           ."      </ul>";
+
+}
+
+
+/******************************************************************************
+ ********************************  ATTENTION  *********************************
+         DO NOT MODIFY THIS FILE, IT WILL NOT BE PRESERVED ON UPDATES!
+ ******************************************************************************
+  If you want to add some own boxes, have a look at the README of this
+  template and "/user/boxes.php". You have been warned!
+ *****************************************************************************/
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/user/boxes.php.original
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/user/boxes.php.original	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/user/boxes.php.original	(revision 30132)
@@ -0,0 +1,73 @@
+<?php
+
+/**
+ * User defined box configuration of the "monobook" DokuWiki template
+ *
+ * If you want to add/remove some boxes, have a look at the comments/examples
+ * and the DocBlock of {@link _monobook_renderBoxes()}, main.php
+ *
+ * To change the non-box related config, use the admin webinterface of DokuWiki.
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:configuration
+ */
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+
+//note: The boxes will be rendered in the order they were defined. Means:
+//      first box will be rendered first, last box will be rendered at last.
+
+
+
+
+
+//examples: uncomment to see what is happening
+/*
+$_monobook_boxes["example1"]["headline"] = "Hello World!";
+$_monobook_boxes["example1"]["xhtml"] = "DokuWiki with monobook... <em>rules</em>!";
+*/
+
+
+/*
+//QR-Code of the current page (thanks to Luigi Micco <http://www.luigimicco.altervista.org> for this)
+$_monobook_boxes["qrcode"]["headline"] = "QR-Code";
+$_monobook_boxes["qrcode"]["xhtml"] = '<img src="http://api.qrserver.com/v1/create-qr-code/?data='.urlencode(wl(cleanID(getId()), false, true, "&")).'&amp;size=135x135" style="margin:0.5em 0 0.3em -0.2em;" alt="QR-Code: '.wl(cleanID(getId()), false, true).'" title="QR-Code: '.wl(cleanID(getId()), false, true).'" /><p style="font-size:6px !important;margin:0;padding:0;color:#aaa;"><a href="http://goqr.me/" style="color:#aaa;">QR Code</a> by <a href="http://qrserver.com/" style="color:#aaa;">QR-Server</a></p>';
+*/
+
+
+/*
+$_monobook_boxes["example2"]["headline"] = "Some links";
+$_monobook_boxes["example2"]["xhtml"] =  "<ul>\n"
+                                        ."  <li><a href=\"".wl(cleanID(getId()), array("do" => "backlink"))."\" rel=\"nofollow\">".hsc($lang["monobook_toolbxdef_whatlinkshere"])."</a></li>\n" //we might use tpl_actionlink("backlink", "", "", hsc($lang["monobook_toolbxdef_whatlinkshere"]), true), but it would be the only toolbox link where this is possible... therefor I don't use it to be consistent
+                                        ."  <li><a href=\"http://www.example.com\">Example link</a></li>\n"
+                                        ."  <li><a href=\"".wl(cleanID(getId()), array("rev" => 0, "mddo" => "cite"))."\" rel=\"nofollow\">Cite newest version</a></li>\n"
+                                        ."</ul>";
+*/
+
+
+/*
+$_monobook_boxes["example3"]["headline"] = "Buttons";
+$_monobook_boxes["example3"]["xhtml"] = "<a href=\"http://andreas-haerter.com/donate/dokuwiki-template-monobook\" title=\"Donate\" target=\"_blank\"><img src=\"".DOKU_TPL."static/img/button-donate.gif\" width=\"80\" height=\"15\" alt=\"Donate\" border=\"0\" /></a>";
+*/
+
+
+/*
+//include the content of another wiki page (you have to create it first, for
+//sure. In this example, the page "wiki:your_page_here" is used)
+$_monobook_boxes["example4"]["headline"] = "wiki:your_page_here";
+$_monobook_boxes["example4"]["xhtml"] = tpl_include_page("wiki:your_page_here", false);
+*/
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/user/buttons.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/user/buttons.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/user/buttons.php	(revision 30132)
@@ -0,0 +1,74 @@
+<?php
+
+/**
+ * User defined button configuration of the "monobook" DokuWiki template
+ *
+ * If you want to add/remove some buttons, have a look at the comments/examples
+ * and the DocBlock of {@link _monobook_renderButtons()}, main.php
+ *
+ * To change the non-button related config, use the admin webinterface of
+ * DokuWiki.
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:configuration
+ */
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+
+//note: The buttons will be rendered in the order they were defined. Means:
+//      first button will be rendered first, last button will be rendered at
+//      last.
+
+
+//W3C (X)HTML validator button
+$_monobook_btns["valid_xhtml"]["img"]      = GSMONO_TPL."user/button-xhtml.png";
+$_monobook_btns["valid_xhtml"]["href"]     = "http://validator.w3.org/check/referer";
+$_monobook_btns["valid_xhtml"]["width"]    = 80;
+$_monobook_btns["valid_xhtml"]["height"]   = 15;
+$_monobook_btns["valid_xhtml"]["title"]    = "Valid XHTML";
+$_monobook_btns["valid_xhtml"]["nofollow"] = true;
+
+
+
+
+
+
+//examples: uncomment to see what is happening
+/*
+//W3C CSS validator button
+$_monobook_btns["valid_css"]["img"]      = DOKU_TPL."user/button-css.png";
+$_monobook_btns["valid_css"]["href"]     = "http://jigsaw.w3.org/css-validator/check/referer";
+$_monobook_btns["valid_css"]["width"]    = 80;
+$_monobook_btns["valid_css"]["height"]   = 15;
+$_monobook_btns["valid_css"]["title"]    = "Valid CSS";
+$_monobook_btns["valid_css"]["nofollow"] = true;
+*/
+
+/*
+//button using all attributes
+$_monobook_btns["example1"]["img"]      = DOKU_TPL."user/img/yourButtonHere.png";
+$_monobook_btns["example1"]["href"]     = "http://www.example.com";
+$_monobook_btns["example1"]["width"]    = 80;
+$_monobook_btns["example1"]["height"]   = 15;
+$_monobook_btns["example1"]["title"]    = "Example button";
+$_monobook_btns["example1"]["nofollow"] = false;
+*/
+
+/*
+//button using only mandatory attributes
+$_monobook_btns["example2"]["img"]      = DOKU_TPL."user/img/yourButtonHere.png";
+$_monobook_btns["example2"]["href"]     = "http://www.example.com";
+*/
Index: documentation/trunk/wiki/templates/greenstone-monobook/user/index.html
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/user/index.html	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/user/index.html	(revision 30132)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
+<head>
+  <title></title>
+</head>
+<body>
+<!-- prevent directory browsing -->
+</body>
+</html>
Index: documentation/trunk/wiki/templates/greenstone-monobook/user/print.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/user/print.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/user/print.css	(revision 30132)
@@ -0,0 +1,7 @@
+/* en: Place for user defined CSS rules (print media) - this file can safely be
+   preserved when updating. See README for details.
+   
+   de: Ort fÃŒr benutzerdefinierte CSS-Regeln (print media) - Diese Datei kann
+   beim DurchfÃŒhren von Updates ohne Risiko beibehalten werden. Konsultieren Sie
+   die README fÃŒr Detailinformationen. */
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/user/rtl.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/user/rtl.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/user/rtl.css	(revision 30132)
@@ -0,0 +1,7 @@
+/* en: Place for user defined CSS rules (right to left languages, e.g. hebrew) -
+   this file can safely be preserved when updating. See README for details.
+
+   de: Ort fÃŒr benutzerdefinierte CSS-Regeln ("rechts-nach-links"-Sprachen,
+   z.B. HebrÃ€isch) - Diese Datei kann beim DurchfÃŒhren von Updates ohne Risiko
+   beibehalten werden. Konsultieren Sie die README fÃŒr Detailinformationen. */
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/user/screen.css
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/user/screen.css	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/user/screen.css	(revision 30132)
@@ -0,0 +1,174 @@
+/* en: Place for user defined CSS rules (screen media) - this file can safely be
+   preserved when updating. See README for details.
+   
+   de: Ort fÃŒr benutzerdefinierte CSS-Regeln (screen media) - Diese Datei kann
+   beim DurchfÃŒhren von Updates ohne Risiko beibehalten werden. Konsultieren Sie
+   die README fÃŒr Detailinformationen. */
+
+/* Plugin: EnforceSummary */
+div.dokuwiki input.button_disabled {
+    color: #999;
+}
+
+/* Plugin: Publish */
+div.approval {
+  margin: 2em;
+  margin-left: auto;
+  margin-right: auto;
+  width: 70%;
+  min-height: 20px;
+  clear: both;
+  text-align: justify;
+  vertical-align: middle;
+  border-collapse: collapse;
+  padding: 15px 20px 15px 80px;
+  background-position: 30px 50%;
+  background-repeat: no-repeat;
+  -moz-border-radius: 10px;
+  -khtml-border-radius: 10px;
+  border-radius: 10px;
+}
+
+div.approved_yes {
+  background-color: #dfd;
+  background-image: url(images/yes.gif);
+}
+
+div.approved_no {
+  background-color: #fdd;
+  background-image: url(images/no.gif);
+}
+
+div.approval em {
+  font-weight: bold;
+}
+
+div.approval span {
+  display: block;
+}
+
+div.approved_revision {
+  background-color: #dfd;
+}
+
+div.unapproved_revision {
+  background-color: #fdd;
+}
+
+a.approved_diff_link {
+  padding-left: 1em;
+}
+
+p.apr_none { }
+
+/* table.apr_table tr.apr_head th.(apr_page,apr_prev,apr_upd)
+ * table.apr_table tr.apr_ns td a
+ * table.apr_table tr.apr_entry [apr_never] td.(apr_page,apr_prev,apr_upd) a
+ */
+table.apr_table {
+  width: 70%;
+  background-color: #fdd;
+}
+
+table.apr_table tr.apr_ns td {
+  text-align: center;
+  background-color: #dfd;
+  font-weight: bold;
+}
+
+div.approval span span.approval_date {
+  display: inline;
+}
+
+
+body {
+    background: none;
+    /*background: green  url(user/background.png) 0 0 no-repeat;*/
+    /*background-color: #E5FFCC;*/
+    /*background-color: #E5FFDD;*/
+}
+
+/* background color of normal wiki pages */
+.ns-0 #content,
+.ns-0 #p-cactions li,
+.ns-0 #p-cactions li a,
+.ns-0 #p-cactions .selected,
+.ns-0 #p-cactions .selected a,
+.ns-0 #p-cactions .selected span {
+    /*background: #F6FFF3;*/
+    /*background: #F2F9EF;*/
+    /*background: #FAFDFA;*/
+    background: white;
+}
+
+span.imgcaption {
+    border: 0px solid black;
+    padding: 3px;
+    background-color: #777;
+    text-align: center;
+    overflow: hidden;
+    display: table;
+    margin-right: 0 auto;
+    float: none;
+    font-weight: bold;
+    width:100%;
+}
+
+.pBody {
+    background-color: #F0F9F0;
+}
+
+/* More specific than overriding h3 style - jmt12 */
+div#content .dokuwiki div#dw__toc h3 {
+    background-color: #F0F9F0;
+    border: 1px solid #8CACBB;
+    font-size: 80%;
+}
+
+/* I bite my thumb at whomever thought adding an !important to their style was
+ * a good idea. Now I have to sledgehammer it with my even more !important.
+ */
+div.dokuwiki a.wikilink1,
+div.dokuwiki a.wikilink1:hover,
+div.dokuwiki a.wikilink1:visited {
+    color: #050 !important;
+}
+
+div.dokuwiki a.wikilink2,
+div.dokuwiki a.wikilink2:hover,
+div.dokuwiki a.wikilink2:visited {
+    color: red;
+}
+
+#p-cactions li a,
+div#column-one .portlet .pBody a,
+div#column-one .portlet .pBody a:visited,
+div.dokuwiki ul.toc a,
+div.dokuwiki ul.toc a:visited,
+div.dokuwiki a.urlextern,
+div.dokuwiki a.urlextern:visited,
+div.dokuwiki div.approval a,
+div.dokuwiki div.approval a:visited {
+    color: #050;
+}
+
+div.dokuwiki div.tabbed_area ul.tabs a {
+    color: #050;
+}
+
+div.dokuwiki div.tabbed_area ul.tabs a.active {
+    color: black;
+}
+
+li#pt-userpage {
+    color: black;
+    font-weight: bold;
+}
+
+#p-x-navigation .dokuwiki span.curid a {
+    font-weight: bold;
+}
+
+.dokuwiki span.curid a {
+    font-weight: normal;
+}
Index: documentation/trunk/wiki/templates/greenstone-monobook/user/tabs.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/user/tabs.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/user/tabs.php	(revision 30132)
@@ -0,0 +1,126 @@
+<?php
+
+/**
+ * User defined tab configuration of the "monobook" DokuWiki template
+ *
+ * If you want to add/remove some tabs, have a look at the comments/examples
+ * and the DocBlock of {@link _monobook_renderTabs()}, main.php
+ *
+ * To change the non-tab related config, use the admin webinterface of DokuWiki.
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:configuration
+ */
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+
+//note: The tabs will be rendered in the order they were defined. Means: first
+//      tab will be rendered first, last tab will be rendered at last.
+
+
+//ODT plugin: export tab
+//see <http://www.dokuwiki.org/plugin:odt> for info
+if (file_exists(DOKU_PLUGIN."odt/syntax.php") &&
+    !plugin_isdisabled("odt")){
+    $_monobook_tabs["tab-export-odt"]["text"]     = $lang["monobook_tab_exportodt"];
+    $_monobook_tabs["tab-export-odt"]["href"]     = wl(cleanID(getId()), array("do" => "export_odt"), false, "&");
+    $_monobook_tabs["tab-export-odt"]["nofollow"] = true;
+}
+
+
+//html2pdf plugin: export tab (thanks to Luigi Micco <l.micco@tiscali.it>)
+//see <http://www.dokuwiki.org/plugin:html2pdf> for info
+if (file_exists(DOKU_PLUGIN."html2pdf/action.php") &&
+    !plugin_isdisabled("html2pdf")){
+    $_monobook_tabs["tab-export-pdf"]["text"]     = $lang["monobook_tab_exportpdf"];
+    $_monobook_tabs["tab-export-pdf"]["href"]     = wl(cleanID(getId()), array("do" => "export_pdf"), false, "&");
+    $_monobook_tabs["tab-export-pdf"]["nofollow"] = true;
+}
+
+//(un)subscribe namespace tab
+if (!empty($conf["useacl"]) &&
+    !empty($conf["subscribers"]) &&
+    !empty($loginname)){ //$loginname was defined within main.php
+    if (empty($INFO["subscribedns"])){ //$INFO comes from DokuWiki core
+        $_monobook_tabs["ca-watchns"]["href"] = wl(cleanID(getId()), array("do" => "subscribens"), false, "&");
+        $_monobook_tabs["ca-watchns"]["text"] = $lang["btn_subscribens"]; //language comes from DokuWiki core
+    }else{
+        $_monobook_tabs["ca-watchns"]["href"] = wl(cleanID(getId()), array("do" => "unsubscribens"), false, "&");
+        $_monobook_tabs["ca-watchns"]["text"] = $lang["btn_unsubscribens"]; //language comes from DokuWiki core
+    }
+}
+
+
+//examples: uncomment to see what is happening
+/*
+//text
+$_monobook_tabs["tab-textexample"]["text"] = "Example";
+*/
+
+
+/*
+//Recent Changes (thanks to Stefan Riemer for this)
+//To get some space between this and the other tabs, you may add the following
+//additional CSS to /monobook/user/screen.css:
+//  li#tab-recent {
+//    margin-left: 1.6em;
+//  }
+if (!empty($conf["recent_days"])){
+    $_monobook_tabs["tab-recent"]["text"]     = $lang["btn_recent"]; //language comes from DokuWiki core
+    $_monobook_tabs["tab-recent"]["href"]     = wl("", array("do" => "recent"), false, "&");
+    $_monobook_tabs["tab-recent"]["nofollow"] = true;
+}
+*/
+
+
+/*
+//(un)subscribe namespace tab
+if (!empty($conf["useacl"]) &&
+    !empty($conf["subscribers"]) &&
+    !empty($loginname)){ //$loginname was defined within main.php
+    if (empty($INFO["subscribedns"])){ //$INFO comes from DokuWiki core
+        $_monobook_tabs["ca-watchns"]["href"] = wl(cleanID(getId()), array("do" => "subscribens"), false, "&");
+        $_monobook_tabs["ca-watchns"]["text"] = $lang["btn_subscribens"]; //language comes from DokuWiki core
+    }else{
+        $_monobook_tabs["ca-watchns"]["href"] = wl(cleanID(getId()), array("do" => "unsubscribens"), false, "&");
+        $_monobook_tabs["ca-watchns"]["text"] = $lang["btn_unsubscribens"]; //language comes from DokuWiki core
+    }
+}
+*/
+
+
+/*
+//link
+$_monobook_tabs["tab-urlexample"]["text"]  = "Creator";
+$_monobook_tabs["tab-urlexample"]["href"]  = "http://andreas-haerter.com";
+*/
+
+
+/*
+//link with rel="nofollow", see http://www.wikipedia.org/wiki/Nofollow for info
+$_monobook_tabs["tab-urlexample2"]["text"]     = "Search the web";
+$_monobook_tabs["tab-urlexample2"]["href"]     = "http://www.google.com/search?q=dokuwiki";
+$_monobook_tabs["tab-urlexample2"]["nofollow"] = true;
+*/
+
+
+/*
+//internal wiki link
+$_monobook_tabs["tab-wikilinkexample"]["text"]      = "Home";
+$_monobook_tabs["tab-wikilinkexample"]["wiki"]      = ":start";
+$_monobook_tabs["tab-wikilinkexample"]["accesskey"] = "H"; //accesskey is optional
+*/
+
Index: documentation/trunk/wiki/templates/greenstone-monobook/user/tracker.php
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/user/tracker.php	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/user/tracker.php	(revision 30132)
@@ -0,0 +1,33 @@
+<?php
+
+/**
+ * Place for user defined web analytics software codes/tags
+ *
+ * Tools like Piwik and Google Analytics normally provide a small code snippet
+ * ("tag") which you have to include at your website to make everything work.
+ * This file exists to make this easier for you. You don't have to deliberate
+ * where you have to copy and paste the code, simply do it here.
+ *
+ * Usage: Copy and paste the needed code/tag AFTER the closing "?>"
+ *
+ *
+ * LICENSE: This file is open source software (OSS) and may be copied under
+ *          certain conditions. See COPYING file for details or try to contact
+ *          the author(s) of this file in doubt.
+ *
+ * @license GPLv2 (http://www.gnu.org/licenses/gpl2.html)
+ * @author Andreas Haerter <development@andreas-haerter.com>
+ * @link http://piwik.org/
+ * @link http://www.google.com/analytics/
+ * @link http://andreas-haerter.com/projects/dokuwiki-template-monobook
+ * @link http://www.dokuwiki.org/template:monobook
+ * @link http://www.dokuwiki.org/devel:configuration
+ */
+
+
+//check if we are running within the DokuWiki environment
+if (!defined("DOKU_INC")){
+    die();
+}
+
+//place the needed source codes BELOW this line ?>
Index: documentation/trunk/wiki/templates/greenstone-monobook/user/user.js
===================================================================
--- documentation/trunk/wiki/templates/greenstone-monobook/user/user.js	(revision 30132)
+++ documentation/trunk/wiki/templates/greenstone-monobook/user/user.js	(revision 30132)
@@ -0,0 +1,16 @@
+/* en: Place for user defined JavaScript - this file can safely be preserved
+   when updating. See README for details.
+   ATTENTION: Do not forget to activate the template option
+              "monobook_loaduserjs" (->"Load 'monobook/user/user.js'?") in the
+              DokuWiki Config Manager! Otherwise, any changes to this file
+              won't have any effect!
+   
+   de: Ort fÃŒr benutzerdefiniertes JavaScript - Diese Datei kann beim
+   DurchfÃŒhren von Updates ohne Risiko beibehalten werden. Konsultieren Sie
+   die README fÃŒr Detailinformationen.
+
+   ACHTUNG: Vergessen Sie nicht die Template-Option "monobook_loaduserjs"
+            (->"Datei 'monobook/user/user.js' laden?") im DokuWiki Config
+            Manager zu aktivieren! Andernfalls werden sÃ€mtliche Ãnderungen an
+            dieser Datei ohne Auswirkungen bleiben! */
+
