Changeset 724 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
- Timestamp:
- 06/29/2014 08:41:47 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r722 r724 93 93 <li id="comment-<?php comment_ID(); ?>" <?php comment_class( empty( $args['has_children'] ) ? '' : 'parent' ); ?>> 94 94 <article id="div-comment-<?php comment_ID(); ?>" class="comment-body"> 95 <div class="comment-content code-example-container"> 96 <pre class="brush: php; toolbar: false;"><?php echo htmlentities( get_comment_text() ); ?></pre> 97 </div> 98 <!-- .comment-content --> 99 95 100 <footer class="comment-meta"> 96 101 <div class="comment-author vcard"> 102 <span class="comment-author-attribution"> 97 103 <?php if ( 0 != $args['avatar_size'] ) { 98 104 echo get_avatar( $comment, $args['avatar_size'] ); 99 105 } ?> 100 <?php printf( __( '%s <span class="says">says:</span>', 'wporg' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> 101 </div> 102 <!-- .comment-author --> 103 104 <div class="comment-metadata"> 105 <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"> 106 107 <?php 108 // This would all be moot if core passed the $comment context for 'get_comment_author_link' filter 109 if ( $comment->user_id ) { 110 $commenter = get_user_by( 'id', $comment->user_id ); 111 $url = 'https://profiles.wordpress.org/' . esc_attr( $commenter->user_nicename ) . '/'; 112 $author = get_the_author_meta( 'display_name', $comment->user_id ); 113 $comment_author_link = "<a href='$url' rel='external nofollow' class='url'>$author</a>"; 114 } else { 115 $comment_author_link = ''; 116 } 117 printf( __( 'Contributed by %s', 'wporg' ), sprintf( '<cite class="fn">%s</cite>', $comment_author_link ) ); 118 ?> 119 120 </span> 121 — 122 Added on <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"> 106 123 <time datetime="<?php comment_time( 'c' ); ?>"> 107 124 <?php printf( _x( '%1$s at %2$s', '1: date, 2: time', 'wporg' ), get_comment_date(), get_comment_time() ); ?> … … 113 130 114 131 <?php if ( '0' == $comment->comment_approved ) : ?> 115 <p class="comment-awaiting-moderation"><?php _e( 'Your commentis awaiting moderation.', 'wporg' ); ?></p>132 <p class="comment-awaiting-moderation"><?php _e( 'Your example is awaiting moderation.', 'wporg' ); ?></p> 116 133 <?php endif; ?> 117 134 </footer> 118 135 <!-- .comment-meta --> 119 120 <div class="comment-content">121 <?php comment_text(); ?>122 </div>123 <!-- .comment-content -->124 136 125 137 <?php
Note: See TracChangeset
for help on using the changeset viewer.