2 // With MonoBook it is similar to Sidebar, named boxes at the left.
3 // actionbuttons, navigation, search, toolbox
5 <!-- The left navigation/search bar -->
6 <!-- Here you should add favorite Links and Categories -->
7 <div class="portlet" id="p-navigation">
8 <h2><?php echo _("Navigation") ?></h2>
11 <li id="n-mainpage"><?php echo WikiLink(HOME_PAGE, "",_("Home Page")) ?></li>
12 <li><?php $link = WikiLink(_("RecentChanges"), "",_("Recent changes")); $link->addTooltip(_("The list of recent changes in the wiki.")); ?><?php echo $link ?></li>
13 <li id="n-recentcomments"><?php echo WikiLink(_("RecentComments"), "",_("Recent comments")) ?></li>
14 <li id="n-recentnewpages"><?php echo WikiLink(_("RecentNewPages"), "",_("Recent new pages")) ?></li>
15 <li id="n-likepages"><?php echo Button(array('action'=>_("LikePages")),_("Like pages"), $page->getName()) ?></li>
16 <li id="n-randompage"><?php echo WikiLink(_("RandomPage"), "",_("Random Page")) ?></li>
17 <li id="n-help"><?php echo WikiLink(_("PhpWikiDocumentation"),"",_("Help")) ?></li>
22 <div class="portlet" id="p-search">
23 <h2><?php echo _("Search") ?></h2>
25 <?php echo Template("search",
26 array('SEARCH_BEFORE' => WikiLink(_("FindPage"), "",_("Find page")),
27 'SEARCH_AFTER' => HTML::input(array('id' => 'searchGoButton',
29 'value'=>_("Go"))))) ?>
30 <!-- <form action="<?php echo WikiURL(_("TitleSearch"))?>"
31 method="get" accept-charset="UTF-8">
32 <?php echo WikiLink(_("FindPage"), "searchButton",_("Search:")) ?>
33 <input type="hidden" name="auto_redirect" value="1" />
34 <input type="text" name="s" size="12" maxlength="256"
35 title='<?php echo _("Quick Search")?>'
36 onmouseover="window.status='<?php echo _("Quick Search")?>'; return true;"
37 onmouseout="window.status=''; return true;" />
43 <div class="portlet" id="p-tb">
44 <h2><?php echo _("Toolbox") ?></h2>
47 <?php if ($revision) { ?>
48 <li id="t-whatlinkshere"><?php echo Button(array('action'=>_("BackLinks")), _("What links here"), $page->getName()) ?></li>
50 <?php $links = $page->getPageLinks(); if ($links->count() > 1) { ?>
51 <li id="t-recentchangeslinked"><?php echo $WikiTheme->makeLinkButton($revision,_("Related changes"),_("RelatedChanges")) ?></li>
53 <?php if ($user->isAdmin()) { ?>
54 <li><?php echo WikiLink(_("PhpWikiAdministration"), "", _("Administration")) ?></li>
56 <?php if ($user->isSignedIn()) { ?>
57 <li><?php $link = WikiLink(_("UpLoad"),"",_("Upload File")); $link->addTooltip(_("Upload images or media files")); ?><?php echo $link ?></li>
59 <?php $PrintableLink = $WikiTheme->makeButton(_("Printable version"), "javascript:PrinterStylesheet();", 'wikiaction'); ?>
60 <script type="text/javascript"><!--
61 document.write('<li><?php echo $PrintableLink ?></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');
67 <li><?php echo $btn ?></li>
69 <li><?php echo WikiLink(_("AllPages"), "",_("All pages")) ?></li>
73 <!-- end of the left (by default at least) column -->