页面修改
This commit is contained in:
+10
-6
@@ -14,7 +14,8 @@ if ( ! function_exists( 'cyywordpress_posted_on' ) ) :
|
||||
function cyywordpress_posted_on() {
|
||||
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
|
||||
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
|
||||
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
|
||||
//$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time> <time class="updated" datetime="%3$s">%4$s</time>';
|
||||
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time> ';
|
||||
}
|
||||
|
||||
$time_string = sprintf(
|
||||
@@ -27,7 +28,8 @@ if ( ! function_exists( 'cyywordpress_posted_on' ) ) :
|
||||
|
||||
$posted_on = sprintf(
|
||||
/* translators: %s: post date. */
|
||||
esc_html_x( 'Posted on %s', 'post date', 'cyywordpress' ),
|
||||
// esc_html_x( 'Posted on %s', 'post date', 'cyywordpress' ),
|
||||
esc_html_x( '发布于 %s ', 'post date', 'cyywordpress' ),
|
||||
'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
|
||||
);
|
||||
|
||||
@@ -63,14 +65,16 @@ if ( ! function_exists( 'cyywordpress_entry_footer' ) ) :
|
||||
$categories_list = get_the_category_list( esc_html__( ', ', 'cyywordpress' ) );
|
||||
if ( $categories_list ) {
|
||||
/* translators: 1: list of categories. */
|
||||
printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', 'cyywordpress' ) . '</span>', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
// printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', 'cyywordpress' ) . '</span>', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
printf( '<span class="cat-links">' . esc_html__( '属于 %1$s 分类 ', 'cyywordpress' ) . '</span>', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
}
|
||||
|
||||
/* translators: used between list items, there is a space after the comma */
|
||||
$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'cyywordpress' ) );
|
||||
if ( $tags_list ) {
|
||||
/* translators: 1: list of tags. */
|
||||
printf( '<span class="tags-links">' . esc_html__( 'Tagged %1$s', 'cyywordpress' ) . '</span>', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
//printf( '<span class="tags-links">' . esc_html__( 'Tagged %1$s', 'cyywordpress' ) . '</span>', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
printf( '<span class="tags-links">' . esc_html__( '标签 %1$s ', 'cyywordpress' ) . '</span>', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +84,7 @@ if ( ! function_exists( 'cyywordpress_entry_footer' ) ) :
|
||||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: post title */
|
||||
__( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', 'cyywordpress' ),
|
||||
__( '发表一条评论<span class="screen-reader-text"> 在 %s</span>', 'cyywordpress' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
@@ -97,7 +101,7 @@ if ( ! function_exists( 'cyywordpress_entry_footer' ) ) :
|
||||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Edit <span class="screen-reader-text">%s</span>', 'cyywordpress' ),
|
||||
__( ' Edit <span class="screen-reader-text">%s</span>', 'cyywordpress' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
|
||||
Reference in New Issue
Block a user