File: /home/mmickelson/theflexguys.com/baronconstruct/wp-content/themes/twenty-eight/comments.php
<?php // Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) {
?>
<p class="center"><?php _e("This post is password protected. Enter the password to view comments."); ?></p>
<?php
return;
}
function twenty_eight_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
extract($args, EXTR_SKIP);
?>
<li <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent'); ?> id="comment-<?php comment_ID(); ?>">
<div id="div-comment-<?php comment_ID(); ?>">
<div class="comment-author vcard">
<?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['avatar_size'] ); ?>
<span class="commentauthor fn" style="font-weight: normal;"><?php comment_author_link(); ?></span>
</div>
<?php edit_comment_link('<img src="'.get_bloginfo(template_directory).'/images/pencil.png" alt="Edit Link" />','<span class="commentseditlink">','</span>'); ?>
<p class="metadata" style="color:#9c9c9c;font-size:12px;margin-top:2px;"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ); ?>" title="<?php { ?>Permalink to Comment<?php } ?>"><?php comment_date(); ?> at <?php comment_time(); ?></a></p>
<div class="itemtext"><?php comment_text(); ?></div>
<?php if ($comment->comment_approved == '0') : ?>
<p class="alert"><strong><?php _e( 'Your comment is awaiting moderation.', 'twenty-eight' ); ?></strong></p>
<?php endif; ?>
<div class="reply">
<?php comment_reply_link(array_merge( $args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
</div>
</div>
<?php
}
function twenty_eight_ping($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
global $count_pings;
extract($args, EXTR_SKIP);
?>
<li <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent'); ?> id="comment-<?php comment_ID(); ?>">
<a href="#comment-<?php comment_ID(); ?>" title="Permanent Link to this Comment" class="counter"><?php echo $count_pings; $count_pings++; ?></a>
<span class="commentauthor"><?php comment_author_link(); ?></span>
<small class="commentmetadata">
<span class="pingtype"><?php comment_type(); ?></span> on <a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ); ?>" title="<?php if (function_exists('time_since')) { $comment_datetime = strtotime($comment->comment_date); echo time_since($comment_datetime); ?> ago<?php } else { ?>Permalink to Comment<?php } ?>"><?php comment_date('M jS, Y'); ?> at <?php comment_time(); ?></a> <?php edit_comment_link('<img src="'.get_bloginfo(template_directory).'/images/pencil.png" alt="Edit Link" />','<span class="commentseditlink">','</span>'); ?>
</small>
<?php comment_text(); ?>
<?php
}
?>
<?php if ((have_comments()) or (comments_open())) { ?>
<hr />
<div class="comments" id="comments">
<div class="center">
<h4><a href="#comments"><?php comments_number('Leave a Comment', 'One Reply', '% Replies' );?></a></h4>
</div>
<ol class="commentlist" id='commentlist'>
<?php if (have_comments()) : ?>
<?php wp_list_comments(array('callback'=>'twenty_eight_comment', 'avatar_size'=>48, 'type'=>'comment')); ?>
</ol>
<ol class="pinglist">
<?php global $count_pings; $count_pings = 1; ?>
<?php wp_list_comments(array('callback'=>'twenty_eight_ping', 'avatar_size'=>48, 'type'=>'pings')); ?>
</ol>
<div class="navigation">
<div class="alignleft"><?php previous_comments_link(); ?></div>
<div class="alignright"><?php next_comments_link(); ?></div>
</div>
<br />
<?php endif; ?>
<?php include (TEMPLATEPATH . '/navigation.php'); ?>
<?php comment_form(); ?>
</div>
<?php } ?>