]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/MonoBook/templates/navbar.tmpl
MonoBook improvements: fix action button bar for MSIE
[SourceForge/phpwiki.git] / themes / MonoBook / templates / navbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: navbar.tmpl,v 1.3 2006-12-02 13:35:04 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 <!-- Here you should add favorite Links and Categories -->
9 <div class="portlet" id="p-nav">
10   <h5>Navigation</h5>
11   <div class="pBody">
12     <ul>
13       <li id="n-mainpage"><?= WikiLink(HOME_PAGE) ?></li>
14       <li id="t-recentchanges"><?= WikiLink(_("RecentChanges")) ?></li>
15       <li id="t-recentcomments"><?= WikiLink(_("RecentComments")) ?></li>
16       <li id="n-randompage"><?= WikiLink(_("RandomPage")) ?></li>
17       <li id="n-help"><a href="http://www.phpwiki.org/PhpWikiDocumentation">Help</a></li>
18     </ul>
19   </div>
20 </div>
21 <div id="p-search" class="portlet">
22   <h5>Search</h5>
23   <div class="pBody">
24     <form action="<?= WikiURL(_("TitleSearch"))?>"
25       method="get" accept-charset="<?=$charset?>">
26       <?= WikiLink(_("FindPage"), "searchButton",_("Search:")) ?>
27       <input type="hidden" name="auto_redirect" value="1" />
28       <input type="text"  name="s" size="12" maxlength="256"
29               title='<?=_("Quick Search")?>'
30               onmouseover="window.status='<?=_("Quick Search")?>'; return true;"
31               onmouseout="window.status=''; return true;" />
32     </form>
33   </div>
34 </div>
35 <div class="portlet" id="p-tb">
36   <h5>Toolbox</h5>
37   <div class="pBody">
38     <ul>
39     <?php if (!empty($revision)) { ?>
40       <li id="t-whatlinkshere"><?= Button(array('action'=>'BackLinks'), _("What links here"), $page->getName()) ?></li>
41       <li id="t-whatlinkshere"><?= Button(array('action'=>'LikePages'),_("Like Pages"), $page->getName()) ?></li>
42     <?php } ?>
43     <?php $links = $page->getPageLinks(); if ($links->count() > 1) { ?>
44       <li id="t-recentchangeslinked"><?= $WikiTheme->makeLinkButton($revision,_("RelatedChanges"),_("RelatedChanges")) ?></li>
45     <?php } ?> 
46     <li><?= Button(array('page' => $page->getName()),_("Upload file"),_("UpLoad"),'wikiunsafe') ?></li>
47     <?php if (!empty($user) && $user->isAdmin()) { ?>
48       <li><?= WikiLink(_("PhpWikiAdministration"), "","Administration") ?></li>
49     <?php } ?>
50     <?php if (!empty($user) && $user->isSignedIn()) { ?>
51       <li><?= WikiLink(_("UserPreferences"), "","Preferences") ?></li>
52     <?php } ?>
53     <?php if (DEBUG & _DEBUG_SQL and USECACHE) {
54       $PurgeCache = Button(array('nocache' => 'purge'),
55                      _("PurgeHtmlCache"), $page->getName());
56       $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed.")); ?>
57       <li><?= $PurgeCache ?></li>
58     <?php } ?>
59     <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?> 
60       <li><?= Button("pdf",_("Pdf")) ?></li>
61     <?php } ?>
62   </ul>
63   </div>
64 </div>
65 <!-- end of the left (by default at least) column -->
66