-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathsearch.php
43 lines (43 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* @package lolimeow@boxmoe themes
* @link https://www.boxmoe.com
*/
//=======安全设置,阻止直接访问主题文件=======
if (!defined('ABSPATH')) {echo'Look your sister';exit;}
//=========================================
get_header();
?>
<section class="section-blog-breadcrumb container fadein-bottom">
<div class="breadcrumb-head">
<span>
<i class="fa fa-home"></i>Search</span>
</div>
</section>
<section>
<div class="container fadein-bottom">
<div class="site-search">
<h1 class="search-title">
<i class="fa fa-search"></i>
<span>搜索:[<?php echo htmlspecialchars($s); ?>]关键词<?php global $wp_query;echo ' 共' . $wp_query->found_posts . ' 篇文章';?></span></h1>
</div>
</div>
</section>
<section id="boxmoe_theme_container">
<div class="container">
<div class="row">
<div class="blog-post <?php echo boxmoe_blog_layout() ?> fadein-bottom">
<?php while ( have_posts() ) :
the_post();
get_template_part( 'module/template/blog-list');
endwhile;
?>
<?php boxmoe_paging(); ?>
</div>
<?php if (get_boxmoe('blog_layout')== 'two' ): ?>
<?php get_sidebar();?>
<?php endif; ?>
</div>
</div>
</section>
<?php get_footer(); ?>