Skip to content
Permalink
Browse files

single.php の ページヘッダーとパンくずリストの書き方がレガシー #298

  • Loading branch information...
kurudrive committed Nov 4, 2019
1 parent 4565027 commit b99524cc8a351eb86bb838ef870d68d41eac3125
Showing with 22 additions and 2 deletions.
  1. +22 −2 single.php
@@ -1,7 +1,27 @@
<?php get_header(); ?>

<?php get_template_part( 'module_pageTit' ); ?>
<?php get_template_part( 'module_panList' ); ?>
<?php
// Dealing with old files.
// Actually, it's ok to only use get_template_part().
/*-------------------------------------------*/
/* Page Header
/*-------------------------------------------*/
$old_file_name[] = 'module_pageTit.php';
if ( locate_template( $old_file_name, false, false ) ) {
locate_template( $old_file_name, true, false );
} else {
get_template_part( 'template-parts/page-header' );
}
/*-------------------------------------------*/
/* BreadCrumb
/*-------------------------------------------*/
$old_file_name[] = 'module_panList.php';
if ( locate_template( $old_file_name, false, false ) ) {
locate_template( $old_file_name, true, false );
} else {
get_template_part( 'template-parts/breadcrumb' );
}
?>

<div class="section siteContent">
<?php do_action( 'lightning_siteContent_prepend' ); ?>

0 comments on commit b99524c

Please sign in to comment.
You can’t perform that action at this time.