4 * @subpackage Theme_Compat
7 * This file is here for Backwards compatibility with old themes and will be removed in a future version
11 /* translators: %s: template name */
12 sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
15 /* translators: %s: template name */
16 sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
19 <html xmlns="http://www.w3.org/1999/xhtml">
21 <title><?php printf(__('%1$s - Comments on %2$s'), get_option('blogname'), the_title('','',false)); ?></title>
23 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
24 <style type="text/css" media="screen">
25 @import url( <?php bloginfo('stylesheet_url'); ?> );
30 <body id="commentspopup">
32 <h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1>
35 /* Don't remove these lines. */
36 add_filter('comment_text', 'popuplinks');
38 while( have_posts()) : the_post();
40 <h2 id="comments"><?php _e('Comments'); ?></h2>
42 <p><a href="<?php echo esc_url( get_post_comments_feed_link($post->ID) ); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></a></p>
45 // this line is WordPress' motor, do not delete it.
46 $commenter = wp_get_current_commenter();
47 $comments = get_approved_comments($id);
48 $post = get_post($id);
49 if ( post_password_required($post) ) { // and it doesn't match the cookie
50 echo(get_the_password_form());
53 <?php if ($comments) { ?>
55 <?php foreach ($comments as $comment) { ?>
56 <li id="comment-<?php comment_ID() ?>">
57 <?php comment_text() ?>
58 <p><cite><?php comment_type(); ?> <?php printf(__('by %1$s — %2$s @ <a href="#comment-%3$s">%4$s</a>'), get_comment_author_link( $comment ), get_comment_date( '', $comment ), get_comment_ID(), get_comment_time()); ?></cite></p>
61 <?php } // end for each comment ?>
63 <?php } else { // this is displayed if there are no comments so far ?>
64 <p><?php _e('No comments yet.'); ?></p>
67 <?php if ( comments_open() ) { ?>
68 <h2><?php _e('Leave a comment'); ?></h2>
70 <form action="<?php echo site_url(); ?>/wp-comments-post.php" method="post" id="commentform">
71 <?php if ( $user_ID ) : ?>
72 <p><?php printf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out »</a>'), get_edit_user_link(), $user_identity, wp_logout_url(get_permalink())); ?></p>
75 <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr( $commenter['comment_author'] ); ?>" size="28" tabindex="1" />
76 <label for="author"><?php _e('Name'); ?></label>
80 <input type="text" name="email" id="email" value="<?php echo esc_attr( $commenter['comment_author_email'] ); ?>" size="28" tabindex="2" />
81 <label for="email"><?php _e('Email'); ?></label>
85 <input type="text" name="url" id="url" value="<?php echo esc_attr( $commenter['comment_author_url'] ); ?>" size="28" tabindex="3" />
86 <label for="url"><?php _e('<abbr title="Universal Resource Locator">URL</abbr>'); ?></label>
91 <label for="comment"><?php _e('Your Comment'); ?></label>
93 <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
97 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
98 <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" />
99 <input name="submit" type="submit" tabindex="5" value="<?php esc_attr_e('Say It!' ); ?>" />
102 /** This filter is documented in wp-includes/comment-template.php */
103 do_action( 'comment_form', $post->ID );
106 <?php } else { // comments are closed ?>
107 <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
109 } // end password check
112 <div><strong><a href="javascript:window.close()"><?php _e('Close this window.'); ?></a></strong></div>
114 <?php // if you delete this the sky will fall on your head
115 endwhile; // have_posts()
116 else: // have_posts()
118 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
120 <!-- // this is just the end of the motor - don't touch that line either :) -->
122 <p class="credit"><?php timer_stop(1); ?> <cite><?php printf(__('Powered by <a href="%s" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a>'), 'https://wordpress.org/'); ?></cite></p>
123 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?>
124 <script type="text/javascript">
126 document.onkeypress = function esc(e) {
127 if(typeof(e) == "undefined") { e=event; }
128 if (e.keyCode == 27) { self.close(); }