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