-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
executable file
·76 lines (58 loc) · 2.86 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php get_header(); ?>
<?php get_sidebar(1); ?>
<div class="column-center">
<div class="corner-left-top"><div class="corner-right-top"><div class="corner-left-bot"><div class="corner-right-bot">
<?php if (have_posts()) : ?>
<div class="title-page"><h2>Search results</h2></div>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
<div class="clear"></div>
</div>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>" style=" width:auto;">
<div class="indent">
<div class="title">
<div class="border-top"><div class="border-bot"><div class="border-left"><div class="border-right">
<div class="corner-left-top"><div class="corner-right-top"><div class="corner-left-bot"><div class="corner-right-bot">
<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>
<div class="date">
<?php the_time('l, F j, Y') ?>
</div>
<div class="author">
posted by <?php the_author_link() ?>
</div>
</div></div></div></div>
</div></div></div></div>
</div>
<div class="text-box">
<?php the_content(''); ?>
</div>
<div class="postmetadata">
<?php the_tags('Tags: ', ', ', '<br />'); ?>
</div>
<div class="comments"><?php comments_popup_link('comments (0)', 'comment (1) ', 'comments (%) '); ?></div>
<div class="link-edit"><?php edit_post_link('Edit', ''); ?></div>
</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 class="clear"></div>
</div>
<?php else : ?>
<div class="title-page"><h2>Search result</h2></div>
<div class="text-box">
<div class="search search_page">
<p>No posts found. Try a different search?<p>
<?php //include (TEMPLATEPATH . "/searchform.php"); ?>
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>">
<p><input class="text" type="text" value="<?php the_search_query(); ?>" name="s" id="s" /><input class="but" type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/search2.gif" value="submit" /></p>
</form>
</div><div class="clear"></div>
</div>
<?php endif; ?>
</div></div></div></div>
</div>
<?php get_footer(); ?>