<?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 opshui_option_name() {
// This gets the theme name from the stylesheet
$themename = get_option( 'stylesheet' );
$themename = preg_replace("/\W/", "_", strtolower($themename) );
$opshui_settings = get_option( 'opshui' );
$opshui_settings['id'] = $themename;
update_option( 'opshui', $opshui_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.
*/
function opshui_options() {
// 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(
'face' => 'yahei',
'style' => 'normal',
'color' => '#383121' );
$typography_content = array(
'size' => '13px',
'face' => 'yahei',
'style' => 'normal',
'color' => '#000000' );
// Typography Options
$typography_options = array(
'sizes' => 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 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');
$rrr = ' / ';
$nnn = ' / ';
$options = array();
$qrcode = get_stylesheet_directory_uri() . '/images/qrcode.png';
/*
* BASIC
* ====================================================================================================
*/
$options[] = array(
'name' => __('基本', 'haoui'),
'type' => 'heading');
$options[] = array(
'name' => __('Logo', 'haoui').$rrr.__('图片', 'haoui').'(v5.0+)',
'id' => 'logo_src',
'desc' => __('尺寸:', 'haoui').'190*120',
'std' => $imagepath.'logo.png',
'type' => 'upload');
$options[] = array(
'name' => __('Logo 手机端', 'haoui').$rrr.__('图片', 'haoui').'(v5.3+)',
'id' => 'logo_m_src',
'desc' => __('尺寸:', 'haoui').'190*42,如果为空手机端将显示网站名称作为logo',
'std' => $imagepath.'logo.png',
'type' => 'upload');
$options[] = array(
'name' => __("布局", 'haoui'),
'desc' => __("3种布局供选择,点击选择你喜欢的布局方式,保存后前端展示会有所改变。", 'haoui'),
'id' => "layout",
'std' => "ui-c3",
'type' => "images",
'options' => array(
'ui-navtop' => $imagepath.'layout/navtop.png',
'ui-c3' => $imagepath.'layout/c3.png',
'ui-c2' => $imagepath.'layout/c2.png'
)
);
$options[] = array(
'name' => __('模块化布局', 'haoui').'(v5.0+)',
'id' => 'layout_mo',
'type' => "checkbox",
'std' => false,
'desc' => __('开启', 'haoui'));
$options[] = array(
'name' => __('侧边栏显示在手机端', 'haoui').'(v7.2+)',
'id' => 'sidebar_m',
'type' => "checkbox",
'std' => false,
'desc' => __('开启', 'haoui'));
$options[] = array(
'name' => __("主题风格", 'haoui'),
'desc' => __("13种颜色供选择,点击选择你喜欢的颜色,保存后前端展示会有所改变。", 'haoui'),
'id' => "theme_skin",
'std' => "FF5E52",
'type' => "colorradio",
'options' => array(
'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').'(ver7.0+)',
'id' => 'commentkill',
'type' => "checkbox",
'std' => true,
'desc' => __('开启,开启后则全站有关文章评论的功能都将消失。', 'haoui'));
$options[] = array(
'name' => __('网页最大宽度', 'haoui'),
'id' => 'site_width',
'std' => 1280,
'class' => 'mini',
'desc' => __('默认:1280,单位:px(像素)', 'haoui'),
'type' => 'text');
$options[] = array(
'name' => __('jQuery底部加载', 'haoui'),
'id' => 'jquery_bom',
'type' => "checkbox",
'std' => false,
'desc' => __('开启', 'haoui').__('(可提高页面内容加载速度,但部分依赖jQuery的插件可能失效)', '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').'(v4.1+)',
'id' => 'search_nav',
'type' => "checkbox",
'std' => false,
'desc' => __('开启', 'haoui').' '.__('开启后会在导航区域增加搜索框,不同布局不同展示方式', 'haoui'));
$options[] = array(
'name' => __('移动端搜索框', 'haoui').'(v4.1+)',
'id' => 'search_nav_m',
'type' => "checkbox",
'std' => false,
'desc' => __('开启', 'haoui'));
$options[] = array(
'name' => __('前端登录注册链接', 'haoui').'(v4.1+)',
'id' => 'sign_f',
'type' => "checkbox",
'std' => false,
'desc' => __('开启', 'haoui'));
$options[] = array(
'name' => __('头部菜单设置', 'haoui'),
'desc' => __('案例:', 'haoui').'<a href="'.site_url().'" title="'.__('链接', 'haoui').'01">'.__('链接', 'haoui').'01</a>',
'id' => 'menu_links',
'std' => '<a href="'.site_url().'" title="'.__('链接', 'haoui').'01">'.__('链接', 'haoui').'01</a>|<a href="'.site_url().'" title="'.__('链接', 'haoui').'02">'.__('链接', 'haoui').'02</a><br><a href="'.site_url().'" title="'.__('链接', 'haoui').'03">'.__('链接', 'haoui').'03</a>',
'type' => 'textarea');
$options[] = array(
'name' => __('网站底部信息', 'haoui'),
'id' => 'footer_seo',
'std' => '',
'desc' => __('备案号可写于此', 'haoui'),
'type' => 'textarea');
$options[] = array(
'name' => __('底部友情链接', 'haoui').'(v5.
没有合适的资源?快使用搜索试试~ 我知道了~
阿里百秀XIU v7.5兼容wordpress5.4+ 博客主题
共673个文件
php:279个
gif:138个
png:78个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 130 浏览量
2022-07-05
10:32:39
上传
评论
收藏 2.4MB ZIP 举报
温馨提示
XIU主题是一款清新扁平风格、13种颜色、多设备支持、SEO优化、各种提速优化的wordpress主题. 安装使用: WordPress版本:3.6 ,浏览器支持:IE7 、Chrome、Firefox、360、QQ等各种浏览器; 在解压后的 xiu 文件夹中替换你自己的 logo.psd(24位),不要修改尺寸,请参照 font.jpg 中的字体,保存并替换 logo.png; 上传 xiu 文件夹到网站 wp-content/themes/ 目录下,进入网站后台-外观-主题,启用该主题; 进入外观-xiu主题设置,选择并设置你的喜好,点击保存; 导航图标设置:比如首页,在导航标签中写上 [cc]首页[/cc] 点赞墙、评论墙等独立页面怎么设置? 后台-页面-新建页面-选择页面模版,保存即可。 链接功能怎么玩出来? 如果后台有链接功能的说明已经可以实现了,没有链接功能的请安装wp官方自己的插件link-manager即可
资源推荐
资源详情
资源评论
收起资源包目录
阿里百秀XIU v7.5兼容wordpress5.4+ 博客主题 (673个子文件)
._actions 223B
._actions 174B
._assets 223B
._assets 174B
._css 223B
._css 223B
._css 174B
._css 174B
._fonts 223B
._fonts 174B
._images 223B
._images 223B
._images 174B
._images 174B
._js 223B
._js 223B
._js 174B
._js 174B
._languages 223B
._languages 174B
._layout 223B
._layout 174B
._modules 223B
._modules 174B
._options 223B
._options 174B
._pages 223B
._pages 174B
._smilies 223B
._smilies 174B
._widgets 223B
._widgets 174B
._xiu 323B
._xiu 274B
style.css 127KB
style.css 125KB
style.css 112KB
style.css 110KB
opshui.css 5KB
opshui.css 5KB
opshui.css 5KB
opshui.css 5KB
color-picker.min.css 2KB
color-picker.min.css 2KB
color-picker.min.css 2KB
color-picker.min.css 2KB
editor-style.css 2KB
editor-style.css 2KB
editor-style.css 2KB
editor-style.css 2KB
share.css 2KB
share.css 2KB
share.css 2KB
share.css 2KB
._style.css 330B
._editor-style.css 223B
._share.css 223B
._opshui.css 223B
._color-picker.min.css 223B
._style.css 223B
._editor-style.css 174B
._share.css 174B
._opshui.css 174B
._color-picker.min.css 174B
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.eot 20KB
._glyphicons-halflings-regular.eot 223B
._glyphicons-halflings-regular.eot 174B
icon_question.gif 5KB
icon_question.gif 5KB
icon_question.gif 5KB
icon_question.gif 5KB
icon_mad.gif 4KB
icon_mad.gif 4KB
icon_mad.gif 4KB
icon_mad.gif 4KB
icon_wink.gif 3KB
icon_wink.gif 3KB
icon_wink.gif 3KB
icon_wink.gif 3KB
icon_biggrin.gif 2KB
icon_biggrin.gif 2KB
icon_biggrin.gif 2KB
icon_biggrin.gif 2KB
ajax-loader.gif 2KB
ajax-loader.gif 2KB
ajax-loader.gif 2KB
ajax-loader.gif 2KB
icon_cry.gif 2KB
icon_cry.gif 2KB
icon_cry.gif 2KB
icon_cry.gif 2KB
icon_redface.gif 2KB
icon_redface.gif 2KB
icon_redface.gif 2KB
icon_redface.gif 2KB
icon_exclaim.gif 2KB
icon_exclaim.gif 2KB
共 673 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
智慧浩海
- 粉丝: 1w+
- 资源: 5119
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 原生微信小程序源码 - -滴滴公交-查公交
- 人工智能实验四 感知器算法的设计实现
- java小项目多线程多线程 复制文件 冒泡排序 群聊
- 四数之和(java代码).docx
- 701837906919458TapScanner v3.0.10 (Pro).apk
- 青岛大学人工智能实验二 利用α-β搜索的博弈树算法编写一字棋游戏
- ### 1、项目介绍 本项目Scrapy进行数据爬取,并使用Django框架+PyEcharts实现可视化大屏 效果如下:
- # 微信小程序-健康菜谱 基于微信小程序的一个查找检索菜谱的应用 ### 效果 !动态图(./res/gif/demo
- zabbix-get命令包资源
- 289ssm-mysql-jsp 计算机课程实验管理系统.zip(可运行源码+数据库文件+文档)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功