register_panel_type('borno_WP_Customize_Panel'); $borno_theme_options = new borno_WP_Customize_Panel($wp_customize, 'borno_theme_options', array( 'title' => __('borno Theme Options', 'borno'), 'capability' => 'edit_theme_options', 'priority' => 1, )); $wp_customize->add_panel($borno_theme_options); /** * ================================================ * ================= Header Panel ================= * ================================================ */ $borno_header = new borno_WP_Customize_Panel($wp_customize, 'borno', array( 'title' => __('General', 'borno'), 'capability' => 'edit_theme_options', 'panel' => 'borno_theme_options', 'priority' => 1, )); $wp_customize->add_panel($borno_header); require_once get_template_directory() . '/inc/option-panel/op-header.php'; require_once get_template_directory() . '/inc/option-panel/op-footer.php'; /** * ================================================ * ================= Homepage Panel =============== * ================================================ */ $borno_homepage = new borno_WP_Customize_Panel($wp_customize, 'borno_homepage', array( 'title' => __('Homepage Options', 'borno'), 'capability' => 'edit_theme_options', 'panel' => 'borno_theme_options', 'priority' => 2, )); $wp_customize->add_panel($borno_homepage); require_once get_template_directory() . '/inc/option-panel/op-blog.php'; } add_action('customize_register', 'borno_customize_register');