<!-- If comments are closed. --> <p class="nocomments">Comments are closed.</p> <?php } else { // just no comments yet ?> <!-- If comments are open, but there are no comments. --> <?php } ?> <?php } ?> <?php if (!$post->info->comments_disabled) { ?> <div id="comment-form"> <h3 class="formhead">Have your say</h3> <?php $commenter = User::commenter(); ?> <?php if (Session::has_messages()) { Session::messages_out(); } $post->comment_form()->out(); echo '</div>'; }