在V1.3版本更新以后,我们的主题就支持了二次开发功能。
注意:使用在线更新 ZbApe子主题的时候,你二开的内容会被覆盖,我们强烈建议 你手动更新
开发教程
1.安装ZbApe子主题1.6及以上版本以后会在菜单栏出现
2.打开ZbApe子主题1.6及以上版本,开发路径为(
<?php
/*
* @Author : ZbApe
* @Url : ZbApe.com
* @Date : 2022-10-02 18:08:54
* @LastEditTime: 2022-08-01 18:08:54
* @Email : dhp110623@163.com
* @Project : ZbApe
* @Description : 一款极其优雅的Zibll子主题
* @Read me : 感谢您使用ZbApe,主题源码有详细的注释,支持二次开发。
* @Remind : 使用盗版主题会存在各种未知风险。支持正版,从我做起!
*/
$prefix = 'zbape_options';
CSF::createSection( $prefix, array(
'parent' => 'cover',
'title' => '全局设置',
'icon' => 'fa fa-forumbee',
'description' => '',
'fields' => array(
array(
'type' => 'submessage',
'style' => 'warning',
'content' => '<h3 style="color:#fd4c73;"><i class="fa fa-heart fa-fw"></i> 感谢您使用ZbApe子主题</h3>
<p>ZbApe子主题是一款良心、厚道的好产品!创作不易,支持正版,从我做起!</p>
<div style="margin:10px 14px;"><li>子主题官网:<a target="_bank" href="https://www.zbape.com/">https://zbape.com</a></li>
<li>作者联系方式:<a target="_bank" href="http://wpa.qq.com/msgrd?v=3&uin=1660047787&site=qq&menu=yes">QQ 1660047787</a></li>
</div>',
),
)
) );
CSF::createSection(
$prefix,
array(
'parent' => 'cover',
'title' => '其它设置',
'icon' => 'fa fa-delicious',
'description' => '',
'fields' => array(
array(
'type' => 'submessage',
'style' => 'warning',
'content' => '<h3 style="color:#fd4c73;"><i class="fa fa-heart fa-fw"></i> 感谢您使用ZbApe子主题</h3>
<p>ZbApe子主题是一款良心、厚道的好产品!创作不易,支持正版,从我做起!</p>
<div style="margin:10px 14px;"><li>子主题官网:<a target="_bank" href="https://www.zbape.com/">https://zbape.com</a></li>
<li>作者联系方式:<a target="_bank" href="http://wpa.qq.com/msgrd?v=3&uin=1660047787&site=qq&menu=yes">QQ 1660047787</a></li>
</div>',
),
)
) );
各位可以在此文件夹进行开发
3.新增的代码需添加在(
这样即可实现通过开关来控制各种美化,各种功能。注意:
开关功能不会写请参考(
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容