-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
52 lines (51 loc) · 1.75 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
43
44
45
46
47
48
49
50
51
52
<?php get_header(); ?>
<!--文章列表-->
<div class="articleList container">
<div class="row">
<div class="col-md-12">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post();?>
<!--single article-->
<div class="article">
<div class="articleHeader">
<h1 class="articleTitle"><a href="<?php the_permalink();?>"><?php the_title();?></a></h1>
</div>
<div class="articleBody clearfix">
<!--缩略图-->
<div class="articleThumb">
<a href="<?php the_permalink();?>"><img src="<?php echo post_thumbnail_src(); ?>" alt="<?php the_title();?>" title="<?php the_title();?>"></a>
</div>
<!--摘要-->
<div class="articleFeed">
<p><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 240,"..."); ?></p>
</div>
<!--tags-->
<div class="articleTags">
<ul><?php the_tags('','',''); ?></ul>
</div>
</div>
<div class="articleFooter clearfix">
<ul class="articleStatu">
<li><i class="fa fa-calendar"></i><?php echo get_the_time('Y-m-d') ?></li>
<li><i class="fa fa-eye"></i><?php if(function_exists('custom_the_views') ) custom_the_views($post->ID); ?>次浏览</li>
<li><a href=""><i class="fa fa-folder-o"></i><?php the_category(’, ‘) ?></a></li>
</ul>
<a href="<?php the_permalink();?>" class="btn btn-readmore btn-info btn-md">阅读更多</a>
</div>
</div>
<!--single article-->
<?php endwhile;?>
<?php endif;?>
</div>
</div>
</div>
<div class="container pageNav">
<div class="row">
<div class="col-md-12">
<nav>
<?php paging_nav(); //分页导航?>
</nav>
</div>
</div>
</div>
<?php get_footer(); ?>