]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/templates/navbar.tmpl
Valid XHTML code
[SourceForge/phpwiki.git] / themes / Sidebar / 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   <div class="_pBody">
12     <ul>
13       <li id="n-mainpage"><?= WikiLink(HOME_PAGE) ?></li>
14       <li><?= WikiLink("Help:HowToUseWiki","auto","How to use this Wiki") ?></li>
15       <li><?= WikiLink("Help:AddingPages","auto","Adding Pages") ?></li>
16       <li><?= WikiLink("CategoryCategory","auto","List all Categories") ?></li>
17     </ul>
18   </div>
19 </div>
20
21 <div class="portlet" id="p-nav1">
22   <h5><?= _("Main Categories")?></h5>
23   <div class="pBody">
24     <ul>
25       <li><?= WikiLink("TroubleShooting") ?></li>
26       <li><?= WikiLink("HowTo") ?></li>
27     </ul>
28   </div>
29 </div>
30
31 <div class="portlet" id="p-search">
32   <h5><?= _("Search")?></h5>
33   <div class="pBody">
34 <?= Template("search",
35              array('SEARCH_BEFORE' => ''/*HTML::h5(WikiLink(_("FindPage")))*/,
36                    '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" />'))) ?>
37   </div>
38 </div>
39
40 <div class="portlet" id="p-tb">
41       <h5><?= _("Toolbox") ?><?= $WikiTheme->folderArrow('p-tb', 'Open') ?></h5>
42   <div class="pBody" id="p-tb-body">
43     <ul>
44     <li><? $link = WikiLink(_("RecentChanges"), "",_("RecentChanges")); $link->setAttr("accesskey","r"); $link->addTooltip(_("The list of recent changes in the wiki.")." [$p-r]"); ?><?= $link ?> </li>
45     <li><?= WikiLink(_("RecentNewPages"), "",_("RecentNewPages")) ?></li>
46     <?php if (!empty($revision)) { ?>
47       <li id="t-whatlinkshere"><?= Button(array('action'=>'BackLinks'), _("What links here"), $page->getName()) ?></li>
48     <?php } ?>
49     <?php if (!empty($user) && $user->isSignedIn()) { ?>
50       <li><? $link = WikiLink(_("UpLoad"),"",_("Upload file")); $link->setAttr("accesskey","u"); $link->addTooltip(_("Upload images or media files")." [$p-u]"); ?><?= $link ?></li>
51       <li><?= WikiLink(_("UserPreferences"), "",_("Preferences")) ?></li>
52     <?php } ?>
53     <li>
54       <?php $PrintableLink = $WikiTheme->makeButton(_("Printable version"), "javascript:PrinterStylesheet();", 'wikiaction'); ?>
55 <script type="text/javascript"><!--
56 document.write('<?= $PrintableLink ?>'); // -->
57 </script>
58 <noscript>
59   <?= $WikiTheme->makeButton(_("Printable version"), "?format=printable", 'wikiaction') ?>
60 </noscript>
61 </li>
62     <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { 
63       // Do not display the pdf icon
64       $btn = new Button(_("Display as Pdf"), WikiURL($page->getName(), array('action' => 'pdf')), 'wikiaction');
65       ?>
66       <li><?= $btn ?> &nbsp;&nbsp; <?= 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>
67     <?php } ?>
68     <li><?= WikiLink(_("AllPages")) ?></li>
69     <?php if (!empty($user) && $user->isAdmin()) { ?>
70       <li><?= WikiLink(_("PhpWikiAdministration"), "", _("Administration")) ?></li>
71     <?php } ?>
72   </ul>
73   </div>
74 </div>
75 <?= Template('rc') ?>
76 <?= Template('tags') ?>
77 <!-- end of the left (by default at least) column -->