-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag.php
34 lines (34 loc) · 1.06 KB
/
tag.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
<?php get_header() ?>
<div class = "wrap">
<section class = "section">
<div class = "cat_title">
<?php if(is_tag()):echo "标签:"; single_tag_title();; endif;?>
</div>
<?php if(have_posts()):?>
<?php while(have_posts()): the_post();?>
<div class = "context_box">
<div class = "context_title">
<a href = "<?php echo get_permalink($post->ID);?>"> <?php the_title(); ?></a>
</div>
<div class = "context_header">
<?php show_context_header()?>
</div>
<div class = "context_abstract">
<?php get_abstract(get_the_content(), 300, '<a href="'. get_permalink() .'"> ...阅读更多</a>') ?>
</div>
<div class = "context_footer">
<?php show_context_footer();?>
</div>
</div>
<div style = "clear"></div>
<?php endwhile; ?>
<?php endif;?>
<div class = "paging">
<!--<?php if(function_exists('paging_nav')) paging_nav(); ?>-->
<?php pagination($query_string); ?>
</div>
</section>
<aside class = "aside"><?php get_sidebar(); ?></aside>
<div style = "clear:both"></div>
</div>
<?php get_footer() ?>