-
Notifications
You must be signed in to change notification settings - Fork 28
/
search.php
30 lines (30 loc) · 1.61 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
<?php get_header(); ?>
<div id="content">
<div id="main-content">
<?php if (have_posts()) : ?>
<p class="string"><?php _e('You searched for the following','min'); ?>: "<strong><?php echo wp_specialchars($s); ?></strong>"</p>
<a href="<?php echo get_option('home'); ?>/" class="back"><?php _e('Back home','min'); ?></a>
<h2 class="error"><?php _e('Search results','min'); ?></h2>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<span class="date"><?php the_time(__('m/j/Y','min')) ?></span>
<div class="entry">
<?php the_excerpt(); ?>
</div>
<span class="number-of-comments"><a href="<?php the_permalink() ?>#comments" title="title"><?php comments_number(__('No Comments','min'), __('1 Comment','min'), __('% Comments','min'));?></a></span>
</div>
<?php endwhile; ?>
<div class="pagination clearfix">
<div class="prev"><?php next_posts_link('« '.__('Previous posts','min')) ?></div>
<div class="next"><?php previous_posts_link(__('Newer posts','min').' »') ?></div>
</div>
<?php else : ?>
<p class="string"><?php _e('You searched for the following','min') ?>: "<strong><?php echo wp_specialchars($s); ?></strong>"</p>
<a href="<?php echo get_option('home'); ?>/" class="back"><?php _e('Back home','min'); ?></a>
<h2 class="error"><?php _e('We didn\'t find anything. Try a different search or look in the categories below.','min'); ?></h2>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>