Make WordPress Core


Ignore:
Timestamp:
08/20/2008 09:42:31 PM (16 years ago)
Author:
ryan
Message:

Collapse crazyhorse to trunk. Incoming! see #7552

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-comment.php

    r8656 r8691  
    1717
    1818<form name="post" action="comment.php" method="post" id="post">
     19<div id="wpbody-content">
     20
    1921<?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?>
    2022<div class="wrap">
    2123<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
    2229<input type="hidden" name="user_ID" value="<?php echo (int) $user_ID ?>" />
    2330<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).
    2433
    25 <div id="poststuff">
    26 
     34function comment_submit_meta_box($comment) {
     35?>
    2736<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">
    3438
    3539<p><strong><label for='comment_status'><?php _e('Approval Status') ?></label></strong></p>
     
    6064?>
    6165</p>
     66</div>
     67<?php
     68}
     69add_meta_box('submitdiv', __('Save'), 'comment_submit_meta_box', 'comment', 'side', 'core');
     70?>
    6271
    63 <div class="side-info">
    64 <h5><?php _e('Related') ?></h5>
     72<div id="side-info-column" class="inner-sidebar">
    6573
    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
    7376</div>
    7477
    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
    7681<div id="namediv" class="stuffbox">
    7782<h3><label for="name"><?php _e('Name') ?></label></h3>
     
    7984<input type="text" name="newcomment_author" size="30" value="<?php echo attribute_escape( $comment->comment_author ); ?>" tabindex="1" id="name" />
    8085</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 ); ?>
    8192</div>
    8293
     
    95106</div>
    96107
    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 
    103108<?php do_meta_boxes('comment', 'normal', $comment); ?>
    104109
     
    108113<?php wp_original_referer_field(true, 'previous'); ?>
    109114<input type="hidden" name="noredir" value="1" />
     115
     116</div>
     117</div>
    110118</div>
    111119</div>
Note: See TracChangeset for help on using the changeset viewer.