From 7cfa78713c2cd1f4896b82711b0f8ef1dcf97461 Mon Sep 17 00:00:00 2001 From: Matthew Bernhardt Date: Wed, 31 Jan 2024 16:38:47 -0500 Subject: [PATCH] Remove header templates from child theme --- .../mitlib-child/archive-interviewee.php | 2 +- web/app/themes/mitlib-child/archive.php | 2 +- web/app/themes/mitlib-child/header-child.php | 19 ------ web/app/themes/mitlib-child/header-slim.php | 59 ------------------- web/app/themes/mitlib-child/index.php | 2 +- web/app/themes/mitlib-child/search.php | 2 +- .../themes/mitlib-child/single-exhibits.php | 2 +- .../themes/mitlib-child/single-interview.php | 2 +- web/app/themes/mitlib-child/single.php | 2 +- .../templates/page-exhibits-feed.php | 2 +- .../templates/page-exhibits-home.php | 2 +- .../templates/page-exhibits-location.php | 2 +- .../templates/page-exhibits-past.php | 2 +- .../mitlib-child/templates/page-front.php | 2 +- .../templates/page-full-width.php | 2 +- .../templates/page-posts-feed.php | 2 +- .../templates/page-widgetized.php | 2 +- .../themes/mitlib-child/templates/page.php | 2 +- web/app/themes/mitlib-parent/header.php | 16 ++++- 19 files changed, 29 insertions(+), 97 deletions(-) delete mode 100644 web/app/themes/mitlib-child/header-child.php delete mode 100644 web/app/themes/mitlib-child/header-slim.php 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/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 @@ } ?> - + - + - + - + - + @@ -39,10 +43,16 @@
- + + + - + + + MIT logo - + + +