forked from mirror/_s
_s: Simplify 'Posted on' string for easier translation and add a HTML
wrapper for easier CSS manipulation. Props @grappler. Fixes #253.
This commit is contained in:
parent
36ad7cb751
commit
d279972455
|
@ -178,11 +178,10 @@ function _s_posted_on() {
|
|||
);
|
||||
|
||||
printf( __( '<span class="posted-on">Posted on %1$s</span><span class="byline"> by %2$s</span>', '_s' ),
|
||||
sprintf( '<a href="%1$s" title="%2$s" rel="bookmark">' . $time_string . '</a>',
|
||||
sprintf( '<a href="%1$s" title="%2$s" rel="bookmark">%3$s</a>',
|
||||
esc_url( get_permalink() ),
|
||||
esc_attr( get_the_time() ),
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() )
|
||||
$time_string
|
||||
),
|
||||
sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
|
|
Reference in New Issue