diff --git a/functions.php b/functions.php index 0c552a2..a71f576 100644 --- a/functions.php +++ b/functions.php @@ -45,15 +45,6 @@ function cs_setup() { 'primary' => __( 'Primary Menu', 'cs' ), ) ); - // Enable support for Post Formats. - add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); - - // Setup the WordPress core custom background feature. - add_theme_support( 'custom-background', apply_filters( 'cs_custom_background_args', array( - 'default-color' => 'ffffff', - 'default-image' => '', - ) ) ); - // Enable support for HTML5 markup. add_theme_support( 'html5', array( 'comment-list', @@ -108,10 +99,6 @@ function cs_widgets_init() { */ require get_template_directory() . '/inc/private-pages.php'; -/** - * Implement the Custom Header feature. - */ -require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. @@ -129,9 +116,11 @@ function cs_widgets_init() { require get_template_directory() . '/inc/customizer.php'; /** -* New versions of functions from Hale, added as includes +* New nav walkers */ require get_template_directory() . '/inc/nav-walker.php'; +require get_template_directory() . '/inc/nav-drop-multi-walker.php'; +require get_template_directory() . '/inc/nav-tabs-walker.php'; /** * Bootstrap the comment form. @@ -235,4 +224,12 @@ function remove_submenu() { } add_action( 'admin_menu', 'remove_submenu', 999 ); +function remove_core_widgets() { + unregister_widget('WP_Widget_Calendar'); + unregister_widget('WP_Widget_Meta'); +} +add_action( 'widgets_init', 'remove_core_widgets' ); + + + ?> \ No newline at end of file diff --git a/inc/customizer-colors.php b/inc/customizer-colors.php deleted file mode 100644 index b0cd2d8..0000000 --- a/inc/customizer-colors.php +++ /dev/null @@ -1,56 +0,0 @@ -add_setting( 'h1_color' , array( - 'default' => 'inherit', - 'transport' => 'refresh', - ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'h1_color', array( - 'label' => __( 'Header 1 Color', 'cornerstone' ), - 'section' => 'colors', - 'settings' => 'h1_color', - ) ) ); - $wp_customize->add_setting( 'h2_color' , array( - 'default' => 'inherit', - 'transport' => 'refresh', - ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'h2_color', array( - 'label' => __( 'Header 2 Color', 'cornerstone' ), - 'section' => 'colors', - 'settings' => 'h2_color', - ) ) ); - $wp_customize->add_setting( 'text_color' , array( - 'default' => 'inherit', - 'transport' => 'refresh', - ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'text_color', array( - 'label' => __( 'Text Color', 'cornerstone' ), - 'section' => 'colors', - 'settings' => 'text_color', - ) ) ); - $wp_customize->add_setting( 'a_color' , array( - 'default' => 'inherit', - 'transport' => 'refresh', - ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'a_color', array( - 'label' => __( 'Link Color', 'cornerstone' ), - 'section' => 'colors', - 'settings' => 'a_color', - ) ) ); - $wp_customize->add_setting( 'ahover_color' , array( - 'default' => 'inherit', - 'transport' => 'refresh', - ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'ahover_color', array( - 'label' => __( 'Link Hover Color', 'cornerstone' ), - 'section' => 'colors', - 'settings' => 'ahover_color', - ) ) ); - $wp_customize->add_setting( 'avisited_color' , array( - 'default' => 'inherit', - 'transport' => 'refresh', - ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'avisited_color', array( - 'label' => __( 'Link Visited Color', 'cornerstone' ), - 'section' => 'colors', - 'settings' => 'avisited_color', - ) ) ); -?> \ No newline at end of file diff --git a/inc/customizer.php b/inc/customizer.php index ed4bb1b..b06c303 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -5,7 +5,6 @@ function cs_customize_register( $wp_customize ) { include('customizer-titlebar.php'); include('customizer-nav.php'); - include('customizer-colors.php'); include('customizer-homepage-layout.php'); } add_action( 'customize_register', 'cs_customize_register' );