Changeset 6692 for trunk/src/includes/replies/template.php
- Timestamp:
- 09/13/2017 05:14:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/template.php
r6683 r6692 2177 2177 $reply_id = bbp_get_reply_id( $reply_id ); 2178 2178 $topic_id = bbp_get_reply_topic_id( $reply_id ); 2179 $forum_id = bbp_get_reply_forum_id( $reply_id ); 2179 2180 $author_id = bbp_get_reply_author_id( $reply_id ); 2181 $reply_pos = bbp_get_reply_position( $reply_id, true ); 2180 2182 $classes = array_filter( (array) $classes ); 2181 2183 $count = isset( $bbp->reply_query->current_post ) … … 2183 2185 : 1; 2184 2186 2187 // Stripes 2188 $even_odd = ( $count % 2 ) 2189 ? 'even' 2190 : 'odd'; 2191 2192 // Forum moderator replied to topic 2193 $forum_moderator = ( bbp_is_user_forum_moderator( $author_id, $forum_id ) === $author_id ) 2194 ? 'forum-mod' 2195 : ''; 2196 2197 // Topic author replied to others 2198 $topic_author = ( bbp_get_topic_author_id( $topic_id ) === $author_id ) 2199 ? 'topic-author' 2200 : ''; 2201 2185 2202 // Get reply classes 2186 2203 $reply_classes = array( 2187 'loop-item-' . $count, 2188 ( $count % 2 ) ? 'even' : 'odd', 2189 ( $author_id === bbp_get_topic_author_id( $topic_id ) ) ? 'topic-author' : '', 2190 'user-id-' . $author_id, 2191 'bbp-parent-forum-' . bbp_get_reply_forum_id( $reply_id ), 2204 'loop-item-' . $count, 2205 'user-id-' . $author_id, 2206 'bbp-parent-forum-' . $forum_id, 2192 2207 'bbp-parent-topic-' . $topic_id, 2193 'bbp-reply-position-' . bbp_get_reply_position( $reply_id, true ) 2208 'bbp-reply-position-' . $reply_pos, 2209 $even_odd, 2210 $topic_author, 2211 $forum_moderator 2194 2212 ); 2195 2213
Note: See TracChangeset
for help on using the changeset viewer.