1348 | | ?> |
1349 | | <<?php echo $tag ?> <?php comment_class(empty( $args['has_children'] ) ? '' : 'parent') ?> id="comment-<?php comment_ID() ?>"> |
1350 | | <?php if ( 'div' != $args['style'] ) : ?> |
1351 | | <div id="div-comment-<?php comment_ID() ?>" class="comment-body"> |
1352 | | <?php endif; ?> |
1353 | | <div class="comment-author vcard"> |
1354 | | <?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['avatar_size'] ); ?> |
1355 | | <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?> |
1356 | | </div> |
1357 | | <?php if ($comment->comment_approved == '0') : ?> |
1358 | | <em class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.') ?></em> |
1359 | | <br /> |
1360 | | <?php endif; ?> |
| 1348 | |
| 1349 | switch ( $comment->comment_type ) : |
| 1350 | case 'pingback' : |
| 1351 | case 'trackback' : |
| 1352 | // Display trackbacks differently than normal comments. |
| 1353 | ?> |
| 1354 | <<?php echo $tag ?> <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>"> |
| 1355 | <div class="comment-body"><?php _e( 'Pingback:' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)' ), '<span class="edit-link">', '</span>' ); ?></div> |
| 1356 | <?php |
| 1357 | break; |
| 1358 | default : |
| 1359 | // Proceed with normal comments. |
| 1360 | ?> |
| 1361 | <<?php echo $tag ?> <?php comment_class( empty( $args['has_children'] ) ? '' : 'parent' ); ?> id="comment-<?php comment_ID(); ?>"> |
| 1362 | <?php if ( 'div' != $args['style'] ) : ?> |
| 1363 | <div id="div-comment-<?php comment_ID(); ?>" class="comment-body"> |
| 1364 | <?php endif; ?> |
| 1365 | <div class="comment-author vcard"> |
| 1366 | <?php |
| 1367 | if ( 0 != $args['avatar_size'] ) |
| 1368 | echo get_avatar( $comment, $args['avatar_size'] ); |
| 1369 | ?> |
| 1370 | <?php printf( __( '<cite class="fn">%s</cite> <span class="says">says:</span>' ), get_comment_author_link() ); ?> |
| 1371 | </div><!-- .comment-author --> |
1362 | | <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"> |
1363 | | <?php |
1364 | | /* translators: 1: date, 2: time */ |
1365 | | printf( __('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),' ','' ); |
1366 | | ?> |
1367 | | </div> |
| 1373 | <div class="comment-meta commentmetadata"> |
| 1374 | <a href="<?php echo esc_html( get_comment_link( $comment->comment_ID ) ); ?>"> |
| 1375 | <?php printf( __( '%1$s at %2$s' ), get_comment_date(), get_comment_time() ); /* translators: 1: date, 2: time */ ?></a> |
| 1376 | <?php edit_comment_link( __( '(Edit)' ), '<span class="edit-link">', '</span>' ); ?> |
| 1377 | </div><!-- .comment-meta --> |
1371 | | <div class="reply"> |
1372 | | <?php comment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?> |
1373 | | </div> |
1374 | | <?php if ( 'div' != $args['style'] ) : ?> |
1375 | | </div> |
1376 | | <?php endif; ?> |
1377 | | <?php |
| 1383 | <div class="comment-text"> |
| 1384 | <?php comment_text(); ?> |
| 1385 | </div><!-- .comment_text --> |
| 1386 | |
| 1387 | <div class="reply"> |
| 1388 | <?php comment_reply_link( array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> |
| 1389 | </div><!-- .reply --> |
| 1390 | <?php if ( 'div' != $args['style'] ) : ?> |
| 1391 | </div><!-- div-comment-## --> |
| 1392 | <?php endif; |
| 1393 | |
| 1394 | break; |
| 1395 | endswitch; // end comment_type check |
1389 | | function end_el(&$output, $comment, $depth = 0, $args = array() ) { |
1390 | | if ( !empty($args['end-callback']) ) { |
1391 | | call_user_func($args['end-callback'], $comment, $args, $depth); |
| 1407 | function end_el( &$output, $comment, $depth = 0, $args = array() ) { |
| 1408 | if ( !empty( $args['end-callback'] ) ) { |
| 1409 | call_user_func( $args['end-callback'], $comment, $args, $depth ); |