]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/MonoBook/templates/navbar.tmpl
renamed global $Theme to $WikiTheme (gforge nameclash)
[SourceForge/phpwiki.git] / themes / MonoBook / templates / navbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: navbar.tmpl,v 1.2 2004-06-14 11:26:49 rurban Exp $ -->
3 <?php
4 // With MonoBook it is similar to Sidebar, named boxes at the left.
5 // navigation, search, toolbox
6 ?>
7 <!-- The left navigation/search bar -->
8 <div class="portlet" id="p-nav">
9   <h5>Navigation</h5>
10   <div class="pBody">
11     <ul>
12       <li id="n-mainpage"><?= WikiLink(HOME_PAGE) ?></li>
13       <li id="t-recentchanges"><?= WikiLink(_("RecentChanges")) ?></li>
14       <li id="t-recentcomments"><?= WikiLink(_("RecentComments")) ?></li>
15       <li id="n-randompage"><?= WikiLink(_("RandomPage")) ?></li>
16       <li id="n-help"><a href="http://www.phpwiki.org/PhpWikiDocumentation">Help</a></li>
17     </ul>
18   </div>
19 </div>
20 <div id="p-search" class="portlet">
21   <h5>Search</h5>
22   <div class="pBody">
23     <form action="<?= WikiURL(_("TitleSearch"))?>"
24       method="get" accept-charset="<?=$charset?>">
25       <?= WikiLink(_("FindPage"), "searchButton","Search:") ?>
26       <input type="hidden" name="auto_redirect" value="1" />
27       <input type="text"  name="s" size="12" maxlength="256"
28               title='<?=_("Quick Search")?>'
29               onmouseover="window.status='<?=_("Quick Search")?>'; return true;"
30               onmouseout="window.status=''; return true;" />
31     </form>
32   </div>
33 </div>
34 <div class="portlet" id="p-tb">
35   <h5>Toolbox</h5>
36   <div class="pBody">
37     <ul>
38       <?php if (!empty($revision)) { ?>
39       <li id="t-whatlinkshere"><?= Button(array('action'=>'LikePages'),_("Like Pages"), $page->getName()) ?></li>
40       <li id="t-whatlinkshere"><?= Button(array('action'=>'BackLinks'), _("What links here"), $page->getName()) ?></li>
41       <?php } ?>
42       <?php $links = $page->getPageLinks(); if ($links->count() > 1) { ?>
43     <li id="t-recentchangeslinked"><?= $WikiTheme->makeLinkButton($revision,_("RelatedChanges"),_("RelatedChanges")) ?></li>
44     <?php } ?> 
45     <?php if (!empty($user) && $user->isAdmin()) { ?>
46     <li><?= WikiLink(_("PhpWikiAdministration"), "","Administration") ?></li>
47     <?php } ?>
48     <?php if (!empty($user) && $user->isSignedIn()) { ?>
49     <li><?= WikiLink(_("UserPreferences"), "","Preferences") ?></li>
50     <?php } ?>
51   </ul>
52   </div>
53 </div>
54 <!-- end of the left (by default at least) column -->
55