-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.php
42 lines (40 loc) · 1.14 KB
/
index.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
<?php
/**
* Copyright (c) 2012 3g4k.com.
* All rights reserved.
* @package gkwp
* @author luofei614 <weibo.com/luofei614>
* @copyright 2012 3g4k.com.
*/
get_header('meta');
get_header();
?>
<div class="container">
<div class="row">
<div class="span8">
<?php
if(is_search()) echo '<div>搜索“'.get_search_query() .'”的结果:</div>';
?>
<?php
if(have_posts()):
?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php /*end the Loop*/?>
<?php
//分页
gk_page($query_string);
?>
<?php
else:
echo ' <h3> 未找到相关文章</h3>';
endif;
?>
</div>
<section class="span4"><?php get_sidebar();?></section>
</div>
</div>
<?php
get_footer();