raw
mp-wp_genesis           1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * @package WordPress
mp-wp_genesis 4 * @subpackage Classic_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'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></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
mp-wp_genesis 29 <h2 id="comments"><?php _e("Comments"); ?></h2>
mp-wp_genesis 30
mp-wp_genesis 31 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p>
mp-wp_genesis 32
mp-wp_genesis 33 <?php if ('open' == $post->ping_status) { ?>
mp-wp_genesis 34 <p><?php _e("The <abbr title=\"Universal Resource Locator\">URL</abbr> to TrackBack this entry is:"); ?> <em><?php trackback_url() ?></em></p>
mp-wp_genesis 35 <?php } ?>
mp-wp_genesis 36
mp-wp_genesis 37 <?php
mp-wp_genesis 38 // this line is WordPress' motor, do not delete it.
mp-wp_genesis 39 $commenter = wp_get_current_commenter();
mp-wp_genesis 40 extract($commenter);
mp-wp_genesis 41 $comments = get_approved_comments($id);
mp-wp_genesis 42 $commentstatus = get_post($id);
mp-wp_genesis 43 if ( post_password_required($commentstatus) ) { // and it doesn't match the cookie
mp-wp_genesis 44 echo(get_the_password_form());
mp-wp_genesis 45 } else { ?>
mp-wp_genesis 46
mp-wp_genesis 47 <?php if ($comments) { ?>
mp-wp_genesis 48 <ol id="commentlist">
mp-wp_genesis 49 <?php foreach ($comments as $comment) { ?>
mp-wp_genesis 50 <li id="comment-<?php comment_ID() ?>">
mp-wp_genesis 51 <?php comment_text() ?>
mp-wp_genesis 52 <p><cite><?php comment_type(_c('Comment|noun'), __('Trackback'), __('Pingback')); ?> <?php _e("by"); ?> <?php comment_author_link() ?> &#8212; <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
mp-wp_genesis 53 </li>
mp-wp_genesis 54
mp-wp_genesis 55 <?php } // end for each comment ?>
mp-wp_genesis 56 </ol>
mp-wp_genesis 57 <?php } else { // this is displayed if there are no comments so far ?>
mp-wp_genesis 58 <p><?php _e("No comments yet."); ?></p>
mp-wp_genesis 59 <?php } ?>
mp-wp_genesis 60
mp-wp_genesis 61 <?php if ('open' == $commentstatus->comment_status) { ?>
mp-wp_genesis 62 <h2><?php _e("Leave a comment"); ?></h2>
mp-wp_genesis 63 <p><?php _e("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 64
mp-wp_genesis 65 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
mp-wp_genesis 66 <?php if ( $user_ID ) : ?>
mp-wp_genesis 67 <p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo wp_logout_url(); ?>" title="<?php echo attribute_escape(__('Log out of this account')); ?>"><?php _e('Log out &raquo;'); ?></a></p>
mp-wp_genesis 68 <?php else : ?>
mp-wp_genesis 69 <p>
mp-wp_genesis 70 <input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
mp-wp_genesis 71 <label for="author"><?php _e("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" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
mp-wp_genesis 76 <label for="email"><?php _e("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" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />
mp-wp_genesis 81 <label for="url"><?php _e("<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"><?php _e("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="redirect_to" value="<?php echo attribute_escape($_SERVER["REQUEST_URI"]); ?>" />
mp-wp_genesis 94 <input name="submit" type="submit" tabindex="5" value="<?php _e("Say It!"); ?>" />
mp-wp_genesis 95 </p>
mp-wp_genesis 96 <?php do_action('comment_form', $post->ID); ?>
mp-wp_genesis 97 </form>
mp-wp_genesis 98 <?php } else { // comments are closed ?>
mp-wp_genesis 99 <p><?php _e("Sorry, the comment form is closed at this time."); ?></p>
mp-wp_genesis 100 <?php }
mp-wp_genesis 101 } // end password check
mp-wp_genesis 102 ?>
mp-wp_genesis 103
mp-wp_genesis 104 <div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div>
mp-wp_genesis 105
mp-wp_genesis 106 <?php // if you delete this the sky will fall on your head
mp-wp_genesis 107 endwhile; //endwhile have_posts()
mp-wp_genesis 108 else: //have_posts()
mp-wp_genesis 109 ?>
mp-wp_genesis 110 <p>Sorry, no posts matched your criteria.</p>
mp-wp_genesis 111 <?php endif; ?>
mp-wp_genesis 112
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); ?> <?php echo sprintf(__("<cite>Powered by <a href=\"http://wordpress.org\" title=\"%s\"><strong>WordPress</strong></a></cite>"),__("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></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>