forked from ilaoniu/pluto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-friend.php
42 lines (38 loc) · 1.57 KB
/
custom-friend.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
/*
Template Name: 友链页面
*/
error_reporting(0);
?>
<?php get_header(); ?>
<!-- 友情链接 -->
<div class="posts clearfix">
<article <?php post_class('single-post'); ?>>
<div class="post-wrap">
<header class="post-title wb">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_title(); ?>
</a>
</header>
<div class="post-inner">
<div class="post-right">
<div class="post-content wb clearfix">
<?php if ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endif; ?>
<ul class="link_box">
<?php wp_list_bookmarks('orderby=id&category_orderby=id'); ?>
</ul>
</div>
</div>
</div>
</div>
</article>
<!-- 评论 -->
<?php if ('open' == $post->comment_status) { ?>
<div id="comment-jump" class="comments">
<?php comments_template(); ?>
</div>
<?php } ?>
</div>
<?php get_footer(); ?>