]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/templates/navbar.tmpl
Use CSS
[SourceForge/phpwiki.git] / themes / Sidebar / templates / navbar.tmpl
1 <?php
2 // With MonoBook it is similar to Sidebar, named boxes at the left.
3 // actionbuttons, navigation, search, toolbox
4 $p = $WikiTheme->tooltipAccessKeyPrefix();
5 ?>
6 <!-- The left navigation/search bar -->
7 <!-- Here you should add favorite Links and Categories -->
8 <div class="portlet" id="p-navigation">
9   <div class="_pBody">
10     <ul>
11       <li id="n-mainpage"><?php echo WikiLink(HOME_PAGE) ?></li>
12       <li><?php echo WikiLink("Help:HowToUseWiki","auto","How to use this Wiki") ?></li>
13       <li><?php echo WikiLink("Help:AddingPages","auto","Adding Pages") ?></li>
14       <li><?php echo WikiLink("CategoryCategory","auto","List all Categories") ?></li>
15     </ul>
16   </div>
17 </div>
18
19 <div class="portlet" id="p-nav1">
20   <h5><?php echo _("Main Categories")?></h5>
21   <div class="pBody">
22     <ul>
23       <li><?php echo WikiLink("CategoryWikiPlugin") ?></li>
24       <li><?php echo WikiLink("CategoryActionPage") ?></li>
25     </ul>
26   </div>
27 </div>
28
29 <div class="portlet" id="p-search">
30   <h5><?php echo _("Search")?></h5>
31   <div class="pBody">
32 <?php echo Template("search",
33              array('SEARCH_BEFORE' => ''/*HTML::h5(WikiLink(_("FindPage")))*/,
34                    'SEARCH_AFTER'  => HTML::Raw('<br /><input type="submit" name="searchtype" value="title" class="searchButton" title="Press to perform a wiki title search" />&nbsp;<input type="submit" name="searchtype" value="fulltext" class="searchButton" title="Wiki fulltext search" />'))) ?>
35   </div>
36 </div>
37
38 <div class="portlet" id="p-tb">
39       <h5><?php echo _("Toolbox") ?><?php echo $WikiTheme->folderArrow('p-tb', 'Open') ?></h5>
40   <div class="pBody" id="p-tb-body">
41     <ul>
42     <li><?php $link = WikiLink(_("RecentChanges"), "",_("RecentChanges")); $link->setAttr("accesskey","r"); $link->addTooltip(_("The list of recent changes in the wiki.")." [$p-r]"); ?><?php echo $link ?> </li>
43     <li><?php echo WikiLink(_("RecentNewPages"), "",_("RecentNewPages")) ?></li>
44     <?php if (!empty($revision)) { ?>
45       <li id="t-whatlinkshere"><?php echo Button(array('action'=>_("BackLinks")), _("What links here"), $page->getName()) ?></li>
46     <?php } ?>
47     <?php if (!empty($user) && $user->isSignedIn()) { ?>
48       <li><?php $link = WikiLink(_("UpLoad"),"",_("Upload File")); $link->setAttr("accesskey","u"); $link->addTooltip(_("Upload images or media files")." [$p-u]"); ?><?php echo $link ?></li>
49       <li><?php echo WikiLink(_("UserPreferences"), "",_("Preferences")) ?></li>
50     <?php } ?>
51       <?php $PrintableLink = $WikiTheme->makeButton(_("Printable version"), "javascript:PrinterStylesheet();", 'wikiaction'); ?>
52 <script type="text/javascript"><!--
53 document.write('<li><?php echo $PrintableLink ?></li>'); // -->
54 </script>
55     <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { 
56       // Do not display the pdf icon
57       $btn = new Button(_("Display as Pdf"), WikiURL($page->getName(), array('action' => 'pdf')), 'wikiaction');
58       ?>
59       <li><?php echo $btn ?> &nbsp;&nbsp; <?php echo WikiLink("Help/Display as Pdf","",HTML::img(array('src'=>$WikiTheme->_findData('images/mini_help.png'),'border'=>0,'width'=>12,'height'=>13,'alt'=>'pdf-help','title'=>"How to generate multi-page PDFs"))) ?></li>
60     <?php } ?>
61     <li><?php echo WikiLink(_("AllPages")) ?></li>
62     <?php if (!empty($user) && $user->isAdmin()) { ?>
63       <li><?php echo WikiLink(_("PhpWikiAdministration"), "", _("Administration")) ?></li>
64     <?php } ?>
65   </ul>
66   </div>
67 </div>
68 <?php echo Template('rc') ?>
69 <?php echo Template('tags') ?>
70 <!-- end of the left (by default at least) column -->