Commit 30fa6df2 authored by John James Jacoby's avatar John James Jacoby

Improved mark-up for pingbacks.

parent 6e3985b9
......@@ -67,10 +67,30 @@ class F3_Walker_Comment extends Walker_Comment {
}
/**
* Output a comment in the HTML5 format.
* Outputs a pingback comment.
*
* @since 3.6.0
* @access protected
*
* @see wp_list_comments()
*
* @param WP_Comment $comment The comment object.
* @param int $depth Depth of the current comment.
* @param array $args An array of arguments.
*/
protected function ping( $comment, $depth, $args ) {
?><li id="comment-<?php comment_ID(); ?>" <?php comment_class( 'media well well-sm', $comment ); ?>>
<div class="comment-body">
<span class="label label-default"><?php esc_html_e( 'Pingback', 'swifter' ); ?></span> <?php comment_author_link( $comment ); ?> <?php edit_comment_link( esc_html__( 'Edit', 'swifter' ), '<span class="edit-link">', '</span>' ); ?>
<?php
}
/**
* Output a comment in the HTML5 format.
*
* @since 3.6.0
* @access protected
*
* @see wp_list_comments()
*
......@@ -79,9 +99,7 @@ class F3_Walker_Comment extends Walker_Comment {
* @param array $args An array of arguments.
*/
protected function html5_comment( $comment, $depth, $args ) {
?>
<li <?php comment_class( $this->has_children ? ' media parent' : 'media' ); ?> id="comment-<?php comment_ID(); ?>">
?><li <?php comment_class( $this->has_children ? ' media parent' : 'media' ); ?> id="comment-<?php comment_ID(); ?>">
<div class="media-left">
<a href="<?php echo get_comment_author_url( $comment ); ?>">
<?php echo get_avatar( $comment, 64, '', '', array( 'class' => 'media-object' ) ); ?>
......@@ -91,7 +109,7 @@ class F3_Walker_Comment extends Walker_Comment {
<h4 class="media-heading">
<?php echo get_comment_author_link( $comment ); ?>
<a href="<?php echo get_comment_link(); ?>">
<small class="text-muted"><?php printf( _x( '%1$s at %2$s', '1: date, 2: time' ), get_comment_date(), get_comment_time() ); ?></small>
<small class="text-muted"><?php printf( _x( '%1$s at %2$s', '1: date, 2: time', 'swifter' ), get_comment_date(), get_comment_time() ); ?></small>
</a>
</h4>
......@@ -113,7 +131,7 @@ class F3_Walker_Comment extends Walker_Comment {
'max_depth' => $args['max_depth']
) ) ); ?>
<?php edit_comment_link( __( 'Edit' ) ); ?>
<?php edit_comment_link( esc_html__( 'Edit', 'swifter' ) ); ?>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment