Typecho主题美化:页面底部添加-好久不见,你是第N位遇到的小伙伴

Jaysun

文章最后更新时间:2023年09月10日

非常漂亮的页面美化,在页面底部增加互动动画,增加网页浏览效果,让浏览统计更美观,喜欢的可以收藏了。

美化效果:

dd453fb27a36072a8dc5ca9ce996bda2.jpg


使用教程:


1.修改footer.php首先,在页脚文件footer.php文件的最下面放入以下代码


<!-- 好久不见 -->
<br><br>
<div class="chenyuyc">
    <div class="footer-fav">
      <div class="container">
        <div class="fl site-info">
          <h2><a href="https://www.yiluxb.cn/" target="_blank">ImZMR</a></h2>
          <div class="site-p">
              <p>ZMR666.com【新的起点新的开始,我在等风也在等你】</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>
          </div>
        </div>
        <div class="fr site-fav">
          <a href="https://www.yiluxb.cn/" class="btn btn-fav btn-orange">Ctrl+D收藏本站</a></div>
        <div class="site-girl">
            <div class="girl fl"> <i class="thumb " style="background-image:url(https://CDN.jsdelivr.net/gh/cy-j/chenyu/img/cyxy.png);"></i> </div>
            <div class="girl-info hide_md">
              <h4>绿水本无忧,因风皱面</h4>
              <h4>青山原不老,为雪白头</h4>
            </div>
        </div>
      </div>
    </div>
</div>

2.修改include.php

隐藏内容
评论可见
前往评论

b120ea793f449b627b99ddf2956cd5519837e44119bc83fdc782d659cf1691475901cdf703e693b1baacebc6bd657923.jpg

风风雨雨1年266天3小时23分,你是第45,355位相遇的小伙伴……这里的实现看这里:

在core.php最下面添加

              <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; ?>


您需要 登录账户 后才能发表评论

发表评论

快捷回复: 表情:
AddoilApplauseBadlaughBombCoffeeFabulousFacepalmFecesFrownHeyhaInsidiousKeepFightingNoProbPigHeadShockedSinistersmileSlapSocialSweatTolaughWatermelonWittyWowYeahYellowdog
评论列表 (有 7 条评论,1176人围观)
网友昵称:xiaoyuan
xiaoyuan V 普通用户 Google Chrome 119.0.0.0 Windows 10 x64 7楼
2023-11-08 来自河南 回复
学习下文章不错,写的很好!
网友昵称:youfan
youfan V 普通用户 Google Chrome 95.0.4638.69 Windows 10 x64 6楼
2023-09-10 来自山东 回复
学习一下
网友昵称:xuyongsheng
xuyongsheng V 普通用户 Google Chrome 108.0.5359.125 Windows 10 x64 地板
2023-06-23 来自安徽 回复
吞吞吐吐
网友昵称:z2439060302
z2439060302 V 普通用户 Google Chrome 114.0.0.0 Windows 10 x64 凉席
2023-06-21 来自浙江 回复
过来学习下
网友昵称:meditate
meditate V 普通用户 Google Chrome 112.0.0.0 Mac OS X 10.15.7 板凳
2023-04-16 来自四川 回复
学习
网友昵称:ln456166
ln456166 V 普通用户 Google Chrome 86.0.4240.198 Windows 10 x64 椅子
2023-04-05 来自四川 回复
过来学习下
网友昵称:xiaoqida
xiaoqida V 普通用户 Google Chrome 95.0.4638.69 Windows 10 x64 沙发
2023-04-03 来自上海 回复
感谢~

目录[+]

取消
微信二维码
微信二维码
支付宝二维码