HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/theflexguys.com/baronconstruct/wp-content/themes/almost-spring/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><?php _e('This post is password protected. Enter the password to view comments.','almost-spring'); ?><p>
<?php 
return;
}

function almost_spring_callback($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 class="comment-author vcard">
	<?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['avatar_size'] ); ?>
	<h3 class="commenttitle"><cite class="fn"><?php comment_author_link(); ?></cite> <span class="says"><?php _e('said','almost-spring'); ?></span></h3>
	</div>
<?php if ($comment->comment_approved == '0') : ?>
	<em><?php _e('Your comment is awaiting moderation.','almost-spring') ?></em>
	<br />
<?php endif; ?>
	
	<small class="comment-meta commentmetadata commentmeta">
	<?php comment_date(); ?> @ 
	<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>" 
	title="<?php _e('Permanent link to this comment','almost-spring'); ?>"><?php comment_time(); ?></a>
	<?php edit_comment_link(__('Edit','almost-spring'), ' &#183; ', ''); ?></small>

	<?php comment_text(); ?>

	<div class="reply">
	<?php comment_reply_link(array_merge( $args, array('add_below' => 'comment', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
	</div>
<?php 
}
	
if ( have_comments() ) : ?>
<div><h2 id="comments">
<?php comments_number(__('Comments','almost-spring'), __('1 Comment','almost-spring'), __('% Comments','almost-spring'));?>
<?php if ( comments_open() ) : ?>
	<a href="#postcomment" title="<?php _e('Jump to the comments form','almost-spring'); ?>">&raquo;</a>
<?php endif; ?>
</h2>
 
<ol class="commentlist" id="commentlist">
<?php wp_list_comments(array('callback'=>'almost_spring_callback')); ?>
</ol>
	
	<p class="small">
	<?php post_comments_feed_link( __( '<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post','almost-spring' ) ); ?>
	<?php if ( pings_open() ) : ?>
	&#183; <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>','almost-spring'); ?></a>
	<?php endif; ?>
	</p>

<div class="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
</div>
<?php else : // this is displayed if there are no comments so far ?>
	<?php if (comments_open()) :
		// If comments are open, but there are no comments.
	else : // comments are closed
	endif;
?>

<?php
endif;
?>

<?php if ( comments_open() ) : ?>
	<?php comment_form(); ?>
<?php else : ?>
	<?php if ( ! is_page() ) : ?>
	<p><?php _e( 'Comments are closed.', 'almost-spring' ); ?></p>
	<?php endif; ?>
<?php endif; // if you delete this the sky will fall on your head ?>