]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Wordpress/templates/editpage.tmpl
Remove chmod; split subpages before translation
[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" width="100%"
17        cellpadding="0" cellspacing="0" border="0">
18 <tr align="bottom">
19   <td>
20     <?php echo $PAGE_LOCKED_MESSAGE ?>
21     <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
22     <?php if (!$IS_CURRENT) { ?>
23       <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?>
24             <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
25     <?php } ?>
26   </td>
27   <td>
28     <?php echo $PREVIEW_B ?>
29     <?php if ($SAVE_B) { ?>
30       <?php echo $SEP?> <?php echo $SAVE_B ?>
31     <?php } ?>
32   </td>
33 </tr>
34 </table>
35 <table class="fullwidth">
36     <tr><td><?php echo $EDIT_TOOLBAR ?></td>
37         <td align="right"><div id="editarea-size">
38     <?php echo _("Size").':'?>
39     <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?> 
40     <label for="pref-editWidth"><b><?php echo _("W")?></b></label> <?php echo $WIDTH_PREF?>
41     <noscript><?php echo Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
42   </div></td></tr></table>
43 </p>
44 <a id="editarea"><?php echo $EDIT_TEXTAREA?></a>
45 <br /><small>
46 <?php echo _("Summary")?>: <?php echo $SUMMARY_INPUT ?>
47 <br />
48 <?php if (ENABLE_CAPTCHA) { ?>
49   <?php echo $CAPTCHA_IMAGE ?><br/>
50   <?php echo $CAPTCHA_LABEL ?><?php echo $CAPTCHA_INPUT ?><br/>
51 <?php } ?>
52 <?php echo fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
53 <br />
54 <?php echo $MINOR_EDIT_CB ?>
55   <label for="edit-minor_edit">
56   <?php echo fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
57         WikiLink(_("RecentEdits"))) ?></label>
58 <br />
59 <?php echo $OLD_MARKUP_CB?> <label for="useOldMarkup"><?php echo _("Use old markup")?> </label> <?php echo $OLD_MARKUP_CONVERT?> 
60   <?php if ($user->isAdmin()) { ?> 
61     <?php echo $SEP?><?php echo $LOCKED_CB ?> <label for="edit-locked"><?php echo _("Locked")?></label>
62    <?php } ?>
63 </small>
64 <br />
65 <?php if (isset($PREVIEW_CONTENT)) { ?>
66   <hr />
67   <p><strong><?php echo _("Preview only!  Changes not saved.")?></strong></p>
68   <?php echo $PREVIEW_CONTENT ?>
69   <hr />
70 <?php } ?>
71
72 <script type="text/javascript">
73 <!--
74 function showOldMarkupRules(show) {
75   if (document.getElementById) {
76     if (!show) {
77       document.getElementById('newMarkup').style.display="block";
78       document.getElementById('oldMarkup').style.display="none";
79     } else {
80       document.getElementById('newMarkup').style.display="none";
81       document.getElementById('oldMarkup').style.display="block";
82     }
83   }
84 }
85 // -->
86 </script>
87
88 <div id="oldMarkup" class="wiki-edithelp">
89 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
90 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
91 <?plugin IncludePage page=_("Help")."/"._("OldTextFormattingRules") section=_("Synopsis") quiet=1?>
92 </div>
93 <div id="newMarkup" class="wiki-edithelp">
94 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
95 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
96 <?plugin IncludePage page=_("Help")."/"._("TextFormattingRules") section=_("Synopsis") quiet=1?>
97 </div>
98 <?php echo $HIDDEN_INPUTS?>
99 </form>
100 </div>
101
102 <script type="text/javascript">
103 <!--
104 if (document.getElementById) {
105   showOldMarkupRules(document.getElementById('useOldMarkup').checked);
106 }
107 // -->
108 </script>
109
110 <hr />