]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/MonoBook/templates/navbar.tmpl
moved PrinterStylesheet from template to js
[SourceForge/phpwiki.git] / themes / MonoBook / templates / navbar.tmpl
1 <?php // -*-php-*- ?>
2 <!-- $Id: navbar.tmpl,v 1.9 2007-06-02 18:40:32 rurban Exp $ -->
3 <?php
4 // With MonoBook it is similar to Sidebar, named boxes at the left.
5 // actionbuttons, navigation, search, toolbox
6 ?>
7 <!-- The left navigation/search bar -->
8 <!-- Here you should add favorite Links and Categories -->
9 <div class="portlet" id="p-navigation">
10   <h5>Navigation</h5>
11   <div class="pBody">
12     <ul>
13       <li id="n-mainpage"><?= WikiLink(HOME_PAGE) ?></li>
14       <li id="n-recentchanges"><?= WikiLink(_("RecentChanges")) ?></li>
15       <li id="n-recentcomments"><?= WikiLink(_("RecentComments")) ?></li>
16       <li id="n-recentnewpages"><?= WikiLink(_("RecentNewPages")) ?></li>
17       <li id="n-likepages"><?= Button(array('action'=>'LikePages'),_("Like Pages"), $page->getName()) ?></li>
18       <li id="n-randompage"><?= WikiLink(_("RandomPage")) ?></li>
19 <li id="n-help"><?= WikiLink(_("PhpWikiDocumentation"),"",_("Help")) ?></li>
20     </ul>
21   </div>
22 </div>
23
24 <div class="portlet" id="p-search">
25   <h5>Search</h5>
26   <div class="pBody">
27 <?= Template("search",
28              array('SEARCH_BEFORE' => WikiLink(_("FindPage")),
29                    'SEARCH_AFTER' => HTML::input(array('id' => 'searchGoButton',
30                                                        'type'=>'submit',
31                                                        'value'=>_("Go"))))) ?>
32 <!-- <form action="<?= WikiURL(_("TitleSearch"))?>"
33       method="get" accept-charset="<?=$charset?>">
34       <?= WikiLink(_("FindPage"), "searchButton",_("Search:")) ?>
35       <input type="hidden" name="auto_redirect" value="1" />
36       <input type="text"  name="s" size="12" maxlength="256"
37               title='<?=_("Quick Search")?>'
38               onmouseover="window.status='<?=_("Quick Search")?>'; return true;"
39               onmouseout="window.status=''; return true;" />
40     </form>
41 -->
42   </div>
43 </div>
44
45 <div class="portlet" id="p-tb">
46   <h5>Toolbox</h5>
47   <div class="pBody">
48     <ul>
49     <li><?= WikiLink(_("RecentChanges"), "",_("RecentChanges")) ?></li>
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><?= WikiLink(_("UpLoad"),"",_("Upload file")) ?></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