[ Index ] |
WordPress Cross Reference |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package WordPress 4 * @subpackage Theme_Compat 5 * @deprecated 3.0 6 * 7 * This file is here for Backwards compatibility with old themes and will be removed in a future version 8 * 9 */ 10 _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) ); 11 ?><!DOCTYPE html> 12 <html xmlns="http://www.w3.org/1999/xhtml"> 13 <head> 14 <title><?php printf(__('%1$s - Comments on %2$s'), get_option('blogname'), the_title('','',false)); ?></title> 15 16 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 17 <style type="text/css" media="screen"> 18 @import url( <?php bloginfo('stylesheet_url'); ?> ); 19 body { margin: 3px; } 20 </style> 21 22 </head> 23 <body id="commentspopup"> 24 25 <h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1> 26 27 <?php 28 /* Don't remove these lines. */ 29 add_filter('comment_text', 'popuplinks'); 30 if ( have_posts() ) : 31 while( have_posts()) : the_post(); 32 ?> 33 <h2 id="comments"><?php _e('Comments'); ?></h2> 34 35 <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> 36 37 <?php if ( pings_open() ) { ?> 38 <p><?php printf(__('The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em>%s</em>'), get_trackback_url()); ?></p> 39 <?php } ?> 40 41 <?php 42 // this line is WordPress' motor, do not delete it. 43 $commenter = wp_get_current_commenter(); 44 extract($commenter); 45 $comments = get_approved_comments($id); 46 $post = get_post($id); 47 if ( post_password_required($post) ) { // and it doesn't match the cookie 48 echo(get_the_password_form()); 49 } else { ?> 50 51 <?php if ($comments) { ?> 52 <ol id="commentlist"> 53 <?php foreach ($comments as $comment) { ?> 54 <li id="comment-<?php comment_ID() ?>"> 55 <?php comment_text() ?> 56 <p><cite><?php comment_type(); ?> <?php printf(__('by %1$s — %2$s @ <a href="#comment-%3$s">%4$s</a>'), get_comment_author_link(), get_comment_date(), get_comment_ID(), get_comment_time()); ?></cite></p> 57 </li> 58 59 <?php } // end for each comment ?> 60 </ol> 61 <?php } else { // this is displayed if there are no comments so far ?> 62 <p><?php _e('No comments yet.'); ?></p> 63 <?php } ?> 64 65 <?php if ( comments_open() ) { ?> 66 <h2><?php _e('Leave a comment'); ?></h2> 67 <p><?php printf(__('Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code>%s</code>'), allowed_tags()); ?></p> 68 69 <form action="<?php echo site_url(); ?>/wp-comments-post.php" method="post" id="commentform"> 70 <?php if ( $user_ID ) : ?> 71 <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> 72 <?php else : ?> 73 <p> 74 <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr($comment_author); ?>" size="28" tabindex="1" /> 75 <label for="author"><?php _e('Name'); ?></label> 76 </p> 77 78 <p> 79 <input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="28" tabindex="2" /> 80 <label for="email"><?php _e('E-mail'); ?></label> 81 </p> 82 83 <p> 84 <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="28" tabindex="3" /> 85 <label for="url"><?php _e('<abbr title="Universal Resource Locator">URL</abbr>'); ?></label> 86 </p> 87 <?php endif; ?> 88 89 <p> 90 <label for="comment"><?php _e('Your Comment'); ?></label> 91 <br /> 92 <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> 93 </p> 94 95 <p> 96 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 97 <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" /> 98 <input name="submit" type="submit" tabindex="5" value="<?php esc_attr_e('Say It!' ); ?>" /> 99 </p> 100 <?php do_action('comment_form', $post->ID); ?> 101 </form> 102 <?php } else { // comments are closed ?> 103 <p><?php _e('Sorry, the comment form is closed at this time.'); ?></p> 104 <?php } 105 } // end password check 106 ?> 107 108 <div><strong><a href="javascript:window.close()"><?php _e('Close this window.'); ?></a></strong></div> 109 110 <?php // if you delete this the sky will fall on your head 111 endwhile; // have_posts() 112 else: // have_posts() 113 ?> 114 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> 115 <?php endif; ?> 116 <!-- // this is just the end of the motor - don't touch that line either :) --> 117 <?php //} ?> 118 <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>'), 'http://wordpress.org/'); ?></cite></p> 119 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> 120 <script type="text/javascript"> 121 <!-- 122 document.onkeypress = function esc(e) { 123 if(typeof(e) == "undefined") { e=event; } 124 if (e.keyCode == 27) { self.close(); } 125 } 126 // --> 127 </script> 128 </body> 129 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 25 01:41:18 2014 | WordPress honlapkészítés: online1.hu |