HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/xampp/htdocs/wordpress/wp-content/themes/grey-matter/comments.php
<?php // Do not delete these lines
	if (isset($_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.', 'grey_matter'); ?></p>
	<?php
		return;
	}
?>

<div id="comments">

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

		<h2><?php comments_number(__('No Responses','grey_matter'), __('One Response','grey_matter'), __('% Responses','grey_matter')); ?></h2>

    <h3 style="text-align: right;"><?php comments_rss_link(__('Subscribe to comments via RSS','grey_matter')); ?></h3>
    
    <ol class="commentlist">
  	  <?php wp_list_comments('callback=greymatter_comment_function'); ?>
  	</ol>

    <div id="navigation">
 		  <div class="left"><?php previous_comments_link() ?></div>
  	  <div class="right"><?php next_comments_link() ?></div>
    </div>

    <h3 style="text-align: right;"><?php comments_rss_link(__('Subscribe to comments via RSS','grey_matter')); ?></h3>

	  <?php if ('closed' == $post -> comment_status) : ?>
		  <!--<h2><?php _e('Comments are closed for this entry.', 'grey_matter'); ?></h2>-->
		  </div>
	  <?php endif; ?>

	  <?php else : ?>
		  <?php if ('open' == $post->comment_status) : ?>
        <!--<h2><?php _e('There are no comments so far.', 'grey_matter'); ?></h2>-->
      <?php else : ?>
	  		<!--<h2><?php _e('Comments are closed for this entry.', 'grey_matter'); ?></h2>-->
		  </div>
		<?php endif; ?>

  <?php endif; ?>   <!-- The end of have_comments() -->

  <!-- ----------------------------------------------------------------------------- -->

	<?php if ('open' == $post->comment_status) : ?>
  <div id="respond">
			<h2><?php //comment_form_title(); ?><?php _e('Leave a Reply', 'grey_matter'); ?></h2>

      <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
        <p><?php _e('You must be', 'grey_matter'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in', 'grey_matter'); ?></a><?php _e(' to post a comment', 'grey_matter'); ?>.</p>
		    </div>

      <?php else : ?>
        <?php include(TEMPLATEPATH."/inc.commentform.php"); ?>
      </div>
	    <?php endif; ?>
    </div>

  <?php endif; ?>