File: viewsource.tmpl

package info (click to toggle)
phpwiki 1.3.14-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 15,716 kB
  • ctags: 23,548
  • sloc: php: 88,295; sql: 1,476; sh: 1,378; perl: 765; makefile: 602; awk: 28
file content (28 lines) | stat: -rwxr-xr-x 1,132 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php // -*-html-*- ?>
<!-- $Id: viewsource.tmpl,v 1.2 2007/01/02 13:30:28 rurban Exp $ -->
<?php 
if (empty($revision)) $revision = $page->getCurrentRevision(false);
if ($page->get('locked') && !$user->isAdmin()) { ?>
  <p><strong><?=_("Note:")?></strong>
  <?=_("This page has been locked by the administrator and cannot be edited.")?>
  </p>
  <?php } ?>
<?php if (! $revision->isCurrent()) { ?>
  <p><?=_("You are viewing an old revision of this page.")?>
  <?= Button('edit', _("View the current version"), $page) ?>.
  </p>
  <?php } ?>
<!-- Dummy form else NS4 does not like the textarea -->
<form method="post" id="editcontent" 
      action="<?=$request->getPostURL()?>" accept-charset="<?=CHARSET?>">
<?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?>
<!br clear="all" class="clear-floats" />
<!-- wrap=virtual is not HTML4, but without it NS4 does not wrap long lines -->
<textarea class="wikiedit"
name="content" 
rows="<?=$request->getPref('editHeight')?>"
cols="<?=$request->getPref('editWidth')?>"
readonly="readonly"
wrap="virtual"><?= $PAGE_SOURCE ?></textarea>
<?=$HIDDEN_INPUTS?>
</form>