web/wp-content/themes/IRI-Theme/search.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 	<?php if (have_posts()) : ?>
       
     5 		<h2 class="pagetitle"><?php echo(str_replace("%s", $s,__("Search results for &#8220;%s&#8221;"))); ?></h2>
       
     6 		<!-- -->
       
     7 
       
     8 				<?php getSearch(); ?>
       
     9 	
       
    10 		
       
    11 		<div class="navigation">
       
    12 			<div class="alignleft"><?php next_posts_link('&laquo; Previous') ?></div>
       
    13 			<div class="alignright"><?php previous_posts_link('Next &raquo;') ?></div>
       
    14 		</div>
       
    15 		
       
    16 		<div class="clear"></div>
       
    17 		<?php while (have_posts()) : the_post(); ?>
       
    18 			<div class="post" id="post-<?php the_ID(); ?>">
       
    19 				<p class="large nomargin"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></p>
       
    20 				<?php
       
    21 				// Support for "Search Excerpt" plugin
       
    22 				// http://fucoder.com/code/search-excerpt/
       
    23 				if ( function_exists('the_excerpt') && is_search() ) {
       
    24 					the_excerpt();
       
    25 				} ?>
       
    26 				<p class="small">
       
    27 					<?php the_time('F jS, Y') ?> &nbsp;|&nbsp; 
       
    28 					<!-- by <?php the_author() ?> -->
       
    29 					Published in
       
    30 					<?php the_category(', ');
       
    31 						if($post->comment_count > 0) { 
       
    32 								echo ' &nbsp;|&nbsp; ';
       
    33 								comments_popup_link('', '1 Comment', '% Comments'); 
       
    34 						}
       
    35 					?>
       
    36 				</p>
       
    37 				
       
    38 			</div>
       
    39 			
       
    40 			<hr>
       
    41 		<?php endwhile; ?>
       
    42 		<div class="navigation">
       
    43 			<div class="alignleft"><?php next_posts_link('&laquo; Previous') ?></div>
       
    44 			<div class="alignright"><?php previous_posts_link('Next &raquo;') ?></div>
       
    45 		</div>
       
    46 	<?php else : ?>
       
    47 		<h2 class="center"><?php _e("No results found."); ?></h2>
       
    48 		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
       
    49 	<?php endif; ?>
       
    50 </div>
       
    51 </div> 
       
    52 <div class="column span-5 last">
       
    53 	<?php include (TEMPLATEPATH . '/sidebar_single.php'); ?>
       
    54 </div>
       
    55 <hr></hr>
       
    56 <?php get_sidebar(); ?>
       
    57 <?php get_footer(); ?>