2021-04-02 06:38:43 +00:00
|
|
|
<?php $this->related(4)->to($relatedPosts); ?>
|
|
|
|
<?php if ($relatedPosts->have()) : ?>
|
2023-06-30 08:39:08 +00:00
|
|
|
<div class="joe_detail__related">
|
|
|
|
<div class="joe_detail__related-title">相关推荐</div>
|
|
|
|
<div class="joe_detail__related-content">
|
|
|
|
<?php while ($relatedPosts->next()) : ?>
|
|
|
|
<a class="item" href="<?php $relatedPosts->permalink(); ?>" title="<?php $relatedPosts->title(); ?>">
|
|
|
|
<img class="lazyload" src="<?php _getLazyload(); ?>" data-src="<?php echo _getThumbnails($relatedPosts)[0]; ?>" alt="<?php $relatedPosts->title(); ?>" />
|
|
|
|
<h6><?php $relatedPosts->title(); ?></h6>
|
|
|
|
</a>
|
|
|
|
<?php endwhile; ?>
|
2021-04-02 06:38:43 +00:00
|
|
|
</div>
|
2023-06-30 08:39:08 +00:00
|
|
|
</div>
|
2021-04-02 06:38:43 +00:00
|
|
|
<?php endif; ?>
|