HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/lipovac/wp-content/themes/senior/templates/comments.php
<?php
if ( post_password_required() ) {
	return;
}

if ( have_comments() ) : ?>
	<section id="comments">
		<h3><?php printf( _n( 'One Response to &ldquo;%2$s&rdquo;', '%1$s Responses to &ldquo;%2$s&rdquo;', get_comments_number(), 'wheels' ), number_format_i18n( get_comments_number() ), get_the_title() ); ?></h3>
		<hr/>
		<ul class="comment-list">
			<?php wp_list_comments( array( 'walker' => new Wheels_Walker_Comment ) ); ?>
		</ul>

		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
			<nav>
				<ul class="pager">
					<?php if ( get_previous_comments_link() ) : ?>
						<li class="previous"><?php previous_comments_link( __( '&larr; Older comments', 'wheels' ) ); ?></li>
					<?php endif; ?>
					<?php if ( get_next_comments_link() ) : ?>
						<li class="next"><?php next_comments_link( __( 'Newer comments &rarr;', 'wheels' ) ); ?></li>
					<?php endif; ?>
				</ul>
			</nav>
		<?php endif; ?>

		<?php if ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
			<div class="alert alert-warning">
				<?php _e( 'Comments are closed.', 'wheels' ); ?>
			</div>
		<?php endif; ?>
	</section><!-- /#comments -->
<?php endif; ?>

<?php if ( ! have_comments() && ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
	<section id="comments">
		<div class="alert alert-warning">
			<?php _e( 'Comments are closed.', 'wheels' ); ?>
		</div>
	</section><!-- /#comments -->
<?php endif; ?>

<?php if ( comments_open() ) : ?>
	<section id="respond">
		<h3><?php comment_form_title( __( 'Join the conversation', 'wheels' ), __( 'Leave a Reply to %s', 'wheels' ) ); ?></h3>

		<p class="cancel-comment-reply"><?php cancel_comment_reply_link(); ?></p>
		<?php if ( get_option( 'comment_registration' ) && ! is_user_logged_in() ) : ?>
			<p><?php printf( __( 'You must be <a href="%s">logged in</a> to post a comment.', 'wheels' ), wp_login_url( get_permalink() ) ); ?></p>
		<?php else : ?>
			<form action="<?php echo get_option( 'siteurl' ); ?>/wp-comments-post.php" method="post" id="commentform">
				<?php if ( is_user_logged_in() ) : ?>
					<p>
						<?php printf( __( 'Logged in as <a href="%s/wp-admin/profile.php">%s</a>.', 'wheels' ), get_option( 'siteurl' ), $user_identity ); ?>
						<a href="<?php echo wp_logout_url( get_permalink() ); ?>"
						   title="<?php _e( 'Log out of this account', 'wheels' ); ?>"><?php _e( 'Log out &raquo;', 'wheels' ); ?></a>
					</p>
				<?php else : ?>
					<div class="form-group">
						<label for="author"><?php _e( 'Name', 'wheels' );
							if ( $req ) {
								_e( ' (required)', 'wheels' );
							} ?></label>
						<input type="text" class="form-control" name="author" id="author"
						       value="<?php echo esc_attr( $comment_author ); ?>" size="22" <?php if ( $req ) {
							echo 'aria-required="true"';
						} ?>>
					</div>
					<div class="form-group">
						<label for="email"><?php _e( 'Email (will not be published)', 'wheels' );
							if ( $req ) {
								_e( ' (required)', 'wheels' );
							} ?></label>
						<input type="email" class="form-control" name="email" id="email"
						       value="<?php echo esc_attr( $comment_author_email ); ?>" size="22" <?php if ( $req ) {
							echo 'aria-required="true"';
						} ?>>
					</div>
					<div class="form-group">
						<label for="url"><?php _e( 'Website', 'wheels' ); ?></label>
						<input type="url" class="form-control" name="url" id="url"
						       value="<?php echo esc_attr( $comment_author_url ); ?>" size="22">
					</div>
				<?php endif; ?>
				<div class="form-group">
					<label for="comment"><?php _e( 'Comment', 'wheels' ); ?></label>
					<textarea name="comment" id="comment" class="form-control" rows="5" aria-required="true"></textarea>
				</div>
				<p><input name="submit" class="btn btn-primary" type="submit" id="submit"
				          value="<?php _e( 'Submit Comment', 'wheels' ); ?>"></p>
				<?php comment_id_fields(); ?>
				<?php do_action( 'comment_form', $post->ID ); ?>
			</form>
		<?php endif; ?>
	</section><!-- /#respond -->
<?php endif; ?>