]> git.openstreetmap.org Git - stateofthemap.git/blob - legacy.comments.php
Aerodrome 1.0.4
[stateofthemap.git] / legacy.comments.php
1         <?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
2
3                  <p><?php _e('Enter your password to view comments.'); ?></p>
4
5          <?php return; endif; ?>
6
7         <h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
8         <?php if ( comments_open() ) : ?>
9                  <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">&raquo;</a>
10         <?php endif; ?>
11         </h2>
12
13
14 <?php if ( $comments ) : ?>
15
16         <ul id="commentlist">
17
18         <?php foreach ($comments as $comment) : ?>
19                  <li>
20
21                  <!--Change the gravatar size by replacing '70' with bigger resp. smaller sizes-->
22                  <div class="authorcomm">
23                  
24                  <?php echo get_avatar( $comment, 70 ); ?>
25
26                  <?php comment_author_link() ?>
27                  </div>
28                  <?php comment_text() ?>
29
30                  <div class="meta"><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> | <?php comment_date() ?> <?php edit_comment_link(__("Edit This"), ' |'); ?></div>
31                  </li>
32
33         <?php endforeach; ?>
34
35         </ul>
36
37
38
39 <?php else : ?>
40
41 <?php endif; ?>
42
43         <p style="font-size:12px;"><?php post_comments_feed_link(__('RSS feed for comments on this post.')); ?>
44         <?php if ( pings_open() ) : ?>
45                  <a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack URL'); ?></a>
46         <?php endif; ?>
47         </p>
48
49 <?php if ( comments_open() ) : ?>
50         <h2 id="postcomment"><?php _e('Leave a comment'); ?></h2>
51
52 <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
53 <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>
54 <?php else : ?>
55
56                  <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
57
58                  <?php if ( $user_ID ) : ?>
59
60                  <p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"><?php _e('Log out &raquo;'); ?></a></p>
61
62                  <?php else : ?>
63
64                  <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
65                  <label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
66
67                  <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
68                  <label for="email"><small><?php _e('Mail (will not be published)');?> <?php if ($req) _e('(required)'); ?></small></label></p>
69
70                  <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
71                  <label for="url"><small><?php _e('Website'); ?></small></label></p>
72
73                  <?php endif; ?>
74
75                  <!--<p><small><strong>XHTML:</strong> <?php printf(__('You can use these tags: %s'), allowed_tags()); ?></small></p>-->
76
77                  <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
78
79                  <p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php echo attribute_escape(__('Submit Comment')); ?>" />
80                  <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
81                  </p>
82                  <?php do_action('comment_form', $post->ID); ?>
83
84                  </form>
85
86 <?php endif; // If registration required and not logged in ?>
87
88 <?php else : // Comments are closed ?>
89 <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
90 <?php endif; ?>