diff options
author | Theo Chatzimichos <tampakrap@gentoo.org> | 2013-10-06 12:49:03 +0200 |
---|---|---|
committer | Theo Chatzimichos <tampakrap@gentoo.org> | 2013-10-06 12:49:03 +0200 |
commit | 2585802e750dc170833e3c37bf9ea2941d1d06dc (patch) | |
tree | c62747fd124aa6b9c550b8a8a282d09eef912805 /themes/mantra/comments.php | |
parent | Update akismet (diff) | |
download | blogs-gentoo-2585802e750dc170833e3c37bf9ea2941d1d06dc.tar.gz blogs-gentoo-2585802e750dc170833e3c37bf9ea2941d1d06dc.tar.bz2 blogs-gentoo-2585802e750dc170833e3c37bf9ea2941d1d06dc.zip |
Add mantra theme, requested by hwoarang
Diffstat (limited to 'themes/mantra/comments.php')
-rw-r--r-- | themes/mantra/comments.php | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/themes/mantra/comments.php b/themes/mantra/comments.php new file mode 100644 index 00000000..4459314c --- /dev/null +++ b/themes/mantra/comments.php @@ -0,0 +1,53 @@ +<?php
+/**
+ * The template for displaying Comments.
+ *
+ * The area of the page that contains both current comments
+ * and the comment form. The actual display of comments is
+ * handled by a callback to mantra_comment which is
+ * located in the includes/theme-comments.php file.
+ *
+ * @package Cryout Creations
+ * @subpackage mantra
+ * @since mantra 0.5
+ */
+?>
+
+ <div id="comments">
+<?php if ( post_password_required() ) : ?>
+ <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'mantra' ); ?></p>
+ </div><!-- #comments -->
+<?php
+ /* Stop the rest of comments.php from being processed,
+ * but don't kill the script entirely -- we still have
+ * to fully load the template.
+ */
+ return;
+ endif;
+?>
+
+<?php
+ // You can start editing here -- including this comment!
+?>
+
+<?php if ( have_comments() ) :
+
+ cryout_before_comments_hook(); ?>
+
+ <ol class="commentlist">
+
+ <?php cryout_comments_hook(); ?>
+
+ </ol>
+
+ <?php cryout_after_comments_hook();
+
+?><?php else : // or, if we don't have comments:
+
+ cryout_nocomments_hook();
+
+ endif; // end have_comments() ?>
+
+<?php comment_form(); ?>
+
+</div><!-- #comments -->
|