Comment detail and list views
git-svn-id: https://develop.svn.wordpress.org/trunk@7003 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c2f9fd380b
commit
419ae5aa3a
@ -31,8 +31,11 @@ if ( !empty( $_REQUEST['delete_comments'] ) ) :
|
|||||||
endif;
|
endif;
|
||||||
|
|
||||||
require_once('admin-header.php');
|
require_once('admin-header.php');
|
||||||
if (empty($_GET['mode'])) $mode = 'view';
|
|
||||||
else $mode = attribute_escape($_GET['mode']);
|
if ( empty($_GET['mode']) )
|
||||||
|
$mode = 'detail';
|
||||||
|
else
|
||||||
|
$mode = attribute_escape($_GET['mode']);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
@ -99,7 +102,7 @@ if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['sp
|
|||||||
|
|
||||||
<input type="hidden" name="mode" value="<?php echo $mode; ?>" />
|
<input type="hidden" name="mode" value="<?php echo $mode; ?>" />
|
||||||
|
|
||||||
<p><a href="?mode=view"><?php _e('Detail View') ?></a> | <a href="?mode=edit"><?php _e('List View') ?></a></p>
|
<p><a href="?mode=detail"><?php _e('Detail View') ?></a> | <a href="?mode=list"><?php _e('List View') ?></a></p>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
@ -179,8 +182,8 @@ if ($comments) {
|
|||||||
<?php if ( !empty($comment->comment_author_email) ): ?>
|
<?php if ( !empty($comment->comment_author_email) ): ?>
|
||||||
<?php comment_author_email_link() ?> |
|
<?php comment_author_email_link() ?> |
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<a href="edit-comments.php?s=<?php comment_author_IP() ?>&mode=edit"><?php comment_author_IP() ?></a>
|
<a href="edit-comments.php?s=<?php comment_author_IP() ?>&mode=detail"><?php comment_author_IP() ?></a>
|
||||||
<p><?php comment_excerpt(); ?></p>
|
<p><?php if ( 'list' == $mode ) comment_excerpt(); else comment_text(); ?></p>
|
||||||
<?php printf(__('From %1$s, %2$s at %3$s'), $post_link, get_the_time(get_option('date_format')), get_the_time()) ?>
|
<?php printf(__('From %1$s, %2$s at %3$s'), $post_link, get_the_time(get_option('date_format')), get_the_time()) ?>
|
||||||
</td>
|
</td>
|
||||||
<td style="vertical-align: text-top"><?php comment_date(); ?></td>
|
<td style="vertical-align: text-top"><?php comment_date(); ?></td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user