<?php
/**
* A unique identifier is defined to store the options in the database and reference them from the theme.
*/
function optionsframework_option_name() {
// Change this to use your theme slug
return 'DUX';
}
/**
* 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. Read more:
* http://codex.wordpress.org/Function_Reference/load_theme_textdomain
*/
function optionsframework_options() {
// Test data
$test_array = array(
'one' => __('One', 'options_framework_theme'),
'two' => __('Two', 'options_framework_theme'),
'three' => __('Three', 'options_framework_theme'),
'four' => __('Four', 'options_framework_theme'),
'five' => __('Five', 'options_framework_theme')
);
// Multicheck Array
$multicheck_array = array(
'one' => __('French Toast', 'options_framework_theme'),
'two' => __('Pancake', 'options_framework_theme'),
'three' => __('Omelette', 'options_framework_theme'),
'four' => __('Crepe', 'options_framework_theme'),
'five' => __('Waffle', 'options_framework_theme')
);
// Multicheck Defaults
$multicheck_defaults = array(
'one' => '1',
'five' => '1'
);
// Background Defaults
$background_defaults = array(
'color' => '',
'image' => '',
'repeat' => 'repeat',
'position' => 'top center',
'attachment'=>'scroll' );
// Typography Defaults
$typography_defaults = array(
'size' => '15px',
'face' => 'georgia',
'style' => 'bold',
'color' => '#bada55' );
// Typography Options
$typography_options = array(
'sizes' => array( '6','12','14','16','20' ),
'faces' => array( 'Helvetica Neue' => 'Helvetica Neue','Arial' => 'Arial' ),
'styles' => array( 'normal' => 'Normal','bold' => 'Bold' ),
'color' => false
);
// Pull all the categories into an array
$options_categories = array();
$options_categories_obj = get_categories();
foreach ($options_categories_obj as $category) {
$options_categories[$category->cat_ID] = $category->cat_name;
}
// Pull all tags into an array
$options_tags = array();
$options_tags_obj = get_tags();
foreach ( $options_tags_obj as $tag ) {
$options_tags[$tag->term_id] = $tag->name;
}
// Pull all the pages into an array
$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;
}
$options_linkcats = array();
$options_linkcats_obj = get_terms('link_category');
foreach ( $options_linkcats_obj as $tag ) {
$options_linkcats[$tag->term_id] = $tag->name;
}
// If using image radio buttons, define a directory path
$imagepath = get_template_directory_uri() . '/images/';
$adsdesc = __('可添加任意广告联盟代码或自定义代码', 'haoui');
$options = array();
// ======================================================================================================================
$options[] = array(
'name' => __('基本设置', 'haoui'),
'type' => 'heading');
$options[] = array(
'name' => __('Logo', 'haoui'),
'id' => 'logo_src',
'desc' => __('最大宽:180px;最大高:32px;建议尺寸:140*32px 格式:png', 'haoui'),
'std' => 'http://www.daqianduan.com/wp-content/uploads/2015/01/logo.png',
'type' => 'upload');
$options[] = array(
'name' => __('布局', 'haoui'),
'id' => 'layout',
'std' => "2",
'type' => "radio",
'desc' => __("2种布局供选择,点击选择你喜欢的布局方式,保存后前端展示会有所改变。", 'haoui'),
'options' => array(
'2' => __('有侧边栏', 'haoui'),
'1' => __('无侧边栏', 'haoui')
));
$options[] = array(
'name' => __("主题风格", 'haoui'),
'desc' => __("14种颜色供选择,点击选择你喜欢的颜色,保存后前端展示会有所改变。", 'haoui'),
'id' => "theme_skin",
'std' => "45B6F7",
'type' => "colorradio",
'options' => array(
'45B6F7' => 100,
'FF5E52' => 1,
'2CDB87' => 2,
'00D6AC' => 3,
'16C0F8' => 4,
'EA84FF' => 5,
'FDAC5F' => 6,
'FD77B2' => 7,
'76BDFF' => 8,
'C38CFF' => 9,
'FF926F' => 10,
'8AC78F' => 11,
'C7C183' => 12,
'555555' => 13
)
);
$options[] = array(
'id' => 'theme_skin_custom',
'std' => "",
'desc' => __('不喜欢上面提供的颜色,你好可以在这里自定义设置,如果不用自定义颜色清空即可(默认不用自定义)', 'haoui'),
'type' => "color");
$options[] = array(
'name' => __('全站连接符', 'haoui'),
'id' => 'connector',
'desc' => __('一经选择,切勿更改,对SEO不友好,一般为“-”或“_”', 'haoui'),
'std' => _hui('connector') ? _hui('connector') : '-',
'type' => 'text',
'class' => 'mini');
$options[] = array(
'name' => __('网页最大宽度', 'haoui'),
'id' => 'site_width',
'std' => 1200,
'class' => 'mini',
'desc' => __('默认:1200,单位:px(像素)', 'haoui'),
'type' => 'text');
$options[] = array(
'name' => __('jQuery底部加载', 'haoui'),
'id' => 'jquery_bom',
'type' => "checkbox",
'std' => false,
'desc' => __('开启', 'haoui').__('(可提高页面内容加载速度,但部分依赖jQuery的插件可能失效)', 'haoui'));
$options[] = array(
'name' => __('Gravatar 头像获取', 'haoui'),
'id' => 'gravatar_url',
'std' => "ssl",
'type' => "radio",
'options' => array(
'no' => __('原有方式', 'haoui'),
'ssl' => __('从Gravatar官方ssl获取', 'haoui'),
'duoshuo' => __('从多说服务器获取', 'haoui')
));
$options[] = array(
'name' => __('JS文件托管(可大幅提速JS加载)', 'haoui'),
'id' => 'js_outlink',
'std' => "no",
'type' => "radio",
'options' => array(
'no' => __('不托管', 'haoui'),
'baidu' => __('百度', 'haoui'),
'360' => __('360', 'haoui'),
'he' => __('框架来源站点(分别引入jquery和bootstrap官方站点JS文件)', 'haoui')
));
$options[] = array(
'name' => __('网站整体变灰', 'haoui'),
'id' => 'site_gray',
'type' => "checkbox",
'std' => false,
'desc' => __('开启', 'haoui').__('(支持IE、Chrome,基本上覆盖了大部分用户,不会降低访问速度)', 'haoui'));
$options[] = array(
'name' => __('分类url去除category字样', 'haoui'),
'id' => 'no_categoty',
'type' => "checkbox",
'std' => false,
'desc' => __('开启', 'haoui').__('(主题已内置no-category插件功能,请不要安装插件;开启后请去设置-固定连接中点击保存即可)', 'haoui'));
$options[] = array(
'name' => __('品牌文字', 'haoui'),
'id' => 'brand',
'std' => "欢迎光临\n共同来自黛云轩",
'desc' => __('显示在Logo旁边的两个短文字,请换行填写两句文字(短文字介绍)', 'haoui'),
'settings' => array(
'rows' => 2
),
'type' => 'textarea');
$options[] = array(
'name' => __('首页关键字(keywords)', 'haoui'),
'id' => 'keywords',
'std' => '黛云轩, 一个牛x的网站',
'desc' => __('关键字有利于SEO优化,建议个数在5-10之间,用英文逗号隔开', 'haoui'),
'settings' => array(
'rows' => 2
),
'type' => 'textarea');
$options[] = array(
'name' => __('首页描述(description)', 'haoui'),
'id' => 'description',
'std' => __('本站是一个高端大气上档次的网站', 'haoui'),
'desc' => __('描述有利于SEO优化,建议字数在30-70之间', 'haoui'),
'settings' => array(
'rows' => 3
),
'type' => 'textarea');
$
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
DUX主题是大前端当前使用主题,是大前端积累多年Wordpress主题经验设计而成;DUX取名大前端标志“D”和用户体验代名词“UX”,意为大前端主题帮助各位站长实现更好用户体验的目标和决心。扁平的风格和干净白色的架构会让网站显得内涵而出色,DUX主题定能帮助购买者实现快速搭建高质量网站的目的。 演示地址:http://wp.weknow.cn DUX主题1.2版本更新内容: 更新:取消加密,现在可以自己折腾了; 修复:侧边栏偶尔错位问题; 修复:404页面图片不显示; 修复:文章页插入视频自适应宽高; 更新:文章页视频居中展示; 修复:手机端文章页面标题下分类不显示的问题; 更新:文章页面内容分页模块; 修复:多个位置的头像变形; 更新:登录或注册弹框显示后,点击透明遮罩可关闭; 更新:登录或注册弹框显示后,第一个输入框获取焦点,可直接输入; 更新:登录或注册弹框输入框内按CTRL键将自动提交并验证表单; 更新:登录支持用户名和邮箱; 更新:注册时发送密码至注册邮箱,以验证邮箱有效性; 更新:会员中心关于registration.php文件的引用的错误; 更新:会员中心关于PRC和escape的错误; 更新:会员中心修改资料页面调整,邮箱不可修改; 更新:站点标题过长引起的LOGO宽度问题; 更新:去除链接focus时的虚线; 更新:分享模块的文字错位问题;
资源推荐
资源详情
资源评论
收起资源包目录
WordPress主题 DUX原版 小清新CMS主题带用户中心[更新至1.2] (122个子文件)
bootstrap.min.css 98KB
main.css 63KB
font-awesome.min.css 21KB
user.css 7KB
optionsframework.css 5KB
editor-style.css 2KB
share.css 2KB
nav.css 2KB
style.css 180B
fontawesome-webfont.eot 55KB
icon_question.gif 5KB
icon_mad.gif 4KB
icon_wink.gif 3KB
icon_biggrin.gif 2KB
loading.gif 2KB
icon_cry.gif 2KB
icon_redface.gif 2KB
icon_exclaim.gif 2KB
icon_evil.gif 1KB
icon_confused.gif 1KB
icon_razz.gif 1KB
icon_rolleyes.gif 878B
icon_neutral.gif 808B
icon_sad.gif 795B
icon_eek.gif 786B
icon_idea.gif 740B
icon_twisted.gif 694B
icon_mrgreen.gif 646B
icon_lol.gif 623B
icon_arrow.gif 622B
icon_smile.gif 563B
icon_cool.gif 534B
icon_surprised.gif 505B
favicon.ico 1KB
screenshot.jpg 224KB
jquery.min.js 90KB
bootstrap.min.js 31KB
loader.js 15KB
main.js 15KB
jsrender.min.js 14KB
user.js 14KB
prettyprint.js 12KB
router.min.js 10KB
comment.js 7KB
signpop.js 5KB
ias.min.js 5KB
lazyload.min.js 4KB
html5.min.js 4KB
media-uploader.js 3KB
jquery.cookie.min.js 2KB
options-custom.js 2KB
options.php 33KB
fn.php 25KB
class-options-interface.php 16KB
class-options-sanitization.php 12KB
user.php 10KB
resetpassword.php 10KB
class-options-framework-admin.php 9KB
fn-admin.php 9KB
log.php 7KB
simple-url.php 5KB
widget-statistics.php 5KB
comment.php 5KB
comments.php 4KB
user.php 4KB
image.php 4KB
header.php 4KB
no-category.php 4KB
widget-posts.php 4KB
class-options-media-uploader.php 4KB
widget-textads.php 3KB
widget-readers.php 3KB
widget-comments.php 3KB
options-framework.php 3KB
category.php 3KB
mo_notice.php 2KB
widget-sticky.php 2KB
mo_comments_list.php 2KB
class-options-framework.php 2KB
archives.php 2KB
readers.php 2KB
excerpt.php 2KB
mo_posts_related.php 2KB
single.php 2KB
widget-tags.php 2KB
load.php 2KB
index.php 1KB
mo_slider.php 1KB
widget-ads.php 1KB
mo_paging.php 1KB
footer.php 1KB
navs.php 1KB
links.php 967B
mo_share.php 948B
mo_get_post_from.php 861B
mo_minicat.php 851B
tags.php 822B
widget-index.php 578B
mo_post_link.php 576B
archive.php 566B
共 122 条
- 1
- 2
资源评论
- zouw1682018-04-20模板不错 ~
- twtfhn2015-07-05挺好的,就是有一点问题
- pcstx02015-11-11可以用,略有瑕疵
- imutraveler2015-09-04模板用着挺好,谢谢了!
黛云轩
- 粉丝: 18
- 资源: 30
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功