-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpage.php
executable file
·47 lines (39 loc) · 2.04 KB
/
page.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 if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<section class="content">
<div class="pad group">
<article>
<div class="entry">
<?php $this->content(); ?>
</div>
</article>
<div class="clear"></div>
<?php if($this->options->isShare == '1'): ?>
<?php $this->need('inc/share.php'); ?>
<?php endif; ?>
<div class="clear"></div>
<?php $this->related(3)->to($relatedPosts); ?>
<?php if($relatedPosts->have()): ?>
<h4 class="heading">
<i class="fa fa-hand-o-right"></i>你可能还喜欢...
</h4>
<ul class="widget related-posts group thumbs-enabled" style="display: block;">
<?php while ($relatedPosts->next()): ?>
<li>
<?php if($relatedPosts->fields->thumbUrl): ?>
<div class="tab-item-thumbnail">
<a title="<?php $relatedPosts->title(); ?>" href="<?php $relatedPosts->permalink(); ?>">
<img width="200" height="200" sizes="(max-width: 200px) 100vw, 200px" alt="<?php $relatedPosts->title(); ?>" class="attachment-thumb-small size-thumb-small wp-post-image" src="<?php $relatedPosts->fields->thumbUrl(); ?>"> </a>
</div>
<?php endif; ?>
<div class="related-inner group post">
<h4 class="post-title"><a title="<?php $relatedPosts->title(); ?>" rel="bookmark" href="<?php $relatedPosts->permalink(); ?>"><?php $relatedPosts->title(); ?></a></h4>
<p class="tab-item-date"><?php $relatedPosts->date('j M, Y'); ?></p> </div>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<?php $this->need('comments.php'); ?>
</div><!--/.pad-->
</section><!--/.content-->
<?php $this->need('footer.php'); ?>