web/wp-content/themes/IRI-Theme/archive.php
branchwordpress
changeset 109 03b0d1493584
child 123 561aa6d282f6
equal deleted inserted replaced
-1:000000000000 109:03b0d1493584
       
     1 <?php get_header(); ?>
       
     2 	<div class="column span-17 colborder first" id="maincontent">
       
     3 		<div class="content">
       
     4 		
       
     5 		<?php if (have_posts()) : ?>
       
     6 		 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
       
     7 	
       
     8 	<?php /* If this is a category archive */ if (is_category()) { ?>
       
     9 	
       
    10 		<?php if( function_exists(page2cat_output)){ page2cat_output($cat);}  ?>  
       
    11 		
       
    12 		  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
       
    13 			<h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>
       
    14 		 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
       
    15 			<h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>
       
    16 			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
       
    17 			<h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
       
    18 		  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
       
    19 			<h2 class="pagetitle">Author Archive</h2>
       
    20 			<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
       
    21 			<h2 class="pagetitle">Blog Archives</h2>
       
    22 	<?php } ?>
       
    23 		
       
    24 		<div class="navigation">
       
    25 			<div class="alignleft"><?php next_posts_link('&laquo; Pr&eacute;c&eacute;dent') ?></div>
       
    26 			<div class="alignright"><?php previous_posts_link('Suivant &raquo;') ?></div>
       
    27 		</div>
       
    28 		<div>&nbsp;</div
       
    29 		
       
    30 		<?php while (have_posts()) : the_post(); ?>
       
    31 			<?php getPost(); ?>
       
    32 		<?php endwhile; ?>
       
    33 		
       
    34 		<div class="navigation">
       
    35 			<div class="alignleft"><?php next_posts_link('&laquo; Pr&eacute;c&eacute;dent') ?></div>
       
    36 			<div class="alignright"><?php previous_posts_link('Suivant &raquo;') ?></div>
       
    37 		</div>
       
    38 	<?php else : ?>
       
    39 		<h2 class="center">Not Found</h2>
       
    40 		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
       
    41 	<?php endif; ?>
       
    42 	</div>
       
    43 </div>
       
    44 <div class="column span-5 last">
       
    45 <?php include (TEMPLATEPATH . '/sidebar_single.php'); ?>
       
    46 </div>
       
    47 <hr></hr>
       
    48 <?php get_sidebar(); ?>
       
    49 <?php get_footer(); ?>