Changeset 8691 for trunk/wp-admin/edit-form-comment.php
- Timestamp:
- 08/20/2008 09:42:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-comment.php
r8656 r8691 17 17 18 18 <form name="post" action="comment.php" method="post" id="post"> 19 <div id="wpbody-content"> 20 19 21 <?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?> 20 22 <div class="wrap"> 21 23 <h2><?php echo $toprow_title; ?></h2> 24 25 <div id="previewview"> 26 <a class="button" href="<?php echo get_comment_link(); ?>" target="_blank"><?php _e('View this Comment'); ?></a> 27 </div> 28 22 29 <input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" /> 23 30 <input type="hidden" name="action" value='<?php echo $form_action . $form_extra ?>' /> 31 <?php 32 // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). 24 33 25 <div id="poststuff"> 26 34 function comment_submit_meta_box($comment) { 35 ?> 27 36 <div class="submitbox" id="submitcomment"> 28 29 <div id="previewview"> 30 <a href="<?php echo get_comment_link(); ?>" target="_blank"><?php _e('View this Comment'); ?></a> 31 </div> 32 33 <div class="inside"> 37 <div class="inside-submitbox"> 34 38 35 39 <p><strong><label for='comment_status'><?php _e('Approval Status') ?></label></strong></p> … … 60 64 ?> 61 65 </p> 66 </div> 67 <?php 68 } 69 add_meta_box('submitdiv', __('Save'), 'comment_submit_meta_box', 'comment', 'side', 'core'); 70 ?> 62 71 63 <div class="side-info"> 64 <h5><?php _e('Related') ?></h5> 72 <div id="side-info-column" class="inner-sidebar"> 65 73 66 <ul> 67 <li><a href="edit-comments.php"><?php _e('Manage All Comments') ?></a></li> 68 <li><a href="edit-comments.php?comment_status=moderated"><?php _e('Moderate Comments') ?></a></li> 69 <?php do_action('comment_relatedlinks_list'); ?> 70 </ul> 71 </div> 72 <?php do_action('submitcomment_box'); ?> 74 <?php $side_meta_boxes = do_meta_boxes('comment', 'side', $comment); ?> 75 73 76 </div> 74 77 75 <div id="post-body"> 78 <div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>"> 79 <div id="post-body-content" class="has-sidebar-content"> 80 76 81 <div id="namediv" class="stuffbox"> 77 82 <h3><label for="name"><?php _e('Name') ?></label></h3> … … 79 84 <input type="text" name="newcomment_author" size="30" value="<?php echo attribute_escape( $comment->comment_author ); ?>" tabindex="1" id="name" /> 80 85 </div> 86 </div> 87 88 <div id="postdiv" class="postarea"> 89 <h3><?php _e('Comment') ?></h3> 90 <?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?> 91 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 81 92 </div> 82 93 … … 95 106 </div> 96 107 97 <div id="postdiv" class="postarea">98 <h3><label for="content"><?php _e('Comment') ?></label></h3>99 <?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?>100 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>101 </div>102 103 108 <?php do_meta_boxes('comment', 'normal', $comment); ?> 104 109 … … 108 113 <?php wp_original_referer_field(true, 'previous'); ?> 109 114 <input type="hidden" name="noredir" value="1" /> 115 116 </div> 117 </div> 110 118 </div> 111 119 </div>
Note: See TracChangeset
for help on using the changeset viewer.