1 <?php |
1 <?php |
2 /** |
2 /** |
3 * @package WordPress |
3 * @package WordPress |
4 * @subpackage Default_Theme |
4 * @subpackage Default_Theme |
5 */ |
5 */ |
|
6 |
|
7 /* Don't remove these lines. */ |
|
8 add_filter('comment_text', 'popuplinks'); |
|
9 while ( have_posts()) : the_post(); |
6 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
10 ?><!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"> |
11 <html xmlns="http://www.w3.org/1999/xhtml"> |
8 <head> |
12 <head> |
9 <title><?php printf(__('%1$s - Comments on %2$s', 'kubrick'), get_option('blogname'), the_title('','',false)); ?></title> |
13 <title><?php echo get_settings('blogname'); ?> - Commentaires de <?php the_title(); ?></title> |
10 |
14 |
11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> |
15 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" /> |
12 <style type="text/css" media="screen"> |
16 <style type="text/css" media="screen"> |
13 @import url( <?php bloginfo('stylesheet_url'); ?> ); |
17 @import url( <?php bloginfo('stylesheet_url'); ?> ); |
14 body { margin: 3px; } |
18 body { margin: 3px; } |
15 </style> |
19 </style> |
16 |
20 |
17 </head> |
21 </head> |
18 <body id="commentspopup"> |
22 <body id="commentspopup"> |
19 |
23 |
20 <h1 id="header"><a href="" title="<?php echo get_option('blogname'); ?>"><?php echo get_option('blogname'); ?></a></h1> |
24 <h1 id="header"><a href="" title="<?php echo get_settings('blogname'); ?>"><?php echo get_settings('blogname'); ?></a></h1> |
21 |
25 |
22 <?php |
26 <?php |
23 /* Don't remove these lines. */ |
27 /* Don't remove these lines. */ |
24 add_filter('comment_text', 'popuplinks'); |
28 add_filter('comment_text', 'popuplinks'); |
25 if ( have_posts() ) : |
29 if ( have_posts() ) : |
26 while( have_posts()) : the_post(); |
30 while ( have_posts() ) : the_post(); |
27 ?> |
31 ?> |
28 <h2 id="comments"><?php _e('Comments', 'kubrick'); ?></h2> |
32 <h2 id="comments">Commentaires</h2> |
29 |
33 |
30 <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.', 'kubrick'); ?></a></p> |
34 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>">Flux <abbr title="Really Simple Syndication">RSS</abbr> pour les commentaires de cet article.</a></p> |
31 |
35 |
32 <?php if ( pings_open() ) { ?> |
36 <?php if ( pings_open() ) { ?> |
33 <p><?php printf(__('The <abbr title="Universal Resource Locator">URL</abbr> to TrackBack this entry is: <em>%s</em>', 'kubrick'), get_trackback_url()); ?></p> |
37 <p>L'URL à utiliser pour le rétrolien est : <em><?php trackback_url() ?></em></p> |
34 <?php } ?> |
38 <?php } ?> |
35 |
39 |
36 <?php |
40 <?php |
37 // this line is WordPress' motor, do not delete it. |
41 // this line is WordPress' motor, do not delete it. |
38 $commenter = wp_get_current_commenter(); |
42 $commenter = wp_get_current_commenter(); |
42 if ( post_password_required($post) ) { // and it doesn't match the cookie |
46 if ( post_password_required($post) ) { // and it doesn't match the cookie |
43 echo(get_the_password_form()); |
47 echo(get_the_password_form()); |
44 } else { ?> |
48 } else { ?> |
45 |
49 |
46 <?php if ($comments) { ?> |
50 <?php if ($comments) { ?> |
47 <ol id="commentlist"> |
|
48 <?php foreach ($comments as $comment) { ?> |
|
49 <li id="comment-<?php comment_ID() ?>"> |
|
50 <?php comment_text() ?> |
|
51 <p><cite><?php comment_type(__('Comment', 'kubrick'), __('Trackback', 'kubrick'), __('Pingback', 'kubrick')); ?> <?php printf(__('by %1$s — %2$s @ <a href="#comment-%3$s">%4$s</a>', 'kubrick'), get_comment_author_link(), get_comment_date(), get_comment_ID(), get_comment_time()); ?></cite></p> |
|
52 </li> |
|
53 |
51 |
54 <?php } // end for each comment ?> |
52 <ol id="commentlist"> |
55 </ol> |
53 <?php foreach ($comments as $comment) { ?> |
|
54 <li id="comment-<?php comment_ID() ?>"> |
|
55 <?php comment_text() ?> |
|
56 <p><cite><?php comment_type('Commentaire', 'Rétrolien', 'Ping'); ?> par <?php comment_author_link() ?> — <?php comment_date() ?> à <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p> |
|
57 </li> |
|
58 <?php } // end for each comment ?> |
|
59 </ol> |
|
60 |
56 <?php } else { // this is displayed if there are no comments so far ?> |
61 <?php } else { // this is displayed if there are no comments so far ?> |
57 <p><?php _e('No comments yet.', 'kubrick'); ?></p> |
62 |
|
63 <p>Pas encore de commentaire.</p> |
|
64 |
58 <?php } ?> |
65 <?php } ?> |
59 |
66 |
60 <?php if ( comments_open() ) { ?> |
67 <?php if ( comments_open() ) { ?> |
61 <h2><?php _e('Leave a comment', 'kubrick'); ?></h2> |
|
62 <p><?php printf(__('Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code>%s</code>', 'kubrick'), allowed_tags()); ?></p> |
|
63 |
68 |
64 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> |
69 <h2>Laisser un commentaire</h2> |
65 <?php if ( $user_ID ) : ?> |
70 <p>Les retours à la ligne et les paragraphes seront mis automatiquement, l'adresse e-mail n'est jamais affichée, les balises HTML acceptées sont : <code><?php echo allowed_tags(); ?></code></p> |
66 <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>', 'kubrick'), get_option('siteurl') . '/wp-admin/profile.php', $user_identity, wp_logout_url()); ?></p> |
|
67 <?php else : ?> |
|
68 <p> |
|
69 <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr($comment_author); ?>" size="28" tabindex="1" /> |
|
70 <label for="author"><?php _e('Name', 'kubrick'); ?></label> |
|
71 </p> |
|
72 |
71 |
73 <p> |
72 <form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> |
74 <input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="28" tabindex="2" /> |
73 <?php if ( $user_ID ) : ?> |
75 <label for="email"><?php _e('E-mail', 'kubrick'); ?></label> |
74 <p>Connecté en tant que <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="Se déconnecter du site.">Se déconnecter »</a></p> |
76 </p> |
75 <?php else : ?> |
|
76 <p> |
|
77 <input type="text" name="author" id="author" class="textarea" value="<?php echo esc_attr($comment_author); ?>" size="28" tabindex="1" /> |
|
78 <label for="author">Nom</label> |
|
79 </p> |
77 |
80 |
78 <p> |
81 <p> |
79 <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="28" tabindex="3" /> |
82 <input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="28" tabindex="2" /> |
80 <label for="url"><?php _e('<abbr title="Universal Resource Locator">URL</abbr>', 'kubrick'); ?></label> |
83 <label for="email">Adresse e-mail</label> |
81 </p> |
84 </p> |
82 <?php endif; ?> |
|
83 |
85 |
84 <p> |
86 <p> |
85 <label for="comment"><?php _e('Your Comment', 'kubrick'); ?></label> |
87 <input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="28" tabindex="3" /> |
86 <br /> |
88 <label for="url">Site internet</label> |
87 <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> |
89 </p> |
88 </p> |
90 <?php endif; ?> |
|
91 <p> |
|
92 <label for="comment">Votre commentaire </label> |
|
93 <br /> |
|
94 <textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea> |
|
95 </p> |
89 |
96 |
90 <p> |
97 <p> |
91 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> |
98 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> |
92 <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" /> |
99 <input type="hidden" name="redirect_to" value="<?php echo esc_attr($_SERVER["REQUEST_URI"]); ?>" /> |
93 <input name="submit" type="submit" tabindex="5" value="<?php _e('Say It!' , 'kubrick'); ?>" /> |
100 <input name="submit" type="submit" tabindex="5" value="Dites-le !" /> |
94 </p> |
101 </p> |
95 <?php do_action('comment_form', $post->ID); ?> |
102 <?php do_action('comment_form', $post->ID); ?> |
96 </form> |
103 </form> |
|
104 |
97 <?php } else { // comments are closed ?> |
105 <?php } else { // comments are closed ?> |
98 <p><?php _e('Sorry, the comment form is closed at this time.', 'kubrick'); ?></p> |
106 |
|
107 <p>Désolé, les commentaires sont fermés pour l'instant.</p> |
|
108 |
99 <?php } |
109 <?php } |
100 } // end password check |
110 } // end password check |
101 ?> |
111 ?> |
102 |
112 |
103 <div><strong><a href="javascript:window.close()"><?php _e('Close this window.', 'kubrick'); ?></a></strong></div> |
113 <div><strong><a href="javascript:window.close()">Fermer cette fenêtre.</a></strong></div> |
104 |
114 |
105 <?php // if you delete this the sky will fall on your head |
115 <?php // if you delete this the sky will fall on your head |
106 endwhile; // have_posts() |
116 endwhile; //endwhile have_posts() |
107 else: // have_posts() |
117 else: //have_posts() |
108 ?> |
118 ?> |
109 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> |
119 |
110 <?php endif; ?> |
120 <p>Désolé, aucun article ne correspond à vos critères.</p> |
|
121 <?php endif; ?> |
111 <!-- // this is just the end of the motor - don't touch that line either :) --> |
122 <!-- // this is just the end of the motor - don't touch that line either :) --> |
112 <?php //} ?> |
123 <?php //} ?> |
113 <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>', 'kubrick'), 'http://wordpress.org/'); ?></cite></p> |
124 <p class="credit"><?php timer_stop(1); ?> <cite>Propulsé par <a href="http://wordpress.org/" title="Propulsé par WordPress, une plate-forme de publication personnelle à la pointe de la sémantique"><strong>WordPress</strong></a></cite></p> |
114 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> |
125 <?php // Seen at http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18) ?> |
115 <script type="text/javascript"> |
126 <script type="text/javascript"> |
116 <!-- |
127 <!-- |
117 document.onkeypress = function esc(e) { |
128 document.onkeypress = function esc(e) { |
118 if(typeof(e) == "undefined") { e=event; } |
129 if(typeof(e) == "undefined") { e=event; } |
119 if (e.keyCode == 27) { self.close(); } |
130 if (e.keyCode == 27) { self.close(); } |
120 } |
131 } |
121 // --> |
132 // --> |
122 </script> |
133 </script> |
123 </body> |
134 </body> |
124 </html> |
135 </html> |