<?php
$prefix = 'zibll_options';
function zib_csf_admin_options()
{
//只有后台才执行此代码
if (!is_admin()) {
return;
}
$prefix = 'zibll_options';
$imagepath = get_template_directory_uri() . '/img/';
$f_imgpath = get_template_directory_uri() . '/inc/csf-framework/assets/images/';
$new_badge = zib_get_csf_option_new_badge();
//开始构建
CSF::createOptions($prefix, array(
'menu_title' => 'Zibll主题设置',
'menu_slug' => 'zibll_options',
'framework_title' => '子比主题',
'show_in_customizer' => true, //在wp-customize中也显示相同的选项
'footer_text' => '更优雅的wordpress主题-Zibll主题 V' . wp_get_theme()['Version'],
'footer_credit' => '<i class="fa fa-fw fa-heart-o" aria-hidden="true"></i> ',
'theme' => 'light',
));
CSF::createSection($prefix, array(
'id' => 'basic',
'title' => '全局&功能',
'icon' => 'fa fa-fw fa-bullseye',
));
CSF::createSection($prefix, array(
'id' => 'page',
'title' => '页面&显示',
'icon' => 'fa fa-fw fa-calendar-check-o',
));
CSF::createSection($prefix, array(
'id' => 'post',
'title' => '文章&列表',
'icon' => 'fa fa-fw fa-map-o',
));
CSF::createSection($prefix, array(
'id' => 'cap',
'title' => '功能&权限',
'icon' => 'fa fa-fw fa-shield',
));
CSF::createSection($prefix, array(
'id' => 'user',
'title' => '用户&互动',
'icon' => 'fa fa-fw fa-user-o',
));
CSF::createSection($prefix, array(
'id' => 'pay',
'title' => '商城&付费',
'icon' => 'fa fa-fw fa-cart-plus',
));
CSF::createSection($prefix, array(
'id' => 'forum',
'title' => '社区&论坛',
'icon' => 'fa fa-fw fa-grav',
));
CSF::createSection($prefix, array(
'id' => 'over',
'title' => '扩展&增强',
'icon' => 'fa fa-fw fa-puzzle-piece',
));
//图片设置
CSF::createSection($prefix, array(
'parent' => 'basic',
'title' => 'LOGO图像',
'icon' => 'fa fa-fw fa-image',
'description' => '',
'fields' => array(
array(
'title' => __('网站图标', 'zib_language'),
'id' => 'favicon',
'desc' => __('自定义网站图标,也就是favicon.ico(建议48x48)'),
'default' => $imagepath . 'favicon.png',
'preview' => true,
'library' => 'image', 'type' => 'upload',
),
array(
'title' => __('桌面图标', 'zib_language'),
'id' => 'iconpng',
'desc' => __('桌面图标,建议148x148(苹果手机添加到桌面的图标)'),
'default' => $imagepath . 'icon.png',
'preview' => true,
'library' => 'image', 'type' => 'upload',
),
array(
'title' => __('网站Logo', 'zib_language'),
'subtitle' => __('日间主题', 'zib_language'),
'id' => 'logo_src',
'desc' => __('显示在顶部的Logo 建议高度60px,请使用png格式的透明图片', 'zib_language'),
'help' => '如果单张LOGO图能同时适应日间和夜间主题,则仅设置日间主题的logo即可(推荐这样设置)',
'default' => $imagepath . 'logo.png',
'preview' => true,
'library' => 'image',
'type' => 'upload',
),
array(
'title' => __('网站Logo', 'zib_language'),
'subtitle' => __('夜间主题', 'zib_language'),
'id' => 'logo_src_dark',
'class' => 'compact',
'default' => $imagepath . 'logo_dark.png',
'preview' => true,
'library' => 'image', 'type' => 'upload',
),
),
));
//SEO优化
CSF::createSection($prefix, array(
'parent' => 'basic',
'title' => 'SEO优化' . $new_badge['6.5'],
'icon' => 'fa fa-fw fa-superpowers',
'description' => '',
'fields' => array(
array(
'title' => __('核心SEO优化', 'zib_language'),
'subtitle' => __('文章、页面独立SEO设置', 'zib_language'),
'id' => 'post_keywords_description_s',
'desc' => '开启后会自动为所有页面设置SEO标题、关键词、简介等内容<div style=" color: #f1620f; ">如果您使用了SEO插件且不需要主题添加SEO标题、关键词、简介等内容,可以选择关闭此处</div>',
'type' => "switcher",
'default' => true,
),
array(
'title' => __('SEO连接符', 'zib_language'),
'id' => 'connector',
'desc' => __('SEO标题连接符(一般为“-”或“_”或者“|”)', 'zib_language'),
'default' => '-',
'type' => 'text',
),
array(
'id' => 'hometitle',
'title' => __('网站SEO', 'zib_language'),
'subtitle' => 'SEO标题(title)',
'placeholder' => '自定义网站的SEO标题(title)',
'help' => '站点一句话有吸引力的标题,建议25—35字,如果未设置,则采用“站点标题+副标题”',
'default' => '',
'attributes' => array(
'rows' => 2,
),
'sanitize' => false,
'type' => 'textarea',
),
array(
'id' => 'keywords',
'title' => ' ',
'subtitle' => __('SEO关键字(keywords)', 'zib_language'),
'placeholder' => '自定义网站的SEO关键字(keywords)',
'help' => '关键字有利于SEO优化,建议个数在5-8个之间,用英文逗号隔开',
'default' => '',
'class' => 'compact',
'attributes' => array(
'rows' => 2,
),
'sanitize' => false,
'type' => 'textarea',
),
array(
'id' => 'description',
'title' => ' ',
'subtitle' => __('SEO描述(description)', 'zib_language'),
'placeholder' => __('自定义网站的SEO描述(description)', 'zib_language'),
'class' => 'compact',
'help' => '介绍、描述您的网站,建议字数在40-70之间',
'default' => '',
'attributes' => array(
'rows' => 3,
),
'sanitize' => false,
'type' => 'textarea',
),
array(
'id' => 'zib_baidu_push_js',
'title' => __('百度SEO', 'zib_language'),
'subtitle' => __('全站链接自动提交', 'zib_language'),
'desc' => '采用百度最新自动提交接口,无需其他设置。开启后自动将网站所有链接推送到百度,可提高收录速度。<br>官方文档:https://ziyuan.baidu.com/college/courseinfo?id=267&page=2#h2_article_ti
没有合适的资源?快使用搜索试试~ 我知道了~
zibll子比主题6.7用户徽章功能详解及配置教程[V6.7新功能].zip
共2000个文件
php:1644个
css:779个
js:612个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 174 浏览量
2023-06-25
09:48:25
上传
评论
收藏 31.32MB ZIP 举报
温馨提示
用户徽章功能是现在很多社交类网站和app必不可少的功能了,能有效的增加网站交互的趣味性。 zibll子比主题V6.7就更新了用户徽章功能,接下来我们就来了解一下这个功能。 首先我们简单的了解一下用户徽章功能的特色 支持添加并排序任意数量的徽章分类、徽章 所有的徽章均可自定义名称、简介、图标以及获取方式 用户自定义设置主要佩戴徽章(默认佩戴最新获取的) 支持手动赋予用户徽章功能,方便实现限定徽章、活动徽章等功能 系统支持10多种自动判断达标获取徽章的类型设置 主题自带了一套徽章参数,覆盖了常用徽章,包含30个徽章图标,减低站长首次配置的难度,特别是绘图
资源推荐
资源详情
资源评论
收起资源包目录
zibll子比主题6.7用户徽章功能详解及配置教程[V6.7新功能].zip (2000个子文件)
ca-bundle.crt 228KB
main.css 154KB
style.css 137KB
style-rtl.css 137KB
style.css 123KB
style-rtl.css 123KB
bootstrap.css 120KB
style-rtl.min.css 119KB
style.min.css 119KB
main.min.css 116KB
bootstrap.min.css 112KB
style.min.css 103KB
style-rtl.min.css 103KB
style.css 101KB
bootstrap.min.css 100KB
style-rtl.css 100KB
style.min.css 87KB
style-rtl.min.css 87KB
style.css 81KB
animate.css 79KB
editor.css 72KB
common-rtl.css 72KB
editor-rtl.css 72KB
common.css 72KB
customize-controls-rtl.css 69KB
customize-controls.css 68KB
enlighterjs.css 67KB
style.min.css 64KB
dashicons.css 61KB
editor-rtl.min.css 60KB
editor.min.css 60KB
dashicons.min.css 58KB
customize-controls-rtl.min.css 57KB
customize-controls.min.css 57KB
animate.min.css 57KB
media-views-rtl.css 56KB
media-views.css 56KB
style-rtl.css 56KB
style.css 56KB
enlighterjs.min.css 55KB
common-rtl.min.css 54KB
common.min.css 54KB
style.css 53KB
style-rtl.css 53KB
style-rtl.min.css 47KB
style.min.css 47KB
media-views-rtl.min.css 45KB
media-views.min.css 45KB
style-rtl.min.css 44KB
style.min.css 44KB
skin.min.css 43KB
list-tables-rtl.css 41KB
themes-rtl.css 41KB
list-tables.css 41KB
themes.css 41KB
edit-rtl.css 37KB
edit.css 37KB
list-tables-rtl.min.css 33KB
list-tables.min.css 33KB
forms-rtl.css 33KB
forms.css 32KB
editor-rtl.css 32KB
editor.css 32KB
themes-rtl.min.css 32KB
themes.min.css 32KB
font-awesome.min.css 30KB
style-rtl.css 29KB
style.css 29KB
dashboard-rtl.css 29KB
dashboard.css 29KB
edit-rtl.min.css 29KB
edit.min.css 29KB
about-rtl.css 29KB
about.css 29KB
editor-rtl.min.css 27KB
editor.min.css 27KB
main.css 26KB
forms-rtl.min.css 25KB
forms.min.css 25KB
style-rtl.css 25KB
style.css 25KB
media-rtl.css 25KB
media.css 25KB
admin-bar-rtl.css 24KB
admin-bar.css 24KB
style-rtl.min.css 24KB
style.min.css 24KB
about-rtl.min.css 23KB
about.min.css 23KB
dashboard.min.css 22KB
dashboard-rtl.min.css 22KB
customize-nav-menus-rtl.css 21KB
customize-nav-menus.css 21KB
editor-style.css 21KB
colors-rtl.css 20KB
colors.css 20KB
colors-rtl.css 20KB
colors.css 20KB
colors-rtl.css 20KB
colors.css 20KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
阿星先森
- 粉丝: 154
- 资源: 1453
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功