飘落樱花前景 + 点击鼠标心形
主题 footer.php 底部 </body> 之前
血小板看板娘(主题 -> 开发者设置 -> 自定义 JS)
<!--引入上传的JS文件>
<script src = "/usr/uploads/addons/live2dw/lib/L2Dwidget.min.js">
</script>
<script>
L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"jsonPath":"/usr/uploads/addons/live2dw/assets/kesshouban.model.json"},"display":{"position":"right","width":325,"height":300,"hOffset":-110,"vOffset":0},"dialog":{"enable":true},"mobile":{"show":false},"react":{"opacity":1},"log":false});
</script>
心知天气
/usr/themes/handsome/component/headnav.php第184行<ul class="nav navbar-nav navbar-right">之后:
<div id="tp-weather-widget" class="navbar-form navbar-form-sm navbar-left shift"></div>
<script>(function(T,h,i,n,k,P,a,g,e){g=function(){P=h.createElement(i);a=h.getElementsByTagName(i)[0];P.src=k;P.charset="utf-8";P.async=1;a.parentNode.insertBefore(P,a)};T["ThinkPageWeatherWidgetObject"]=n;T[n]||(T[n]=function(){(T[n].q=T[n].q||[]).push(arguments)});T[n].l=+new Date();if(T.attachEvent){T.attachEvent("onload",g)}else{T.addEventListener("load",g,false)}}(window,document,"script","tpwidget","//widget.seniverse.com/widget/chameleon.js"))</script>
<script>tpwidget("init", {
"flavor": "slim",
"location": "WX4FBXXFKE4F",
"geolocation": "enabled",
"language": "auto",
"unit": "c",
"theme": "chameleon",
"container": "tp-weather-widget",
"bubble": "enabled",
"alarmType": "badge",
"color": "#C6C6C6",
"uid": "公钥",
"hash": "密钥"
});
tpwidget("show");</script>
响应时间和访客总数
/usr/themes/handsome/functios.php的第44行:
/*与sidebar.php文件中第106行配合显示加载时间*/
function timer_start() {
global $timestart;
$mtime = explode( ' ', microtime() );
$timestart = $mtime[1] + $mtime[0];
return true;
}
timer_start();
function timer_stop( $display = 0, $precision = 3 ) {
global $timestart, $timeend;
$mtime = explode( ' ', microtime() );
$timeend = $mtime[1] + $mtime[0];
$timetotal = number_format( $timeend - $timestart, $precision );
$r = $timetotal < 1 ? $timetotal * 1000 . " ms" : $timetotal . " s";
if ( $display ) {
echo $r;
}
return $r;
}
/*与sidebar.php文件中第106行配合显示总访问量*/
function theAllViews(){
$db = Typecho_Db::get();
$row = $db->fetchAll('SELECT SUM(VIEWS) FROM `typecho_contents`');
echo number_format($row[0]['SUM(VIEWS)']);
}
/usr/themes/handsome/component/sidebar.php的第106行:
<!--以下代码与functions.php文件底部增加代码配合显示访客数和响应时间-->
<li class="list-group-item text-second">
<span class="blog-info-icons">
<i data-feather="eye"></i>
</span>
<span class="badge pull-right">
<?php echo theAllViews();?>
</span>
<?php _me("访客总数") ?>
</li>
<li class="list-group-item text-second">
<span class="blog-info-icons">
<i data-feather="clock"></i>
</span>
<span class="badge pull-right">
<?php echo timer_stop();?>
</span>
<?php _me("响应耗时") ?>
</li>
<!--以上代码与functions.php文件底部增加代码配合显示访客数和响应时间-->
后台顶部中文字段
管理后台[欢迎文字]、[版本文字]、[顶部大按钮]通过\libs\Settings.php
修改。
大字体的版本文字在145行。
后台设置中文字段
具体的设置内容、设置提示、文字说明通过functions_mine.php
修改。
后台顶部颜色主题
十六进制颜色阵列,通过libs\Handsome.php
第16到19行修改。