]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/MonoBook/templates/navbar.tmpl
Activated Id substitution for Subversion
[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) ?></li>
15       <li><? $link = WikiLink(_("RecentChanges"), "",_("RecentChanges")); $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")) ?></li>
17       <li id="n-recentnewpages"><?= WikiLink(_("RecentNewPages")) ?></li>
18       <li id="n-likepages"><?= Button(array('action'=>'LikePages'),_("Like Pages"), $page->getName()) ?></li>
19       <li id="n-randompage"><?= WikiLink(_("RandomPage")) ?></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")),
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,_("RelatedChanges"),_("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       <li><?= WikiLink(_("UserPreferences"), "",_("Preferences")) ?></li>
62     <?php } ?>
63     <li>
64       <?php $PrintableLink = $WikiTheme->makeButton(_("Printable version"), "javascript:PrinterStylesheet();", 'wikiaction'); ?>
65 <script type="text/javascript"><!--
66 document.write('<?= $PrintableLink ?>'); // -->
67 </script>
68 <noscript>
69   <?= $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><?= $btn ?></li>
77     <?php } ?>
78     <li><?= WikiLink(_("AllPages")) ?></li>
79   </ul>
80   </div>
81 </div>
82 <!-- end of the left (by default at least) column -->
83