]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/templates/navbar.tmpl
Layout improvements
[SourceForge/phpwiki.git] / themes / Sidebar / templates / navbar.tmpl
1 <?php // -*-php-*-
2     rcs_id('$Id: navbar.tmpl,v 1.11 2007-01-13 23:42:20 rurban Exp $');
3     $split = $WikiTheme->_autosplitWikiWords;
4     $WikiTheme->setAutosplitWikiWords(true);
5 ?>
6 <!-- The top navigation/search bar -->
7 <div id="navbuttons">
8 <!-- &middot; ?= WikiLink(_("RecentChanges"), "button") ? -->
9 <?= Template("search",
10              array('SEARCH_AFTER' => 
11                    HTML::button(array('type' => 'submit', 'id' => 'searchGoButton'),
12                                 HTML::img(array('src' => $WikiTheme->getImageURL("search"),
13                                                 'alt' => 'search'))))) ?>
14 <?=$SEP?><?= WikiLink(_("FindPage"), "button",_("Full Search")) ?>
15 <?php 
16 if (ENABLE_DISCUSSION_LINK) { // This requires Talk: map to end in "/Discussion"
17   if (!string_ends_with($page->getName(), _("Discussion"))) { ?>
18     <?=$SEP?><?= WikiLink(new WikiPagename('Talk:'.$page->getName(), $page->getName()), 
19                'button', _("Discussion")) ?>
20   <?php } else { ?>
21     <?=$SEP?><?= Button(array(),_("Article"),$page->getName()) ?>
22   <?php } ?>
23 <?php } ?>
24 <?php if (!empty($revision)) { ?>
25 <?=$SEP?><?=Button(_("BackLinks")) ?>
26 <?php } ?>
27 <?php if (!empty($user) && $user->isAdmin()) { ?>
28 <?=$SEP?><?= WikiLink(_("PhpWikiAdministration"), "button", _("Admin")) ?>
29 <?php }
30 $WikiTheme->setAutosplitWikiWords($split); ?></div>