Skip to content

Commit

Permalink
Replaced usage of navigation block template with new template-part
Browse files Browse the repository at this point in the history
  • Loading branch information
pbking committed Apr 27, 2021
1 parent 0744039 commit 7e21e52
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 34 deletions.
4 changes: 2 additions & 2 deletions quadrat/404.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
get_header();

// the header
echo do_blocks( file_get_contents( get_stylesheet_directory() . '/templates/header.html' ) );
get_template_part( 'template-parts/header' );

echo do_blocks( file_get_contents( get_stylesheet_directory() . '/templates/404.html' ) );

// the footer
echo do_blocks( file_get_contents( get_stylesheet_directory() . '/templates/footer.html' ) );

get_footer();
get_footer();
2 changes: 1 addition & 1 deletion quadrat/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
get_header();

// the header
echo do_blocks( file_get_contents( get_stylesheet_directory() . '/templates/header.html' ) );
get_template_part( 'template-parts/header' );

// the query
echo do_blocks( '<!-- wp:post-content {"layout":{"inherit":true}} /-->' );
Expand Down
4 changes: 2 additions & 2 deletions quadrat/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
get_header();

// the header
echo do_blocks( file_get_contents( get_stylesheet_directory() . '/templates/header.html' ) );
get_template_part( 'template-parts/header' );

echo do_blocks( file_get_contents( get_stylesheet_directory() . '/templates/search.html' ) );

// the footer
echo do_blocks( file_get_contents( get_stylesheet_directory() . '/templates/footer.html' ) );

get_footer();
get_footer();
4 changes: 2 additions & 2 deletions quadrat/singular.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
get_header();

// the header
echo do_blocks( file_get_contents( get_stylesheet_directory() . '/templates/header.html' ) );
get_template_part( 'template-parts/header' );

echo do_blocks( '<!-- wp:post-content {"layout":{"inherit":true}} /-->' );

// the footer
echo do_blocks( file_get_contents( get_stylesheet_directory() . '/templates/footer.html' ) );

get_footer();
get_footer();
27 changes: 0 additions & 27 deletions quadrat/templates/header.html

This file was deleted.

Empty file removed quadrat/templates/navigation.html
Empty file.

0 comments on commit 7e21e52

Please sign in to comment.