diff --git a/web/app/themes/mitlib-child/archive-interviewee.php b/web/app/themes/mitlib-child/archive-interviewee.php index 40f68de1..a2b98a04 100644 --- a/web/app/themes/mitlib-child/archive-interviewee.php +++ b/web/app/themes/mitlib-child/archive-interviewee.php @@ -30,7 +30,7 @@ $interviews = new \WP_Query( $interview_params ); ?> - + diff --git a/web/app/themes/mitlib-child/archive.php b/web/app/themes/mitlib-child/archive.php index 4673dcda..5c660fa1 100644 --- a/web/app/themes/mitlib-child/archive.php +++ b/web/app/themes/mitlib-child/archive.php @@ -10,7 +10,7 @@ namespace Mitlib\Child; -get_header( 'child' ); ?> +get_header(); ?> diff --git a/web/app/themes/mitlib-child/functions.php b/web/app/themes/mitlib-child/functions.php index 51d827fe..d83b93f7 100644 --- a/web/app/themes/mitlib-child/functions.php +++ b/web/app/themes/mitlib-child/functions.php @@ -122,44 +122,6 @@ function theme_setup() { } add_action( 'after_setup_theme', 'Mitlib\Child\theme_setup' ); -/** - * Define a new Menu Style section within the Customizer. - * - * @link https://developer.wordpress.org/themes/customize-api/customizer-objects/ - * @param type $wp_customize The Customizer object which we are extending. - */ -function theme_menu_style_customizer( $wp_customize ) { - - $wp_customize->add_section( - 'menu_style_section', - array( - 'title' => 'Menu Style', - ) - ); - - $wp_customize->add_setting( - 'menu_style_setting', - array( - 'default' => 'Full Menu', - 'type' => 'option', - ) - ); - - $wp_customize->add_control( - 'menu_style_setting', - array( - 'label' => 'Menu Style', - 'section' => 'menu_style_section', - 'type' => 'radio', - 'choices' => array( - 'full' => 'Full Menu', - 'slim' => 'Slim No Menu', - ), - ) - ); -} -add_action( 'customize_register', 'Mitlib\Child\theme_menu_style_customizer' ); - /** * Define register_child_nav function. */ diff --git a/web/app/themes/mitlib-child/header-child.php b/web/app/themes/mitlib-child/header-child.php deleted file mode 100644 index f78b84a3..00000000 --- a/web/app/themes/mitlib-child/header-child.php +++ /dev/null @@ -1,19 +0,0 @@ - section and everything up till div#breadcrumb - * - * @package MITlib_Child - * @since 0.1.0 - */ - -namespace Mitlib\Child; - -?> - section and everything up till div#breadcrumb - * - * @package MITlib_Child - * @since 0.1.0 - */ - -namespace Mitlib\Child; - -?> - - - class="no-js"> - - - - - - -<?php wp_title( '|', true, 'right' ); ?> - - - - - - - -> - -
-
- -

- - MIT Libraries logo - MIT Libraries - -

- - - MIT Logo - - - - - Search - - - - -
diff --git a/web/app/themes/mitlib-child/index.php b/web/app/themes/mitlib-child/index.php index 098491cb..f4528ce3 100644 --- a/web/app/themes/mitlib-child/index.php +++ b/web/app/themes/mitlib-child/index.php @@ -12,7 +12,7 @@ ?> - + diff --git a/web/app/themes/mitlib-child/search.php b/web/app/themes/mitlib-child/search.php index 55079431..9ea2efe2 100644 --- a/web/app/themes/mitlib-child/search.php +++ b/web/app/themes/mitlib-child/search.php @@ -8,7 +8,7 @@ namespace Mitlib\Child; -get_header( 'child' ); ?> +get_header(); ?> diff --git a/web/app/themes/mitlib-child/single-exhibits.php b/web/app/themes/mitlib-child/single-exhibits.php index a86cacff..14ba957c 100644 --- a/web/app/themes/mitlib-child/single-exhibits.php +++ b/web/app/themes/mitlib-child/single-exhibits.php @@ -9,7 +9,7 @@ namespace Mitlib\Child; -get_header( 'child' ); +get_header(); get_template_part( 'inc/breadcrumbs', 'child' ); diff --git a/web/app/themes/mitlib-child/single-interview.php b/web/app/themes/mitlib-child/single-interview.php index 838001c2..15368130 100644 --- a/web/app/themes/mitlib-child/single-interview.php +++ b/web/app/themes/mitlib-child/single-interview.php @@ -8,7 +8,7 @@ namespace Mitlib\PostTypes; -get_header( 'child' ); // Should be 'moh'? +get_header(); get_template_part( 'inc/breadcrumbs', 'child' ); diff --git a/web/app/themes/mitlib-child/single.php b/web/app/themes/mitlib-child/single.php index 467129c3..8d74ff89 100644 --- a/web/app/themes/mitlib-child/single.php +++ b/web/app/themes/mitlib-child/single.php @@ -9,7 +9,7 @@ namespace Mitlib\Child; -get_header( 'child' ); +get_header(); get_template_part( 'inc/breadcrumbs', 'child' ); diff --git a/web/app/themes/mitlib-child/templates/page-exhibits-feed.php b/web/app/themes/mitlib-child/templates/page-exhibits-feed.php index d25477b0..27d75c60 100644 --- a/web/app/themes/mitlib-child/templates/page-exhibits-feed.php +++ b/web/app/themes/mitlib-child/templates/page-exhibits-feed.php @@ -8,7 +8,7 @@ namespace Mitlib\Child; -get_header( 'child' ); +get_header(); ?> diff --git a/web/app/themes/mitlib-child/templates/page-exhibits-home.php b/web/app/themes/mitlib-child/templates/page-exhibits-home.php index 099a7cb2..8e178e6e 100644 --- a/web/app/themes/mitlib-child/templates/page-exhibits-home.php +++ b/web/app/themes/mitlib-child/templates/page-exhibits-home.php @@ -9,7 +9,7 @@ namespace Mitlib\Child; -get_header( 'child' ); ?> +get_header(); ?> diff --git a/web/app/themes/mitlib-child/templates/page-front.php b/web/app/themes/mitlib-child/templates/page-front.php index 7b08617f..01e59644 100644 --- a/web/app/themes/mitlib-child/templates/page-front.php +++ b/web/app/themes/mitlib-child/templates/page-front.php @@ -20,7 +20,7 @@ } ?> - + - + - + - + - + add_section( + 'menu_style_section', + array( + 'title' => 'Menu Style', + ) + ); + + $wp_customize->add_setting( + 'menu_style_setting', + array( + 'default' => 'Full Menu', + 'type' => 'option', + ) + ); + + $wp_customize->add_control( + 'menu_style_setting', + array( + 'label' => 'Menu Style', + 'section' => 'menu_style_section', + 'type' => 'radio', + 'choices' => array( + 'full' => 'Full Menu', + 'slim' => 'Slim No Menu', + ), + ) + ); +} +add_action( 'customize_register', 'Mitlib\Parent\customize_menu_style' ); + /** * Creates a nicely formatted and more specific title element text * for output in head of document, based on current view. diff --git a/web/app/themes/mitlib-parent/header.php b/web/app/themes/mitlib-parent/header.php index 173151ad..230281ff 100644 --- a/web/app/themes/mitlib-parent/header.php +++ b/web/app/themes/mitlib-parent/header.php @@ -10,6 +10,10 @@ namespace Mitlib\Parent; +$menu = 'full'; +if ( 'slim' === get_option( 'menu_style_setting' ) ) { + $menu = 'slim'; +} ?> @@ -39,10 +43,16 @@
- + + + - + + + MIT logo - + + +