4 require_once('lib/WikiTheme.php');
6 class WikiTheme_gforge extends WikiTheme {
9 global $HTML, $group_id, $group_public_name, $request, $project;
11 $pagename = $request->getArg('pagename');
13 $submenu = Template('navbar');
16 if (!$project->isPublic()) {
17 //if it's a private group, you must be a member of that group
18 session_require(array('group'=>$group_id));
21 //for dead projects must be member of admin project
22 if (!$project->isActive()) {
23 //only SF group can view non-active, non-holding groups
24 session_require(array('group'=>'1'));
27 $HTML->header(array('title'=> $group_public_name.': '.$pagename ,
28 'pagename'=> $pagename, 'group' => $group_id, 'toptab' => 'wiki',
29 'css' => 'gforge.css" />'."\n".' <base href="'.PHPWIKI_BASE_URL,
30 'submenu' => $submenu->asXML()));
41 $WikiTheme = new WikiTheme_gforge('gforge');
42 // CSS file defines fonts, colors and background images for this style.
45 * The logo image appears on every page and links to the HomePage.
47 $WikiTheme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
50 * The Signature image is shown after saving an edited page. If this
51 * is set to false then the "Thank you for editing..." screen will
55 $WikiTheme->addImageAlias('signature', WIKI_NAME . "Signature.png");
56 // Uncomment this next line to disable the signature.
57 $WikiTheme->addImageAlias('signature', false);
62 // $WikiTheme->setLinkIconAttr('after');
63 $WikiTheme->setLinkIcon('http');
64 $WikiTheme->setLinkIcon('https');
65 $WikiTheme->setLinkIcon('ftp');
66 $WikiTheme->setLinkIcon('mailto');
67 //$WikiTheme->setLinkIcon('interwiki');
68 //$WikiTheme->setLinkIcon('wikiuser');
69 //$WikiTheme->setLinkIcon('*', 'url');
71 $WikiTheme->setButtonSeparator("\n | ");
74 * WikiWords can automatically be split by inserting spaces between
75 * the words. The default is to leave WordsSmashedTogetherLikeSo.
77 $WikiTheme->setAutosplitWikiWords(false);
80 * Layout improvement with dangling links for mostly closed wiki's:
81 * If false, only users with edit permissions will be presented the
82 * special wikiunknown class with "?" and Tooltip.
83 * If true (default), any user will see the ?, but will be presented
84 * the PrintLoginForm on a click.
86 $WikiTheme->setAnonEditUnknownLinks(false);
89 * You may adjust the formats used for formatting dates and times
90 * below. (These examples give the default formats.)
91 * Formats are given as format strings to PHP strftime() function See
92 * http://www.php.net/manual/en/function.strftime.php for details.
93 * Do not include the server's zone (%Z), times are converted to the
96 $WikiTheme->setDateFormat("%d %B %Y");
97 $WikiTheme->setTimeFormat("%H:%M");
100 * To suppress times in the "Last edited on" messages, give a
101 * give a second argument of false:
103 //$WikiTheme->setDateFormat("%B %d, %Y", false);
106 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
107 // (c-file-style: "gnu")
112 // c-hanging-comment-ender-p: nil
113 // indent-tabs-mode: nil