<?php
function panel_options() {
do_action( 'cmp_panel_save_options' );
$categories_obj = get_categories('hide_empty=0');
$categories = array();
foreach ($categories_obj as $pn_cat) {
$categories[$pn_cat->cat_ID] = $pn_cat->cat_name;
}
$edd_categories = array();
if(class_exists('Easy_Digital_Downloads')){
$edd_categories_obj = get_terms( array(
'taxonomy' => 'download_category',
'hide_empty' => false,
) );
foreach ($edd_categories_obj as $ec_cat) {
$edd_categories[$ec_cat->term_id] = $ec_cat->name;
}
}
$sliders = array();
$custom_slider = new WP_Query( array( 'post_type' => 'cmp_slider', 'posts_per_page' => -1 ,'no_found_rows' => 1 ) );
while ( $custom_slider->have_posts() ) {
$custom_slider->the_post();
$sliders[get_the_ID()] = get_the_title();
}
// 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:','wpdx');
foreach ($options_pages_obj as $page) {
$options_pages[$page->ID] = $page->post_title;
}
$options_roles = array();
global $wp_roles;
$roles = $wp_roles->get_names();
foreach ($roles as $role_value => $role_name) {
$role_name = translate_user_role( $role_name );
$options_roles[$role_value] = $role_name;
}
$options_post_types = array();
$args = array( 'public' => true );
$post_types = get_post_types( $args, 'names' );
foreach ($post_types as $post_type_value => $post_type_name) {
$obj = get_post_type_object( $post_type_name );
$label = $obj->labels->singular_name;
$options_post_types[$post_type_value] = $label.'('.$post_type_name.')';
unset($options_post_types['attachment']);
unset($options_post_types['dwqa-answer']);
}
$save='
<div class="mpanel-submit">
<input type="hidden" name="action" value="test_theme_data_save" />
<input type="hidden" name="security" value="'. wp_create_nonce("test-theme-data").'" />
<input name="save" class="mpanel-save" type="submit" value="'. __( 'Save Changes', 'wpdx' ).'" />
</div>';
if(!cmp_get_option('footer_code')) echo '<div id="message" class="error"><p>'.__('Hello, Thank you for using our theme. If this is your first time using the settings panel, you can click the "Reset Settings" button which is at the bottom to import some preset defaults, allowing you to quickly set the theme.','wpdx').'</p></div>'
?>
<div id="save-alert"></div>
<div class="mo-panel">
<div class="mo-panel-tabs">
<div class="logo"><img alt="" src="<?php echo get_template_directory_uri().'/panel/images/panel.png' ?>" class="avatar-80" height="80" width="80" alt="<?php _e('Changmeng\'s Works','wpdx') ?>" title="<?php _e('Changmeng\'s Works','wpdx') ?>"/>
</div>
<?php if( get_locale() =='zh_CN' || get_locale() =='zh_TW' || get_locale() =='zh_HK'){
echo '<ul>';
}else{
echo '<ul class="en-tabs">';
} ?>
<li class="cmp-tabs general"><a href="#tab1"><i class="dashicons dashicons-admin-generic"></i><?php _e( 'General', 'wpdx' ); ?></a></li>
<li class="cmp-tabs homepage"><a href="#tab2"><i class="dashicons dashicons-admin-home"></i><?php _e( 'Homepage', 'wpdx' ); ?></a></li>
<li class="cmp-tabs header"><a href="#tab3"><i class="dashicons dashicons-editor-insertmore"></i><?php _e( 'Header', 'wpdx' ); ?></a></li>
<li class="cmp-tabs archives"><a href="#tab4"><i class="dashicons dashicons-category"></i><?php _e( 'Archives', 'wpdx' ); ?></a></li>
<li class="cmp-tabs article"><a href="#tab5"><i class="dashicons dashicons-format-aside"></i><?php _e( 'Article', 'wpdx' ); ?></a></li>
<li class="cmp-tabs sidebars"><a href="#tab6"><i class="dashicons dashicons-align-left"></i><?php _e( 'Sidebars', 'wpdx' ); ?></a></li>
<li class="cmp-tabs banners"><a href="#tab7"><i class="dashicons dashicons-smiley"></i><?php _e( 'Banners', 'wpdx' ); ?></a></li>
<li class="cmp-tabs styling"><a href="#tab8"><i class="dashicons dashicons-art"></i><?php _e( 'Styling', 'wpdx' ); ?></a></li>
<li class="cmp-tabs register-login"><a href="#tab9"><i class="dashicons dashicons-admin-users"></i><?php _e( 'Register & Login', 'wpdx' ); ?></a></li>
<li class="cmp-tabs frontend-post"><a href="#tab10"><i class="dashicons dashicons-edit"></i><?php _e( 'Frontend Post', 'wpdx' ); ?></a></li>
<?php if(class_exists('Easy_Digital_Downloads')): ?>
<li class="cmp-tabs shop"><a href="#tab11"><i class="dashicons dashicons-download"></i><?php _e( 'EDD Settings', 'wpdx' ); ?></a></li>
<?php endif;?>
<li class="cmp-tabs Social"><a href="#tab12"><i class="dashicons dashicons-admin-site"></i><?php _e( 'Social Network', 'wpdx' ); ?></a></li>
<li class="cmp-tabs advanced"><a href="#tab13"><i class="dashicons dashicons-admin-settings"></i><?php _e( 'Advanced', 'wpdx' ); ?></a></li>
<li class="theme-doc"><a href="http://www.lmlblog.com/blog/1/" target="_blank"><i class="dashicons dashicons-admin-site"></i>网页模板</a></li>
</ul>
<div class="clear"></div>
</div> <!-- .mo-panel-tabs -->
<div class="mo-panel-content">
<form action="/" name="cmp_form" id="cmp_form">
<div id="tab1" class="tabs-wrap">
<div class="mo-panel-top">
<h2><i class="dashicons dashicons-admin-generic"></i><?php _e( 'General', 'wpdx' ); ?></h2> <?php echo $save ?>
<div class="clear"></div>
</div>
<div class="cmppanel-item">
<h3><?php _e( 'Announcement', 'wpdx' ); ?></h3>
<?php
cmp_options(
array( "name" => __( 'Homepage Announcement' , 'wpdx' ),
"id" => "announcement",
"type" => "textarea",
"help" => __( 'Only show in the homepage, support for HTML code.' , 'wpdx' )
)
);
cmp_options(
array( "name" => __( 'User Center Announcement' , 'wpdx' ),
"id" => "user_tips",
"type" => "textarea",
"help" => __( 'Only show in the User Center Page Template, support for HTML code. Leave blank not show anything.' , 'wpdx' )
)
);
?>
<h3><?php _e( 'Title Settings', 'wpdx' ); ?></h3>
<?php
cmp_options(
array( "name" => __( 'Display Blog name after title' , 'wpdx' ),
"id" => "title_suffix",
"type" => "checkbox",
"help" => __( 'Display Blog name after title of all pages.' , 'wpdx' )
)
);
cmp_options(
array( "name" => __( 'Separator between title and Blog name' , 'wpdx' ),
"id" => "separator",
"type" => "text",
"help" => __( "Separator between title and Blog name, you can use | , _ , - , > and so on. Default is '|'." , 'wpdx' )
)
);
?>
</div>
<div class="cmppanel-item">
<h3><?php _e( 'Favicon', 'wpdx' ); ?></h3>
<?php
cmp_options(array(
"name" => __( 'Custom Favicon' , 'wpdx' ),
"id" => "favicon",
"type" => "upload",
"help" => __('Upload a icon (.ico), size 32x32 or 16x16','wpdx')
));
?>
</div>
<div class="cmppanel-item">
<h3><?php _e( 'Logo settings', 'wpdx' ); ?></h3>
<?php
cmp_options(array(
"name" => __( 'Blog Logo' , 'wpdx' ),
"id" => "logo",
"type" => "upload",
"help" => __('You can replace the
没有合适的资源?快使用搜索试试~ 我知道了~
易客酷帝国cms企业商城模板源码yikekuV1.0
共261个文件
php:126个
gif:39个
png:35个
需积分: 0 0 下载量 70 浏览量
2023-12-06
16:12:03
上传
评论
收藏 2.2MB ZIP 举报
温馨提示
易客酷企业商城模板yikekuV1.0是一款由帝国cms开源程序开发的企业型网站,简单的源码模板页面设计,专业的cms内容管理系统更易让搜索引擎抓取。网站源码开源,所有后台数据、页面内容、模板都可以修改,同时支持二次开发(m.bokequ.com/moban/1315.html) 易客酷商城源码适合做微信分销系统、微信商城、APP分销商城、微信小程序、B2B2C多用户商城系统、微商系统、防伪系统等软件开发内容的企业网站
资源推荐
资源详情
资源评论
收起资源包目录
易客酷帝国cms企业商城模板源码yikekuV1.0 (261个子文件)
style.css 96KB
font-awesome.min.css 30KB
highslide.css 22KB
style.css 14KB
style-vertical.css 8KB
style-brown-red.css 7KB
style-purple.css 7KB
style-black-blue.css 6KB
style-blue.css 6KB
animate.css 830B
ie8.css 316B
zoomin.cur 326B
zoomout.cur 326B
fontawesome-webfont.eot 162KB
iconfont.eot 9KB
icon_arrow.gif 10KB
icon_wink.gif 9KB
icon_question.gif 7KB
controlbar-black-border.gif 5KB
icon_cool.gif 5KB
controlbar-white.gif 5KB
icon_mad.gif 3KB
loading.gif 3KB
controlbar-white-small.gif 3KB
icon_rolleyes.gif 3KB
icon_surprised.gif 3KB
icon_cry.gif 3KB
icon_twisted.gif 3KB
icon_evil.gif 2KB
controlbar4-hover.gif 2KB
icon_confused.gif 2KB
icon_razz.gif 2KB
icon_exclaim.gif 2KB
bx_loader.gif 2KB
icon_idea.gif 2KB
icon_lol.gif 2KB
icon_redface.gif 2KB
icon_mrgreen.gif 2KB
icon_biggrin.gif 2KB
icon_eek.gif 2KB
icon_smile.gif 1KB
icon_sad.gif 1KB
icon_neutral.gif 1KB
controlbar2.gif 884B
icon.gif 867B
controlbar4.gif 854B
controlbar3.gif 838B
grey.gif 811B
loader.white.gif 673B
loader.gif 668B
ajax-loader.gif 457B
fullexpand.gif 209B
resize.gif 70B
grey1.gif 43B
3.jpg 86KB
5.jpg 50KB
2.jpg 47KB
4.jpg 29KB
1.jpg 23KB
cmp.js 66KB
highslide.js 38KB
base.js 32KB
jquery.share.min.js 24KB
BxSlider.min1.js 23KB
BxSlider.min.js 23KB
jquery.ui.slider.js 17KB
css3-mediaqueries.js 15KB
jquery-ias.js 14KB
lazyload.min.js 7KB
comments-ajax.js 7KB
jQuery-viewport-checker.js 3KB
html5.js 2KB
checkbox.min.js 2KB
post.js 1017B
frontend-post.js 795B
smilies.js 707B
archives.js 679B
nav-menu-roles.js 585B
cmpuser.js 526B
my-quicktags.js 161B
postviews-cache.js 139B
zh_CN.mo 110KB
zh_TW.mo 110KB
default.mo 607B
FontAwesome.otf 132KB
mpanel-ui.php 210KB
theme-functions.php 88KB
timthumb.php 50KB
cmpuser.php 41KB
new-profile-edit-form.php 37KB
page-foxpay-user.php 36KB
mpanel-functions.php 31KB
default-options.php 23KB
cmpuser-frontend-post.php 22KB
home-cat-tabs-edd.php 19KB
home-cat-tabs.php 18KB
widget-slider.php 18KB
page-tags.php 18KB
nav-menu-roles.php 18KB
theme-updater.php 18KB
共 261 条
- 1
- 2
- 3
资源评论
九九极客云
- 粉丝: 63
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功