]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/gforge/themeinfo.php
Add themeinfo.php; svn:keywords
[SourceForge/phpwiki.git] / themes / gforge / themeinfo.php
1 <?php
2 rcs_id('$Id$');
3
4 require_once('lib/WikiTheme.php');
5
6 class WikiTheme_gforge extends WikiTheme {
7
8     function header() {
9         global $HTML, $group_id, $group_public_name, $request, $project;
10
11         $pagename = $request->getArg('pagename');
12
13         $submenu = Template('navbar');
14         
15         //group is private
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));
19         }
20
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'));
25         }
26
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()));
31     }
32     
33     function footer() {
34         global $HTML;
35         
36         $HTML->footer();
37         
38     }
39 }
40
41 $WikiTheme = new WikiTheme_gforge('gforge');
42 // CSS file defines fonts, colors and background images for this style.
43
44 /**
45  * The logo image appears on every page and links to the HomePage.
46  */
47 $WikiTheme->addImageAlias('logo', WIKI_NAME . 'Logo.png');
48
49 /**
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
52  * be omitted.
53  */
54
55 $WikiTheme->addImageAlias('signature', WIKI_NAME . "Signature.png");
56 // Uncomment this next line to disable the signature.
57 $WikiTheme->addImageAlias('signature', false);
58
59 /*
60  * Link icons.
61  */
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');
70
71 $WikiTheme->setButtonSeparator("\n | ");
72
73 /**
74  * WikiWords can automatically be split by inserting spaces between
75  * the words. The default is to leave WordsSmashedTogetherLikeSo.
76  */
77 $WikiTheme->setAutosplitWikiWords(false);
78
79 /**
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.
85  */
86 $WikiTheme->setAnonEditUnknownLinks(false);
87
88 /*
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
94  * user's time zone.
95  */
96 $WikiTheme->setDateFormat("%d %B %Y");
97 $WikiTheme->setTimeFormat("%H:%M");
98
99 /*
100  * To suppress times in the "Last edited on" messages, give a
101  * give a second argument of false:
102  */
103 //$WikiTheme->setDateFormat("%B %d, %Y", false); 
104
105
106 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
107 // (c-file-style: "gnu")
108 // Local Variables:
109 // mode: php
110 // tab-width: 8
111 // c-basic-offset: 4
112 // c-hanging-comment-ender-p: nil
113 // indent-tabs-mode: nil
114 // End:   
115 ?>