4 Copyright 2003,2004,2009 $ThePhpWikiProgrammingTeam
6 This file is part of PhpWiki.
8 PhpWiki is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 PhpWiki is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with PhpWiki; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 * Dynamic version of the IncludeSiteMap by Cuthbert Cat (cuthbertcat)
25 * with a category filter.
27 * Display an initially closed tree of all pages within certain categories. dhtml.
28 * On [+] open the subtree, on leaves (how to decide?) transclude parts of the page.
29 * Leave detection: more content than just plugins.
32 require_once('lib/PageList.php');
33 require_once('lib/plugin/SiteMap.php');
35 class WikiPlugin_IncludeTree
36 extends WikiPlugin_SiteMap
39 return _("IncludeTree");
42 function getDescription () {
43 return _("Dynamic Category Tree");
46 function getVersion() {
47 return preg_replace("/[Revision: $]/", '',
48 "\$Revision: 6186 $");
51 function getDefaultArguments() {
52 return array('exclude' => '',
55 'page' => '[pagename]',
56 'description' => $this->getDescription(),
59 'direction' => 'back',
60 'firstreversed' => false,
61 'excludeunknown' => true,
62 'includepages' => 'words=100',
68 function run($dbi, $argstr, &$request, $basepage) {
69 return WikiPlugin_SiteMap::run($dbi, $argstr, $request, $basepage);
78 // c-hanging-comment-ender-p: nil
79 // indent-tabs-mode: nil