Ticket #2319: 2319.patch
File 2319.patch, 2.0 KB (added by , 11 years ago) |
---|
-
includes/common/widgets.php
803 803 $author_link = ''; 804 804 805 805 // Maybe get the topic author 806 if ( 'on' ===$settings['show_user'] ) :806 if ( $settings['show_user'] ) : 807 807 $author_link = bbp_get_topic_author_link( array( 'post_id' => $topic_id, 'type' => 'both', 'size' => 14 ) ); 808 808 endif; ?> 809 809 … … 816 816 817 817 <?php endif; ?> 818 818 819 <?php if ( 'on' ===$settings['show_date'] ) : ?>819 <?php if ( $settings['show_date'] ) : ?> 820 820 821 821 <div><?php bbp_topic_last_active_time( $topic_id ); ?></div> 822 822 … … 1154 1154 $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>'; 1155 1155 1156 1156 // Only query user if showing them 1157 if ( 'on' ===$settings['show_user'] ) :1157 if ( $settings['show_user'] ) : 1158 1158 $author_link = bbp_get_reply_author_link( array( 'post_id' => $reply_id, 'type' => 'both', 'size' => 14 ) ); 1159 1159 else : 1160 1160 $author_link = false; 1161 1161 endif; 1162 1162 1163 1163 // Reply author, link, and timestamp 1164 if ( ( 'on' === $settings['show_date'] )&& !empty( $author_link ) ) :1164 if ( $settings['show_date'] && !empty( $author_link ) ) : 1165 1165 1166 1166 // translators: 1: reply author, 2: reply link, 3: reply timestamp 1167 1167 printf( _x( '%1$s on %2$s %3$s', 'widgets', 'bbpress' ), $author_link, $reply_link, '<div>' . bbp_get_time_since( get_the_time( 'U' ) ) . '</div>' ); 1168 1168 1169 1169 // Reply link and timestamp 1170 elseif ( 'on' ===$settings['show_date'] ) :1170 elseif ( $settings['show_date'] ) : 1171 1171 1172 1172 // translators: 1: reply link, 2: reply timestamp 1173 1173 printf( _x( '%1$s %2$s', 'widgets', 'bbpress' ), $reply_link, '<div>' . bbp_get_time_since( get_the_time( 'U' ) ) . '</div>' );