Typecho评论显示当前操作系统以及浏览器信息方法!
项目地址 https://github.com/hakula139/UserAgent-for-Typecho
使用说明
1.解压后修改文件夹名为 UserAgent,将插件上传至网站目录的 /usr/plugins 下
2.在 Typecho 后台「插件管理」处启用插件
3.在需要显示的地方插入以下代码:
handsome主题添加范例 版本handsome 9.2.1 Pro
查找:
<b class="fn"><?php echo $author; ?></b>
在后面添加以下代码
<?php UserAgent_Plugin::render($comments->agent); ?>
效果如图
One comment
测试一下|´・ω・)ノ