-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
27 lines (26 loc) · 1.4 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
<?php get_header(); ?>
<div class="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<!-- Start: Post -->
<div <?php post_class(); ?>>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a> <?php edit_post_link(__('Edit this entry', 'super_light'), '', ''); ?></h2>
<p class="post-meta"><span class="date"><?php the_time( get_option( 'date_format' ) ) ?></span> <span class="author"><?php the_author() ?></span> <span class="cats"><?php the_category(", "); ?></span><?php if ( comments_open() ) : ?>, <span class="comments"><?php comments_popup_link('0', '1', '%'); ?></span> <?php endif; ?></p>
<?php the_post_thumbnail(); ?>
<?php the_excerpt(); ?>
<p class="more"><a href="<?php the_permalink() ?>"><?php _e( ' ', 'super_light' ); ?></a></p>
<?php if(has_tag()): ?><p class="tags"><span><?php the_tags(""); ?></span></p><?php endif; ?>
</div>
<!-- End: Post -->
<?php endwhile; ?>
<p class="pagination">
<span class="prev"><?php next_posts_link(__('Previous Posts', 'super_light')) ?></span>
<span class="next"><?php previous_posts_link(__('Next posts', 'super_light')) ?></span>
</p>
<?php else : ?>
<h1><?php _e( 'No posts found. Try a different search?', 'super_light' ); ?></h1>
<?php get_search_form(); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>