-
-
Notifications
You must be signed in to change notification settings - Fork 351
/
page-links.php
29 lines (26 loc) · 776 Bytes
/
page-links.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
<?php
/**
Template Name: 友情链接模版
*/
get_header();
?>
<?php while(have_posts()) : the_post(); ?>
<?php $post = get_post(); ?>
<?php if(!iro_opt('patternimg') || !get_post_thumbnail_id(get_the_ID())) { ?>
<span class="linkss-title"><?php the_title();?></span>
<?php } ?>
<article <?php post_class("post-item"); ?>>
<?php if (iro_opt('article_auto_toc', 'true') && check_title_tags($post->post_content)) { //加载目录?>
<div class="has-toc have-toc"></div>
<?php } ?>
<div class="entry-content">
<?php the_content( '', true ); ?>
</div>
<div class="links">
<?php echo get_link_items(); ?>
</div>
</article>
<?php get_template_part('layouts/sidebox'); //加载目录容器?>
<?php endwhile; ?>
<?php
get_footer();