rendered paste bodyComments.php dosyasındaki This is a loop for printing comments başlıklı bölüm
<?php
/* This is a loop for printing comments */
if ($numComments != 0) : ?>
<h2 id="comments">Yorum(lar)</h2>
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<?php if (get_comment_type()=="comment") : ?>
<li class="<?php if ( $comment->comment_author_email == get_the_author_email() ) echo 'mycomment'; else echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<?php if ($comment->comment_approved == '0') : ?>
<em>Yorumunuz denetim için bekliyor.</em>
<?php endif; ?>
<?php comment_text() ?>
<p><strong><?php comment_author_link() ?></strong> | <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('M j, Y') ?></a> | <a href="#respond">Yorum Yapın</a><?php edit_comment_link('Düzenle',' | ',''); ?></p>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'odd';
?>
<?php endif; endforeach; ?>
</ol>
<?php endif; ?>
Style.css deki ilgili bölüm
/* -------------------[ Comments ]------------------- */
ol.commentlist {
font-size:8pt;
padding: 0;
margin: 0;
}
ol.commentlist li {
display: block;
list-style: none;
padding: 15px 15px 1px;
margin: 0;
border-bottom:1px solid #ececec;
}
ol.tblist {
font-size:8pt;
list-style: none;
padding: 15px 15px 10px;
margin: 0;
border-bottom:1px solid #ececec;
}
ol.tblist li {
display: block;
list-style: none;
padding: 0;
margin: 0 0 5px 0;
background: url(images/zekebullet.gif) 0 3px no-repeat;
padding-left: 14px;
}
.odd {
}