forked from mirror/_s
_s: Aggregate translation strings and make comment edit links easier to
style.
This commit is contained in:
parent
914c6c21de
commit
9fe1b0d8a8
|
@ -73,7 +73,7 @@ function _s_comment( $comment, $args, $depth ) {
|
||||||
case 'trackback' :
|
case 'trackback' :
|
||||||
?>
|
?>
|
||||||
<li class="post pingback">
|
<li class="post pingback">
|
||||||
<p><?php _e( 'Pingback:', '_s' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', '_s' ), ' ' ); ?></p>
|
<p><?php _e( 'Pingback:', '_s' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', '_s' ), '<span class="edit-link">', '<span>' ); ?></p>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
|
@ -92,12 +92,9 @@ function _s_comment( $comment, $args, $depth ) {
|
||||||
|
|
||||||
<div class="comment-meta commentmetadata">
|
<div class="comment-meta commentmetadata">
|
||||||
<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time datetime="<?php comment_time( 'c' ); ?>">
|
<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time datetime="<?php comment_time( 'c' ); ?>">
|
||||||
<?php
|
<?php printf( _x( '%1$s at %2$s', '1: date, 2: time', '_s' ), get_comment_date(), get_comment_time() ); ?>
|
||||||
/* translators: 1: date, 2: time */
|
|
||||||
printf( __( '%1$s at %2$s', '_s' ), get_comment_date(), get_comment_time() ); ?>
|
|
||||||
</time></a>
|
</time></a>
|
||||||
<?php edit_comment_link( __( '(Edit)', '_s' ), ' ' );
|
<?php edit_comment_link( __( 'Edit', '_s' ), '<span class="edit-link">', '<span>' ); ?>
|
||||||
?>
|
|
||||||
</div><!-- .comment-meta .commentmetadata -->
|
</div><!-- .comment-meta .commentmetadata -->
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|
Reference in New Issue