2 Star 2 Fork 1

White.cat / Scilper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
options.php 28.61 KB
一键复制 编辑 原始数据 按行查看 历史
White.cat 提交于 2019-04-15 17:10 . Scilper v2.0.4.190415
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892
<?php
/**
* A unique identifier is defined to store the options in the database and reference them from the theme.
* By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
* If the identifier changes, it'll appear as if the options have been reset.
*/
function optionsframework_option_name() {
// 从样式表获取主题名称
$themename = wp_get_theme();
$themename = preg_replace("/\W/", "_", strtolower($themename) );
$optionsframework_settings = get_option( 'optionsframework' );
$optionsframework_settings['id'] = $themename;
update_option( 'optionsframework', $optionsframework_settings );
}
/**
* Defines an array of options that will be used to generate the settings page and be saved in the database.
* When creating the 'id' fields, make sure to use all lowercase and no spaces.
*
* If you are making your theme translatable, you should replace 'options_framework_theme'
* with the actual text domain for your theme. 请阅读:
* http://codex.wordpress.org/Function_Reference/load_theme_textdomain
*/
function optionsframework_options() {
// 测试数据
$test_array = array(
'one' => __('1', 'options_framework_theme'),
'two' => __('2', 'options_framework_theme'),
'three' => __('3', 'options_framework_theme'),
'four' => __('4', 'options_framework_theme'),
'five' => __('5', 'options_framework_theme'),
'six' => __('6', 'options_framework_theme'),
'seven' => __('7', 'options_framework_theme')
);
// 复选框数组
$multicheck_array = array(
'one' => __('法国吐司', 'options_framework_theme'),
'two' => __('薄煎饼', 'options_framework_theme'),
'three' => __('煎蛋', 'options_framework_theme'),
'four' => __('绉绸', 'options_framework_theme'),
'five' => __('感化饼干', 'options_framework_theme')
);
// 复选框默认值
$multicheck_defaults = array(
'one' => '1',
'five' => '1'
);
// 背景默认值
$background_defaults = array(
'color' => '',
'image' => '',
'repeat' => 'repeat',
'position' => 'top center',
'attachment'=>'scroll' );
// 版式默认值
$typography_defaults = array(
'size' => '15px',
'face' => 'georgia',
'style' => 'bold',
'color' => '#bada55' );
// 版式设置选项
$typography_options = array(
'sizes' => array( '6','12','14','16','20' ),
'faces' => array( 'Helvetica Neue' => 'Helvetica Neue','Arial' => 'Arial' ),
'styles' => array( 'normal' => '普通','bold' => '粗体' ),
'color' => false
);
// 将所有分类(categories)加入数组
$options_categories = array();
$options_categories_obj = get_categories();
foreach ($options_categories_obj as $category) {
$options_categories[$category->cat_ID] = $category->cat_name;
}
// 将所有标签(tags)加入数组
$options_tags = array();
$options_tags_obj = get_tags();
foreach ( $options_tags_obj as $tag ) {
$options_tags[$tag->term_id] = $tag->name;
}
// 将所有页面(pages)加入数组
$options_pages = array();
$options_pages_obj = get_pages('sort_column=post_parent,menu_order');
$options_pages[''] = 'Select a page:';
foreach ($options_pages_obj as $page) {
$options_pages[$page->ID] = $page->post_title;
}
// 如果使用图片单选按钮, define a directory path
$imagepath = get_template_directory_uri() . '/images/';
$options = array();
//基本设置
$options[] = array(
'name' => __('基本设置', 'options_framework_theme'),
'type' => 'heading');
$options[] = array(
'name' => __("主题风格", 'akina'),
'id' => 'theme_skin',
'std' => "#FE9600",
'desc' => __('自定义主题颜色', ''),
'type' => "color"
);
$options[] = array(
'name' => __('自定义关键词和描述', 'options_framework_theme'),
'desc' => __('开启之后可自定义填写关键词和描述', 'options_framework_theme'),
'id' => 'akina_meta',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('网站关键词', 'options_framework_theme'),
'desc' => __('各关键字间用半角逗号","分割,数量在5个以内最佳。', 'options_framework_theme'),
'id' => 'akina_meta_keywords',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('网站描述', 'options_framework_theme'),
'desc' => __('用简洁的文字描述本站点,字数建议在120个字以内。', 'options_framework_theme'),
'id' => 'akina_meta_description',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('logo', 'options_framework_theme'),
'desc' => __('最佳高度尺寸40px。', 'options_framework_theme'),
'id' => 'akina_logo',
'type' => 'upload');
$options[] = array(
'name' => __('Favicon', 'options_framework_theme'),
'desc' => __('填写url地址', 'options_framework_theme'),
'id' => 'favicon_link',
'std' => '/wp-content/themes/Scilper/images/favicon.ico',
'type' => 'text');
$options[] = array(
'name' => __('展开导航菜单', 'options_framework_theme'),
'desc' => __('勾选开启,默认收缩', 'options_framework_theme'),
'id' => 'shownav',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('头部装饰图', 'options_framework_theme'),
'desc' => __('默认开启,勾选关闭,显示在文章页面,独立页面以及分类页', 'options_framework_theme'),
'id' => 'patternimg',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('搜索按钮', 'akina'),
'id' => 'top_search',
'std' => "yes",
'type' => "radio",
'options' => array(
'yes' => __('开启', ''),
'no' => __('关闭', '')
));
$options[] = array(
'name' => __('首页文章风格', 'akina'),
'id' => 'post_list_style',
'std' => "standard",
'type' => "radio",
'options' => array(
'standard' => __('标准', ''),
'imageflow' => __('图文', '')
));
$options[] = array(
'name' => __('首页文章特色图(仅对标准风格生效)', 'akina'),
'id' => 'list_type',
'std' => "round",
'type' => "radio",
'options' => array(
'round' => __('圆形', ''),
'square' => __('方形', '')
));
$options[] = array(
'name' => __('评论收缩', 'akina'),
'id' => 'toggle-menu',
'std' => "yes",
'type' => "radio",
'options' => array(
'yes' => __('开启', ''),
'no' => __('关闭', '')
));
$options[] = array(
'name' => __('分页模式', 'akina'),
'id' => 'pagenav_style',
'std' => "ajax",
'type' => "radio",
'options' => array(
'ajax' => __('ajax加载', ''),
'np' => __('上一页和下一页', '')
));
$options[] = array(
'name' => __('博主描述', 'options_framework_theme'),
'desc' => __('一段自我描述的话', 'options_framework_theme'),
'id' => 'admin_des',
'std' => '我们的征途是是星辰大海',
'type' => 'textarea');
$options[] = array(
'name' => __('页脚信息', 'options_framework_theme'),
'desc' => __('页脚说明文字,支持HTML代码', 'options_framework_theme'),
'id' => 'footer_info',
'std' => '&copy; 2018',
'type' => 'textarea');
$options[] = array(
'name' => __('页脚显示页面加载时间', 'options_framework_theme'),
'desc' => __('默认关闭,勾选开启', 'options_framework_theme'),
'id' => 'load-timeshow',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('页脚显示网站运行时间', 'options_framework_theme'),
'desc' => __('默认关闭,勾选开启', 'options_framework_theme'),
'id' => 'web_runtime',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('建站日期', 'options_framework_theme'),
'desc' => __('填写建站时间以计算运行时间,格式(半角):01/21/2017 17:00:00', 'options_framework_theme'),
'id' => 'web_buildtime',
'std' => '01/21/2017 17:00:00',
'type' => 'text');
$options[] = array(
'name' => __('站长统计', 'options_framework_theme'),
'desc' => __('填写统计代码,将被隐藏,如需要在下方填写链接地址', 'options_framework_theme'),
'id' => 'site_statistics',
'std' => '',
'type' => 'textarea');
$options[] = array(
'name' => __('站长统计后台地址', 'options_framework_theme'),
'desc' => __('填写查看统计数据的链接', 'options_framework_theme'),
'id' => 'site_statistics_link',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('网站地图地址', 'options_framework_theme'),
'desc' => __('Sitemap生成的地图链接', 'options_framework_theme'),
'id' => 'site_map_link',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('ICP备案号', 'options_framework_theme'),
'desc' => __('填写已备案成功的ICP号', 'options_framework_theme'),
'id' => 'copyrightlink',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('自定义CSS样式', 'options_framework_theme'),
'desc' => __('直接填写CSS代码,不需要写style标签', 'options_framework_theme'),
'id' => 'site_custom_style',
'std' => '',
'type' => 'textarea');
//第一屏
$options[] = array(
'name' => __('第一屏', 'options_framework_theme'),
'type' => 'heading');
$options[] = array(
'name' => __('总开关', 'options_framework_theme'),
'desc' => __('默认开启,勾选全部关闭', 'options_framework_theme'),
'id' => 'head_focus',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('开启Hitokoto(一言)', 'options_framework_theme'),
'desc' => __('默认关闭,勾选开启,显示主页info区域(10分钟/刷新可更换一次)', 'options_framework_theme'),
'id' => 'scilper_hitokoto',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('社交信息', 'options_framework_theme'),
'desc' => __('默认开启,勾选关闭,显示头像、签名、SNS', 'options_framework_theme'),
'id' => 'focus_infos',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('全屏显示', 'options_framework_theme'),
'desc' => __('默认开启,勾选关闭', 'options_framework_theme'),
'id' => 'focus_height',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('开启视频', 'options_framework_theme'),
'desc' => __('勾选开启', 'options_framework_theme'),
'id' => 'focus_amv',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('Live', 'options_framework_theme'),
'desc' => __('勾选开启,视频自动续播,需要开启Pjax功能', 'options_framework_theme'),
'id' => 'focus_mvlive',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('视频地址', 'options_framework_theme'),
'desc' => __('视频的来源地址,该地址拼接下面的视频名,地址尾部不需要加斜杠', 'options_framework_theme'),
'id' => 'amv_url',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('视频名称', 'options_framework_theme'),
'desc' => __('abc.mp4 ,只需要填写视频名称 abc 即可,多个用英文逗号隔开如 abc,efg ,无需在意顺序,因为加载是随机的抽取的 ', 'options_framework_theme'),
'id' => 'amv_title',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('个人头像', 'options_framework_theme'),
'desc' => __('最佳高度尺寸130px。', 'options_framework_theme'),
'id' => 'focus_logo',
'type' => 'upload');
$options[] = array(
'name' => __('背景图', 'options_framework_theme'),
'desc' => __('最佳尺寸1920*1080', 'options_framework_theme'),
'id' => 'focus_img_1',
'type' => 'upload');
$options[] = array(
'name' => __('背景图 - 2', 'options_framework_theme'),
'desc' => __('可选,最佳尺寸1920*1080,将被随机显示', 'options_framework_theme'),
'id' => 'focus_img_2',
'type' => 'upload');
$options[] = array(
'name' => __('背景图 - 3', 'options_framework_theme'),
'desc' => __('可选,最佳尺寸1920*1080,将被随机显示', 'options_framework_theme'),
'id' => 'focus_img_3',
'type' => 'upload');
$options[] = array(
'name' => __('背景图 - 4', 'options_framework_theme'),
'desc' => __('可选,最佳尺寸1920*1080,将被随机显示', 'options_framework_theme'),
'id' => 'focus_img_4',
'type' => 'upload');
$options[] = array(
'name' => __('背景图 - 5', 'options_framework_theme'),
'desc' => __('可选,最佳尺寸1920*1080,将被随机显示', 'options_framework_theme'),
'id' => 'focus_img_5',
'type' => 'upload');
$options[] = array(
'name' => __('背景图滤镜', 'akina'),
'id' => 'focus_img_filter',
'std' => "filter-nothing",
'type' => "radio",
'options' => array(
'filter-nothing' => __('无', ''),
'filter-undertint' => __('浅色', ''),
'filter-dim' => __('暗淡', ''),
'filter-grid' => __('网格', '')
));
$options[] = array(
'name' => __('开启蜂窝背景动效', 'options_framework_theme'),
'desc' => __('默认关闭,勾选开启', 'options_framework_theme'),
'id' => 'canvas_nest',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('开启首屏底部动画', 'akina'),
'desc' => __('默认底部没有动画', 'akina'),
'id' => 'focus_canvas_animinte',
'std' => "animinte-nothing",
'type' => "radio",
'options' => array(
'animinte-nothing' => __('没有动画', ''),
'waveloop' => __('波浪动画', ''),
'bubble' => __('气泡动画', '')
));
$options[] = array(
'name' => __('页面顶部显示加载进度或浏览进度', 'akina'),
'desc' => __('默认不需要显示', 'akina'),
'id' => 'progress_type',
'std' => "progress_no",
'type' => "radio",
'options' => array(
'progress_no' => __('不需要', ''),
'loadprogress' => __('加载进度', ''),
'readprogress' => __('浏览进度', '')
));
//文章页
$options[] = array(
'name' => __('文章页', 'options_framework_theme'),
'type' => 'heading');
$options[] = array(
'name' => __('文章导航', 'akina'),
'desc' => __('默认关闭', 'akina'),
'id' => 'post_nav',
'std' => "no",
'type' => "radio",
'options' => array(
'yes' => __('开启', ''),
'no' => __('关闭', '')
));
$options[] = array(
'name' => __('文章点赞', 'akina'),
'id' => 'post_like',
'std' => "yes",
'type' => "radio",
'options' => array(
'yes' => __('开启', ''),
'no' => __('关闭', '')
));
$options[] = array(
'name' => __('文章分享', 'akina'),
'id' => 'post_share',
'std' => "yes",
'type' => "radio",
'options' => array(
'yes' => __('开启', ''),
'no' => __('关闭', '')
));
$options[] = array(
'name' => __('上一篇下一篇', 'akina'),
'id' => 'post_nepre',
'std' => "yes",
'type' => "radio",
'options' => array(
'yes' => __('开启', ''),
'no' => __('关闭', '')
));
$options[] = array(
'name' => __('博主信息', 'akina'),
'id' => 'author_profile',
'std' => "yes",
'type' => "radio",
'options' => array(
'yes' => __('开启', ''),
'no' => __('关闭', '')
));
$options[] = array(
'name' => __('支付宝打赏', 'options_framework_theme'),
'desc' => __('支付宝二维码', 'options_framework_theme'),
'id' => 'alipay_code',
'type' => 'upload');
$options[] = array(
'name' => __('微信打赏', 'options_framework_theme'),
'desc' => __('微信二维码', 'options_framework_theme'),
'id' => 'wechat_code',
'type' => 'upload');
//社交选项
$options[] = array(
'name' => __('社交网络', 'options_framework_theme'),
'type' => 'heading');
$options[] = array(
'name' => __('微信', 'options_framework_theme'),
'desc' => __('微信二维码', 'options_framework_theme'),
'id' => 'wechat',
'type' => 'upload');
$options[] = array(
'name' => __('新浪微博', 'options_framework_theme'),
'desc' => __('新浪微博地址', 'options_framework_theme'),
'id' => 'sina',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('腾讯QQ', 'options_framework_theme'),
'desc' => __('QQ号码', 'options_framework_theme'),
'id' => 'qq',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('知乎', 'options_framework_theme'),
'desc' => __('知乎地址', 'options_framework_theme'),
'id' => 'zhihu',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('GitHub', 'options_framework_theme'),
'desc' => __('GitHub地址', 'options_framework_theme'),
'id' => 'github',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('Lofter', 'options_framework_theme'),
'desc' => __('lofter地址', 'options_framework_theme'),
'id' => 'lofter',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('BiliBili', 'options_framework_theme'),
'desc' => __('B站地址', 'options_framework_theme'),
'id' => 'bili',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('优酷视频', 'options_framework_theme'),
'desc' => __('优酷地址', 'options_framework_theme'),
'id' => 'youku',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('网易云音乐', 'options_framework_theme'),
'desc' => __('网易云音乐地址', 'options_framework_theme'),
'id' => 'wangyiyun',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('Twitter', 'options_framework_theme'),
'desc' => __('推特地址', 'options_framework_theme'),
'id' => 'twitter',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('Facebook', 'options_framework_theme'),
'desc' => __('脸书地址', 'options_framework_theme'),
'id' => 'facebook',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('Google+', 'options_framework_theme'),
'desc' => __('G+地址', 'options_framework_theme'),
'id' => 'googleplus',
'std' => '',
'type' => 'text');
//聚焦图链
$options[] = array(
'name' => __('聚焦信息', 'options_framework_theme'),
'type' => 'heading' );
$options[] = array(
'name' => __('开启公告', 'options_framework_theme'),
'desc' => __('默认不显示,勾选开启', 'options_framework_theme'),
'id' => 'head_notice',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('公告内容', 'options_framework_theme'),
'desc' => __('公告内容,文字超出142个字节将会被滚动显示(移动端无效),一个汉字 = 3字节,一个字母 = 1字节,自己计算吧', 'options_framework_theme'),
'id' => 'notice_title',
'std' => '欢迎来到我的小站',
'type' => 'text');
$options[] = array(
'name' => __('公告内容尾部光标文字', 'options_framework_theme'),
'desc' => __('公告内容尾部光标文字,计入上面公告内容字数内', 'options_framework_theme'),
'id' => 'notice-cursor',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('是否开启聚焦', 'options_framework_theme'),
'desc' => __('默认开启', 'options_framework_theme'),
'id' => 'top_feature',
'std' => '1',
'type' => 'checkbox');
$options[] = array(
'name' => __('聚焦标题', 'options_framework_theme'),
'desc' => __('默认为聚焦,你也可以修改为其他,当然不能当广告用!不允许!!', 'options_framework_theme'),
'id' => 'feature_title',
'std' => '聚焦',
'class' => 'mini',
'type' => 'text');
$options[] = array(
'name' => __('聚焦图一', 'options_framework_theme'),
'desc' => __('尺寸257px*160px', 'options_framework_theme'),
'id' => 'feature1_img',
'std' => $imagepath.'/temp.jpg',
'type' => 'upload');
$options[] = array(
'name' => __('聚焦图一标题', 'options_framework_theme'),
'desc' => __('聚焦图一标题', 'options_framework_theme'),
'id' => 'feature1_title',
'std' => 'feature1',
'type' => 'text');
$options[] = array(
'name' => __('聚焦图一链接', 'options_framework_theme'),
'desc' => __('聚焦图一链接', 'options_framework_theme'),
'id' => 'feature1_link',
'std' => '#',
'type' => 'text');
$options[] = array(
'name' => __('聚焦图二', 'options_framework_theme'),
'desc' => __('尺寸257px*160px', 'options_framework_theme'),
'id' => 'feature2_img',
'std' => $imagepath.'/temp.jpg',
'type' => 'upload');
$options[] = array(
'name' => __('聚焦图二标题', 'options_framework_theme'),
'desc' => __('聚焦图二标题', 'options_framework_theme'),
'id' => 'feature2_title',
'std' => 'feature2',
'type' => 'text');
$options[] = array(
'name' => __('聚焦图二链接', 'options_framework_theme'),
'desc' => __('聚焦图二链接', 'options_framework_theme'),
'id' => 'feature2_link',
'std' => '#',
'type' => 'text');
$options[] = array(
'name' => __('聚焦图三', 'options_framework_theme'),
'desc' => __('尺寸257px*160px', 'options_framework_theme'),
'id' => 'feature3_img',
'std' => $imagepath.'/temp.jpg',
'type' => 'upload');
$options[] = array(
'name' => __('聚焦图三标题', 'options_framework_theme'),
'desc' => __('聚焦图三标题', 'options_framework_theme'),
'id' => 'feature3_title',
'std' => 'feature3',
'type' => 'text');
$options[] = array(
'name' => __('聚焦图三链接', 'options_framework_theme'),
'desc' => __('聚焦图三链接', 'options_framework_theme'),
'id' => 'feature3_link',
'std' => '#',
'type' => 'text');
//其他
$options[] = array(
'name' => __('其他', 'options_framework_theme'),
'type' => 'heading' );
$options[] = array(
'name' => __('开启PJAX局部刷新(建议开启)', 'options_framework_theme'),
'desc' => __('原理与Ajax相同', 'options_framework_theme'),
'id' => 'poi_pjax',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('首页不显示的分类文章', 'options_framework_theme'),
'desc' => __('填写分类ID,多个用英文“ , ”分开', 'options_framework_theme'),
'id' => 'classify_display',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('图片展示分类', 'options_framework_theme'),
'desc' => __('填写分类ID,多个用英文“ , ”分开', 'options_framework_theme'),
'id' => 'image_category',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('发件地址前缀', 'options_framework_theme'),
'desc' => __('用于发送系统邮件,在用户的邮箱中显示的发件人地址,不要使用中文,默认系统邮件地址为 poi@你的域名.com', 'options_framework_theme'),
'id' => 'mail_user_name',
'std' => 'poi',
'type' => 'text');
$options[] = array(
'name' => __('开启SMTP发件功能', 'options_framework_theme'),
'desc' => __('默认关闭,勾选开启。(使用虚拟主机的同学,请先确定主机控制台中 PHP.ini 设置fsockopen函数是否启用)', 'options_framework_theme'),
'id' => 'open_smtp',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('【SMTP设置】邮件发送端口', 'options_framework_theme'),
'desc' => __('SMTP邮件发送端口,这个和下面的对应,如果这里填写25,则下面为空白', 'options_framework_theme'),
'id' => 'open_smtp_port',
'std' => '465',
'type' => 'text');
$options[] = array(
'name' => __('【SMTP设置】验证 ssl或tls连接', 'options_framework_theme'),
'desc' => __('是否验证 ssl,这个和上面的对应,如果不填写,则上面的端口须为25(推荐使用465等ssl端口,25端口可能会出问题)', 'options_framework_theme'),
'id' => 'open_smtp_smtpsecure',
'std' => 'ssl',
'type' => 'text');
$options[] = array(
'name' => __('【SMTP设置】邮箱的SMTP服务器地址', 'options_framework_theme'),
'desc' => __('邮箱的SMTP服务器地址,如果是QQ的则为:smtp.exmail.qq.com,在邮箱设置或者帮助中心中可以找到', 'options_framework_theme'),
'id' => 'open_smtp_host',
'std' => 'smtp.exmail.qq.com',
'type' => 'text');
$options[] = array(
'name' => __('【SMTP设置】发件邮箱地址', 'options_framework_theme'),
'desc' => __('你的邮箱地址,例:skillcat@126.com', 'options_framework_theme'),
'id' => 'open_smtp_username',
'std' => 'username@gmail.com',
'type' => 'text');
$options[] = array(
'name' => __('【SMTP设置】发件邮箱授权密码', 'options_framework_theme'),
'desc' => __('你的邮箱授权密码(有的是登录密码)', 'options_framework_theme'),
'id' => 'open_smtp_password',
'std' => '***',
'type' => 'text');
$options[] = array(
'name' => __('开启多说插件支持', 'options_framework_theme'),
'desc' => __('如果使用多说插件,请勾选此项', 'options_framework_theme'),
'id' => 'general_disqus_plugin_support',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('开启Prism代码高亮支持', 'options_framework_theme'),
'desc' => __('仅支持Prism.js的高亮插件,如果你用使用该插件且开启了Pjax,请勾选此项,【注意!这不是插件功能】,只是帮助插件JS文件进入Pjax重载', 'options_framework_theme'),
'id' => 'open_prism_codelamp',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('七牛图片cdn', 'options_framework_theme'),
'desc' => __('!重要:填写格式为 http://你的二级域名(七牛三级域名)/wp-content/uploads', 'options_framework_theme'),
'id' => 'qiniu_cdn',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('后台登陆界面背景图', 'options_framework_theme'),
'desc' => __('该地址为空则使用默认图片', 'options_framework_theme'),
'id' => 'login_bg',
'type' => 'upload');
//杂项
$options[] = array(
'name' => __('杂项', 'options_framework_theme'),
'type' => 'heading' );
$options[] = array(
'name' => __('开启方糖气球评论微信推送', 'options_framework_theme'),
'desc' => __('填写在方糖气球注册的SCKEY,此功能借助微信方糖公众号推送评论通知,<a href="http://sc.ftqq.com/3.version" target="_top">点击查看详情<a/>', 'options_framework_theme'),
'id' => 'wpso_wenotify_key',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('开启剪贴板版权标识', 'options_framework_theme'),
'desc' => __('复制超过30个字节时自动向剪贴板添加版权标识,默认开启', 'options_framework_theme'),
'id' => 'clipboard_copyright',
'std' => '1',
'type' => 'checkbox');
$options[] = array(
'name' => __('允许私密评论', 'options_framework_theme'),
'desc' => __('允许用户设置自己的评论对其他人不可见', 'options_framework_theme'),
'id' => 'open_private_message',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('评论UA信息', 'options_framework_theme'),
'desc' => __('勾选开启,用户的浏览器,操作系统信息', 'options_framework_theme'),
'id' => 'open_useragent',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('鼠标点击特效❤', 'options_framework_theme'),
'desc' => __('默认关闭,勾选开启', 'options_framework_theme'),
'id' => 'canvas_heart',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('网站标题自动判断', 'options_framework_theme'),
'desc' => __('点击开启,比较好玩…', 'options_framework_theme'),
'id' => 'web_title',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('失去焦点显示标题', 'options_framework_theme'),
'id' => 'onblur',
'std' => '(つ ェ ⊂)我藏好了哦~',
'type' => 'text');
$options[] = array(
'name' => __('获得焦点显示标题', 'options_framework_theme'),
'id' => 'onfocus',
'std' => '(*゜ロ゜)ノ被发现了~',
'type' => 'text');
//前台登录
$options[] = array(
'name' => __('前台登录', 'options_framework_theme'),
'type' => 'heading' );
$options[] = array(
'name' => __('指定登录地址', 'options_framework_theme'),
'desc' => __('强制不使用后台地址登陆,填写新建的登陆页面地址,比如 http://www.xxx.com/login【注意】填写前先测试下你新建的页面是可以正常打开的,以免造成无法进入后台等情况', 'options_framework_theme'),
'id' => 'exlogin_url',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('指定注册地址', 'options_framework_theme'),
'desc' => __('该链接使用在登录页面作为注册入口,建议填写', 'options_framework_theme'),
'id' => 'exregister_url',
'std' => '',
'type' => 'text');
$options[] = array(
'name' => __('允许用户注册', 'options_framework_theme'),
'desc' => __('勾选开启,允许用户在前台注册', 'options_framework_theme'),
'id' => 'ex_register_open',
'std' => '0',
'type' => 'checkbox');
$options[] = array(
'name' => __('登录后自动跳转', 'options_framework_theme'),
'desc' => __('勾选开启,管理员跳转至后台,用户跳转至主页', 'options_framework_theme'),
'id' => 'login_urlskip',
'std' => '0',
'type' => 'checkbox');
return $options;
}
PHP
1
https://gitee.com/Ninemeow/Scilper.git
git@gitee.com:Ninemeow/Scilper.git
Ninemeow
Scilper
Scilper
master

搜索帮助