HEX
Server: Apache
System: Linux sg2plzcpnl508499.prod.sin2.secureserver.net 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: s76vzjg2kvav (10209820)
PHP: 8.4.18
Disabled: NONE
Upload Files
File: /home/s76vzjg2kvav/public_html/clients/alepdigital/wp-content/themes/neromax/comments.php
<?php if ( post_password_required() ) {
	return;
}
?>
<div id="comments" class="comments-area">
<?php
$neromax_comment_count = get_comments_number();
if ( $neromax_comment_count > 0 ) { 
 ?>
<h4 class="comments-title">
	<?php
	if ( '1' === $neromax_comment_count ) {
		printf(
			esc_html__( 'Comment (%1$s)', 'neromax' ),
			'<span>' . get_the_title() . '</span>'
		);
	} else {
		printf(
			esc_html( _nx( 'Comment (%1$s)', 'Comments (%1$s)', $neromax_comment_count, 'comments count', 'neromax' ) ),
			number_format_i18n( $neromax_comment_count ),
			'<span>' . get_the_title() . '</span>'
		);
	}
	?>
</h4>
<?php  } ?>
<?php the_comments_navigation(); ?>
<?php function better_comments( $comment, $args, $depth ) {
	if ( 'div' === $args['style'] ) {
		$tag       = 'div';
		$add_below = 'comment';
	} else {
		$tag       = 'li';
		$add_below = 'comments';
	} ?>

	<<?php print_r($tag); ?> <?php comment_class( empty( $args['has_children'] ) ? '' : 'parent' ); ?> id="comment-<?php comment_ID() ?>">

	<?php switch ( $comment->comment_type ) :
		case 'pingback' :
		case 'trackback' : ?>
		<div class="pingback-entry"><span class="pingback-heading"><?php esc_html_e( 'Pingback:', 'neromax' ); ?></span> <?php comment_author_link(); ?></div>
	<?php
		break;
		default :

		if ( 'div' != $args['style'] ) { ?>
			<div id="comments-<?php comment_ID() ?>" class="comment-body">
		<?php } ?>
			<div class="comment-author vcard">
				<div class="bmavatar">
			<?php  if ( $args['avatar_size'] != 0 ) {
					$avatar_size = ! empty( $args['avatar_size'] ) ? $args['avatar_size'] : 70;
						echo get_avatar( $comment, $avatar_size );
				}
				?>
				</div>
				<div class="comment-content">
				  <div class="comment-meta">
					<?php printf( __( '<h5 class="comment_author">%s</h5>', 'neromax' ), get_comment_author_link() ); ?>
					
						<span class="comment_data">
						<?php  printf(
								__( '%1$s', 'neromax' ),
								get_comment_date(),
								get_comment_time()
							); ?>
						</span>
						<?php edit_comment_link( __( '(Edit)', 'neromax' ), '  ', '' ); ?>
						
						<div class="desc-comment-reply">
					<?php comment_reply_link( array_merge( $args, array(
								'add_below' => $add_below,
								'depth'     => $depth,
								'max_depth' => $args['max_depth']
							) ) );
						 ?>
						 </div>
					</div>
					<div class="comment-details">
						<div class="comment-text"><?php comment_text(); ?></div>
						<?php if ( $comment->comment_approved == '0' ) { ?>
							<em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'neromax' ); ?></em><br/><?php
						} ?>
					</div>
					<div class="comment-meta mob-comment-reply">
					<?php comment_reply_link( array_merge( $args, array(
								'add_below' => $add_below,
								'depth'     => $depth,
								'max_depth' => $args['max_depth']
							) ) );
						 ?>
						 </div>
				</div>

			</div>
	<?php
		if ( 'div' != $args['style'] ) { ?>
			</div>
	<?php } 
	break;
	endswitch;
}

wp_list_comments( array(
    'callback' => 'better_comments',
	'avatar_size' => 80,
) ); 

?>
<?php $neromax_commenter = wp_get_current_commenter();
     $neromax_req = get_option( 'require_name_email' );
     $neromax_aria_req = ( $neromax_req ? " required" : '' );

     $neromax_fields =  array(
		 '<div class="row">',
         'author' => '<div class="col-sm-6"><div class="form-group comment-form-author"><input type="text" id="author" name="author" value="' . esc_attr( $neromax_commenter['comment_author'] ) . '" placeholder="'.esc_attr__( 'Name', 'neromax' ).( $neromax_req ? ' *' : '' ).'" class="form-control"' . $neromax_aria_req . '></div></div>',

         'email' => '<div class="col-sm-6 comment-form-email"><div class="form-group"><input id="email" name="email" type="email" value="' . esc_attr(  $neromax_commenter['comment_author_email'] ) . '" class="form-control" placeholder="'.esc_attr__( 'Email', 'neromax' ).( $neromax_req ? ' *' : '' ).'"' . $neromax_aria_req . '></div></div>',
     );

     $neromax_args = array(
		 'class_submit'      => 'btn btn-primary btn-lg submit btn-send',
         'submit_field'         => '<div class="form-submit">%1$s %2$s</div>',

		'comment_field' =>  '<div class="cs-comment"><div class="form-group comment-form-comment"><textarea id="comment" name="comment" required placeholder="'.esc_attr__( 'Comment *', 'neromax' ).'" class="textarea form-control" rows="10" cols="40"></textarea></div></div>',
         'fields' => apply_filters( 'comment_form_default_fields', $neromax_fields ),
				 '</div>',
     );
	?>
	<?php comment_form( $neromax_args );?>
</div>