HEX
Server: LiteSpeed
System: Linux cde2.duelhost.dk 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: dtptviut (1121)
PHP: 8.0.30
Disabled: exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/dtptviut/domains/morsunivers.dk/public_html/wp-content/themes/mts_dropshipping/comments.php
<?php
/**
 * The template for displaying the comments.
 *
 * This contains both the comments and the comment form.
 */

/*
 * If the current post is protected by a password and
 * the visitor has not yet entered the password we will
 * return early without loading the comments.
 */
if ( post_password_required() ) { ?>
	<p class="nocomments"><?php esc_html_e( 'This post is password protected. Enter the password to view comments.', 'dropshipping' ); ?></p>
	<?php
	return;
}

if ( have_comments() ) :
?>
	<div id="comments">

		<div class="comment-title">

			<h4 class="total-comments"><span><?php comments_number( esc_html__( 'No Responses', 'dropshipping' ), esc_html__( 'One Response', 'dropshipping' ), esc_html__( 'Comments (%)', 'dropshipping' ) ); ?></span></h4>

		</div>

		<ol class="commentlist clearfix">
			<?php
			// List comments.
			wp_list_comments( 'callback=mts_comments' );

			// Comments pagination.
			the_comments_navigation( array(
				'prev_text' => '<i class="fa fa-angle-double-left"></i> ' . esc_html__( 'Older comments', 'dropshipping' ),
				'next_text' => esc_html__( 'Newer Comments', 'dropshipping' ) . ' <i class="fa fa-angle-double-right"></i>',
			) );
			?>
		</ol>

	</div>
<?php endif; ?>

<?php if ( comments_open() ) : ?>
	<div id="commentsAdd">

		<div id="respond" class="box m-t-6">
			<?php
			// Declare Vars.
			$comment_send     = esc_html__( 'Leave a Reply', 'dropshipping' );
			$comment_reply    = esc_html__( 'Post Comment', 'dropshipping' );
			$comment_reply_to = esc_html__( 'Reply', 'dropshipping' );
			$comment_author   = esc_html__( 'Name*', 'dropshipping' );
			$comment_email    = esc_html__( 'Email*', 'dropshipping' );
			$comment_body     = esc_html__( 'Insert Your Reply...', 'dropshipping' );
			$comment_url      = esc_html__( 'Website', 'dropshipping' );
			$comment_cookies  = esc_html__( 'Save my name, email, and website in this browser for the next time I comment.', 'dropshipping' );
			$comment_cancel   = esc_html__( 'Cancel Reply', 'dropshipping' );
			$comments_args    = [
				// Define Fields.
				'fields'               => [
					// Author field.
					'author'  => '<p class="comment-form-author"><input id="author" name="author" aria-required="true" placeholder="' . $comment_author . '"></input></p>',
					// Email Field.
					'email'   => '<p class="comment-form-email"><input id="email" name="email" placeholder="' . $comment_email . '"></input></p>',
					// URL Field.
					'url'     => '<p class="comment-form-url"><input id="url" name="url" placeholder="' . $comment_url . '"></input></p>',
					// Cookies.
					'cookies' => '<p class="comment-form-cookies-consent"><input type="checkbox" required><label for="wp-comment-cookies-consent">' . $comment_cookies . '</label></p>',
				],
				// Change the title of send button.
				'label_submit'         => $comment_send,
				// Change the title of the reply section.
				'title_reply'          => $comment_reply,
				// Change the title of the reply section.
				'title_reply_to'       => $comment_reply_to,
				// Cancel Reply Text.
				'cancel_reply_link'    => $comment_cancel,
				// Redefine your own textarea (the comment body).
				'comment_field'        => '<p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="6" aria-required="true" placeholder="' . $comment_body . '"></textarea></p>',
				// Message Before Comment.
				'comment_notes_before' => '',
				// Remove "Text or HTML to be displayed after the set of comment fields".
				'comment_notes_after'  => '',
				// Submit Button ID.
				'id_submit'            => 'submit',
			];
			comment_form( $comments_args );
			?>
		</div>

	</div>
<?php
endif;