Fix V3 counters
[ssproject1617.git] / testcms-final-anon / themes / default / includes / comment_form.php
1 <?php if(comments_open()): ?>
2 <section class="comments">
3
4 <h1><?php echo total_comments() . pluralise(total_comments(), ' comment'); ?> <a href="#comment" title="Contribute to the discussion!">Add your own</a></h1>
5
6 <?php if(has_comments()): ?>
7 <ul class="commentlist">
8 <?php while(comments()): ?>
9 <li class="comment" id="comment-<?php echo comment_id(); ?>">
10 <h2><?php echo comment_name(); ?></h2>
11 <time><?php echo relative_time(comment_time()); ?></time>
12
13 <div class="content">
14 <?php echo comment_text(); ?>
15 </div>
16 </li>
17 <?php endwhile; ?>
18 </ul>
19 <?php endif; ?>
20
21 <form id="comment" class="commentform" method="post" action="<?php echo current_url(); ?>#comment">
22 <legend>Add your comments</legend>
23
24 <?php echo comment_form_notifications(); ?>
25
26 <p class="name">
27 <label for="name">Your name:</label>
28 <?php echo comment_form_input_name(); ?>
29 </p>
30
31 <p class="email">
32 <label for="email">Your email address:</label>
33 <em>Will never be published.</em>
34 <?php echo comment_form_input_email(); ?>
35 </p>
36
37 <p class="textarea">
38 <label for="text">Your comment:</label>
39 <?php echo comment_form_input_text(); ?>
40 </p>
41
42 <p class="submit">
43 <?php echo comment_form_button(); ?>
44 </p>
45 </form>
46
47 </section>
48 <?php endif; ?>