-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
67 lines (38 loc) · 1.69 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
<?php get_header(); ?>
<div id="container" class="<?php echo get_option('acer_layout') ?>">
<div class="clear"></div>
<div id="content">
<h1><?php printf( __( 'Search Results for: %s', 'acer' ), '<span>' . get_search_query() . '</span>'); ?></h1>
<?php get_search_form( $echo ); ?>
<?php
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<section class="post">
<h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="clear"></div>
<p class="authorinfo">By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> </p>
<?php if ( get_option( 'acer_thumb_pos_index' ) == 'above' ) {
acer_home_thumb(); } ?>
<section class="entry">
<?php if ( get_option('acer_ex_index') == true ) { ?>
<?php the_excerpt(); ?>
<?php } else { ?>
<?php the_content(); ?>
<?php } ?>
</section>
<?php if ( get_option( 'acer_thumb_pos_index' ) == 'below' ) {
acer_home_thumb(); } ?>
<a class="read-more" href="<?php the_permalink(); ?>"> Continue Reading →</a>
<div class="clear"></div>
</section>
<?php endwhile; endif; ?>
<?php if (show_posts_nav()) : ?>
<div class='navigation'>
<span class='older'><?php next_posts_link('« Older Entries'); ?></span>
<span class='newer'><?php previous_posts_link('Newer Entries »'); ?></span>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<div class="clear"></div>
<?php get_footer(); ?>