]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/editpage.tmpl
Clean up old markup
[SourceForge/phpwiki.git] / themes / default / templates / editpage.tmpl
1 <?php if (isset($PREVIEW_CONTENT)) { ?>
2   <p><strong><?php echo _("Preview only!  Changes not saved.")?></strong>
3 <!-- FIXME: it would be nice to put a link to the #editarea anchor below,
4      but it does not work currently with the <base> declared in top.tmpl.
5      I think we need to do away with using <base> altogether... -->
6      <?php echo fmt("Please continue editing.  (You'll find your %s at the bottom of the page.)",
7           /* HTML::a(array("href" => "#editarea"), */ _("edit area") /*)  */) ?>
8   </p>
9   <hr class="printer" />
10   <?php echo $PREVIEW_CONTENT ?>
11   <hr class="printer" />
12 <?php } ?>
13
14 <?php echo $PAGE_LOCKED_MESSAGE ?>
15 <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
16
17 <?php if (! $IS_CURRENT) { ?>
18   <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?>
19         <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
20 <?php } ?>
21 <?php /*
22  * FIXME: Hack! 
23  * The funky URL used for the form action parameter is bogus.
24  * This is needed, otherwise the redirect to the real browser
25  * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
26  * a redirect from a page to itself.)
27  */ ?>
28 <form method="post" id="editpage" name="editpage"
29       action="<?php echo $request->getPostURL() ?>"
30       accept-charset="UTF-8">
31   <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>
32   <?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?>
33   <br class="clear-floats" />
34   <table class="fullwidth">
35     <tr><td><?php echo $EDIT_TOOLBAR ?></td>
36         <td class="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 <?php if (!empty($WYSIWYG_B)) { ?>
43   <br /><div class="hint"><strong>Warning:</strong> Switching to the Wysiwyg editor will not keep your changes.</div>
44 <?php } ?>
45   <a id="editarea"></a><?php echo $EDIT_TEXTAREA?>
46 <!-- FIXME: fix layout, move CSS to CSS -->
47 <div class="toolbar" style="text-align: center;">
48   <label for="edit-summary"><?php echo _("Summary").':'?></label> <?php echo $SUMMARY_INPUT?>
49 </div>
50 <?php if (ENABLE_CAPTCHA) { ?>
51 <div class="toolbar" style="text-align: center;">
52   <?php echo $CAPTCHA_IMAGE ?><br/>
53   <?php echo $CAPTCHA_LABEL ?><?php echo $CAPTCHA_INPUT ?>
54 </div> 
55 <?php } ?>
56 <table class="toolbar fullwidth">
57 <tr class="middle">
58   <td> 
59     <?php echo $MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?php echo _("This is a minor change.")?></label><br />
60   </td>
61   <td class="align-center">
62     <?php if (!empty($WYSIWYG_B)){ ?>
63     <?php echo $WYSIWYG_B?><?php echo $SEP?>
64     <?php } ?>
65     <?php echo $PREVIEW_B ?>
66     <?php if ($SAVE_B)  { ?> 
67       <?php echo $SEP?><?php echo $SAVE_B ?>
68     <?php } ?>
69     <?php echo $SEP?><?php echo $CHANGES_B ?>
70   </td>
71   <td>&nbsp; <?php echo $AUTHOR_MESSAGE?></td>
72 </tr>
73 <tr>
74   <td>
75     <?php if ($user->isAdmin()) { ?> 
76     <?php echo $LOCKED_CB ?> <label for="edit-locked" title="<?php echo _("Make the page read-only?")?>"><?php echo _("Locked")?></label>
77     <?php if (ENABLE_PAGE_PUBLIC) { ?>
78     &nbsp;&nbsp;<?php echo $PUBLIC_CB ?> <label for="edit-public" title="<?php echo _("Export to a separate public area?")?>"><?php echo _("Public")?></label>
79     <?php }} ?>
80   </td>
81   <td colspan="2" class="align-right">
82     <?php if (!$user->isAuthenticated()) { ?>
83     <?php echo Template('signin', array('FORMNAME' => 'editpage')) ?>
84     <?php } ?>
85   </td>
86 </tr>
87 </table>
88 <?php echo $HIDDEN_INPUTS?>
89 </form>
90 <div style="width:100%;text-align:center;"><?php /*plugin UpLoad autolink=0 mode=edit size=30 */?></div>
91
92 <hr />
93
94 <div class="wiki-edithelp">
95 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
96 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
97 <?plugin IncludePage page=_("Help")."/"._("TextFormattingRules") section=_("Synopsis") quiet=1?>
98 </div>