Update single-functions.php
This commit is contained in:
parent
7b0071766f
commit
d7309b1fbe
|
@ -96,26 +96,29 @@ endif;
|
||||||
/**
|
/**
|
||||||
* Display date of post.
|
* Display date of post.
|
||||||
*/
|
*/
|
||||||
function tainacan_meta_date_author( $echo = true ) {
|
if ( function_exists('tainacan_meta_date_author') ) {
|
||||||
$time = '<time class="entry-date published" datetime="%1$s">%2$s</time>';
|
function tainacan_meta_date_author( $echo = true ) {
|
||||||
|
$time = '<time class="entry-date published" datetime="%1$s">%2$s</time>';
|
||||||
|
|
||||||
$time_string = sprintf( $time,
|
$time_string = sprintf( $time,
|
||||||
esc_attr( get_the_date( 'c' ) ),
|
esc_attr( get_the_date( 'c' ) ),
|
||||||
get_the_date()
|
get_the_date()
|
||||||
);
|
);
|
||||||
|
|
||||||
$string = $time_string;
|
$string = $time_string;
|
||||||
$string .= __( ' by ', 'tainacan-interface' );
|
$string .= __( ' by ', 'tainacan-interface' );
|
||||||
$string .= get_the_author_posts_link();
|
$string .= get_the_author_posts_link();
|
||||||
|
|
||||||
$string = apply_filters( 'tainacan-meta-date-author', $string );
|
$string = apply_filters( 'tainacan-meta-date-author', $string );
|
||||||
|
|
||||||
if ( $echo ) {
|
if ( $echo ) {
|
||||||
echo $string;
|
echo $string;
|
||||||
} else {
|
} else {
|
||||||
return $string;
|
return $string;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
endif;
|
||||||
|
|
||||||
// define the cancel_comment_reply_link callback
|
// define the cancel_comment_reply_link callback
|
||||||
function tainacan_filter_cancel_comment_reply_link( $formatted_link, $link, $text ) {
|
function tainacan_filter_cancel_comment_reply_link( $formatted_link, $link, $text ) {
|
||||||
|
|
Loading…
Reference in New Issue