Changed format of comments.
git-svn-id: http://svn.automattic.com/wordpress/trunk@490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1f752b90bc
commit
0408a7267e
|
@ -131,38 +131,33 @@ echo $comments_nav_bar;
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
$comments = $wpdb->get_results("SELECT * FROM $tablecomments
|
||||||
$comments = $wpdb->get_results("SELECT * FROM $tablecomments "
|
ORDER BY comment_date $commentorder
|
||||||
."ORDER BY comment_date $commentorder "
|
LIMIT $commentstart, $commentend"
|
||||||
."LIMIT $commentstart, $commentend"
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// need to account for offet, etc.
|
// need to account for offet, etc.
|
||||||
|
|
||||||
if ($comments) {
|
if ($comments) {
|
||||||
|
echo '<ol>';
|
||||||
foreach ($comments as $comment) {
|
foreach ($comments as $comment) {
|
||||||
?>
|
?>
|
||||||
<p>
|
<li style="border-bottom: 1px solid #ccc;">
|
||||||
<?php comment_date('Y/m/d') ?> @ <?php comment_time() ?>
|
<p><strong>Name:</strong> <?php comment_author() ?> <?php if ($comment->comment_author_email) { ?>| <strong>Email:</strong> <?php comment_author_email_link() ?> <?php } if ($comment->comment_author_email) { ?> | <strong>URI:</strong> <?php comment_author_url_link() ?> <?php } ?>| <strong>IP:</strong> <?php comment_author_IP() ?></p>
|
||||||
[
|
|
||||||
<?php
|
|
||||||
if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) {
|
|
||||||
echo "<a href=\"wp-post.php?action=editcomment&comment=".$comment->comment_ID."\">Edit</a>";
|
|
||||||
echo " - <a href=\"wp-post.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n \'Cancel\' to stop, \'OK\' to delete.')\">Delete</a> - ";
|
|
||||||
} // end if any comments to show
|
|
||||||
?>
|
|
||||||
<a href="wp-post.php?p=<?php echo $comment->comment_post_ID; ?>&c=1">View Post</a> ]
|
|
||||||
<br />
|
|
||||||
<strong><?php comment_author() ?> ( <?php comment_author_email_link() ?> / <?php comment_author_url_link() ?> )</strong> (IP: <?php comment_author_IP() ?>)
|
|
||||||
<?php comment_text() ?>
|
|
||||||
|
|
||||||
</p>
|
<?php comment_text() ?>
|
||||||
|
<p>Posted <?php comment_date('M j, g:i A') ?> | <?php
|
||||||
|
if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) {
|
||||||
|
echo "<a href=\"b2edit.php?action=editcomment&comment=".$comment->comment_ID."\">Edit</a>";
|
||||||
|
echo " | <a href=\"b2edit.php?action=deletecomment&p=".$comment->comment_post_ID."&comment=".$comment->comment_ID."\" onclick=\"return confirm('You are about to delete this comment by \'".$comment->comment_author."\'\\n \'Cancel\' to stop, \'OK\' to delete.')\">Delete</a> | ";
|
||||||
|
} // end if any comments to show
|
||||||
|
?> <a href="b2edit.php?p=<?php echo $comment->comment_post_ID; ?>">View Post</a></p>
|
||||||
|
</li>
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
} // end foreach
|
} // end foreach
|
||||||
|
echo '</ol>';
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue