Warning: Undefined array key "night" in /www/wwwroot/dhaomu.com/wp-content/themes/b2/header.php on line 18

AllsitePasswd 全站密码访问插件 支持自定义主题模板

简介:

AllsitePasswd 是一款启用全站密码访问插件,支持自定义主题模板:@呆滞

欢迎 fork,start

说明:

插件默认自带一套模板

用户可以自定义模板,把你的HTML模板文件放进theme文件夹,html起名叫index.html

但注意引用图片,css,js等文件时需要使用绝对路径。

比如:

-AllsitePasswd

|- theme

   |- css/a.css

   |- js/b.js

   |- index.html

这个时候 index.html 里面引入a.css的路径为

/usr/plugins/AllsitePasswd/theme/css/a.css

同样引入 js 路径为

/usr/plugins/AllsitePasswd/theme/js/b.js

在 html 文件中可以用的替代变量,只需要把html对应位置换成以下变量即可。只针对 index.html 有效:@鼓掌。

'{theme_base_path}',// 绝对路径,指向 /usr/plugins/AllsitePasswd/theme/

'{str_word}', // 后台配置的提示文字

'{url_pic}', // 后台配置的提示图片

'{err_msg}',// 密码错误输出消息

'{form_action}',// form表单提交的 url ,也就是 action='{form_action}'

'{input_placeholder}',// 后台配置的输入框提示

'{submit_text}',// 后台配置的提交按钮

'{commic_pic}' // 插件自带的动漫图 api,比如:<img src="{commic_pic}">

还有就是输入密码那个 input 的name属性:

name="index_passwd"

举个栗子:&蛆音疑惑蛆音疑惑:

<form action="{form_action}">

<input name="index_passwd" type="password" placeholder="{input_placeholder}" />

<input type="submit" value="{submit_text}">

</form>

图片:AllsitePasswd 全站密码访问插件 支持自定义主题模板插图

温馨提示:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

给TA赞赏
共{{data.count}}人
人已赞赏
未整理

【系统提升】学地道英文读商业秘籍

2021-5-31 0:00:00

未整理

乘风广告联盟系统 v6.7

2021-6-2 0:00:00

0 条回复 A文章作者 M管理员

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914
----《》
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索