2004-08-10 01:58:19 -04:00
|
|
|
|
|
|
|
<div class="wrap">
|
2004-09-09 21:32:20 -04:00
|
|
|
|
2004-08-10 01:58:19 -04:00
|
|
|
<?php
|
2004-09-09 21:32:20 -04:00
|
|
|
if (0 == $post_ID) {
|
|
|
|
$form_action = 'post';
|
|
|
|
$form_extra = '';
|
|
|
|
} else {
|
|
|
|
$form_action = 'editpost';
|
|
|
|
$form_extra = "<input type='hidden' name='post_ID' value='$post_ID' />";
|
|
|
|
}
|
2004-08-10 01:58:19 -04:00
|
|
|
?>
|
|
|
|
|
|
|
|
<form name="post" action="post.php" method="post" id="post">
|
|
|
|
|
|
|
|
<?php
|
|
|
|
if (isset($mode) && 'bookmarklet' == $mode) {
|
|
|
|
echo '<input type="hidden" name="mode" value="bookmarklet" />';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
|
2004-09-09 21:32:20 -04:00
|
|
|
<input type="hidden" name="action" value='<?php echo $form_action ?>' />
|
|
|
|
<?php echo $form_extra ?>
|
|
|
|
<input type="hidden" name="post_status" value="static" />
|
2004-08-10 01:58:19 -04:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
<!--
|
|
|
|
function focusit() {
|
|
|
|
// focus on first input field
|
|
|
|
document.post.title.focus();
|
|
|
|
}
|
|
|
|
window.onload = focusit;
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="poststuff">
|
|
|
|
<fieldset id="titlediv">
|
|
|
|
<legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php _e('Help on titles') ?>"><?php _e('Title') ?></a></legend>
|
|
|
|
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $edited_post_title; ?>" id="title" /></div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
<fieldset id="postdiv">
|
|
|
|
<legend><a href="http://wordpress.org/docs/reference/post/#post" title="<?php _e('Help with page field') ?>"><?php _e('Page') ?></a></legend>
|
2004-09-09 13:51:33 -04:00
|
|
|
<?php the_quicktags(); ?>
|
2004-08-10 01:58:19 -04:00
|
|
|
<?php
|
|
|
|
$rows = get_settings('default_post_edit_rows');
|
|
|
|
if (($rows < 3) || ($rows > 100)) {
|
|
|
|
$rows = 10;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $content ?></textarea></div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
<!--
|
|
|
|
edCanvas = document.getElementById('content');
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<p class="submit">
|
|
|
|
<input name="savepage" type="submit" id="savepage" tabindex="6" style="font-weight: bold;" value="<?php _e('Save') ?>" />
|
2004-09-09 21:32:20 -04:00
|
|
|
<input name="referredby" type="hidden" id="referredby" value="<?php if (isset($_SERVER['HTTP_REFERER'])) echo htmlspecialchars($_SERVER['HTTP_REFERER']); ?>" />
|
2004-08-10 01:58:19 -04:00
|
|
|
</p>
|
|
|
|
<?php do_action('edit_page_form', ''); ?>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|