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/sweet-blossoms/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="nocomments"><?php _e( 'This post is password protected. Enter the password to view comments.', 'sweet-blossoms' ); ?></p>
<?php
	return;
}

global $commentcount;
$commentcount = 1;

function sweet_blossoms_comment($comment, $args, $depth) {
	$GLOBALS['comment'] = $comment;
	global $commentcount, $comment_alt;
	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(); ?>">
	<p class="header<?php if ($comment_alt % 2 ) echo 'alt'; ?>"><strong><?php echo $commentcount ?><?php _e('.', 'sweet-blossoms'); ?></strong>
	<span class="comment-author vcard">
	<?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['avatar_size'] ); ?>
		<span class="fn"><?php if (get_comment_type() == "comment") comment_author_link();
		  else {
		  		strlen($comment->comment_author)?$author=substr($comment->comment_author,0,25)."&hellip":$author=substr($comment->comment_author,0,25);
		  		echo '<a href="'.$comment->comment_author_url.'">'.$author.'</a>';

		  }
	?></span></span> &nbsp;|&nbsp;
					<?php
						/* translators: 1: date, 2: time */
						printf( __( '%1$s at %2$s', 'sweet-blossoms' ), get_comment_date(),  get_comment_time() ); ?>
				</p>
	<?php if ($comment->comment_approved == '0') : ?><p><em><?php _e( 'Your comment is awaiting moderation.', 'sweet-blossoms' ); ?></em></p><?php endif; ?>
	<?php comment_text(); ?>
	<?php edit_comment_link( __( 'Edit Comment', 'sweet-blossoms' ), ' ' ); ?>
	<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
	$commentcount++;
}

?>

<?php if (have_comments()) : ?>

		<div style="padding:20px 0px 0px 0px;"></div>

		<img src="<?php bloginfo('stylesheet_directory'); ?>/images/divider.gif" alt="" />

		<div style="padding:20px 0px 0px 0px;"></div>

	<h2>
		<?php printf( _n( 'One Comment', '%1$s Comments', get_comments_number(), 'sweet-blossoms' ), number_format_i18n( get_comments_number() ) );
		if( $post->comment_status == "open" ) { ?>
			<a href="#commentform" class="more"><?php _e( 'Add your own', 'sweet-blossoms' ); ?></a>
		<?php } ?>
	</h2>

	<ul class="commentlist">
		<?php wp_list_comments( array( 'callback' => 'sweet_blossoms_comment', 'avatar_size' => 16 ) ); ?>
	</ul>
	<div class="navigation">
		<div class="alignleft"><?php previous_comments_link(); ?></div>
		<div class="alignright"><?php next_comments_link(); ?></div>
	</div>
	<br />

<?php endif; ?>

<?php comment_form(); ?>

<?php if ( comments_open() && pings_open() ) { ?>
	<p><a href="<?php trackback_url( display ); ?>"><?php _e( 'Trackback this post', 'sweet-blossoms' ); ?></a> <?php _e( '&nbsp;|&nbsp;', 'sweet-blossoms' ); ?> <?php post_comments_feed_link( 'Subscribe to comments via RSS Feed', 'sweet-blossoms' ); ?></p>
<?php } elseif ( comments_open() ) {?>
	<p><?php post_comments_feed_link( 'Subscribe to comments via RSS Feed', 'sweet-blossoms' ); ?></p>
<?php } elseif (pings_open()) {?>
	<p><a href="<?php trackback_url( display ); ?>"><?php _e( 'Trackback', 'sweet-blossoms' ); ?></a></p>
<?php } ?>

		<div style="padding:20px 0px 0px 0px;"></div>

		<img src="<?php bloginfo('stylesheet_directory'); ?>/images/divider.gif" alt="" />