// Do not delete these lines if (!empty($_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">This post is password protected. Enter the password to view comments.</p> <?php return; } ?>
<!-- You can start editing here. --> <?php if ( comments_open() ) : ?>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ( comments_open() ) : ?> <!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?> <!-- If comments are closed. --> <p class="nocomments">Comments are closed.</p>
<?php endif; ?> <?php endif; ?> <?php endif; // if you delete this the sky will fall on your head ?>
View Answers
Related Pages:
comments.php - Java Beginners comments.php
This post is password protected. Enter the password to view comments.
Ajouter un Commentaire
You must be logged in to post a comment.
Logged in as . Log out