diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-09-24 00:29:12 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-09-24 00:29:12 +0800 |
| commit | 594c94f0d2ca12c8be123eacac00b6582c030827 (patch) | |
| tree | 946f8d364b441072159dd1a23fbc2f4534f87222 /includes | |
| parent | cf9a90f5fcd7e76b2be3abe066488cc6594f276b (diff) | |
:lollipop: Add: 懒加载图片占位符
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/comments.php | 2 | ||||
| -rw-r--r-- | includes/post-list.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/comments.php b/includes/comments.php index 5455fb6..46272e1 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -22,7 +22,7 @@ echo $commentClass; ?>"> <div class="comment-body-inner"> <div class="comment-avatar"> - <img class="lazy avatar" data-src="<?php echo Comments::getAvatar($comments->mail); ?>" /> + <img class="lazy avatar" src="<?php Utils::indexTheme('assets/loading.gif'); ?>" data-src="<?php echo Comments::getAvatar($comments->mail); ?>" /> <span class="comment-reply"> <?php $comments->reply('回复'); ?> </span> diff --git a/includes/post-list.php b/includes/post-list.php index 6da91fe..7e695a8 100644 --- a/includes/post-list.php +++ b/includes/post-list.php @@ -22,7 +22,7 @@ </div> </div><?php if($this->fields->thumbnail!=''): ?> <div class="post-thumbnail" md-hidden> - <a href="<?php $this->permalink() ?>"><img class="lazy" data-src="<?php $this->fields->thumbnail(); ?>"></a> + <a href="<?php $this->permalink() ?>"><img class="lazy" src="<?php Utils::indexTheme('assets/loading.gif'); ?>" data-src="<?php $this->fields->thumbnail(); ?>"></a> </div><?php endif;?> </article> <?php endwhile; ?> |
