forked from mirai-mamori/Sakurairo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-links.php
More file actions
30 lines (27 loc) · 817 Bytes
/
page-links.php
File metadata and controls
30 lines (27 loc) · 817 Bytes
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
<?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 echo esc_html(get_the_title()); ?></span>
<?php endif; ?>
<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 endif; ?>
<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();
?>