How the custom fields should look.

git-svn-id: https://develop.svn.wordpress.org/trunk@1195 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-04-28 02:23:46 +00:00
parent 0dbd2749f5
commit bb14d0a2e7
3 changed files with 69 additions and 75 deletions
+16 -17
View File
@@ -139,19 +139,6 @@ if ($action != 'editcomment') {
}
}
?>
<fieldset id="postcustom">
<legend><?php _e('Post Custom') ?></legend>
<?php
if($metadata = has_meta($post_ID)) {
?>
<?php
list_meta($metadata);
?>
<?php
}
meta_form();
?>
</fieldset>
<?php echo $form_pingback ?>
<?php echo $form_prevstatus ?>
@@ -179,11 +166,23 @@ if ('' != $pinged) {
if ($user_level > 4) {
touch_time(($action == 'edit'));
}
if ('edit' == $action) echo "
<p><a href='post.php?action=delete&amp;post=$post_ID' onclick=\"return confirm('" . sprintf(__("You are about to delete this post \'%s\'\\n \'Cancel\' to stop, \'OK\' to delete."), addslashes($edited_post_title)) . "')\">" . __('Delete this post') . "</a></p>";
?>
<fieldset id="postcustom">
<legend><?php _e('Custom Fields') ?></legend>
<?php
if($metadata = has_meta($post_ID)) {
?>
<?php
list_meta($metadata);
?>
<?php
}
meta_form();
?>
</fieldset>
</div>
</form>
<?php if ('edit' == $action) echo "
<p><a class='delete' href='post.php?action=delete&amp;post=$post_ID' onclick=\"return confirm('" . sprintf(__("You are about to delete this post \'%s\'\\n \'Cancel\' to stop, \'OK\' to delete."), addslashes($edited_post_title)) . "')\">" . __('Delete this post') . "</a></p>";
?>
</div>