mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * @package WordPress
mp-wp_genesis 4 * @subpackage Default_Theme
mp-wp_genesis 5 */
mp-wp_genesis 6 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
mp-wp_genesis 7 <html xmlns="http://www.w3.org/1999/xhtml">
mp-wp_genesis 8 <head>
mp-wp_genesis 9 <title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title>
mp-wp_genesis 10
mp-wp_genesis 11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
mp-wp_genesis 12 <style type="text/css" media="screen">
mp-wp_genesis 13 @import url( <?php bloginfo('stylesheet_url'); ?> );
mp-wp_genesis 14 body { margin: 3px; }
mp-wp_genesis 15 </style>
mp-wp_genesis 16
mp-wp_genesis 17 </head>
mp-wp_genesis 18 <body id="commentspopup">
mp-wp_genesis 19
mp-wp_genesis 20 <h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1>
mp-wp_genesis 21
mp-wp_genesis 22 <?php
mp-wp_genesis 23 /* Don't remove these lines. */
mp-wp_genesis 24 add_filter('comment_text', 'popuplinks');
mp-wp_genesis 25 if ( have_posts() ) :
mp-wp_genesis 26 while ( have_posts() ) : the_post();
mp-wp_genesis 27 ?>
mp-wp_genesis 28 <h2 id="comments">Comments</h2>
mp-wp_genesis 29
mp-wp_genesis 30 <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>
mp-wp_genesis 31
mp-wp_genesis 32 <?php if ('open' == $post->ping_status) { ?>
mp-wp_genesis 33 <p>The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em><?php trackback_url() ?></em></p>
mp-wp_genesis 34 <?php } ?>
mp-wp_genesis 35
mp-wp_genesis 36 <?php
mp-wp_genesis 37 // this line is WordPress' motor, do not delete it.
mp-wp_genesis 38 $commenter = wp_get_current_commenter();
mp-wp_genesis 39 extract($commenter);
mp-wp_genesis 40 $comments = get_approved_comments($id);
mp-wp_genesis 41 $post = get_post($id);
mp-wp_genesis 42 if ( post_password_required($post) ) { // and it doesn't match the cookie
mp-wp_genesis 43 echo(get_the_password_form());
mp-wp_genesis 44 } else { ?>
mp-wp_genesis 45
mp-wp_genesis 46 <?php if ($comments) { ?>
mp-wp_genesis 47 <ol id="commentlist">
mp-wp_genesis 48 <?php foreach ($comments as $comment) { ?>
mp-wp_genesis 49 <li id="comment-<?php comment_ID() ?>">
mp-wp_genesis 50 <?php comment_text() ?>
mp-wp_genesis 51 <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>
mp-wp_genesis 52 </li>
mp-wp_genesis 53
mp-wp_genesis 54 <?php } // end for each comment ?>
mp-wp_genesis 55 </ol>
mp-wp_genesis 56 <?php } else { // this is displayed if there are no comments so far ?>
mp-wp_genesis 57 <p>No comments yet.</p>
mp-wp_genesis 58 <?php } ?>
mp-wp_genesis 59
mp-wp_genesis 60 <?php if ('open' == $post->comment_status) { ?>
mp-wp_genesis 61 <h2>Leave a comment</h2>
mp-wp_genesis 62 <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>
mp-wp_genesis 63
mp-wp_genesis 64 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
mp-wp_genesis 65 <?php if ( $user_ID ) : ?>
mp-wp_genesis 66 <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out »</a></p>
mp-wp_genesis 67 <?php else : ?>
mp-wp_genesis 68 <?php $suffix = substr(md5(date('Y-m-d').COMMENT_SALT),0,6); ?>
mp-wp_genesis 69 <p>
mp-wp_genesis 70 <input type="text" name="author<?php echo $suffix;?>" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
mp-wp_genesis 71 <label for="author">Name</label>
mp-wp_genesis 72 </p>
mp-wp_genesis 73
mp-wp_genesis 74 <p>
mp-wp_genesis 75 <input type="text" name="email<?php echo $suffix;?>" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
mp-wp_genesis 76 <label for="email">E-mail</label>
mp-wp_genesis 77 </p>
mp-wp_genesis 78
mp-wp_genesis 79 <p>
mp-wp_genesis 80 <input type="text" name="url<?php echo $suffix;?>" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />
mp-wp_genesis 81 <label for="url"><abbr title="Universal Resource Locator">URL</abbr></label>
mp-wp_genesis 82 </p>
mp-wp_genesis 83 <?php endif; ?>
mp-wp_genesis 84
mp-wp_genesis 85 <p>
mp-wp_genesis 86 <label for="comment">Your Comment</label>
mp-wp_genesis 87 <br />
mp-wp_genesis 88 <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
mp-wp_genesis 89 </p>
mp-wp_genesis 90
mp-wp_genesis 91 <p>
mp-wp_genesis 92 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
mp-wp_genesis 93 <input type="hidden" name="comment_post_time" value="<?php echo time(),"-",$_SERVER['REMOTE_ADDR']; ?>" />
mp-wp_genesis 94 <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" />
mp-wp_genesis 95 <input name="submit" type="submit" tabindex="5" value="Say It!" />
mp-wp_genesis 96 </p>
mp-wp_genesis 97 <?php do_action('comment_form', $post->ID); ?>
mp-wp_genesis 98 </form>
mp-wp_genesis 99 <?php } else { // comments are closed ?>
mp-wp_genesis 100 <p>Sorry, the comment form is closed at this time.</p>
mp-wp_genesis 101 <?php }
mp-wp_genesis 102 } // end password check
mp-wp_genesis 103 ?>
mp-wp_genesis 104
mp-wp_genesis 105 <div><strong><a href="javascript:window.close()">Close this window.</a></strong></div>
mp-wp_genesis 106
mp-wp_genesis 107 <?php // if you delete this the sky will fall on your head
mp-wp_genesis 108 endwhile; //endwhile have_posts()
mp-wp_genesis 109 else: //have_posts()
mp-wp_genesis 110 ?>
mp-wp_genesis 111 <p>Sorry, no posts matched your criteria.</p>
mp-wp_genesis 112 <?php endif; ?>
mp-wp_genesis 113 <!-- // this is just the end of the motor - don't touch that line either :) -->
mp-wp_genesis 114 <?php //} ?>
mp-wp_genesis 115 <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>
mp-wp_genesis 116 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?>
mp-wp_genesis 117 <script type="text/javascript">
mp-wp_genesis 118 <!--
mp-wp_genesis 119 document.onkeypress = function esc(e) {
mp-wp_genesis 120 if(typeof(e) == "undefined") { e=event; }
mp-wp_genesis 121 if (e.keyCode == 27) { self.close(); }
mp-wp_genesis 122 }
mp-wp_genesis 123 // -->
mp-wp_genesis 124 </script>
mp-wp_genesis 125 </body>
mp-wp_genesis 126 </html>