]> git.openstreetmap.org Git - stateofthemap.git/blob - search.php
Aerodrome 1.0.5
[stateofthemap.git] / search.php
1 <?php get_header(); ?>
2
3 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
4
5 <div class="datecomrap">
6          <div class="date">
7          <?php the_time('M'); ?><br />
8          <span style="font-size:2em; font-weight:bold;"><?php the_time('d'); ?></span><br />
9          <?php the_time('Y'); ?>
10          </div><!-- end date -->
11
12
13          <!-- if you don't want the comment count left of the post, erase from here ... -->
14          <div class="commy">
15 <?php comments_popup_link( '0', '1', '%', 'comments-link', '-'); ?>   
16          </div><!-- end commy -->
17          <!-- to here -->
18
19
20 </div><!-- end datecomrap -->
21
22      <div class="storywrap">
23
24 <div class="post" id="post-<?php the_ID(); ?>">
25          <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
26
27         <div class="storycontent">
28                 <?php the_content(__('(more...)')); ?>
29         </div><!-- end storycontent -->
30
31         <div class="meta">
32
33 Written by <?php the_author() ?><?php _e(" in:"); ?> <?php the_category(',') ?> | <?php the_tags(__('Tags: '), ', ', ' '); ?><?php edit_post_link(__('Edit This')); ?>
34 <?php wp_link_pages(); ?><br />
35
36         </div><!-- end meta -->
37
38      </div><!-- end storywrap -->
39
40 </div><!-- end post -->
41
42 <?php endwhile; else: ?>
43
44 <div class="notfound"><?php _e('Sorry, no posts matched your criteria.<br />Maybe try another search?'); ?><br /><br />
45 <form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
46                 <input type="text" name="s" id="s" size="25" />
47                 <input type="submit" value="Search">
48 </form><br />
49 Or visit <a href="<?php bloginfo('url'); ?>">Home?</a><br /><br />
50
51 Or read the latest news?<br /><br />
52 <div style="font-size:12px; margin-left:40px; font-weight:normal; text-align:left;">
53 <?php $lastposts = get_posts('numberposts=10');
54 foreach($lastposts as $post) :
55    setup_postdata($post);
56    ?>
57    <?php the_title(); ?><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"> (read)</a><br />
58 <?php endforeach; ?>
59 </div>
60 </div>
61
62
63
64 <?php endif; ?>
65
66
67 <div class="navlink">
68 <?php posts_nav_link(' &#8212; ', __('&laquo; Newer Posts'), __('Older Posts &raquo;')); ?>
69 </div><!-- end navlink -->
70
71
72 <?php get_footer(); ?>