136
|
1 |
<?php |
|
2 |
/* Don't remove these lines. */ |
|
3 |
add_filter('comment_text', 'popuplinks'); |
|
4 |
while ( have_posts()) : the_post(); |
|
5 |
?> |
|
6 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
7 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
8 |
<head> |
|
9 |
<title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title> |
|
10 |
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> |
|
11 |
<style type="text/css" media="screen"> |
|
12 |
@import url( <?php bloginfo('stylesheet_url'); ?> ); |
|
13 |
body { margin: 3px; } |
|
14 |
</style> |
|
15 |
</head> |
|
16 |
<body id="commentspopup"> |
|
17 |
<h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1> |
|
18 |
<h2 id="comments">Comments</h2> |
|
19 |
<p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.</a></p> |
|
20 |
<?php if ('open' == $post->ping_status) { ?> |
|
21 |
<p>The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em><?php trackback_url() ?></em></p> |
|
22 |
<?php } ?> |
|
23 |
<?php |
|
24 |
// this line is WordPress' motor, do not delete it. |
|
25 |
$commenter = wp_get_current_commenter(); |
|
26 |
extract($commenter); |
|
27 |
$comments = get_approved_comments($id); |
|
28 |
$post = get_post($id); |
|
29 |
if (!empty($post->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie |
|
30 |
echo(get_the_password_form()); |
|
31 |
} else { ?> |
|
32 |
<?php if ($comments) { ?> |
|
33 |
<ol id="commentlist"> |
|
34 |
<?php foreach ($comments as $comment) { ?> |
|
35 |
<li id="comment-<?php comment_ID() ?>"> |
|
36 |
<?php comment_text() ?> |
|
37 |
<p><cite><?php comment_type('Comment', 'Trackback', 'Pingback'); ?> by <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p> |
|
38 |
</li> |
|
39 |
<?php } // end for each comment ?> |
|
40 |
</ol> |
|
41 |
<?php } else { // this is displayed if there are no comments so far ?> |
|
42 |
<p>No comments yet.</p> |
|
43 |
<?php } ?> |
|
44 |
<?php if ('open' == $post->comment_status) { ?> |
|
45 |
<h2>Leave a comment</h2> |
|
46 |
<p>Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo allowed_tags(); ?></code></p> |
|
47 |
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> |
|
48 |
<?php if ( $user_ID ) : ?> |
|
49 |
<p>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></p> |
|
50 |
<?php else : ?> |
|
51 |
<p> |
|
52 |
<input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" /> |
|
53 |
<label for="author">Name</label> |
|
54 |
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> |
|
55 |
<input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" /> |
|
56 |
</p> |
|
57 |
<p> |
|
58 |
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" /> |
|
59 |
<label for="email">E-mail</label> |
|
60 |
</p> |
|
61 |
<p> |
|
62 |
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" /> |
|
63 |
<label for="url"><abbr title="Universal Resource Locator">URL</abbr></label> |
|
64 |
</p> |
|
65 |
<?php endif; ?> |
|
66 |
<p> |
|
67 |
<label for="comment">Your Comment</label> |
|
68 |
<br /> |
|
69 |
<textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> |
|
70 |
</p> |
|
71 |
<p> |
|
72 |
<input name="submit" type="submit" tabindex="5" value="Say It!" /> |
|
73 |
</p> |
|
74 |
<?php do_action('comment_form', $post->ID); ?> |
|
75 |
</form> |
|
76 |
<?php } else { // comments are closed ?> |
|
77 |
<p>Sorry, the comment form is closed at this time.</p> |
|
78 |
<?php } |
|
79 |
} // end password check |
|
80 |
?> |
|
81 |
<div><strong><a href="javascript:window.close()">Close this window.</a></strong></div> |
|
82 |
<?php // if you delete this the sky will fall on your head |
|
83 |
endwhile; |
|
84 |
?> |
|
85 |
<!-- // this is just the end of the motor - don't touch that line either :) --> |
|
86 |
<?php //} ?> |
|
87 |
<p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>Wordpress</strong></a></cite></p> |
|
88 |
<?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> |
|
89 |
<script type="text/javascript"> |
|
90 |
<!-- |
|
91 |
document.onkeypress = function esc(e) { |
|
92 |
if(typeof(e) == "undefined") { e=event; } |
|
93 |
if (e.keyCode == 27) { self.close(); } |
|
94 |
} |
|
95 |
// --> |
|
96 |
</script> |
|
97 |
</body> |
|
98 |
</html> |