<?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
需积分: 0 69 浏览量
更新于2023-12-06
收藏 2.2MB ZIP 举报
易客酷企业商城模板yikekuV1.0是一款由帝国cms开源程序开发的企业型网站,简单的源码模板页面设计,专业的cms内容管理系统更易让搜索引擎抓取。网站源码开源,所有后台数据、页面内容、模板都可以修改,同时支持二次开发(m.bokequ.com/moban/1315.html)
易客酷商城源码适合做微信分销系统、微信商城、APP分销商城、微信小程序、B2B2C多用户商城系统、微商系统、防伪系统等软件开发内容的企业网站
九九极客云
- 粉丝: 64
- 资源: 2
最新资源
- 【课程设计】基于STM32 9003D NY3P087现代款式入户锁源码.zip
- 【课程设计】基于STC15XX实现白光烙铁源码+原理图pdf.zip
- 【课程设计】基于SpringBoot的简约投票系统源码.zip
- 【课程设计】基于STM32_RTT直流充电桩程序源码.zip
- 【课程设计】基于STM32的洗衣机源代码.zip
- 【课程设计】基于STM32实现双汇彩印溴化锂程序源码.zip
- 【课程设计】基于tensorflow多特征融合的微表情识别python源码+详细使用说明.zip
- 【课程设计】基于STM32实现小区电动车充电桩设备源码.zip
- 【课程设计】基于TensorFlow实现CNN-RNN中文文本分类源码+详细项目说明.zip
- 【课程设计】基于百度飞桨paddle实现语音情感识别源码+项目说明.zip
- 【课程设计】基于vue实现智慧城市智能交通路口视觉监控后台管理系统源码.zip
- 【课程设计】基于yolov8实现进行物体跟踪源码.zip
- 【课程设计】基于间接卡尔曼滤波的IMU与GPS融合MATLAB仿真(IMU与GPS数据由仿真生成)源码.zip
- 【课程设计】人脸识别项目实战arcface-pytorch源码+预训练模型+测试集.zip
- 【课程设计】基于微信小程序的在线免费小说应用源码.zip
- 【课程设计】实现的金融风控贷款违约预测python源码.zip