equal
deleted
inserted
replaced
|
1 <?php get_header(); ?> |
|
2 |
|
3 <?php get_sidebar(); ?> |
|
4 |
|
5 <div id="main"> |
|
6 |
|
7 <div class="middle"> |
|
8 |
|
9 <div class="box"> |
|
10 |
|
11 |
|
12 |
|
13 <h1>Search</h1> |
|
14 |
|
15 |
|
16 |
|
17 <p>You searched for: <strong><?php the_search_query() ?></strong>. Here are the results</p> |
|
18 |
|
19 |
|
20 |
|
21 </div> |
|
22 |
|
23 |
|
24 |
|
25 </div> |
|
26 |
|
27 <div id="left"> |
|
28 |
|
29 <?php |
|
30 |
|
31 $style_classes = array('first','second','third'); |
|
32 |
|
33 $style_index = 0; |
|
34 |
|
35 if (have_posts()) : |
|
36 |
|
37 while (have_posts()) : the_post(); |
|
38 |
|
39 ?> |
|
40 |
|
41 <div class="substory<?php $k = $style_index%3; echo " $style_classes[$k]"; $style_index++; ?>"> |
|
42 |
|
43 <img src="<?php bloginfo('template_url'); ?>/images/substory.jpg" alt="" /> |
|
44 |
|
45 <h2><?php the_title(); ?></h2> |
|
46 |
|
47 <?php the_content_limit(57, "more"); ?> |
|
48 |
|
49 <div class="postmeta"><a href="<?php the_permalink(); ?>" class="readmore">Read more...</a></div> |
|
50 |
|
51 </div> |
|
52 |
|
53 <?php endwhile; endif; ?> |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 <div class="clear"> </div> |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 </div> |
|
66 |
|
67 <div class="clearboth"> </div> |
|
68 |
|
69 </div> |
|
70 |
|
71 |
|
72 |
|
73 <?php get_footer(); ?> |