Changeset 6813
- Timestamp:
- 04/23/2018 04:47:25 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/widgets.php
r6812 r6813 1129 1129 // Verify the reply ID 1130 1130 $reply_id = bbp_get_reply_id( $widget_query->post->ID ); 1131 $reply_link = '<a class="bbp-reply-topic-title" href="' . esc_url( bbp_get_reply_url( $reply_id ) ) . '" title="' . esc_attr( bbp_get_reply_excerpt( $reply_id, 50 ) ) . '">' . bbp_get_reply_topic_title( $reply_id ) . '</a>'; 1131 $reply_link = '<a class="bbp-reply-topic-title" href="' . esc_url( bbp_get_reply_url( $reply_id ) ) . '" title="' . esc_attr( bbp_get_reply_excerpt( $reply_id, 50 ) ) . '">' . esc_html( bbp_get_reply_topic_title( $reply_id ) ) . '</a>'; 1132 $time = get_the_time( 'U', $reply_id ); 1133 $show_date = '<time datetime="' . gmdate( 'Y-m-d H:i:s', $time ) . '">' . esc_html( bbp_get_time_since( $time ) ) . '</time>'; 1132 1134 1133 1135 // Only query user if showing them … … 1142 1144 1143 1145 // translators: 1: reply author, 2: reply link, 3: reply timestamp 1144 printf( esc_html_x( '%1$s on %2$s %3$s', 'widgets', 'bbpress' ), $author_link, $reply_link, '<div>' . bbp_get_time_since( get_the_time( 'U' ) ) . '</div>');1146 printf( esc_html_x( '%1$s on %2$s %3$s', 'widgets', 'bbpress' ), $author_link, $reply_link, $show_date ); 1145 1147 1146 1148 // Reply link and timestamp 1147 1149 elseif ( ! empty( $settings['show_date'] ) ) : 1148 1149 // translators: 1: reply link, 2: reply timestamp 1150 printf( esc_html_x( '%1$s %2$s', 'widgets', 'bbpress' ), $reply_link, '<div>' . bbp_get_time_since( get_the_time( 'U' ) ) . '</div>' ); 1150 echo $reply_link . ' ' . $show_date; 1151 1151 1152 1152 // Reply author and title … … 1154 1154 1155 1155 // translators: 1: reply author, 2: reply link 1156 printf( esc_html_x( '%1$s on %2$s', 'widgets', 'bbpress' ), $author_link, $reply_link);1156 printf( esc_html_x( '%1$s on %2$s', 'widgets', 'bbpress' ), $author_link, $reply_link ); 1157 1157 1158 1158 // Only the reply title 1159 1159 else : 1160 1161 // translators: 1: reply link 1162 printf( esc_html_x( '%1$s', 'widgets', 'bbpress' ), $reply_link ); 1163 1160 echo $reply_link; 1164 1161 endif; 1165 1162
Note: See TracChangeset
for help on using the changeset viewer.