web/wp-content/themes/newsworthy/search.php
changeset 1 0d28b7c10758
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/newsworthy/search.php	Fri Mar 12 13:29:04 2010 +0000
@@ -0,0 +1,37 @@
+<?php get_header(); ?>
+<?php get_sidebar(); ?>
+<div id="main">
+<div class="middle">
+	<div class="box">
+
+	<h1>Search</h1>
+
+<p>You searched for: <strong><?php the_search_query() ?></strong>.  Here are the results</p>
+
+	</div>
+
+</div>
+<div id="left">
+<?php 
+$style_classes = array('first','second','third');
+$style_index = 0;
+if (have_posts()) :
+  while (have_posts()) : the_post();
+?>
+	<div class="substory<?php $k = $style_index%3; echo " $style_classes[$k]"; $style_index++; ?>">
+		<img src="<?php bloginfo('template_url'); ?>/images/substory.jpg" alt="" />
+		<h2><?php the_title(); ?></h2>
+		<?php the_content_limit(57, "more"); ?>
+		<div class="postmeta"><a href="<?php the_permalink(); ?>" class="readmore">Read more...</a></div>
+	</div>
+<?php endwhile; endif; ?>
+
+
+	<div class="clear">&nbsp;</div>
+
+		
+</div>
+<div class="clearboth">&nbsp;</div>
+</div>
+
+<?php get_footer(); ?>
\ No newline at end of file