-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-links.php
47 lines (38 loc) · 943 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
Template Name: 友情链接模版
*/
get_header();
?>
<?php
function display_link_items() {
echo get_link_items();
}
?>
<?php while(have_posts()) : the_post(); ?>
<?php $post = get_post(); ?>
<?php
$hasPatternImg = iro_opt('patternimg');
$hasFeaturedImage = get_post_thumbnail_id(get_the_ID());
if(!$hasPatternImg || !empty($hasFeaturedImage)) {
?>
<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 display_link_items(); ?>
</div>
</article>
<?php get_template_part('layouts/sidebox'); //加载目录容器?>
<?php endwhile; ?>
<?php
get_footer();
?>