-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
59 lines (39 loc) · 1.61 KB
/
Copy pathsearch.php
File metadata and controls
59 lines (39 loc) · 1.61 KB
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
<?php
/*
* Internet Society WordPress Template
*
* The template for displaying search results.
*
*/
get_header(); ?>
<div id="container">
<div id="content" role="main">
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'isoc-wp' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
<!-- Start the Loop. -->
<?php if ( have_posts() ) : ?>
<ul>
<?php while ( have_posts() ) : the_post(); ?>
<div class="post">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(200,160), array("class" => "alignright post_thumbnail")); } ?>
<?php the_excerpt(); ?><br style="clear:both;"/>
<?php get_template_part( 'meta' ); ?>
</div>
</div> <!-- closes the first div box -->
<!-- Stop The Loop (but note the "else:" - see next line). -->
<?php endwhile; ?></ul><?php else: ?>
<!-- The very first "if" tested to see if there were any Posts to -->
<!-- display. This "else" part tells what do if there weren't any. -->
<p>Sorry, no posts matched your criteria.</p>
<!-- REALLY stop The Loop. -->
<?php endif; ?>
<?php get_search_form( $echo ); ?>
<!-- Navigation for pagination -->
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
</div><!-- #content -->
</div><!-- #container -->
<?php get_footer(); ?>