-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsearch.php
44 lines (44 loc) · 2.04 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
<?php get_header(); ?>
<div class="row">
<div class="col-sm-12 col-md-9">
<div class="well well-sm text-center">
搜索关键字:<?php the_search_query(); ?>
</div>
<?php if(have_posts()): ?>
<?php while(have_posts()):the_post(); ?>
<div class="thumbnail">
<div class="caption">
<h1 class="vc-page-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<p class="vc-author-info">
<time><?php echo get_the_date('Y-m-d'); ?></time> •
<span><?php echo get_the_author(); ?></span> •
<span><a href=""><?php comments_popup_link( '0','1','%');?>条评论</a></span>
</p>
<p class="hidden-xs">
<?php echo esc_attr(get_the_excerpt()); ?>
</p>
<p class="clearfix">
<a class="hidden-xs pull-right vc-more-link" href="<?php the_permalink(); ?>" role="button">继续阅读 »</a>
<span class="vc-tags">
<?php the_tags('',' ',''); ?>
</span>
</p>
</div>
</div>
<?php endwhile; ?>
<?php endif;?>
<nav>
<ul class="pager">
<li class="previous">
<?php previous_posts_link(__('<i class="fa fa-angle-left"></i> Previous','victheme')) ?>
</li>
<li class="next">
<?php next_posts_link(__('Next <i class="fa fa-angle-right"></i>','victheme')) ?>
</li>
</ul>
</nav>
</div>
<?php get_sidebar('right'); ?>
</div>
</div>
<?php get_footer(); ?>