web/wp-content/themes/IRI-Theme/search.php
branchwordpress
changeset 109 03b0d1493584
child 123 561aa6d282f6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/IRI-Theme/search.php	Wed Dec 23 17:55:33 2009 +0000
@@ -0,0 +1,57 @@
+<?php get_header(); ?>
+		<div class="column span-17 colborder first" id="maincontent">
+			<div class="content">
+	<?php if (have_posts()) : ?>
+		<h2 class="pagetitle"><?php echo(str_replace("%s", $s,__("Search results for &#8220;%s&#8221;"))); ?></h2>
+		<!-- -->
+
+				<?php getSearch(); ?>
+	
+		
+		<div class="navigation">
+			<div class="alignleft"><?php next_posts_link('&laquo; Previous') ?></div>
+			<div class="alignright"><?php previous_posts_link('Next &raquo;') ?></div>
+		</div>
+		
+		<div class="clear"></div>
+		<?php while (have_posts()) : the_post(); ?>
+			<div class="post" id="post-<?php the_ID(); ?>">
+				<p class="large nomargin"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></p>
+				<?php
+				// Support for "Search Excerpt" plugin
+				// http://fucoder.com/code/search-excerpt/
+				if ( function_exists('the_excerpt') && is_search() ) {
+					the_excerpt();
+				} ?>
+				<p class="small">
+					<?php the_time('F jS, Y') ?> &nbsp;|&nbsp; 
+					<!-- by <?php the_author() ?> -->
+					Published in
+					<?php the_category(', ');
+						if($post->comment_count > 0) { 
+								echo ' &nbsp;|&nbsp; ';
+								comments_popup_link('', '1 Comment', '% Comments'); 
+						}
+					?>
+				</p>
+				
+			</div>
+			
+			<hr>
+		<?php endwhile; ?>
+		<div class="navigation">
+			<div class="alignleft"><?php next_posts_link('&laquo; Previous') ?></div>
+			<div class="alignright"><?php previous_posts_link('Next &raquo;') ?></div>
+		</div>
+	<?php else : ?>
+		<h2 class="center"><?php _e("No results found."); ?></h2>
+		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
+	<?php endif; ?>
+</div>
+</div> 
+<div class="column span-5 last">
+	<?php include (TEMPLATEPATH . '/sidebar_single.php'); ?>
+</div>
+<hr></hr>
+<?php get_sidebar(); ?>
+<?php get_footer(); ?>
\ No newline at end of file