-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch.php
executable file
·52 lines (52 loc) · 1.6 KB
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php get_header(); ?>
<div class="content">
<div class="body">
<ul>
<?php if (have_posts()) : ?>
<h2 class="pagetitle">Search Results</h2>
<div class="navigation">
<div class="alignleft">
<?php next_posts_link('« Older Entries') ?>
</div>
<div class="alignright">
<?php previous_posts_link('Newer Entries »') ?>
</div>
</div>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?>>
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
<?php the_title(); ?>
</a></h3>
<small>
<div class="topContent">
<?php the_excerpt ('(continue reading...)'); ?>
<!--<a href="<?php the_permalink()?>" class="readmore">read more</a>-->
</div>
<?php the_time('l, F jS, Y') ?>
</small>
<div class="catntag search">
<?php if (has_tag() ) :?>
Tags: <?php the_tags('<em></em>', ', ', ''); ?>
<?php endif; ?>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft">
<?php next_posts_link('« Older Entries') ?>
</div>
<div class="alignright">
<?php previous_posts_link('Newer Entries »') ?>
</div>
</div>
<?php else : ?>
<h2 class="center">No posts found. Try a different search?</h2>
<?php get_search_form(); ?>
<?php endif; ?>
</ul>
</div>
<!-- Closes body-->
<?php get_template_part( 'sidebar2' ); ?>
</div>
<!-- Closes Main -->
<?php get_footer(); ?>