]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Wordpress/templates/viewsource.tmpl
Activated Id substitution for Subversion
[SourceForge/phpwiki.git] / themes / Wordpress / templates / viewsource.tmpl
1 <!-- -*-html-*- -->
2 <!-- $Id$ -->
3
4 <div class="wikitext" id="viewform">
5
6 <?php 
7 if (empty($revision)) $revision = $page->getCurrentRevision(false);
8 if ($page->get('locked') && !$user->isAdmin()) { ?>
9   <p><strong><?=_("Note:")?></strong>
10   <?=_("This page has been locked by the administrator and cannot be edited.")?></p>
11 <?php } ?>
12
13 <?php if (! $revision->isCurrent()) { ?>
14   <p><?=_("You are viewing an old revision of this page.")?>
15   <?= Button('viewsource', _("View the current version"), $page)?>.</p>
16 <?php } ?>
17
18 <!-- Dummy form else NS4 does not like the textarea -->
19 <form method="post" action="<?=$request->getPostURL()?>" accept-charset="<?=CHARSET?>">
20 <!-- wrap=virtual is not HTML4, but without it NS4 does not wrap long lines -->
21 <textarea class="wikiedit"
22           name="content"
23           rows="<?=$request->getPref('editHeight')?>"
24           cols="<?=$request->getPref('editWidth')?>"
25           readonly="readonly"
26           wrap="virtual"><?= $PAGE_SOURCE ?></textarea>
27 <?= HiddenInputs($request->getArgs()) ?>
28 </form>
29 <hr />
30 <a href="<?=WikiURL($page,array('action'=>_("PageHistory")))?>"
31    ><?= $WikiTheme->getLastModifiedMessage($revision) ?></a>
32 <br />
33
34 </div>