代码css直接是调用fee模板的,你们如果用的不是fee就直接f12扒你模板侧边栏组件样式就行
打开side.php,下滑到最下面,把代码丢带最后一个</div>内
<div class="widget widget_ui_posts wow zoomIn animated" style="visibility: visible; animation-name: zoomIn;"> <h3>博客统计</h3> <?php $sta_cache = Cache::getInstance()->readCache('sta'); /*必须添加*/ ?> <ul class="list-unstyled souul"> <li>文章总数:<?php echo $sta_cache['lognum']; ?> 篇</li> <li>评论总数:<?php echo $sta_cache['comnum_all']; ?> 条</li> <li>闲言碎语:<?php echo $sta_cache['twnum']; ?>条</li> <li>网站运行:<?php echo floor((time()-strtotime(20200224))/86400); ?> 天</li> </ul> </div>
完成,效果可以参考我博客的侧边栏,我已经添加了。