whitebearcode/typecho-bearsimple
293 更新于2025-07-29 23:07:54

前言

这篇文章长期更新 (如果文章还在的话)。

一、主题使用

1、转圈圈(2.9.6版本已解决)

幻灯片图片使用 透明度图片/svg 会暴露转圈圈:
转圈圈

转圈圈

2、后续更新(2.9.6版本已更新)

子评论添加数量

子评论添加数量

3、标签添加图片加载问题(2.9.6版本已解决)

由于懒加载,使得标签里面的图片加载不出来:
5c73cf9a0d3e80254d7ecbb6d15b3102.png

5c73cf9a0d3e80254d7ecbb6d15b3102.png

二、插件使用

1、Lopwon_Hub插件的使用

找到主题目录里面的page/post.php

在输出文章前:

<?php echo reEmoPost(ShortCode($this->content,$this,$this->user->hasLogin(),$this->fields->ArticleType)); ?>

添加:

<?php
$content = $this->content;
$content = Typecho_Plugin::factory('Content')->LopwonHub($content);
$this->content = $content;
?>

若文章开启了插件Echarts,应可以显示:

[chart-ec_1]

2、足迹使用iframe添加在首页最底部

page/index-z.php中:

      echo $content;
     ?>
     
     <?php endif; ?>

的后面添加代码:

    <!-- 足迹开始 -->     
     <?php if($this->getCurrentPage() == 1): ?>
     <iframe src="https://www.hansjack.com/footprint.html" frameborder="0" width="100%" height="400" style="margin-top: 40px; border: 2px solid #ccc; border-radius: 12px; overflow: hidden;"></iframe>
     <?php endif; ?>
    <!-- 足迹结束 -->