Skip to content

Commit

Permalink
Remove header templates from child theme
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-bernhardt committed Jan 31, 2024
1 parent a73841a commit 7cfa787
Show file tree
Hide file tree
Showing 19 changed files with 29 additions and 97 deletions.
2 changes: 1 addition & 1 deletion web/app/themes/mitlib-child/archive-interviewee.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$interviews = new \WP_Query( $interview_params );
?>

<?php get_header( 'child' ); ?>
<?php get_header(); ?>

<?php get_template_part( 'inc/breadcrumbs', 'child' ); ?>

Expand Down
2 changes: 1 addition & 1 deletion web/app/themes/mitlib-child/archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Mitlib\Child;

get_header( 'child' ); ?>
get_header(); ?>

<?php get_template_part( 'inc/breadcrumbs', 'category' ); ?>

Expand Down
19 changes: 0 additions & 19 deletions web/app/themes/mitlib-child/header-child.php

This file was deleted.

59 changes: 0 additions & 59 deletions web/app/themes/mitlib-child/header-slim.php

This file was deleted.

2 changes: 1 addition & 1 deletion web/app/themes/mitlib-child/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

?>

<?php get_header( 'child' ); ?>
<?php get_header(); ?>

<?php get_template_part( 'inc/breadcrumbs', 'sitename' ); ?>

Expand Down
2 changes: 1 addition & 1 deletion web/app/themes/mitlib-child/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Mitlib\Child;

get_header( 'child' ); ?>
get_header(); ?>

<?php get_template_part( 'inc/breadcrumbs', 'child' ); ?>

Expand Down
2 changes: 1 addition & 1 deletion web/app/themes/mitlib-child/single-exhibits.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Mitlib\Child;

get_header( 'child' );
get_header();

get_template_part( 'inc/breadcrumbs', 'child' );

Expand Down
2 changes: 1 addition & 1 deletion web/app/themes/mitlib-child/single-interview.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Mitlib\PostTypes;

get_header( 'child' ); // Should be 'moh'?
get_header();

get_template_part( 'inc/breadcrumbs', 'child' );

Expand Down
2 changes: 1 addition & 1 deletion web/app/themes/mitlib-child/single.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Mitlib\Child;

get_header( 'child' );
get_header();

get_template_part( 'inc/breadcrumbs', 'child' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Mitlib\Child;

get_header( 'child' );
get_header();
?>

<?php get_template_part( 'inc/breadcrumbs', 'child' ); ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Mitlib\Child;

get_header( 'child' ); ?>
get_header(); ?>

<?php
// Get today's date in the right format.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

namespace Mitlib\Child;

get_header( 'child' );
get_header();

// Pages using this template should have one and only one category value. If
// the page is placed in multiple categories, then the first term returned here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Mitlib\Child;

get_header( 'child' );
get_header();
?>

<?php get_template_part( 'inc/breadcrumbs', 'child' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion web/app/themes/mitlib-child/templates/page-front.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
?>

<?php get_header( 'child' ); ?>
<?php get_header(); ?>

<?php
if ( is_front_page() ) {
Expand Down
2 changes: 1 addition & 1 deletion web/app/themes/mitlib-child/templates/page-full-width.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

?>

<?php get_header( 'child' ); ?>
<?php get_header(); ?>

<?php
if ( is_front_page() ) {
Expand Down
2 changes: 1 addition & 1 deletion web/app/themes/mitlib-child/templates/page-posts-feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
?>

<?php get_header( 'child' ); ?>
<?php get_header(); ?>

<?php
if ( is_front_page() ) {
Expand Down
2 changes: 1 addition & 1 deletion web/app/themes/mitlib-child/templates/page-widgetized.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
?>

<?php get_header( 'child' ); ?>
<?php get_header(); ?>

<?php
if ( is_front_page() ) {
Expand Down
2 changes: 1 addition & 1 deletion web/app/themes/mitlib-child/templates/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
?>

<?php get_header( 'child' ); ?>
<?php get_header(); ?>

<?php
if ( is_front_page() ) {
Expand Down
16 changes: 13 additions & 3 deletions web/app/themes/mitlib-parent/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

namespace Mitlib\Parent;

$menu = 'full';
if ( 'slim' === get_option( 'menu_style_setting' ) ) {
$menu = 'slim';
}
?><!DOCTYPE html>
<!--[if lte IE 9]><html class="no-js lte-ie9" lang="en"><![endif]-->
<!--[if !(IE 8) | !(IE 9) ]><!-->
Expand Down Expand Up @@ -39,10 +43,16 @@
<div id="skip"><a href="#content">Skip to Main Content</a></div>
<div class="wrap-page">
<header class="header-main flex-container flex-end">
<?php get_template_part( 'inc/nav', 'hamburger' ); ?>
<?php if ( 'full' === $menu ) { ?>
<?php get_template_part( 'inc/nav', 'hamburger' ); ?>
<?php } ?>
<?php get_template_part( 'inc/liblogo' ); ?>
<?php get_template_part( 'inc/nav', 'main' ); ?>
<?php if ( 'full' === $menu ) { ?>
<?php get_template_part( 'inc/nav', 'main' ); ?>
<?php } ?>
<a class="link-logo-mit" href="http://www.mit.edu"><img src="https://cdn.libraries.mit.edu/files/branding/local/mit_logo_std_rgb_white.svg" height="32" alt="MIT logo" >
</a><!-- End MIT Logo -->
<?php get_template_part( 'inc/nav', 'smalldisplays' ); ?>
<?php if ( 'full' === $menu ) { ?>
<?php get_template_part( 'inc/nav', 'smalldisplays' ); ?>
<?php } ?>
</header>

0 comments on commit 7cfa787

Please sign in to comment.