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