HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/KLeeuwen/old.samenbouwen.in/wwwroot/wp-content/themes/dlight/comments.php
<?php
/**
 * @package WordPress
 * @subpackage DLight Theme
 * @author Shindiri Studio (http://www.shindiristudio.com) & http://www.mihajlovicnenad.com/
 */

if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
	die ('Please do not load this page directly. Thanks!');
?>
<div id="comments">
	<?php if ( post_password_required() ) : ?>
	<div class="nopassword">
		<?php _e( 'This post is password protected. Enter the password to view any comments.', 'darkone' ); ?>
	</div>
	<?php return; endif;?>
	<?php if ( comments_open() ) : ?>
		<?php
			$fields =  array(
				'author' =>'<input id="author" class="darkone_pale_border input_field block margin-bottom20" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" placeholder="' . __( 'Name', 'darkone' ) . '" />',

				'email' => '<input id="email" class="darkone_pale_border input_field block margin-bottom20" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" placeholder="' . __( 'Email', 'darkone' ) . '"/>',

				'url' => '<input id="url" class="darkone_pale_border input_field block margin-bottom20" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" placeholder="' . __( 'Website', 'darkone' ) . '" />'
			);
			comment_form( array('fields'=>$fields, 'comment_field' => '<textarea id="comment" name="comment" maxlength="300" class="darkone_pale_border textarea_field block" aria-required="true">' . __( 'Your message goes here (max 300 chars)', 'darkone' ) . '</textarea>', 'title_reply' => __( 'Leave a comment', 'darkone' ), 'title_reply_to' => __( 'Leave a Reply to %s' , 'darkone' ), 'label_submit' => __( 'Send comment', 'darkone' )));
			?>
	<?php endif; ?>

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

		<h6 class="comments_title margin-bottom36 uppercase"><?php _e( 'Comments', 'darkone' ); ?> (<?php echo get_comments_number(); ?>)</h6>

		<ul class="comments_wrapper" id="comments_wrapper">
			<?php wp_list_comments( array( 'callback' => 'darkone_comment' ) ); ?>
		</ul>

		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
		<nav id="comment-nav-below">
			<div class="nav-previous">
				<?php previous_comments_link( __( '&larr; Older Comments', 'darkone' ) ); ?>
			</div>
			<div class="nav-next">
				<?php next_comments_link( __( 'Newer Comments &rarr;', 'darkone' ) ); ?>
			</div>
		</nav>
		<?php
			endif;
			else :
			if ( comments_open() ) :
			else :
			if ( !comments_open() && !is_page() ) :
		?>
		<p class="nocomments">
			<?php _e( 'Comments are closed.', 'darkone' ); ?>
		</p>
		<?php
			endif;
			endif;
		endif;
	?>

</div>