HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/martyknows.com/wp-content/themes/grisaille/comments.php
<?php

  /**
  *@desc Included at the bottom of post.php and single.php, deals with all comment layout
  */

  if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) :
?>	
<p><?php _e('Enter password.', 'grisaille'); ?></p>
<?php return; endif; ?>

		<h2 id="comments"><?php comments_popup_link(__('0 comments','grisaille'), __('1 comment', 'grisaille'), __('% comments', 'grisaille'), 'comments-link', false); ?>
		
			<?php if ( comments_open() ) : ?>
			<a href="#postcomment" title="<?php _e('Leave a comment', 'grisaille'); ?>">&raquo;</a>
			<?php endif; ?>
		</h2>
		<?php if ( $comments ) : ?>
			<ol id="commentlist">
				<?php wp_list_comments(); ?> 
				<?php foreach ($comments as $comment) : ?>
				<?php endforeach; ?>
			</ol>
<?php paginate_comments_links() ?>

<?php endif; ?>


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


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

<?php comment_form(); ?>

<?php endif; // If registration required and not logged in ?>

<?php else : // Comments are closed ?>
<p class="comments-off"><?php _e('Sorry, comments are closed.', 'grisaille'); ?></p>
<?php endif; ?>