Image uploading widget from skeltoac. fixes #1710

git-svn-id: http://svn.automattic.com/wordpress/trunk@2921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2005-09-26 23:55:36 +00:00
parent a32bad283f
commit 7b0442ea12
6 changed files with 523 additions and 5 deletions

View File

@@ -17,6 +17,8 @@ $messages[3] = __('Custom field deleted.');
if (0 == $post_ID) {
$form_action = 'post';
$temp_ID = -1 * time();
$form_extra = "<input type='hidden' name='temp_ID' value='$temp_ID' />";
} else {
$form_action = 'editpost';
$form_extra = "<input type='hidden' name='post_ID' value='$post_ID' />";
@@ -172,6 +174,11 @@ if ('publish' != $post_status || 0 == $post_ID) {
<div id="advancedstuff" class="dbx-group" >
<fieldset id="imageuploading" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Image Uploading') ?></h3>
<div class="dbx-content"><iframe src="image-uploading.php?action=view&amp;post=<?php echo 0 == $post_ID ? $temp_ID : $post_ID; ?>" id="imageup"></iframe></div>
</fieldset>
<fieldset id="postexcerpt" class="dbx-box">
<h3 class="dbx-handle"><?php _e('Optional Excerpt') ?></h3>
<div class="dbx-content"><textarea rows="1" cols="40" name="excerpt" tabindex="7" id="excerpt"><?php echo $post->post_excerpt ?></textarea></div>
@@ -213,4 +220,4 @@ if($metadata = has_meta($post_ID)) {
</div>
</form>
</form>