]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/MonoBook/templates/navbar.tmpl
Remove accesskeys
[SourceForge/phpwiki.git] / themes / MonoBook / templates / navbar.tmpl
1 <?php
2 // With MonoBook it is similar to Sidebar, named boxes at the left.
3 // actionbuttons, navigation, search, toolbox
4 ?>
5 <!-- The left navigation/search bar -->
6 <!-- Here you should add favorite Links and Categories -->
7 <div class="portlet" id="p-navigation">
8   <h2><?php echo _("Navigation") ?></h2>
9   <div class="pBody">
10     <ul>
11       <li id="n-mainpage"><?php echo WikiLink(HOME_PAGE, "",_("Home Page")) ?></li>
12       <li><?php $link = WikiLink(_("RecentChanges"), "",_("Recent changes")); $link->addTooltip(_("The list of recent changes in the wiki.")); ?><?php echo $link ?></li>
13       <li id="n-recentcomments"><?php echo WikiLink(_("RecentComments"), "",_("Recent comments")) ?></li>
14       <li id="n-recentnewpages"><?php echo WikiLink(_("RecentNewPages"), "",_("Recent new pages")) ?></li>
15       <li id="n-likepages"><?php echo Button(array('action'=>_("LikePages")),_("Like pages"), $page->getName()) ?></li>
16       <li id="n-randompage"><?php echo WikiLink(_("RandomPage"), "",_("Random Page")) ?></li>
17 <li id="n-help"><?php echo WikiLink(_("PhpWikiDocumentation"),"",_("Help")) ?></li>
18     </ul>
19   </div>
20 </div>
21
22 <div class="portlet" id="p-search">
23   <h2><?php echo _("Search") ?></h2>
24   <div class="pBody">
25 <?php echo Template("search",
26              array('SEARCH_BEFORE' => WikiLink(_("FindPage"), "",_("Find page")),
27            'SEARCH_AFTER' => HTML::input(array('id' => 'searchGoButton',
28                                'type'=>'submit',
29                                'value'=>_("Go"))))) ?>
30 <!-- <form action="<?php echo WikiURL(_("TitleSearch"))?>"
31       method="get" accept-charset="UTF-8">
32       <?php echo WikiLink(_("FindPage"), "searchButton",_("Search:")) ?>
33       <input type="hidden" name="auto_redirect" value="1" />
34       <input type="text"  name="s" size="12" maxlength="256"
35           title='<?php echo _("Quick Search")?>'
36           onmouseover="window.status='<?php echo _("Quick Search")?>'; return true;"
37           onmouseout="window.status=''; return true;" />
38     </form>
39 -->
40   </div>
41 </div>
42
43 <div class="portlet" id="p-tb">
44   <h2><?php echo _("Toolbox") ?></h2>
45   <div class="pBody">
46     <ul>
47     <?php if ($revision) { ?>
48       <li id="t-whatlinkshere"><?php echo Button(array('action'=>_("BackLinks")), _("What links here"), $page->getName()) ?></li>
49     <?php } ?>
50     <?php $links = $page->getPageLinks(); if ($links->count() > 1) { ?>
51       <li id="t-recentchangeslinked"><?php echo $WikiTheme->makeLinkButton($revision,_("Related changes"),_("RelatedChanges")) ?></li>
52     <?php } ?>
53     <?php if ($user->isAdmin()) { ?>
54       <li><?php echo WikiLink(_("PhpWikiAdministration"), "", _("Administration")) ?></li>
55     <?php } ?>
56     <?php if ($user->isSignedIn()) { ?>
57       <li><?php $link = WikiLink(_("UpLoad"),"",_("Upload File")); $link->addTooltip(_("Upload images or media files")); ?><?php echo $link ?></li>
58     <?php } ?>
59       <?php $PrintableLink = $WikiTheme->makeButton(_("Printable version"), "javascript:PrinterStylesheet();", 'wikiaction'); ?>
60 <script type="text/javascript"><!--
61 document.write('<li><?php echo $PrintableLink ?></li>'); // -->
62 </script>
63     <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) {
64       // Do not display the pdf icon
65       $btn = new Button(_("Display as Pdf"), WikiURL($page->getName(), array('action' => 'pdf')), 'wikiaction');
66       ?>
67       <li><?php echo $btn ?></li>
68     <?php } ?>
69     <li><?php echo WikiLink(_("AllPages"), "",_("All pages")) ?></li>
70   </ul>
71   </div>
72 </div>
73 <!-- end of the left (by default at least) column -->