' . do_shortcode( $toc_adcode ) . '
';
}
/**
* カテゴリーの階層リストを出力
* 一つ上・一つ下の階層のみ取得。
*/
public static function the_term_navigation( $the_id = '' ) {
$term = get_queried_object();
if ( ! $term ) {
return;
}
// tax名
$taxonomy = $term->taxonomy;
$show_term_navigation = 'category' === $taxonomy && \SWELL_Theme::get_setting( 'show_category_nav' );
if ( ! apply_filters( 'swell_show_term_navigation', $show_term_navigation, $taxonomy, $the_id ) ) {
return;
}
// 親ターム
$parent_nav = '';
$parent_id = $term->parent;
if ( 0 !== $parent_id ) {
$parent_data = get_term( $parent_id, $taxonomy );
$data_id = 'data-' . $taxonomy . '-id="' . $parent_id . '"';
$parent_nav .= '