1 <?php |
1 <?php |
2 /** |
2 /** |
3 * @package WordPress |
3 * @package WordPress |
4 * @subpackage Default_Theme |
4 * @subpackage Default_Theme |
5 */ |
5 */ |
6 |
6 |
7 get_header(); |
7 get_header(); |
8 ?> |
8 ?> |
9 |
9 |
10 <div id="content" class="narrowcolumn" role="main"> |
10 <div id="content" class="narrowcolumn" role="main"> |
11 |
11 <?php if (have_posts()) : ?> |
12 <?php if (have_posts()) : ?> |
12 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> |
13 |
13 <?php /* If this is a category archive */ if (is_category()) { ?> |
14 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> |
14 <h2 class="pagetitle">Archive pour la catégorie ‘<?php single_cat_title(); ?>’</h2> |
15 <?php /* If this is a category archive */ if (is_category()) { ?> |
15 <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> |
16 <h2 class="pagetitle"><?php printf(__('Archive for the ‘%s’ Category', 'kubrick'), single_cat_title('', false)); ?></h2> |
16 <h2 class="pagetitle">Archive pour le mot-clef ‘<?php single_tag_title(); ?>’</h2> |
17 <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> |
17 <?php /* If this is a daily archive */ } elseif (is_day()) { ?> |
18 <h2 class="pagetitle"><?php printf(__('Posts Tagged ‘%s’', 'kubrick'), single_tag_title('', false) ); ?></h2> |
18 <h2 class="pagetitle">Archive pour <?php the_time('j F Y'); ?></h2> |
19 <?php /* If this is a daily archive */ } elseif (is_day()) { ?> |
19 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> |
20 <h2 class="pagetitle"><?php printf(_c('Archive for %s|Daily archive page', 'kubrick'), get_the_time(__('F jS, Y', 'kubrick'))); ?></h2> |
20 <h2 class="pagetitle">Archive pour <?php the_time('F Y'); ?></h2> |
21 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> |
21 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> |
22 <h2 class="pagetitle"><?php printf(_c('Archive for %s|Monthly archive page', 'kubrick'), get_the_time(__('F, Y', 'kubrick'))); ?></h2> |
22 <h2 class="pagetitle">Archive pour <?php the_time('Y'); ?></h2> |
23 <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> |
23 <?php /* If this is an author archive */ } elseif (is_author()) { ?> |
24 <h2 class="pagetitle"><?php printf(_c('Archive for %s|Yearly archive page', 'kubrick'), get_the_time(__('Y', 'kubrick'))); ?></h2> |
24 <h2 class="pagetitle">Archive par auteur </h2> |
25 <?php /* If this is an author archive */ } elseif (is_author()) { ?> |
25 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> |
26 <h2 class="pagetitle"><?php _e('Author Archive', 'kubrick'); ?></h2> |
26 <h2 class="pagetitle">Archives du blog </h2> |
27 <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> |
27 <?php } ?> |
28 <h2 class="pagetitle"><?php _e('Blog Archives', 'kubrick'); ?></h2> |
|
29 <?php } ?> |
|
30 |
|
31 |
28 |
32 <div class="navigation"> |
29 <div class="navigation"> |
33 <div class="alignleft"><?php next_posts_link(__('« Older Entries', 'kubrick')); ?></div> |
30 <div class="alignleft"><?php next_posts_link('« Articles plus anciens') ?></div> |
34 <div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'kubrick')); ?></div> |
31 <div class="alignright"><?php previous_posts_link('Articles plus récents »') ?></div> |
35 </div> |
32 </div> |
36 |
33 |
37 <?php while (have_posts()) : the_post(); ?> |
34 <?php while (have_posts()) : the_post(); ?> |
38 <div <?php post_class(); ?>> |
35 |
39 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h3> |
36 <div <?php post_class() ?>> |
40 <small><?php the_time(__('l, F jS, Y', 'kubrick')) ?></small> |
37 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Lien permanent vers <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> |
41 |
38 <small><?php the_time('l j F Y') ?></small> |
42 <div class="entry"> |
39 <div class="entry"> |
43 <?php the_content() ?> |
40 <?php the_content('Lire le reste de cet article »'); ?> |
44 </div> |
41 </div> |
45 |
42 <p class="postmetadata"><?php the_tags('Mots-clefs : ', ', ', '<br />'); ?>Publié dans <?php the_category(', ') ?> | <?php edit_post_link('Modifier', '', ' | '); ?> <?php comments_popup_link('Aucun commentaire »', '1 commentaire »', '% commentaires »', 'comments-link', 'Les commentaires sont fermés'); ?></p> |
46 <p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick'), ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?> <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?></p> |
|
47 |
|
48 </div> |
43 </div> |
49 |
44 |
50 <?php endwhile; ?> |
45 <?php endwhile; ?> |
51 |
46 |
52 <div class="navigation"> |
47 <div class="navigation"> |
53 <div class="alignleft"><?php next_posts_link(__('« Older Entries', 'kubrick')); ?></div> |
48 <div class="alignleft"><?php next_posts_link('« Articles plus anciens') ?></div> |
54 <div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'kubrick')); ?></div> |
49 <div class="alignright"><?php previous_posts_link('Articles plus récents »') ?></div> |
55 </div> |
50 </div> |
56 <?php else : |
51 <?php else : |
57 |
52 |
58 if ( is_category() ) { // If this is a category archive |
53 if ( is_category() ) { // If this is a category archive |
59 printf("<h2 class='center'>".__("Sorry, but there aren't any posts in the %s category yet.", 'kubrick').'</h2>', single_cat_title('',false)); |
54 printf("<h2 class='center'>Désolé, mais il n'y a pas encore d'article dans la catégorie %s.</h2>", single_cat_title('',false)); |
60 } else if ( is_date() ) { // If this is a date archive |
55 } else if ( is_date() ) { // If this is a date archive |
61 echo('<h2>'.__("Sorry, but there aren't any posts with this date.", 'kubrick').'</h2>'); |
56 echo("<h2>Désolé, mais aucun article ne correspond à cette date.</h2>"); |
62 } else if ( is_author() ) { // If this is a category archive |
57 } else if ( is_author() ) { // If this is a category archive |
63 $userdata = get_userdatabylogin(get_query_var('author_name')); |
58 $userdata = get_userdatabylogin(get_query_var('author_name')); |
64 printf("<h2 class='center'>".__("Sorry, but there aren't any posts by %s yet.", 'kubrick')."</h2>", $userdata->display_name); |
59 printf("<h2 class='center'>Désolé, mais %s n'a pas encore écrit d'article.</h2>", $userdata->display_name); |
65 } else { |
60 } else { |
66 echo("<h2 class='center'>".__('No posts found.', 'kubrick').'</h2>'); |
61 echo("<h2 class='center'>Aucun article trouvé.</h2>"); |
67 } |
62 } |
68 get_search_form(); |
63 get_search_form(); |
|
64 |
69 endif; |
65 endif; |
70 ?> |
66 ?> |
|
67 |
71 </div> |
68 </div> |
72 |
69 |
73 <?php get_sidebar(); ?> |
70 <?php get_sidebar(); ?> |
74 |
|
75 <?php get_footer(); ?> |
71 <?php get_footer(); ?> |