标签: AI

  • 萌翻少女心的发光果冻泡泡

    效果图

    萌翻少女,,,!初一觉得不大可能,萌翻一片少男倒是挺有可能,可用作与跳转页以及网站预加载动画

    HTML

    <html>
    
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    
        <title>萌翻少女心的发光果冻泡泡</title>
        <link rel="stylesheet" href="style.css">
    </head>
    
    <body>
        <div class="container">
            <div class="bubble"></div>
            <div class="shadow"></div>
        </div>
    </body>
    
    </html>

    CSS

    *{
        margin: 0;
        padding: 0;
    }
    body{
        /* 100%窗口高度 */    height: 100vh;
        /* 弹性布局 居中显示 */    display: flex;
        justify-content: center;
        align-items: center;
        /* 渐变背景 */    background: linear-gradient(150deg,#d299c2,#fef9d7);
        /* 溢出隐藏 */    overflow: hidden;
    }
    .container{
        width: 200px;
        height: 200px;
        /* 相对定位 */    position: relative;
    }
    /* 泡泡 */.bubble{
        width: 100%;
        height: 100%;
        /* 径向渐变 */    background: radial-gradient(circle at 75% 30%,#fff 5px,#ff21c0 8%,#5b5b5b 60%,#ff21c0 100%);
        border-radius: 50%;
        /* 阴影 */    box-shadow: inset 0 0 20px #fff,
            inset 10px 0 46px #eaf5fc,
            inset 80px 0 60px #efcde6,
            inset -20px -60px 100px #f9f6de,
            inset 0 50px 140px #f9f6de,
            0 0 90px #fff;
        /* 执行动画:动画名 时长 加速后减速 无限次播放 */    animation: bubble 4s ease-in-out infinite;
    }
    .shadow{
        background-color: rgba(0,0,0,0.15);
        width: 150px;
        height: 40px;
        border-radius: 50%;
        /* 绝对定位 */    position: absolute;
        left: 50%;
        margin-left: -75px;
        bottom: -100px;
        /* 一点点模糊效果 */    filter: blur(1px);
        /* 执行动画:动画名 时长 加速后减速 无限次播放 */    animation: shadow 4s ease-in-out infinite;
    }
    
    /* 定义动画 *//* 泡泡浮动动画 */@keyframes bubble {
        0%,100%{
            transform: translateY(0);
        }
        50%{
            transform: translateY(-80px);
        }
    }
    /* 投影动画 */@keyframes shadow {
        0%,100%{
            transform: scale(0.5);
        }
        50%{
            transform: scale(1);
        }
    }
  • 推荐两款Typecho邮箱评论通知插件

    第一款

    这款CommentToMail样式上十分简洁美观,邮件模板采用气泡对话方式呈现。

    截图效果

    [b2_file link=”https://wwu.lanzoum.com/i2Q1Z0eqhd7i” name=”蓝奏云” pass=”” code=””]

    第二款

    给自己的博客添加一个评论邮箱提醒功能大大的节约了读取时间也可以立刻能收的评论的通知,插件自定义程度非常高可以自定义框架,给邮件回复添加更多的趣味性!

    截图效果

    安装

    1.首先下载插件,下载地址请看文章底部
    2.将插件上传到 /usr/plugins/ 这个目录下,并确定插件名字是CommentPush
    3.登陆后台,在“控制台”下拉菜单中进入“插件管理”
    4.启用插件,进行插件设置

    设置使用方法

    当前插件需要使用file_get_contents函数,有些集成环境会关闭allow_url_fopen,需要把这个设置为On。

    支持的推送服务

    Server酱,Qmsg酱,阿里云邮件,SMTP邮件,企业微信机器人,钉钉机器人。
    推送日志记录
    自定义邮件推送模版

    数据库适配

    支持Pdo_Mysql
    支持Pdo_SQLite

    下载地址

    作者的GitHub

  • 穿越火线:单机版|重返童年经典回忆

    游戏介绍

    《穿越火线》(Cross Fire,简称CF)是一款由韩国Smile Gate开发的第一人称射击游戏的网络游戏,玩家在游戏中扮演控制一名持枪战斗人员,与其他玩家进行械斗。

    游戏截图

    游戏启动步骤

    1、把cf_gamesrv, cf_gamesrv_newlobby, cf_gamesrv_loginsrv里面的exe都启动一遍

    2、打开crossfire launcher文件运行“启动.bat”开始游戏

    此版本为最新国服版本!与TX现在的版本一致!版本名称《荣耀之巅》

    全枪械,全角色,全皮肤,全道具,挑战/人机爆破团战/跳跳乐几乎全模式可玩

    所有模式都可以玩,但有的模式不能玩?外服没有的武器 角色在这个版本都有!直接去个人仓库选,也可以去商城自行购买!

    疑惑答复

    1、这个不需要虚拟机,所以不用很高的配置。

    2、这是纯正CF单机,不是CS改出来的那种

    3、可以添加人机对战,和电脑AI对打,并不是孤零零的你自己

  • 【7B2主题美化】首页添加六小格

    效果图

    附件放到网站跟目录

    <div id="html-box-pckjl1" class="html-box"> <div class="banxin Mrxu-block">
            <div class="Mrxu-circulation">
                <ul>
                    <li class="color1">
                        <div class="Mrxu-content">
                            <a class="Mrxu-top" href="#">
                                <p class="Mrxu-name">动漫</p>
                                <p class="Mrxu-hint">提供最新动漫</p>
                                <i class="icon1"></i>
                            </a>
                            <div class="Mrxu-link">
                                <a href="#">热血</a>
                                <a href="#">卡通</a>
                                <a href="#">新番</a>
                                <a href="#">百合</a>
                                <a href="#">搞笑</a>
                                <a href="#">国产</a>
                            </div>
                        </div>
                    </li>
                    <li class="color2">
                        <div class="Mrxu-content">
                            <a class="Mrxu-top" href="#">
                                <p class="Mrxu-name">漫画</p>
                                <p class="Mrxu-hint">一笔一纸一世界</p>
                                <i class="icon2"></i>
                            </a>
                            <div class="Mrxu-link">
                                <a href="#">恋爱</a>
                                <a href="#">玄幻</a>
                                <a href="#">恐怖</a>
                                <a href="#">剧情</a>
                                <a href="#">科幻</a>
                                <a href="#">悬疑</a>
                            </div>
                        </div>
                    </li>
                    <li class="color3">
                        <div class="Mrxu-content">
                            <a class="Mrxu-top" href="#">
                                <p class="Mrxu-name">游戏</p>
                                <p class="Mrxu-hint">一鼠一键一片天</p>
                                <i class="icon3"></i>
                            </a>
                            <div class="Mrxu-link">
                                <a href="#">单机</a>
                                <a href="#">手机</a>
                                <a href="#">网络</a>
                                <a href="#">MMO</a>
                                <a href="#">桌游棋牌</a>
                                <a href="#">GMV</a>
                            </div>
                        </div>
                    </li>
                    <li class="color4">
                        <div class="Mrxu-content">
                            <a class="Mrxu-top" href="#">
                                <p class="Mrxu-name">番剧</p>
                                <p class="Mrxu-hint">最新番剧更新</p>
                                <i class="icon4"></i>
                            </a>
                            <div class="Mrxu-link">
                                <a href="#">连载</a>
                                <a href="#">完结</a>
                                <a href="#">时间表</a>
                                <a href="#">索引</a>
                                <a href="#">里番</a>
                                <a href="#">同人</a>
                            </div>
                        </div>
                    </li>
                    <li class="color5">
                        <div class="Mrxu-content">
                            <a class="Mrxu-top" href="#">
                                <p class="Mrxu-name">COS</p>
                                <p class="Mrxu-hint">漂亮小姐姐</p>
                                <i class="icon5"></i>
                            </a>
                            <div class="Mrxu-link">
                                <a href="#">动漫</a>
                                <a href="#">游戏</a>
                                <a href="#">明星</a>
                                <a href="#">影视剧人</a>
                                <a href="#">小说</a>
                                <a href="#">同人</a>
                            </div>
                        </div>
                    </li>
                    <li class="color6">
                        <div class="Mrxu-content">
                            <a class="Mrxu-top" href="#">
                                <p class="Mrxu-name">福利</p>
                                <p class="Mrxu-hint">性感大姐姐</p>
                                <i class="icon6"></i>
                            </a>
                            <div class="Mrxu-link">
                                <a href="#">桜井宁宁</a>
                                <a href="#">五更百鬼</a>
                                <a href="#">弥音音</a>
                                <a href="#">小鸟酱</a>
                                <a href="#">抖娘-利世</a>
                                <a href="#">七月喵子</a>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
            <ul class="Mrxu-classify">
                <li>
                    <a href="#"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-tupian"></use></svg>照片</a>
                </li>
                <li>
                    <a href="#"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-yingshi"></use></svg>录像</a>
                </li>
                <li>
    				<a href="#"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-dianpu"></use></svg>商品</a> 
                </li>
                <li>
                    <a href="#"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-paizhao"></use></svg>拍照</a>
                </li>
                <li>
                    <a href="#"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-huodong"></use></svg>活动</a>
                </li>
                <li>
                    <a href="#"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-liwu"></use></svg>礼物</a>
                </li>
                <li>
                    <a href="#"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-youhuiquan"></use></svg>优惠券</a>
                </li>
                <li>
                    <a href="#"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-kabao"></use></svg>钱包</a>
                </li>
                <li>
                    
    				<a href="#"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-kehu"></use></svg>客服</a>
                </li>
                <li>
                    <a href="#"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-rili"></use></svg>签到</a>
                </li>
            </ul>
         </div>
    	 </div></div></div></div>

    代码放到css样式

    
    .icon {
        width: 2em;
        height: 1.5em;
        vertical-align: -0.15em;
        fill: currentColor;
    }
    .Mrxu-block {
    	padding-top: 30px;
    	position: relative;
    }
    .Mrxu-block .cut-prev,.Mrxu-block .cut-next {
    	position: absolute;
    	font-size: 14px;
    	top: 63px;
    	width: 35px;
    	height: 35px;
    	text-align: center;
    	line-height: 35px;
    	color: #CCCCCC;
    	background: #F3F4F7;
    	border-radius: 50%;
    	cursor: pointer;
    }
    .Mrxu-block .cut-prev {
    	display: none;
    	left: -55px;
    }
    .Mrxu-block .cut-next {
    	right: -55px;
    }
    .Mrxu-block .cut-prev:hover,.Mrxu-block .cut-next:hover {
    	color: #39AEFF;
    	background: #F3F4F7;
    }
    .Mrxu-circulation {
    	height: 228px;
    	overflow: hidden;
    }
    .Mrxu-circulation ul {
    	width: 300%;
    }
    .Mrxu-circulation ul li {
    	float: left;
    	position: relative;
    	width: 5%;
    	height: 100px;
    	margin-right: 24px;
    	z-index: 1;
    }
    .Mrxu-circulation ul li .Mrxu-content::before {
    	content: '';
    	position: absolute;
    	right: 0;
    	top: 0;
    	width: 168px;
    	height: 100px;
    }
    .Mrxu-circulation ul li .Mrxu-content {
    	position: relative;
    	height: 100px;
    	font-size: 14px;
    	border-radius: 10px;
    	transition: 0.2s;
    	overflow: hidden;
    }
    .Mrxu-content .Mrxu-top {
    	display: block;
    	position: relative;
    	box-sizing: border-box;
    	padding: 22px 0 0 16px;
    	border-radius: 10px;
    	overflow: hidden;
    	height: 100px;
    }
    .Mrxu-name {
    	position: relative;
    	font-size: 26px;
    	line-height: 26px;
    	margin-bottom: 8px;
    	z-index: 1;
    }
    .Mrxu-hint {
    	position: relative;
    	z-index: 1;
    	text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    }
    .Mrxu-circulation ul li.off:hover .Mrxu-content {
    	height: 100px;
    }
    .Mrxu-circulation ul li:hover .Mrxu-content {
    	height: 218px;
    	box-shadow: 0 6px 10px 0 rgba(0,0,0,0.10);
    }
    .Mrxu-circulation .color1 .Mrxu-content:hover {
    	background: #FFD4D4;
    }
    .Mrxu-circulation .color1 .Mrxu-top {
    	color: #C68686;
    }
    .Mrxu-circulation .color1 .Mrxu-name {
    	color: #5B0000;
    }
    .Mrxu-circulation li.color1 .Mrxu-content::before {
    	background-position: 0 -100px;
    }
    .Mrxu-circulation .color2 .Mrxu-content:hover {
    	background: #C9F1ED;
    }
    .Mrxu-circulation .color2 .Mrxu-top {
    	color: #87BAB5;
    }
    .Mrxu-circulation .color2 .Mrxu-name {
    	color: #0C534D;
    }
    .Mrxu-circulation li.color2 .Mrxu-content::before {
    	background-position: -178px -100px;
    }
    .Mrxu-circulation .color3 .Mrxu-content:hover {
    	background: #FFECB4;
    }
    .Mrxu-circulation .color3 .Mrxu-top {
    	color: #DEBD83;
    }
    .Mrxu-circulation .color3 .Mrxu-name {
    	color: #844000;
    }
    .Mrxu-circulation li.color3 .Mrxu-content::before {
    	background-position: -534px -100px;
    }
    .Mrxu-circulation .color4 .Mrxu-content:hover {
    	background: #FFD4D4;
    }
    .Mrxu-circulation .color4 .Mrxu-top {
    	color: #BD7C7C;
    }
    .Mrxu-circulation .color4 .Mrxu-name {
    	color: #5B0000;
    }
    .Mrxu-circulation li.color4 .Mrxu-content::before {
    	background-position: -1424px -100px;
    }
    .Mrxu-circulation .color5 .Mrxu-content:hover {
    	background: #FFE2EF;
    }
    .Mrxu-circulation .color5 .Mrxu-top {
    	color: #D390A7;
    }
    .Mrxu-circulation .color5 .Mrxu-name {
    	color: #840028;
    }
    .Mrxu-circulation li.color5 .Mrxu-content::before {
    	background-position: -712px -100px;
    }
    .Mrxu-circulation .color6 .Mrxu-content:hover {
    	background: #FFE2D0;
    }
    .Mrxu-circulation .color6 .Mrxu-top {
    	color: #D49D86;
    }
    .Mrxu-circulation .color6 .Mrxu-name {
    	color: #842100;
    }
    .Mrxu-circulation li.color6 .Mrxu-content::before {
    	background-position: -890px -100px;
    }
    .Mrxu-content .Mrxu-top i {
    	position: absolute;
    	top: 0;
    	right: -20px;
    	width: 130px;
    	height: 100px;
    	background: url(/img/icon001.png) no-repeat 0 0;
    }
    .Mrxu-circulation li .icon1 {
    	background-position: 0px 0;
    }
    .Mrxu-circulation li .icon2 {
    	background-position: -140px 0;
    }
    .Mrxu-circulation li .icon3 {
    	background-position: -280px 0;
    }
    .Mrxu-circulation li .icon4 {
    	background-position: -410px 0;
    }
    .Mrxu-circulation li .icon5 {
    	background-position: -530px 0;
    }
    .Mrxu-circulation li .icon6 {
    	background-position: -650px 0;
    }
    .Mrxu-block .Mrxu-content {
    	height: 100px;
    }
    .Mrxu-block .Mrxu-link {
    	text-align: center;
    	line-height: 26px;
    	font-size: 14px;
    }
    .Mrxu-block .Mrxu-link a {
    	margin: 10px 1px 0;
    	display: inline-block;
    	background: rgba(255,255,255,0.50);
    	width: 77px;
    	height: 26px;
    	border-radius: 13px;
    	font-size: 13px;
    }
    .Mrxu-block .Mrxu-link a:hover {
    	background: #fff;
    	color: #666;
    }
    .Mrxu-classify {
    	margin: -87px 0 0;
    	padding-bottom: 30px;
    	white-space: nowrap;
    }
    .Mrxu-classify li {
    	width: 10%;
    	position: relative;
    	display: inline-block;
    }
    .Mrxu-classify li::before {
    	content: '';
    	position: absolute;
    	right: -1px;
    	top: 2px;
    	width: 2px;
    	height: 16px;
    	background: #DDDDDD;
    }
    .Mrxu-classify li:nth-child(10)::before {
    	display: none;
    }
    .Mrxu-classify li .iconfont {
    	font-size: 16px;
    	color: #39AEFF;
    	margin-right: 6px;
    }
    .Mrxu-classify li a {
    	margin-left: 6%;
    	font-size: 14px;
    	color: #666666;
    }
    .Mrxu-classify li a:hover {
    	color: #2CAEFF;
    }
    .Mrxu-classify li.more {
    	display: none;
    }
    .Mrxu-classify li.more i {
    	vertical-align: -3px;
    	margin-right: 4px;
    }
    .Mrxu-circulation li.AnRotate .Mrxu-top i {
    	animation: AnRotate 1.2s ease-in-out infinite alternate;
    	transform-origin: 76px 90%;
    }

    引入阿里矢量图标

    <script type="text/javascript" src="//at.alicdn.com/t/font_2696731_fbdj49dums.js"></script>
  • 【7B2主题美化】首页N格样式

    仅限于7B2主题,其他主题自行修改。

    1.将下列代码放至模块自定义区域(主题设置-模块管理-自定义)

    <!-- 首页N格区块html代码 开始 -->
    <div id="home-row-qukuai" class="  home_row home_row_1  module-qukuai  " style="background-color:;"> 
       <div class="wrapper">
            <div class="home-row-left content-area "> 
                <div class="sort b2-radius" style="margin-top:-100px ;">    
                    <ul class="sort-config"> 
                        <li>
                                                <div class="sort-config-item">
                                                <img class="sort-config-icon" src="https://www.guidebook.top/images/logo.svg" alt="" />
                                                <a href="https://nav.guidebook.top" target="_blank"><p class="sort-config-title">数字指南手册
                                                <span class="go" style="background-color: #ff6000;">GO<i class="b2font b2-arrow-right-s-line"></i></span>
                                                </p> </a>
                                                <span class="sort-config-desc">高效工作学习生活手册</span>
                                                </div></li> <li>
                                                <div class="sort-config-item">
                                                <img class="sort-config-icon" src="https://www.guidebook.top/images/search.svg" alt="" />
                                                <a href="https://search.guidebook.top" target="_blank"><p class="sort-config-title">搜索指南
                                                <span class="go" style="background-color: #5de000;">GO<i class="b2font b2-arrow-right-s-line"></i></span>
                                                </p> </a>
                                                <span class="sort-config-desc">聚合搜索引擎</span>
                                                </div></li> <li>
                                                <div class="sort-config-item">
                                                <img class="sort-config-icon" src="https://www.guidebook.top/images/danghui.svg" alt="" />
                                                <a href="https://www.guidebook.top" target="_blank"><p class="sort-config-title">公文写作
                                                <span class="go" style="background-color: #ff6000;">GO<i class="b2font b2-arrow-right-s-line"></i></span>
                                                </p> </a>
                                                <span class="sort-config-desc">写作素材收集</span>
                                                </div></li> <li>
                                                <div class="sort-config-item">
                                                <img class="sort-config-icon" src="https://www.guidebook.top/images/news.svg" alt="" />
                                                <a href="https://nav.guidebook.top/hotnews/" target="_blank"><p class="sort-config-title">今日资讯
                                                <span class="go" style="background-color: #ff6000;">GO<i class="b2font b2-arrow-right-s-line"></i></span>
                                                </p> </a>
                                                <span class="sort-config-desc">每日新闻速递</span>
                                                </div></li> <li>
                                                <div class="sort-config-item">
                                                <img class="sort-config-icon" src="https://www.guidebook.top/images/hezuoanli.svg" alt="" />
                                                <a href="/requests" target="_blank"><p class="sort-config-title">项目库
                                                <span class="go" style="background-color: #ff6000;">GO<i class="b2font b2-arrow-right-s-line"></i></span>
                                                </p> </a>
                                                <span class="sort-config-desc">优秀项目列表</span>
                                                </div></li>                 </ul> 
                                                <div class="sort-blocks"> 
                        <div class="bt-body"> 
                            <div class="containerrr"> 
                                <div class="onecad-quk-carousel"> 
                                    <div class="itemss"> 
                                        <a class="card_ZQsT- b2-radius" href="https://www.guidebook.top/337/" target="_blank">
                                                                            <img src="https://www.guidebook.top/images/shetuwang.png">
                                                                          
                                                                            
                                                                        </a><a class="card_ZQsT- b2-radius" href="http://nav.guidebook.top" target="_blank">
                                                                            <img src="https://www.guidebook.top/images/wxgzh1.png">
                                                                           
                                                                        </a>
    
    <a class="card_ZQsT- b2-radius" href="https://nav.guidebook.top" target="_blank">
                                                                            <img src="https://www.guidebook.top/images/101.jpg">
                                                                           </a> 
                                                                                                     </div> 
                                </div> 
                            </div> 
                        </div> 
                        <div class="srot-mine b2-radius"> 
                          <div class="wwads-cn wwads-horizontal" data-id="147" style="width:376px; height:180px;flex-wrap:nowrap;margin-top:0px;background-color:azure;padding:0px;"></div>
                            
                        </div> 
                    </div> 
                                </div>
            </div>
        </div>
    </div>
    <!-- 首页N格区块html代码 开始 -->

    2.将下列代码放至WP主题额外CSS中(WP后台-外观-自定义-额外css)

    /*首页N格样式代码开始*//*角标CSS*/.jiaobiao_color1{
        color:#fff;
        background-color:#03bbff;
    }
    .jiaobiao_color2{
        color:#fff;
        background-color:#ca26ff;
    }
    .jiaobiao_color3{
        color:#fff;
        background-color:#7bdcb5;
    }
    .jiaobiao_color4{
        color:#fff;
        background-color:#ff2a8e;
    }
    .jiaobiao_color5{
        color:#fff;
        background-color:#ff8f21;
    }
    .jiaobiao_color6{
        color:#fff;
        background-color:#10e396;
    }
    .tipss,.meta-post-type {
    position: absolute;
        top: 0px;
        right: -64px;
        z-index: 1;
        width: 150px;
        height: 22px;
        color: #fff;
        line-height: 25px;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        text-align: center;
        font-size: 12px;
    }
    .yellow {
        background-color: var(--b2color);
    }
    .sort {
        position: relative;
        z-index: 3;
        padding: 26px;
        background: #fff;
        /* border: 1px solid #797c80; */    /* -webkit-box-shadow: 0 40px 75px 0 rgba(57,60,67,.08); */    /* box-shadow: 0 40px 75px 0 rgba(57,60,67,.08); */    -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    .sort-config {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    .main {
        width: 1410px;
        margin: 0 auto;
        padding-bottom: 40px;
    }
    .sort-config>li {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        overflow: hidden;
        height: 100%;
    }
    .ibanner-tips-float {
        position: absolute;
        top: -70px;
        left: 1096px;
        z-index: 24;
    }
    .sort-config-item {
        display: block;
        height: 100%;
    }
    .sort-config-item img {
        float: left;
        width: 62px;
        height: 62px;
        margin-right: 12px;
    }
    .sort-config-title {
        line-height: 34px;
        font-size: 18px;
        font-weight: 600;
        color: #2d2d2d;
        -webkit-transition: .3s;
        transition: .3s;
    }
    .sort-config-desc {
        float: left;
        line-height: 22px;
        font-size: 14px;
        color: #8e8e8e;
    }
    .sort-blocks {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        height: 100%;
        margin-top: 35px;
    }
    .sort-blocks-item {
        position: relative;
        overflow: hidden;
        width: 214px;
        height: 100%;
        background: #f7f9fa;
        border-radius: 14px;
    }
    .sort-blocks-item .blocks-item-wrap {
        -webkit-transition: .3s;
        transition: .3s;
        -webkit-filter: none;
        filter: none;
    }
    .sort-blocks-icon {
        display: block;
        width: 60px;
        height: 47px;
        margin: 18px auto 15px;
        background-repeat: no-repeat;
        background-size: cover;
    }
    .sort-blocks-title {
        line-height: 22px;
        font-size: 22px;
        font-weight: 600;
        color: #2d2d2d;
        letter-spacing: 1px;
        text-align: center;
    }
    .sort-mine-wrap img {
        display: flex;
        width: auto;
    }
    .sort-config-title .go {
        border-radius: 4px;
        color: #ffffff;
        font-size: 13px;
        -webkit-transform: scale(.9);
        -ms-transform: scale(.9);
        transform: scale(.9);
        font-weight: normal;
        padding: 2px 5px;
        position: absolute;
        line-height: 15px;
        margin-left: 5px;
        cursor: pointer;
        text-transform: uppercase;
        vertical-align: middle;
        margin-top: 7px;
    }
    .sort-blocks-item .blocks-hover, .sort-blocks-item .blocks-hover-title {
        position: absolute;
        top: 0;
        width: 100%;
        color: #fff;
        text-align: center;
        line-height: 22px;
    }
    .sort-blocks-item .blocks-hover {
        left: 0;
        height: 100%;
        padding-top: 22px;
        font-size: 14px;
        background: rgba(0,0,0,.4);
        -webkit-transition: .3s;
        transition: .3s;
        opacity: 0;
    }
    .sort-blocks-item .blocks-hover-tit {
        line-height: 18px;
        font-size: 18px;
    }
    .sort-blocks-item .blocks-hover-line {
        width: 158px;
        height: 1px;
        margin: 12px auto 8px;
        background: -webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(30%,hsla(0,0%,100%,.7)),color-stop(70%,hsla(0,0%,100%,.7)),to(hsla(0,0%,100%,.1)));
        background: linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.7) 30%,hsla(0,0%,100%,.7) 70%,hsla(0,0%,100%,.1));
    }
    .srot-mine {
        position: relative;
        width: 376px;
        background: -webkit-gradient(linear,left top,right top,from(#fdf8eb),to(#feeec3));
        background: linear-gradient(90deg,#fdf8eb,#feeec3);
        height: 180px;
        box-shadow: 0 2px 5px 0 rgb(0 0 0 / 4%);
    }
    .srot-mine-bg {
        position: absolute;
        top: 13px;
        right: -13px;
        width: 118px;
        height: 78px;
        background: url(./Center/Assets/images/sort_zuanshi.png) no-repeat;
        background-size: cover;
    }
    .sort-mine-wrap {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        padding: 12px 16px 15px;
    }
    .srot-mine-tit {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        line-height: 25px;
    }
    .srot-mine-ava {
        width: 20px;
        height: 20px;
        border-radius: 50%;
    }
    .srot-mine-tit>span {
        margin-left: 9px;
        font-size: 15px;
        font-weight: 600;
        color: #613c14;
    }
    .srot-mine-vips {
        display: flex;
        -webkit-box-pack: justify;
        justify-content: space-between;
        width: 337px;
        margin: 15px 0px 5px;
    }
    .sort-vips-item {
        display: block;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        text-align: center;
    }
    .sort-vips-icon {
        display: block;
        width: 32px;
        height: 36px;
        margin: 0 auto;
        -webkit-transition: .3s;
        transition: .3s;
        margin-left: 30px;
    }
    .sort-vips-tit {
        margin: 15px 0px;
        line-height: 12px;
        font-size: 13px;
        color: #613c14;
        margin-left: 10px;
    }
    .sort-vips-tit2-kt {
        margin-top: 10px;
        line-height: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 25px;
        color: #ffffff;
        border-radius: 33px;
        margin-right: 10px;
        font-size: 14px;
        background-image: linear-gradient(90deg,#ffc046,#ff7d04);
        margin: 10px 0px 0px 9px;
    }
    .sort-vips-tit2-wk {
        margin-top: 10px;
        line-height: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 25px;
        color: #ffffff;
        border-radius: 33px;
        margin-right: 10px;
        font-size: 14px;
        opacity: 0.5;
        background: linear-gradient(to bottom, #323232 0%, #3F3F3F 40%, #1C1C1C 150%), linear-gradient(to top, rgba(255,255,255,0.40) 0%, rgba(0,0,0,0.25) 200%); background-blend-mode: multiply;
        margin: 10px 0px 0px 9px;
    }
    .bt-body {
        padding-bottom: 0px;
        background: transparent;
        width: calc(100% - 376px);
    }
    .b-boxs .video .s-pic{height: 189px;}
    .b-boxs .video .video-view {height: 186px;width: 337px; overflow: hidden; cursor: pointer;display: block;}
    .b-boxs .video:hover .video-view .img-none{display: none;}
    .b-boxs .video .video-view video{width: 337px;}
    .b-boxs .video:hover .video-view video{display: block;}
    .b-boxs .video .mark{height: 189px; display: none;}
    .b-boxs .video:hover .mark{display: none;}
    .b-boxs .video .v-down{
        position: absolute;
        top: 12px;
        left: 57%;
        z-index: 2;
        margin-left: 65px;
        padding-left: 21px;
        width: 45px;
        height: 31px;
        border-radius: 2px;
        background: url(./Center/Assets/images/video.png) -8px -77px no-repeat #007aff;
        color: #fff;
        font-size: 20px;
        font-size: 14px;
        line-height: 31px;
        opacity: 0;
        cursor: pointer;
        -moz-opacity: 0;
        -khtml-opacity: 0;
    }
    .b-boxs .video .v-down:hover {
        background: url() -5px -77px no-repeat #6e91e6;
    }
    .b-boxs .video .v-collect{
        width: 31px;
        height: 31px;
        line-height: 31px;
        position: absolute;
        left: 58%;
        top: 12px;
        margin-left: 23px;
        color: #333;
        font-size: 20px;
        border-radius: 2px;
        z-index: 2;
        background: url(./Center/Assets/images/video.png) -11px 5px no-repeat #fff;
        padding-left: 0px;
        cursor: pointer;
        filter: alpha(opacity=0);
        ilter: alpha(opacity=0);
        -moz-opacity: 0;
        -khtml-opacity: 0;
        opacity: 0;
        font-size: 17px;
        letter-spacing: 7px;
    }
    .b-boxs .video:hover .v-collect,.b-boxs .video:hover .v-down{
        filter: alpha(opacity=1);
        ilter: alpha(opacity=1);
        -moz-opacity: 1;
        -khtml-opacity: 1;
        opacity: 1;
    }
    .b-boxs .video .chosed{
        background: url(./Center/Assets/images/video.png) -11px -36px no-repeat #fff;
    }
    .b-boxs .video .title {
        position: absolute;
        bottom: 0px;
        left: 0px;
        width: 316px;
        height: 30px;
        line-height: 30px;
        color: #ffffff;
        text-align: left;
        z-index: 1;
        overflow: hidden;
        white-space: nowrap;
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
        font-size: 12px;
        background: #00000075;
        background-color: #1677ff00;
        background-image: linear-gradient(-90deg, #00000000, #000000);
    }
    .b-box .audio-box {
        width: 340px;
        height: 160px;
        float: left;
        margin-right: 16px;
        margin-bottom: 16px;
        margin-top: 0px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 0px 9px rgba(0,0,0,.1);
        background: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-radius: 10px;
    }
    .b-boxs .video:hover  .video-bq,.b-boxs .video:hover .title{
        display: none;
    }
    .b-boxs .video:hover .mc-bottom{
        display:none;
    }
    .b-boxs .video .mc-bottom{
        display: inline-block;
        position: absolute;
        width: 100%;
        height: 32%;
        left: 0;
        bottom: 0;
        background: #000;
        opacity: .4 \9 \0;
        background: -moz-linear-gradient(bottom, rgba(0, 0, 0, .4) 0, transparent 100%);
        background: -webkit-gradient(linear, bottom, top, color-stop(0, rgba(0, 0, 0, .4)), color-stop(100%, transparent));
        background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, .4) 0, transparent 100%);
        background: -o-linear-gradient(bottom, rgba(0, 0, 0, .4) 0, transparent 100%);
        background: -ms-linear-gradient(bottom, rgba(0, 0, 0, .4) 0, transparent 100%);
        background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, .4)), to(transparent));
        background: -webkit-gradient(linear, left bottom, left top, color-stop(0, rgba(0, 0, 0, .4)), to(transparent));
        background: -webkit-gradient(linear, left bottom, left top, color-stop(0, rgba(0, 0, 0, .4)), to(transparent));
        background: -webkit-gradient(linear, left bottom, left top, color-stop(0, rgba(0, 0, 0, .4)), to(transparent));
        background: -webkit-gradient(linear, left bottom, left top, color-stop(0, rgba(0, 0, 0, .4)), to(transparent));
        background: linear-gradient(to top, rgba(0, 0, 0, .4) 0, transparent 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#000000, endColorstr=#ffffff);
        -ms-filter: "progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#000000, endColorstr=#ffffff)";
    }
    .good-ppt {
        width: 100%;
    }
    .topic-title {
        height: 41px;
        color: #484747;
        text-align: left;
    }
    .wlimits {
        margin-right: -59px;
    }
    .topic-title .jptitle {
        display: inline-block;
        width: 280px;
        color: #000;
        letter-spacing: 2px;
        font-size: 24px;
    }
    .topic-title .jptitle .shiping {
        display: inline-block;
        width: 87px;
        height: 63px;
        background: url(../image/tb.png) 0px -345px no-repeat;
        vertical-align: -23px;
    }
    .topic-title ul {
        display: inline-block;
        float: right;
    }
    .topic-title ul li {
        display: inline-block;
    }
    .topic-title ul li a {
        display: inline-block;
        margin-right: 6px;
        padding: 0 10px;
        height: 35px;
        /* border: 1px solid #e5e5e5; */    /* background: #fff; */    color: #606060;
        font-size: 14px;
        line-height: 35px;
    }
    .topic-title ul li em {
        display: inline-block;
        height: 14px;
        width: 1px;
        background: #b7b7b7;
        vertical-align: -2px;
    }
    .b-boxs {
        margin-right: -16px;
        overflow: hidden;
    }
    .b-boxs .s-box {
        width: 337px;
        height: auto;
        float: left;
        margin-right: 19px;
        margin-bottom: 36px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 3px 9px rgba(0,0,0,.1);
        background: #ffffff;
    }
    .b-boxs .s-box .s-pic {
        width: 100%;
        height: 407px;
    }
    .lazy {
        display: block;
        width: 100%;
        height: 100%;
    }
    @media screen and (max-width: 768px){
    .flickity-enabled.is-draggable {
        margin-top: 0px;
    }
    }
    .b2-menu-4 .sub-menu-0 li ul a:hover {
        font-weight: 500; 
        border-radius: 3px;
        color: #ff416c;
    }
    .b2-menu-4 .sub-menu-0 li ul a {
        font-size: 16px;
        font-weight: 400;
        color: #333333;
        padding: 8px 0;
        display: flex;
        align-items: center;
        margin-top: 0px;
    }
    .containerrr { margin: 0px auto;width:100%; }
    @media screen and (max-width: 1366px) {
    .containerrr {
        margin: 0px auto;
        width: 830px;
    }
    .srot-mine {
        width: 355px;
    }
    }
    .containerrr .itemss a {
        display: inline-block;
        margin-right: 16px;
        width: calc(100% - 16px);
        height: 180px;
        text-align: center;
    }
    .card_ZQsT- {
        height: 192px;
        width: 128px;
        display: inline-block;
        vertical-align: top;
        cursor: pointer;
        white-space: normal;
        box-shadow: 0 2px 5px 0 rgb(0 0 0 / 4%);
        background: #FFFFFF;
        overflow: hidden;
        position: relative;
        box-sizing: border-box;
        padding: 0px 0 16px 0;
        margin-right: 16px;
        text-decoration: none;
        transition: all 0.3s;
    }
    .card_ZQsT-:hover {
        display: inline-block;
        vertical-align: top;
        cursor: pointer;
        white-space: normal;
        box-shadow: 0 2px 5px 0 rgb(0 0 0 / 4%);
        background: #FFFFFF;
        overflow: hidden;
        position: relative;
        box-sizing: border-box;
        padding: 0px 0 16px 0;
        margin-right: 16px;
        text-decoration: none;
        transform: translateY(-3px);
    }
    .card_img{
        display: block;
        height: 180px;
    }
    .card_ZQsT- .title_3qCGt {
        font-size: 14px;
        color: #222222;
        height: 35px;
        background-color: #fff;
        line-height: 35px;
        width: 100%;
        position: absolute;
        display: block;
        margin-top: -35px;
    }
    .card_ZQsT- img{
        height: 180px;
        width: 100%;
    }
    .card_ZQsT- .year-tag_3Iqeg {
        height: 19px;
        min-width: 52px;
        width: fit-content;
        max-width: 100%;
        overflow: hidden;
        position: absolute;
        top: 6px;
        left: 6px;
        text-align: center;
        line-height: 19px;
        font-size: 12px;
        color: #FFFFFF;
        box-sizing: border-box;
        padding: 0 8px;
        border-radius: 10px;
    }
    .huodong{background:#0693e3}
    .remen{background:#fcb900}
    .jingping{background:#cf2e2e}
    .guanggao{background:#00d084}
    .tuijain{background:#ff6900}
    .yuliu{background:#0693e3}
    .onecad-quk-carousel .itemss {
    white-space: nowrap;
    width: 100%;
    display: flex;
    -webkit-overflow-scrolling: touch;
        -webkit-box-pack: justify;
        -moz-box-pack: justify;
        justify-content: space-between;
    }
    .onecad-quk-carousel .itemss::-webkit-scrollbar {
    display: none;
    }
    #OneCAD .hotUser {
    margin-top: 20px;
    }
    #OneCAD .hotUser .hotUser-title {
    position: relative;
    margin-bottom: 15px;
    width: 1180px;
    }
    #Onecad_hotuser i.b2-vrenzhengguanli {
        position: static;
        bottom: -4px;
        right: -4px;
        font-weight: 400;
        line-height: 25px;
        background: #fff;
        border-radius: 100%;
        width: 25PX;
        height: 25px;
        display: inline-block;
        font-size: 25px;
        color: #ff3a55!important;
    }
    #OneCAD .hotUser h2 {
        font-size: 26px;
        font-weight: normal;
    }
    #OneCAD .hotUser-list {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    }
    #OneCAD .hotUser-list .itme {
    position: relative;
    width: 25%;
    padding-left: 15px;
    margin-bottom: 15px;
    text-align: center;
    }
    #OneCAD .hotUser-list .itme .user-vip {
    border-radius: 3px;
    display: inline-block;
    background: linear-gradient(180.03deg, #393F68 0%, #24263C 100%);
    padding: 3px 6px;
    font-size: 11px;
    line-height: 15px;
    height: auto;
    }
    #OneCAD .hotUser-list .itme>div {
    background-color: #fff;
    transition: all .3s;
    }
    #OneCAD .hotUser-list .itme:nth-child(4n) {
    margin-right: 0;
    }
    #OneCAD .hotUser-list .itme>div:hover {
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .05);
    box-shadow: 0 0 10px rgba(0, 0, 0, .05);
    -webkit-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    transform: translateY(-3px);
    }
    #OneCAD .hotUser-list .i-banner {
    position: relative;
    height: 120px;
    background: #ccc;
    }
    #OneCAD .hotUser-list .i-banner .i-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    }
    #OneCAD .hotUser-list .i-banner .avatar-wrap {
    position: absolute;
    left: 50%;
    bottom: 0;
    margin: -42px;
    }
    #OneCAD .hotUser-list .avatar-wrap img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    }
    #OneCAD .hotUser-list .itme .i-content {
    padding: 54px 8px 8px 8px;
    }
    #OneCAD .hotUser-list .itme .i-inline {
    height: 28px;
    line-height: 28px;
    white-space: nowrap;
    overflow: hidden;
    }
    #OneCAD .hotUser-list .itme .i-username {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    }
    #OneCAD .hotUser-list .itme .i-desc {
    display: inline-flex;
    font-size: 12px;
    background: #f3f3f3;
    padding: 5px 6px;
    margin: 10px 0;
    color: #606266;
    }
    #OneCAD .hotUser-list .itme .i-follow {
    font-size: 13px;
    margin-bottom: 10px;
    }
    #OneCAD .hotUser-list .itme .i-follow span {
    color: #909399;
    display: inline-block;
    position: relative;
    margin: 0 5px;
    }
    #OneCAD .hotUser-list .itme .i-follow span b {
    color: #333;
    font-weight: bold;
    margin: 0 3px;
    }
    #OneCAD .post-style-5-top {
        margin-top: 0;
    }
    /*首页N格样式代码结束*/
  • WordPress给网站添加一个聊天机器人

    效果图

    教程

    • 在主题的pages里新建一个php文件,然后把代码复制进去修改成自己想要的信息即可!
    <?php
    
    /**
     * Template name: XY - 关于本站
     * Description:   XY - 森巷鹿屿
     */
    
    // 添加聊天机器人
    get_header();
    ?>
    <style>
    
    </style>
    <link rel="stylesheet" type="text/css" href="../cdn/css/normalize.css" />
    <link rel="stylesheet" type="text/css" href="../cdn/css/demo.css">
    <link rel="stylesheet" href="../cdn/dist/botui.min.css" />
    <link rel="stylesheet" href="../cdn/dist/botui-theme-default.css" />
    <main role="main" class="container">
    <div class="zib-widget tens">
      <div class="htmleaf-content">
      <div class="botui-app-container" id="home-demo" style="min-height: 300px; padding: 2px 6px 4px; background-color: rgba(242, 242, 242, 0.5); border-radius: 10px;">
          <center><h4 style="font-weight: 700;">你正在与<a href="https://21lhz.cn">森屿</a>对话中...</h4></center>
          <bot-ui></bot-ui>
      </div>
    </div>
    <script type="text/javascript" src="../cdn/js/vue.min.js"></script>
    <script type="text/javascript" src="../cdn/dist/botui.min.js"></script>
    <script type="text/javascript">
      var homeBot = BotUI('home-demo');
      homeBot.message.add({
        content: 'Hi, 你好!?'
      }).then(function () {
        return homeBot.message.add({
          delay: 1500,
          content: '我是 森屿'
        });
      }).then(function () {
        return homeBot.message.add({
          delay: 1500,
          content: '我是这个网站的站长,一个可爱的蓝孩子~?'
        });
      }).then(function () {
        return homeBot.message.add({
          delay: 1500,
          content: '我是一名UI设计师,在业余时间玩一下网站!?'
        });
      }).then(function () {
        return homeBot.action.button({
          delay: 1000,
          action: [{
            text: ' 然后呢? ?',
            value: 'sure'
          }, {
            text: ' 少废话! ?',
            value: 'skip'
          }]
        });
      }).then(function (res) {
        if(res.value == 'sure') {
          tutorial();
        }
        if(res.value == 'skip') {
          end();
        }
      });
    
      var tutorial = function () {
        homeBot.message.add({
          delay: 1000,
          content: "?"
        }).then(function () {
          return homeBot.message.add({
            delay: 1000,
            content: '怎么称呼你呢?'
          });
        }).then(function () {
          return homeBot.message.add({
            delay: 1200,
            content: '你的名字(填写后按回车键)'
          });
        }).then(function () {
          return homeBot.action.text({
            delay: 800,
            action: {
              value: '森屿的小弟',
              placeholder: '填写你的名字'
            }
          });
        }).then(function (res) {
          return homeBot.message.bot({
            delay: 500,
            content: res.value + ' 是个好名字!'
          });
        }).then(function (res) {
          return homeBot.message.bot({
            delay: 1400,
            content:'你有什么想了解的吗?'
          });
        }).then(function () {
        return homeBot.action.button({
          delay: 1000,
          action: [{
            text: ' 你为什么会建这个网站呢? ?',
            value: 'sure'
          }, {
            text: ' 我没什么想了解的! ?',
            value: 'skip'
          }]
        });
      }).then(function (rea) {
        if(rea.value == 'sure') {
          tutorial2();
        }
        if(rea.value == 'skip') {
          end();
        }
      });};
      
      var tutorial2 = function () {
        homeBot.message.add({
          delay: 1000,
          content: '闲着无聊就想着拥有属于自己的网站,于是就创建“森巷鹿屿”,并且对代码格外感兴趣。'
        }).then(function () {
          return homeBot.message.bot({
            delay: 1000,
            content: '学习了一些前端语言、PHP等,现在正在学习C4D建模...'
          });
        }).then(function () {
          return homeBot.message.bot({
            delay: 1000,
            content: '非常喜欢折腾,热爱折腾,目前正在计算机一道上探索中。'
          });
        }).then(function () {
        return homeBot.action.button({
          delay: 1000,
          action: [{
            text: ' 为什么叫 森巷鹿屿 呢? ?',
            value: 'sure'
          }, {
            text: ' 好的!我知道了! ?',
            value: 'skip'
          }]
        });
      }).then(function (rea) {
        if(rea.value == 'sure') {
          tutorial3();
        }
        if(rea.value == 'skip') {
          end();
        }
      });};
      
      var tutorial3 = function () {
        homeBot.message.add({
          delay: 1000,
          content: 'emmm..玩游戏时用的游戏名称,觉得挺好听的,于是我就一直使用到现在!'
        }).then(function () {
        return homeBot.action.button({
          delay: 1000,
          action: [{
            text: '森屿这词是有什么含意吗?(ง •_•)ง',
            value: 'sure'
          }]
        });
      }).then(function (rea) {
        if(rea.value == 'sure') {
          tutorial4();
        }
      });};
       
       var tutorial4 = function () {
        homeBot.message.add({
          delay: 1000,
          content: '其实也没啥含意吧?就是觉得“森屿”这词给人一种很牛逼的感觉。'
        }).then(function () {
        return homeBot.action.button({
          delay: 1000,
          action: [{
            text: '你的网站采用什么进行搭建的?(╹ڡ╹ )',
            value: 'sure'
          }]
        });
        }).then(function (rea) {
        if(rea.value == 'sure') {
              tutorial5();
          }
        });};
        
        var tutorial5 = function () {
        homeBot.message.add({
          delay: 1000,
          content: '本站采用的是WordPress+子比主题来进行搭建与创作的。'
        }).then(function () {
          return homeBot.message.bot({
            delay: 1000,
            content: '最后非常感谢您光临本站,如果我的文章对您有所帮助的话,那么是我最大的荣幸 ?'
          });
        }).then(end);};
    
      var end = function () {
        homeBot.message.add({
          delay: 1000,
          content: '--------------------- 没有下文了哦 ---------------------'
        }).then(function () {
          return homeBot.message.bot({
            delay: 1000,
            content: '本站首页 <a href="https://www.liz0.top" style="color:#f00;">森巷鹿屿</a> 如果喜欢本站的话可以收藏一下哦!不喜欢的话也没关系,下次再喜欢吧!?'
          })
        });
      };
    </script>
    </div>
    </main>
    <?php
    get_footer();

    接下来就是css跟js了,已经打包好上传了,直接下载解压到根目录即可(你也可以解压到你喜欢的文件夹里,不过php里的css跟js引入路径记得修改)!

    资源下载

  • WordPress给子比主题添加自定义表情包

    截图

    第一步

    找到/wp-content/themes/zibll/inc/functions/文件夹,打开你的functions.php,并来到第1515行

    第二步

    把你想要加入的表情包名称像这样添加在里面

    • 注意
    • 只要名字!名字!名字!名字!不要扩展名
    • 添加完之后,保存文件。

    第三步

    文件改好了,接下来就是下载表情包图片了,切记你的图片一定要是.gif格式的,png不行(传下去,png他不行)

    把你下载的表情包放到这个文件夹,就OK了!

    使用事项

    • 子比主题表情默认大小为30px,所以别想着添加什么稀奇古怪的图片
    • 添加的表情包,在论坛同样适用
    • 尽量不要打开评论图片懒加载开关,很丑
    • 主题自带的表情可以删除(如果你不需要的话(/▽\)

    分类教程(进阶)

    第一步

    将原来的表情注释掉。

        //表情
        if ('smilie' == $type) {
            $emojy_type       = '';
            $but              = '<a class="but btn-input-expand input-smilie mr6" href="javascript:;"><i class="fa fa-fw fa-smile-o"></i><span class="hide-sm">表情</span></a>';
            $smilie_icon_args = array('aoman', 'baiyan', 'bishi', 'bizui', 'cahan', 'ciya', 'dabing', 'daku', 'deyi', 'doge', 'fadai', 'fanu', 'fendou', 'ganga', 'guzhang', 'haixiu', 'hanxiao', 'zuohengheng', 'zhuakuang', 'zhouma', 'zhemo', 'zhayanjian', 'zaijian', 'yun', 'youhengheng', 'yiwen', 'yinxian', 'xu', 'xieyanxiao', 'xiaoku', 'xiaojiujie', 'xia', 'wunai', 'wozuimei', 'weixiao', 'weiqu', 'tuosai', 'tu', 'touxiao', 'tiaopi', 'shui', 'se', 'saorao', 'qiudale', 'se', 'qinqin', 'qiaoda', 'piezui', 'penxue', 'nanguo', 'liulei', 'liuhan', 'lenghan', 'leiben', 'kun', 'kuaikule', 'ku', 'koubi', 'kelian', 'keai', 'jingya', 'jingxi', 'jingkong', 'jie', 'huaixiao', 'haqian', 'aini', 'OK', 'qiang', 'quantou', 'shengli', 'woshou', 'gouyin', 'baoquan', 'aixin', 'bangbangtang', 'xiaoyanger', 'xigua', 'hexie', 'pijiu', 'lanqiu', 'juhua', 'hecai', 'haobang', 'caidao', 'baojin', 'chi', 'dan', 'kulou', 'shuai', 'shouqiang', 'yangtuo', 'youling');
            $smilie_icon      = '';
            $img_url          = ZIB_TEMPLATE_DIRECTORY_URI . '/img/smilies/';
            $lazy_attr        = zib_is_lazy('lazy_other', true) ? 'class="lazyload" data-' : '';
            foreach ($smilie_icon_args as $smilie_i) {
                $smilie_icon .= '<a class="smilie-icon" href="javascript:;" data-smilie="' . $smilie_i . '"><img ' . $lazy_attr . 'src="' . $img_url . $smilie_i . '.gif" alt="[' . $smilie_i . ']" /></a>';
            }
                    $smilie_icon .= $but;
            $dropdown = '<div class="dropdown-smilie scroll-y mini-scrollbar">' . $smilie_icon . '</div>' . $but;
        }

    第二步

    这里说一下三种常见分类组合,

    1、自定义扩展名+文件夹分类。

    2、默认扩展名(gif)+文件夹分类。

    3、默认扩展名(gif)+默认文件夹(就是表情全部在一个文件夹里面)。

    1、自定义扩展名+文件夹分类

        //表情
        if ('smilie' == $type) {
            $but              = '<a class="but btn-input-expand input-smilie mr6" href="javascript:;"><i class="fa fa-fw fa-smile-o"></i><span class="hide-sm">表情</span></a>';
    // array变成二维数组,design:表情统称,suffix:表情格式后缀,name:就是原来的名字
            $smilie_icon_args = array(
                    array(
                            'design' => '经典',
                            'suffix' => '.gif',
                            'name' => array('aoman', 'baiyan', 'bishi', 'bizui', 'cahan', 'ciya', 'dabing', 'daku', 'deyi', 'doge', 'fadai', 'fanu', 'fendou', 'ganga', 'guzhang', 'haixiu', 'hanxiao', 'zuohengheng', 'zhuakuang', 'zhouma', 'zhemo', 'zhayanjian', 'zaijian', 'yun', 'youhengheng', 'yiwen', 'yinxian', 'xu', 'xieyanxiao', 'xiaoku', 'xiaojiujie', 'xia', 'wunai', 'wozuimei', 'weixiao', 'weiqu', 'tuosai', 'tu', 'touxiao', 'tiaopi', 'shui', 'se', 'saorao', 'qiudale', 'se', 'qinqin', 'qiaoda', 'piezui', 'penxue', 'nanguo', 'liulei', 'liuhan', 'lenghan', 'leiben', 'kun', 'kuaikule', 'ku', 'koubi', 'kelian', 'keai', 'jingya', 'jingxi', 'jingkong', 'jie', 'huaixiao', 'haqian', 'aini', 'OK', 'qiang', 'quantou', 'shengli', 'woshou', 'gouyin', 'baoquan', 'aixin', 'bangbangtang', 'xiaoyanger', 'xigua', 'hexie', 'pijiu', 'lanqiu', 'juhua', 'hecai', 'haobang', 'caidao', 'baojin', 'chi', 'dan', 'kulou', 'shuai', 'shouqiang', 'yangtuo', 'youling')
                    ),
                    array(
                            'design' => 'B站',
                            'suffix' => '.gif',
                            'name' => array('22_diyi','22_han','22_heshui','22_maimeng','22_tuhun','22_wuyan','22_ye','22_yiwen','33_chijing','33_daku','33_daxiao','33_kuhuo','33_nu','33_weiqv','33_yumen')
                    ),
                    array(
                            'design' => '不问天',
                            'suffix' => '.png',
                            'name' => array('x1','x2','x3','x4','x5','x6','x7','x8','x9','x10','x11','x12','x13')
                    ),
                    array(
                            'design' => '洛天依',
                            'suffix' => '.gif',
                            'name' => array('ty_ainio','ty_aojiao','ty_chibaoqunzhong','ty_chiyao','ty_dacall','ty_hhh','ty_huaji','ty_kanchuan','ty_keyi','ty_lengmo','ty_qianpai','ty_qvba','ty_wuyanyidui','ty_xianzhu','ty_xiaomieni','ty_yinyangxiansheng','ty_yiwen')
                    ),
                    array(
                            'design' => '罗小黑',
                            'suffix' => '.gif',
                            'name' => array('l_chigua','l_damai','l_ganbei','l_guzhang','l_hi','l_jiayou','l_kandianying','l_keai','l_laile','l_nihao','l_qiubaoyang','l_sahua','l_zaima','l_zhaocaidan','l_zilaishui')
                    ),
        );
            $smilie_icon      = '';
            $img_url          = ZIB_TEMPLATE_DIRECTORY_URI . '/img/smilies/';
            $lazy_attr        = zib_is_lazy('lazy_other', true) ? 'class="lazyload" data-' : '';
            $but_t            = '';
            foreach ($smilie_icon_args as $smilie_t){
                foreach ($smilie_t['name'] as $smilie_i) {
                    $smilie_icon .= '<a class="smilie-icon ' .$smilie_t['design']. ' d-smilie" href="javascript:;" data-smilie="' . $smilie_t['design'].'/'.$smilie_i.$smilie_t['suffix'] . '"><img ' . $lazy_attr . 'src="' . $img_url. $smilie_t['design'].'/' . $smilie_i .$smilie_t['suffix']. '" alt="[' . $smilie_i . ']" /></a>';
                }
                $but_t .= '<a class="but btn-input-expand input-smilie mr6" style="flex-shrink: 0;margin-bottom: 2px;margin-top: 2px;"onclick=\'$(".d-smilie").attr("style","display:none");$(".'.$smilie_t['design'].'").attr("style","display:inline-block")\' href="javascript:;""><span>'.$smilie_t['design'].'</span></a>';
            }
            $first='<script>$(".smilie-icon").attr("style","display:none");$(".'.$smilie_icon_args[0]['design'].'").attr("style","display:inline-block")</script>';
            $dropdown = '<div class="dropdown-smilie scroll-y mini-scrollbar" style="width:300px">' . $smilie_icon . '</div><div class="mini-scrollbar" style="display: flex;overflow-x: auto;overflow-y: hidden;width: 300px;">' . $but_t .$first. '</div>';
    }

    然后找到 inc\functions\message\class 文件夹,打开 message-class.php,大约在141行,你们看看是匹配正则表达式 g=.*? 什么的

    //ZIB_TEMPLATE_DIRECTORY_URI可以换成你的cdn链接            
    $con = preg_replace('/\[g=(.*?)\]/', '<img class="smilie-icon" src="'.ZIB_TEMPLATE_DIRECTORY_URI . '/img/smilies/$1">',$con);

    这里的 $1 原文拼接了 .gif 后缀,删除即可,因为在第一步的二维数组我们已经拼接了自定义后缀。

    最后找到 inc\functions 文件夹,打开 zib-comments-list.php ,大约在337行,还是那个正则表达式限制了后缀,和上一步同理

    $cont = preg_replace('/\[g=(.*?)\]/', '<img class="smilie-icon" src="'. ZIB_TEMPLATE_DIRECTORY_URI . '/img/smilies/$1" alt="表情[$1]' . zib_get_delimiter_blog_name() . '">', $cont);

    第一种就到这了

    2、默认扩展名(gif)+文件夹分类

        //表情
        if ('smilie' == $type) {
            $but              = '<a class="but btn-input-expand input-smilie mr6" href="javascript:;"><i class="fa fa-fw fa-smile-o"></i><span class="hide-sm">表情</span></a>';
    // array变成二维数组,design:表情统称,suffix:表情格式后缀,name:就是原来的名字
            $smilie_icon_args = array(
                    array(
                            'design' => '经典',
                            'suffix' => '.gif',
                            'name' => array('aoman', 'baiyan', 'bishi', 'bizui', 'cahan', 'ciya', 'dabing', 'daku', 'deyi', 'doge', 'fadai', 'fanu', 'fendou', 'ganga', 'guzhang', 'haixiu', 'hanxiao', 'zuohengheng', 'zhuakuang', 'zhouma', 'zhemo', 'zhayanjian', 'zaijian', 'yun', 'youhengheng', 'yiwen', 'yinxian', 'xu', 'xieyanxiao', 'xiaoku', 'xiaojiujie', 'xia', 'wunai', 'wozuimei', 'weixiao', 'weiqu', 'tuosai', 'tu', 'touxiao', 'tiaopi', 'shui', 'se', 'saorao', 'qiudale', 'se', 'qinqin', 'qiaoda', 'piezui', 'penxue', 'nanguo', 'liulei', 'liuhan', 'lenghan', 'leiben', 'kun', 'kuaikule', 'ku', 'koubi', 'kelian', 'keai', 'jingya', 'jingxi', 'jingkong', 'jie', 'huaixiao', 'haqian', 'aini', 'OK', 'qiang', 'quantou', 'shengli', 'woshou', 'gouyin', 'baoquan', 'aixin', 'bangbangtang', 'xiaoyanger', 'xigua', 'hexie', 'pijiu', 'lanqiu', 'juhua', 'hecai', 'haobang', 'caidao', 'baojin', 'chi', 'dan', 'kulou', 'shuai', 'shouqiang', 'yangtuo', 'youling')
                    ),
                    array(
                            'design' => 'B站',
                            'suffix' => '.gif',
                            'name' => array('22_diyi','22_han','22_heshui','22_maimeng','22_tuhun','22_wuyan','22_ye','22_yiwen','33_chijing','33_daku','33_daxiao','33_kuhuo','33_nu','33_weiqv','33_yumen')
                    ),
                    array(
                            'design' => '洛天依',
                            'suffix' => '.gif',
                            'name' => array('ty_ainio','ty_aojiao','ty_chibaoqunzhong','ty_chiyao','ty_dacall','ty_hhh','ty_huaji','ty_kanchuan','ty_keyi','ty_lengmo','ty_qianpai','ty_qvba','ty_wuyanyidui','ty_xianzhu','ty_xiaomieni','ty_yinyangxiansheng','ty_yiwen')
                    ),
                    array(
                            'design' => '罗小黑',
                            'suffix' => '.gif',
                            'name' => array('l_chigua','l_damai','l_ganbei','l_guzhang','l_hi','l_jiayou','l_kandianying','l_keai','l_laile','l_nihao','l_qiubaoyang','l_sahua','l_zaima','l_zhaocaidan','l_zilaishui')
                    ),
        );
            $smilie_icon      = '';
            $img_url          = ZIB_TEMPLATE_DIRECTORY_URI . '/img/smilies/';
            $lazy_attr        = zib_is_lazy('lazy_other', true) ? 'class="lazyload" data-' : '';
            $but_t            = '';
            foreach ($smilie_icon_args as $smilie_t){
                foreach ($smilie_t['name'] as $smilie_i) {
                    $smilie_icon .= '<a class="smilie-icon ' .$smilie_t['design']. ' d-smilie" href="javascript:;" data-smilie="' . $smilie_t['design'].'/'.$smilie_i. '"><img ' . $lazy_attr . 'src="' . $img_url. $smilie_t['design'].'/' . $smilie_i . '" alt="[' . $smilie_i . ']" /></a>';
                }
                $but_t .= '<a class="but btn-input-expand input-smilie mr6" style="flex-shrink: 0;margin-bottom: 2px;margin-top: 2px;"onclick=\'$(".d-smilie").attr("style","display:none");$(".'.$smilie_t['design'].'").attr("style","display:inline-block")\' href="javascript:;""><span>'.$smilie_t['design'].'</span></a>';
            }
            $first='<script>$(".smilie-icon").attr("style","display:none");$(".'.$smilie_icon_args[0]['design'].'").attr("style","display:inline-block")</script>';
            $dropdown = '<div class="dropdown-smilie scroll-y mini-scrollbar" style="width:300px">' . $smilie_icon . '</div><div class="mini-scrollbar" style="display: flex;overflow-x: auto;overflow-y: hidden;width: 300px;">' . $but_t .$first. '</div>';
    }

    3、默认扩展名(gif)+默认文件夹

        //表情
        if ('smilie' == $type) {
            $but              = '<a class="but btn-input-expand input-smilie mr6" href="javascript:;"><i class="fa fa-fw fa-smile-o"></i><span class="hide-sm">表情</span></a>';
    // array变成二维数组,design:表情统称,suffix:表情格式后缀,name:就是原来的名字
            $smilie_icon_args = array(
                    array(
                            'design' => '经典',
                            'suffix' => '.gif',
                            'name' => array('aoman', 'baiyan', 'bishi', 'bizui', 'cahan', 'ciya', 'dabing', 'daku', 'deyi', 'doge', 'fadai', 'fanu', 'fendou', 'ganga', 'guzhang', 'haixiu', 'hanxiao', 'zuohengheng', 'zhuakuang', 'zhouma', 'zhemo', 'zhayanjian', 'zaijian', 'yun', 'youhengheng', 'yiwen', 'yinxian', 'xu', 'xieyanxiao', 'xiaoku', 'xiaojiujie', 'xia', 'wunai', 'wozuimei', 'weixiao', 'weiqu', 'tuosai', 'tu', 'touxiao', 'tiaopi', 'shui', 'se', 'saorao', 'qiudale', 'se', 'qinqin', 'qiaoda', 'piezui', 'penxue', 'nanguo', 'liulei', 'liuhan', 'lenghan', 'leiben', 'kun', 'kuaikule', 'ku', 'koubi', 'kelian', 'keai', 'jingya', 'jingxi', 'jingkong', 'jie', 'huaixiao', 'haqian', 'aini', 'OK', 'qiang', 'quantou', 'shengli', 'woshou', 'gouyin', 'baoquan', 'aixin', 'bangbangtang', 'xiaoyanger', 'xigua', 'hexie', 'pijiu', 'lanqiu', 'juhua', 'hecai', 'haobang', 'caidao', 'baojin', 'chi', 'dan', 'kulou', 'shuai', 'shouqiang', 'yangtuo', 'youling')
                    ),
                    array(
                            'design' => 'B站',
                            'suffix' => '.gif',
                            'name' => array('22_diyi','22_han','22_heshui','22_maimeng','22_tuhun','22_wuyan','22_ye','22_yiwen','33_chijing','33_daku','33_daxiao','33_kuhuo','33_nu','33_weiqv','33_yumen')
                    ),
                    array(
                            'design' => '洛天依',
                            'suffix' => '.gif',
                            'name' => array('ty_ainio','ty_aojiao','ty_chibaoqunzhong','ty_chiyao','ty_dacall','ty_hhh','ty_huaji','ty_kanchuan','ty_keyi','ty_lengmo','ty_qianpai','ty_qvba','ty_wuyanyidui','ty_xianzhu','ty_xiaomieni','ty_yinyangxiansheng','ty_yiwen')
                    ),
                    array(
                            'design' => '罗小黑',
                            'suffix' => '.gif',
                            'name' => array('l_chigua','l_damai','l_ganbei','l_guzhang','l_hi','l_jiayou','l_kandianying','l_keai','l_laile','l_nihao','l_qiubaoyang','l_sahua','l_zaima','l_zhaocaidan','l_zilaishui')
                    ),
        );
            $smilie_icon      = '';
            $img_url          = ZIB_TEMPLATE_DIRECTORY_URI . '/img/smilies/';
            $lazy_attr        = zib_is_lazy('lazy_other', true) ? 'class="lazyload" data-' : '';
            $but_t            = '';
            foreach ($smilie_icon_args as $smilie_t){
                foreach ($smilie_t['name'] as $smilie_i) {
                    $smilie_icon .= '<a class="smilie-icon ' .$smilie_t['design']. ' d-smilie" href="javascript:;" data-smilie="'.$smilie_i. '"><img ' . $lazy_attr . 'src="' . $img_url.'/' . $smilie_i . '" alt="[' . $smilie_i . ']" /></a>';
                }
                $but_t .= '<a class="but btn-input-expand input-smilie mr6" style="flex-shrink: 0;margin-bottom: 2px;margin-top: 2px;"onclick=\'$(".d-smilie").attr("style","display:none");$(".'.$smilie_t['design'].'").attr("style","display:inline-block")\' href="javascript:;""><span>'.$smilie_t['design'].'</span></a>';
            }
            $first='<script>$(".smilie-icon").attr("style","display:none");$(".'.$smilie_icon_args[0]['design'].'").attr("style","display:inline-block")</script>';
            $dropdown = '<div class="dropdown-smilie scroll-y mini-scrollbar" style="width:300px">' . $smilie_icon . '</div><div class="mini-scrollbar" style="display: flex;overflow-x: auto;overflow-y: hidden;width: 300px;">' . $but_t .$first. '</div>';
    }

    修订记录

    2022.07.28

    1、更新失效链接

    2022.09.05

    1、增加@柒辞提供的分类方法

    2、增加AC娘、嘉然表情包

    2023.01.31

    1、修正分类方法的语法错误,原文是没有的,是我的问题。

    2023.03.04

    1、修复选择分类时评论区表情消失的bug

    2、修复多个分类时自动换行的bug

    其他表情下载

    2233娘

    下载地址

    下面的文件名直接添加到functions.php

    '22_diyi','22_han','22_heshui','22_maimeng','22_tuhun','22_wuyan','22_ye','22_yiwen','33_chijing','33_daku','33_daxiao','33_kuhuo','33_nu','33_weiqv','33_yumen'

    洛天依

    下载地址

    下面的文件名直接添加到functions.php

    'ty_ainio','ty_aojiao','ty_chibaoqunzhong','ty_chiyao','ty_dacall','ty_hhh','ty_huaji','ty_kanchuan','ty_keyi','ty_lengmo','ty_qianpai','ty_qvba','ty_wuyanyidui','ty_xianzhu','ty_xiaomieni','ty_yinyangxiansheng','ty_yiwen'

    罗小黑

    下载地址

    下面的文件名直接添加到functions.php

    'l_chigua','l_damai','l_ganbei','l_guzhang','l_hi','l_jiayou','l_kandianying','l_keai','l_laile','l_nihao','l_qiubaoyang','l_sahua','l_zaima','l_zhaocaidan','l_zilaishui'