web/wp-content/themes/newsworthy/search.php
author ymh <ymh.work@gmail.com>
Mon, 22 Mar 2010 16:36:28 +0100
changeset 5 ac511f1ccc8e
parent 1 0d28b7c10758
permissions -rw-r--r--
add hgignore

<?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(); ?>