好久不见之本站同款网站底部样式,效果见本站。
1、修改footer.php
首先,在页脚文件footer.php文件的最下面放入以下代码:
2、修改include.php
新增CSS样式,在/usr/themes/Joe/public/include.php的19-29行之间新增如下代码:
3、备注
风风雨雨1年266天3小时23分,你是第45,355位相遇的小伙伴……这里的实现看这里:
网站访问量暨与小伙伴们的N次相遇
https://chenyu.me/1402.html
4、Joe主题
Joe主题开启显示建站时间后,并配置好“网站访问量暨与小伙伴们的N次相遇”小伙伴。
<p><a href="javascript:;" id="chenyutime">风风雨雨N年,你是第N位相遇的小伙伴</a></p>
修改为:
<p><?php if ($this->options->JBirthDay) : ?>
<div class="item run">
<span>风风雨雨 <strong class="joe_run__day">00</strong> 天 <strong class="joe_run__hour">00</strong> 时 <strong class="joe_run__minute">00</strong> 分,你是第<?php echo theAllViews();?>位相遇的小伙伴</span>
</div>
<?php endif; ?> </p>
修改好后,请删除原有的建站时间显示(第六行到第十行),不然会重复显示。
<?php if ($this->options->JBirthDay) : ?>
<div class="item run">
<span>已运行 <strong class="joe_run__day">00</strong> 天 <strong class="joe_run__hour">00</strong> 时 <strong class="joe_run__minute">00</strong> 分 <strong class="joe_run__second">00</strong> 秒</span>
</div>
<?php endif; ?>
如果居中样式修改请在include.php文件添加
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/cy-i/[email protected]/css/bootstrap-grid.min.css">
5、Joe主题后台开关版
1、函数
在主题根目录functions.php文件里41行-1050行之间,挑选你喜欢的行数,见机任性插入,然后在后台 – 其他设置 – 打开或关闭(默认为关闭)。
2、调用
在public下footer.php文件里,适当的位置添加
3、CSS
在public下include.php文件里,适当的位置添加
<?php if ($this->options->Longtimenosee === 'on') : ?>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/cy-i/[email protected]/css/cydibu.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/cy-i/[email protected]/css/bootstrap-grid.min.css">
<?php endif; ?>
© 版权声明
分享是一种美德,转载请保留原链接
THE END
- 最新
- 最热
只看作者