$date,
'modified' => $modified,
) );
}
/**
* 投稿リスト用のカテゴリー for ~1.4
*/
function ark_the__post_list_category() {
\Arkhe::get_part( 'post_list/item/meta/category' );
}
/**
* 投稿リスト用の著者情報
*/
function ark_the__post_list_author( $author_id ) {
\Arkhe::get_part( 'post_list/item/meta/author', array( 'author_id' => $author_id ) );
}
/*
* タームリストを出力する for ~1.4
*/
function ark_get__term_links( $the_id = '', $tax_slug = '', $is_head = true ) {
if ( 'cat' === $tax_slug ) {
$terms = get_the_category( $the_id );
$icon = 'arkhe-icon-folder';
} elseif ( 'tag' === $tax_slug ) {
$terms = get_the_tags( $the_id );
$icon = 'arkhe-icon-tag';
} else {
$terms = get_the_terms( $the_id, $tax_slug );
$icon = 'arkhe-icon-' . $tax_slug;
}
if ( empty( $terms ) ) return '';
// is_head なら リスト全体の前にアイコンを一つ
$return = $is_head ? '' : '';
foreach ( $terms as $term ) {
$term_link = get_term_link( $term );
$return .= 'term_id ) . '">' .
esc_html( $term->name ) .
'';
}
return apply_filters( 'ark_get__term_links', $return, $the_id, $tax_slug );
}