]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Sidebar/templates/top.tmpl
add wikilens to theme search path, and not double
[SourceForge/phpwiki.git] / themes / Sidebar / templates / top.tmpl
1 <?php // -*-php-*-
2 // rcs_id('$Id$');
3 $pagename = $page->getName();
4 $isActionPage = isActionPage($pagename);
5 if (ENABLE_PAGE_PUBLIC)
6     $public = $page->get('public');
7 else
8     $public = false;
9 if (ENABLE_RATEIT && !empty($user) && $user->isAuthenticated() 
10  && $page->exists() && !$isActionPage && !$WikiTheme->DUMP_MODE)
11     $rating = 1;
12 else
13     $rating = 0;
14 ?>
15 <!-- Page title -->
16 <a name="top" id="contentTop"></a>
17 <?php if ($page->_pagename != "HomePage") { ?>
18 <h1 class="firstHeading<?= $rating ? '-rating' : '' ?><?= $public ? '-public' : '' ?>"><?= $HEADER ?></h1>
19 <?php } ?>
20 <?php if ($rating && $request->getArg('action') == 'browse') { ?>
21 <?= Template('ratings') ?>
22 <?php } elseif ($rating && $WikiTheme->DUMP_MODE) { ?>
23 <div id="rateit-widget-top">
24 <?php
25   $loader = new WikiPluginLoader();
26   printXML($loader->expandPI("<"."?plugin RateIt show=text ?".">", $request, $dbi->_markup));
27 ?></div>
28 <?php } ?>