| 1 |
|
|---|
| 2 |
<div class="wrap"> |
|---|
| 3 |
<h2><?php _e('Write Post'); ?></h2> |
|---|
| 4 |
<form name="post" action="post.php" method="post" id="simple"> |
|---|
| 5 |
|
|---|
| 6 |
<?php if (isset($mode) && 'bookmarklet' == $mode) : ?> |
|---|
| 7 |
<input type="hidden" name="mode" value="bookmarklet" /> |
|---|
| 8 |
<?php endif; ?> |
|---|
| 9 |
<input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" /> |
|---|
| 10 |
<input type="hidden" name="action" value='post' /> |
|---|
| 11 |
|
|---|
| 12 |
<script type="text/javascript"> |
|---|
| 13 |
<!-- |
|---|
| 14 |
function focusit() { // focus on first input field |
|---|
| 15 |
document.getElementById('title').focus(); |
|---|
| 16 |
} |
|---|
| 17 |
addLoadEvent(focusit); |
|---|
| 18 |
//--> |
|---|
| 19 |
</script> |
|---|
| 20 |
|
|---|
| 21 |
<div id="poststuff"> |
|---|
| 22 |
<fieldset id="titlediv"> |
|---|
| 23 |
<legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php _e('Help on titles') ?>"><?php _e('Title') ?></a></legend> |
|---|
| 24 |
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" /></div> |
|---|
| 25 |
</fieldset> |
|---|
| 26 |
|
|---|
| 27 |
<fieldset id="categorydiv"> |
|---|
| 28 |
<legend><a href="http://wordpress.org/docs/reference/post/#category" title="<?php _e('Help on categories') ?>"><?php _e('Categories') ?></a></legend> |
|---|
| 29 |
<div><?php dropdown_categories($post->post_category); ?></div> |
|---|
| 30 |
</fieldset> |
|---|
| 31 |
|
|---|
| 32 |
<br /> |
|---|
| 33 |
<fieldset id="postdiv"> |
|---|
| 34 |
<legend><a href="http://wordpress.org/docs/reference/post/#post" title="<?php _e('Help with post field') ?>"><?php _e('Post') ?></a></legend> |
|---|
| 35 |
<?php the_quicktags(); ?> |
|---|
| 36 |
<?php |
|---|
| 37 |
$rows = get_settings('default_post_edit_rows'); |
|---|
| 38 |
if (($rows < 3) || ($rows > 100)) { |
|---|
| 39 |
$rows = 10; |
|---|
| 40 |
} |
|---|
| 41 |
?> |
|---|
| 42 |
<div><textarea rows="<?php echo $rows; ?>" cols="40" name="content" tabindex="4" id="content"><?php echo $post->post_content ?></textarea></div> |
|---|
| 43 |
</fieldset> |
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
<script type="text/javascript"> |
|---|
| 47 |
<!-- |
|---|
| 48 |
edCanvas = document.getElementById('content'); |
|---|
| 49 |
//--> |
|---|
| 50 |
</script> |
|---|
| 51 |
|
|---|
| 52 |
<input type="hidden" name="post_pingback" value="<?php echo (int) get_option('default_pingback_flag') ?>" id="post_pingback" /> |
|---|
| 53 |
|
|---|
| 54 |
<p><label for="trackback"> <?php printf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <abbr title="Universal Resource Identifier">URI</abbr></a>:</label> (Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') ?> |
|---|
| 55 |
<input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p> |
|---|
| 56 |
|
|---|
| 57 |
<p class="submit"><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft') ?>" /> |
|---|
| 58 |
<input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" /> |
|---|
| 59 |
|
|---|
| 60 |
<?php if ( current_user_can('edit_posts') ) : ?> |
|---|
| 61 |
<input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="<?php _e('Publish') ?>" /> |
|---|
| 62 |
<?php endif; ?> |
|---|
| 63 |
|
|---|
| 64 |
<?php if ('bookmarklet' != $mode) { |
|---|
| 65 |
echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' . __('Advanced Editing »') . '" />'; |
|---|
| 66 |
} ?> |
|---|
| 67 |
<input name="referredby" type="hidden" id="referredby" value="<?php if ( $refby = wp_get_referer() ) echo urlencode($refby); ?>" /> |
|---|
| 68 |
</p> |
|---|
| 69 |
|
|---|
| 70 |
<?php do_action('simple_edit_form', ''); ?> |
|---|
| 71 |
|
|---|
| 72 |
</div> |
|---|
| 73 |
</form> |
|---|
| 74 |
|
|---|
| 75 |
</div> |
|---|
| 76 |
|
|---|