1 | <?php // Do not delete these lines |
---|
2 | if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) |
---|
3 | die ('Please do not load this page directly. Thanks!'); |
---|
4 | |
---|
5 | if (!empty($post->post_password)) { // if there's a password |
---|
6 | if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie |
---|
7 | ?> |
---|
8 | |
---|
9 | <p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments."); ?><p> |
---|
10 | |
---|
11 | <?php |
---|
12 | return; |
---|
13 | } |
---|
14 | } |
---|
15 | |
---|
16 | /* This variable is for alternating comment background */ |
---|
17 | $oddcomment = 'alt'; |
---|
18 | ?> |
---|
19 | <?php spell_insert_headers();?> |
---|
20 | |
---|
21 | <br /> |
---|
22 | <div id="comments" style="border-top: 1px dashed #666666;"> |
---|
23 | <a href="#postcomment" title="<?php _e("Leave a comment"); ?>"></a><br /> |
---|
24 | <strong><?php comments_number(__("0 Comments / Trackbacks"), __("1 Comment / Trackback"), __("% Comments / Trackbacks")); ?></strong> <a href="#postcomment" title="<?php _e("Leave a comment"); ?>">»</a> <a href="http://www.cavemonkey50.com/wp-commentsrss2.php?p=<?php the_ID(); ?>"><img src="http://www.cavemonkey50.com/images_site/xml.gif" border="0" alt="RSS 2.0 Feed for Comments" /></a><br /> |
---|
25 | <br /> |
---|
26 | <?php _e("Trackback this Post Using the Following URL:"); ?><br /> |
---|
27 | <form style="margin-top: 0px; padding-bottom: 10px;" action=""><input type="text" value="<?php trackback_url() ?>" size="70" class="input" /></form> |
---|
28 | |
---|
29 | <div style="font-size: 95%;"> |
---|
30 | |
---|
31 | <?php if ($comments) : ?> |
---|
32 | |
---|
33 | <ol> |
---|
34 | |
---|
35 | <?php foreach ($comments as $comment) : ?> |
---|
36 | |
---|
37 | <li id="comment-<?php comment_ID() ?>" style="margin-top: 20px;"> |
---|
38 | <a href="http://www.gravatar.com/" target="_blank" title="<?php comment_author(); ?>'s Gravatar: Click to get one."><img src="<?php gravatar("PG", 40, "http://www.cavemonkey50.com/images_site/default_gravatar.png", ""); ?>" alt="Gravatar" style="width: 40px; height: 40px; padding: 2px; border: 1px solid #ccc; margin-left: 10px;" align="right" /></a> |
---|
39 | <strong><?php comment_type(); ?> from <?php comment_author_link(); ?> on <?php comment_date('n/j/y') ?> at <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a>:<?php edit_comment_link(__("(Edit)"), ' '); ?></strong><br /> |
---|
40 | <?php if ($comment->comment_approved == '0') : ?> |
---|
41 | <em>Your comment is awaiting approval.</em><br /> |
---|
42 | <?php endif; ?> |
---|
43 | <br /> |
---|
44 | <div style="font-size: 85%;"> |
---|
45 | <?php comment_text() ?> |
---|
46 | </div> |
---|
47 | </li> |
---|
48 | |
---|
49 | <?php endforeach; /* end for each comment */ ?> |
---|
50 | |
---|
51 | </ol> |
---|
52 | |
---|
53 | <?php else : // this is displayed if there are no comments so far ?> |
---|
54 | |
---|
55 | <?php if ('open' == $post-> comment_status) : ?> |
---|
56 | |
---|
57 | <p><?php _e("No feedback yet."); ?></p> |
---|
58 | |
---|
59 | <?php else : // comments are closed ?> |
---|
60 | |
---|
61 | <div style="margin-bottom: 10px;"><?php _e("Comments are closed."); ?></div> |
---|
62 | |
---|
63 | <?php endif; ?> |
---|
64 | <?php endif; ?> |
---|
65 | |
---|
66 | </div><!--END FONT SIZE--> |
---|
67 | </div><!--END COMMENTS--> |
---|
68 | |
---|
69 | <?php if ('open' == $post-> comment_status) : ?> |
---|
70 | |
---|
71 | <div id="comment-form" style="border-top: 1px dashed #666666; margin-top: 20px;"> |
---|
72 | |
---|
73 | <br /><strong><?php _e("Post a Comment:"); ?></strong><br /> |
---|
74 | <br /> |
---|
75 | |
---|
76 | <?php if ( get_option('comment_registration') && !$user_ID ) : ?> |
---|
77 | <div style="margin-bottom: 10px;">You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</div> |
---|
78 | <?php else : ?> |
---|
79 | |
---|
80 | <form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> |
---|
81 | |
---|
82 | <?php if ( $user_ID ) : ?> |
---|
83 | <!--Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account.">Logout »</a><br /> |
---|
84 | <br />--> |
---|
85 | <?php else : ?> |
---|
86 | |
---|
87 | Please note that a comment spam system is in place. Your comments may not appear instantly. All new users must be approved first. Thank you for your patients and cooperation.<br /> |
---|
88 | <br /> |
---|
89 | |
---|
90 | <label for="author"><?php _e("Your Name"); ?></label><?php if ($req) _e('<span style="color: red;">*</span>'); ?><br /> |
---|
91 | <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="40" tabindex="1" /><br /> |
---|
92 | <br /> |
---|
93 | |
---|
94 | <label for="email"><?php _e("Your E-mail Address"); ?></label><?php if ($req) _e('<span style="color: red;">*</span>'); ?> (Not Displayed)<br /> |
---|
95 | <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="40" tabindex="2" /><br /> |
---|
96 | <br /> |
---|
97 | |
---|
98 | <label for="url"><?php _e("Your Website URL"); ?></label><br /> |
---|
99 | <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="40" tabindex="3" /><br /> |
---|
100 | <br /> |
---|
101 | |
---|
102 | <?php endif; ?> |
---|
103 | |
---|
104 | Click to Use Smilies<br /> |
---|
105 | <?php wp_grins(); ?><br /> |
---|
106 | <label for="comment"><?php _e("Your Comment"); ?></label><span style="color: red;">*</span><br /> |
---|
107 | <textarea name="comment" id="comment" cols="55" rows="4" tabindex="4"></textarea><br /> |
---|
108 | <br /> |
---|
109 | <input type="button" value="Check Spelling" onclick="openSpellChecker();" /> |
---|
110 | <input name="submit" type="submit" tabindex="5" value="<?php _e("Post Comment"); ?>" /> |
---|
111 | <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> |
---|
112 | <?php do_action('comment_form', $post->ID); ?> |
---|
113 | </form> |
---|
114 | |
---|
115 | <?php endif; // If registration required and not logged in ?> |
---|
116 | |
---|
117 | </div> |
---|
118 | |
---|
119 | <?php endif; // if you delete this the sky will fall on your head ?> |
---|