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