我把epanel的引用代码去掉了你给的面板就能用了,但我需要两个面板共存,要怎么办呢?恳请万哥帮忙
add_action( 'after_setup_theme', 'et_setup_theme' );
if ( ! function_exists( 'et_setup_theme' ) ){
function et_setup_theme(){
global $themename, $shortname;
$themename = "TheCorporation";
$shortname = "thecorporation";
require_once(TEMPLATEPATH . '/epanel/custom_functions.php');
require_once(TEMPLATEPATH . '/includes/functions/comments.php');
require_once(TEMPLATEPATH . '/includes/functions/sidebars.php');
load_theme_textdomain('TheCorporation',get_template_directory().'/lang');
require_once(TEMPLATEPATH . '/epanel/options_thecorporation.php');
require_once(TEMPLATEPATH . '/epanel/core_functions.php');
require_once(TEMPLATEPATH . '/epanel/post_thumbnails_thecorporation.php');
include(TEMPLATEPATH . '/includes/widgets.php');
add_action( 'pre_get_posts', 'et_home_posts_query' );
add_action( 'et_epanel_changing_options', 'et_delete_featured_ids_cache' );
add_action( 'delete_post', 'et_delete_featured_ids_cache' );
add_action( 'save_post', 'et_delete_featured_ids_cache' );
}
}
↧