<?php if ( ! defined( 'ABSPATH' ) ) { die; }
$prefix = 'io_get_option';
CSF::createOptions( $prefix, array(
'framework_title' => 'WebStack Pro <small>V'.wp_get_theme()->get('Version').'</small> <span style="font-size:12px">请前往 <a href="'.home_url().'/wp-admin/index.php">仪表盘</a> 仔细阅读使用说明,谢谢!</span>',
'menu_title' => __('主题设置','csf'),
'menu_slug' => 'theme_settings',
'menu_position' => 59,
'ajax_save' => true,
'show_bar_menu' => false,
'theme' => 'dark',
'show_search' => true,
'footer_text' => esc_html__('运行在', 'io_setting' ).': WordPress '. get_bloginfo('version') .' / PHP '. PHP_VERSION,
'footer_credit' => '感谢您使用 <a href="https://www.iowen.cn/" target="_blank">一为</a>的WordPress主题',
));
// 所有文章分类ID
function get_cats_id(){
if( ! is_admin() ) { return; }
$cats_id = '';
$categories = get_categories(array('hide_empty' => 0));
foreach ($categories as $cat) {
$cats_id .= '<span style="margin-right: 15px;">'.$cat->cat_name.' [ '.$cat->cat_ID.' ]</span>';
}
return $cats_id;
}
// 获取自定义文章父分类
if(!function_exists('get_all_taxonomy')){
function get_all_taxonomy(){
if( ! is_admin() ) { return; }
$term_query = new WP_Term_Query( array(
'taxonomy' => array('favorites','apps'),
'hide_empty' => false,
));
$customize = array();
if ( ! empty( $term_query->terms ) ) {
foreach ( $term_query ->terms as $term ) {
if($term->parent == 0)
$customize["id_".$term->term_id] = $term->name;
}
}
return $customize;
}
}
//
// 图标设置
//
CSF::createSection( $prefix, array(
'title' => __('图标设置','io_setting'),
'icon' => 'fa fa-star',
'description' => __('网站LOGO和Favicon设置','io_setting'),
'fields' => array(
array(
'id' => 'logo_normal',
'type' => 'media',
'title' => 'Logo',
'add_title' => __('上传','io_setting'),
'after' => '<p class="cs-text-muted">'.__('建议高80px,长小于360px','io_setting'),
'default' => array(
'url' => get_theme_file_uri( '/images/logo@2x.png'),
'thumbnail' => get_theme_file_uri( '/images/logo@2x.png'),
),
),
array(
'id' => 'logo_normal_light',
'type' => 'media',
'title' => __('亮色主题Logo','io_setting'),
'add_title' => __('上传','io_setting'),
'after' => '<p class="cs-text-muted">'.__('建议高80px,长小于360px','io_setting'),
'default' => array(
'url' => get_theme_file_uri('/images/logo_l@2x.png'),
'thumbnail' => get_theme_file_uri('/images/logo_l@2x.png'),
),
),
array(
'id' => 'logo_small',
'type' => 'media',
'title' => __('方形 Logo','io_setting'),
'add_title' => __('上传','io_setting'),
'after' => '<p class="cs-text-muted">'.__('建议 80x80','io_setting'),
'default' => array(
'url' => get_theme_file_uri('/images/logo-collapsed@2x.png'),
'thumbnail' => get_theme_file_uri('/images/logo-collapsed@2x.png'),
),
),
array(
'id' => 'logo_small_light',
'type' => 'media',
'title' => __('亮色主题方形 Logo','io_setting'),
'add_title' => __('上传','io_setting'),
'after' => '<p class="cs-text-muted">'.__('建议 80x80','io_setting'),
'default' => array(
'url' => get_theme_file_uri('/images/logo-dark_collapsed@2x.png'),
'thumbnail' => get_theme_file_uri('/images/logo-dark_collapsed@2x.png'),
),
),
array(
'id' => 'favicon',
'type' => 'media',
'title' => __('上传 Favicon','io_setting'),
'add_title' => __('上传','io_setting'),
'default' => array(
'url' => get_theme_file_uri('/images/favicon.png'),
'thumbnail' => get_theme_file_uri('/images/favicon.png'),
),
),
array(
'id' => 'apple_icon',
'type' => 'media',
'title' => __('上传 apple_icon','io_setting'),
'add_title' => __('上传','io_setting'),
'default' => array(
'url' => get_theme_file_uri('/images/app-ico.png'),
'thumbnail' => get_theme_file_uri('/images/app-ico.png'),
),
),
)
));
//
// 主题颜色
//
CSF::createSection( $prefix, array(
'title' => __('颜色效果','io_setting'),
'icon' => 'fa fa-tachometer',
'fields' => array(
array(
'id' => 'theme_mode',
'type' => 'radio',
'title' => __('颜色主题','io_setting'),
'default' => 'io-white-mode',
'inline' => true,
'options' => array(
'io-black-mode' => __('暗色','io_setting'),
'io-white-mode' => __('黑白','io_setting'),
'io-grey-mode' => __('亮灰','io_setting'),
),
'after' => __('如果在前台通过“主题切换开关”手动切换主题,此设置无效,或者清除浏览器cookie才能生效','io_setting')
),
array(
'id' => 'loading_fx',
'type' => 'switcher',
'title' => __('全屏加载效果','io_setting'),
'default' => false,
),
array(
'id' => 'custom_color',
'type' => 'switcher',
'title' => __('自定义颜色','io_setting'),
'default' => false,
),
array(
'id' => 'bnt_c',
'type' => 'color_group',
'title' => '按钮颜色',
'options' => array(
'color' => '默认颜色',
'color-t' => '默认文字颜色',
'hover' => 'hover 颜色',
'hover-t' => 'hover 文字颜色',
),
'default' => array(
'color' => '#f1404b',
'color-t' => '#ffffff',
'hover' => '#14171B',
'hover-t' => '#ffffff',
),
'dependency' => array( 'custom_color', '==', true )
),
array(
'id' => 'link_c',
'type' => 'link_color',
'title' => '文章 a 链接颜色',
'default' => array(
'color' => '#f1404b',
'hover' => '#f9275f',
),
'dependency' => array( 'custom_color', '==', true )
),
array(
'id' => 'card_a_c',
'type' => 'color',
'title' => '卡片链接高亮',
'default' => '#f1404b',
'dependency' => array( 'custom_color', '==', true )
),
array(
'id' => 'piece_c',
'type' => 'color',
'title' => '高亮色块',
'default' => '#f1404b',
'dependency' => array( 'custom_color', '==', true )
),
)
));
//
// 基础设置
//
CSF::createSection( $prefix, array(
'title' => __('基础设置','io_setting'),
'icon' => 'fa fa-th-large',
'fields' => array(
array(
'id' => 'iowen_key',
'type' => 'text',
'title' => __('iowen 在线服务 key','io_setting'),
'after' => '<br>'.__('此 key 用于<br>1、添加网址时自�
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
添加搜索自动索引百度热搜关键词 添加首页tab标签模式加载方式切换(ajax加载和普通加载)(首页设置) 修复tab标签ajax加载模式会显示未审核的网址的bug 小屏幕热搜采用水平滚动 优化子主题支持 添加文章分页 添加解决WordPress 429的服务(优化加速) 优化、拆分metabox选项面板,方便布局 文章内容元素样式调整 经典编辑器添加对应样式预览 网址块添加nofollow属性开关(基础设置) 添加全站图片灯箱 增加go跳转白名单(基础设置) 修复投稿成功后没有清除图标的问题 投稿增加过滤 添加腾讯防水墙验证码(安全设置) 增加评论过滤(安全设置) 添加友情链接模板页 增加big搜索框,大小修改:.header-big{padding-top:170px;padding-bottom:110px}(首页设置) 增加书籍分类 添加seo标题连接符设置(seo设置) 调整下载弹窗样式 全屏加载效果(颜色效果) 添加统计代码填写框(页脚设置) 管理员可见替换为默认的私密模式 增加首页排序规则设置(首页设置) 增加首页置顶文章前排显示(首页设置)
资源推荐
资源详情
资源评论

























收起资源包目录





































































































共 481 条
- 1
- 2
- 3
- 4
- 5
资源评论


酷爱码
- 粉丝: 1w+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- C语言实训总结报告.docx
- 第五章光纤通信系统演示文稿(1).ppt
- 互联网+背景下的高职院校大学生思政课实践教学分析(1).docx
- 电子商务平台建设规划书(1).pptx
- 2023年公安信息化行业市场需求分析报告及未来五至十年行业预测报告(1).docx
- 面向对象程序设计语言C++第07章-虚函数和多态性市公开课一等奖省赛课获奖(1).pptx
- 基于供应链管理模式的采购管理信息化建设分析(1).docx
- 软件项目委托开发合同(1).docx
- 企业翻译项目软件管理平台(1).docx
- 本科毕设论文-—中学教务管理软件(1).doc
- 对当前中职计算机专业一体化教学的思考(1).docx
- 浅析基于STC12C5A60S2-单片机的电量监测技术研究论文(1).doc
- 电子商务营销更需要整合理念(1).docx
- 基因工程的基本操作程序教案(1).doc
- 用友互联网战略与成果(1).pptx
- 人工智能技术研发合作合同(范本)(1).docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
