]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Wordpress/templates/editpage.tmpl
Clean up old markup
[SourceForge/phpwiki.git] / themes / Wordpress / templates / editpage.tmpl
1 <?php
2 /*
3  * FIXME: Hack!
4  * The funky URL used for the form action parameter is bogus.
5  * This is needed, otherwise the redirect to the real browser
6  * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
7  * a redirect from a page to itself.)
8  */
9 ?>
10
11 <div class="wikitext" id="editform">
12 <form method="post" name="editpage" id="editpage"
13       action="<?php echo $request->getPostURL() ?>"
14       accept-charset="UTF-8">
15   <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1">'; ?>
16 <table class="toolbar fullwidth">
17 <tr align="bottom">
18   <td>
19     <?php echo $PAGE_LOCKED_MESSAGE ?>
20     <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
21     <?php if (!$IS_CURRENT) { ?>
22       <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?>
23             <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
24     <?php } ?>
25   </td>
26   <td>
27     <?php echo $PREVIEW_B ?>
28     <?php if ($SAVE_B) { ?>
29       <?php echo $SEP?> <?php echo $SAVE_B ?>
30     <?php } ?>
31   </td>
32 </tr>
33 </table>
34 <table class="fullwidth">
35     <tr><td><?php echo $EDIT_TOOLBAR ?></td>
36         <td align="right"><div id="editarea-size">
37     <?php echo _("Size").':'?>
38     <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?> 
39     <label for="pref-editWidth"><b><?php echo _("W")?></b></label> <?php echo $WIDTH_PREF?>
40     <noscript><?php echo Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
41   </div></td></tr></table>
42 </p>
43 <a id="editarea"><?php echo $EDIT_TEXTAREA?></a>
44 <br /><small>
45 <?php echo _("Summary")?>: <?php echo $SUMMARY_INPUT ?>
46 <br />
47 <?php if (ENABLE_CAPTCHA) { ?>
48   <?php echo $CAPTCHA_IMAGE ?><br/>
49   <?php echo $CAPTCHA_LABEL ?><?php echo $CAPTCHA_INPUT ?><br/>
50 <?php } ?>
51 <?php echo fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
52 <br />
53 <?php echo $MINOR_EDIT_CB ?>
54   <label for="edit-minor_edit">
55   <?php echo fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
56         WikiLink(_("RecentEdits"))) ?></label>
57 <br />
58   <?php if ($user->isAdmin()) { ?> 
59     <?php echo $SEP?><?php echo $LOCKED_CB ?> <label for="edit-locked"><?php echo _("Locked")?></label>
60    <?php } ?>
61 </small>
62 <br />
63 <?php if (isset($PREVIEW_CONTENT)) { ?>
64   <hr />
65   <p><strong><?php echo _("Preview only!  Changes not saved.")?></strong></p>
66   <?php echo $PREVIEW_CONTENT ?>
67   <hr />
68 <?php } ?>
69
70 <div class="wiki-edithelp">
71 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
72 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
73 <?plugin IncludePage page=_("Help")."/"._("TextFormattingRules") section=_("Synopsis") quiet=1?>
74 </div>
75 <?php echo $HIDDEN_INPUTS?>
76 </form>
77 </div>
78
79 <hr />