Changeset 4770
- Timestamp:
- 01/24/2017 03:48:52 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/loop-posts.php
r4769 r4770 7 7 * @subpackage Theme 8 8 */ 9 10 $is_moderator_view = class_exists( '\WordPressdotorg\Forums\Moderators' ) 11 && defined( '\WordPressdotorg\Forums\Moderators::VIEWS' ) 12 && in_array( bbp_get_view_id(), \WordPressdotorg\Forums\Moderators::VIEWS ); 9 13 10 14 ?> … … 21 25 <span class="bbp-header"> 22 26 <?php esc_html_e( 'Forum:', 'wporg-forums' ); ?> 23 <a class="bbp-forum-permalink" href="<?php bbp_forum_permalink( bbp_get_topic_forum_id() ); ?>"><?php bbp_forum_title( bbp_get_topic_forum_id() ); ?></a><br /> 27 <a class="bbp-forum-permalink" href="<?php 28 $forum_url = bbp_get_forum_permalink( bbp_get_topic_forum_id() ); 29 if ( $is_moderator_view ) { 30 $forum_url = add_query_arg( 'view', 'all', $forum_url ); 31 } 32 echo esc_url( $forum_url ); 33 ?>"><?php bbp_forum_title( bbp_get_topic_forum_id() ); ?></a><br /> 24 34 <?php esc_html_e( 'As the topic:', 'wporg-forums' ); ?> 25 <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_topic_id() ); ?></a> 35 <a class="bbp-topic-permalink" href="<?php 36 $topic_url = bbp_get_topic_permalink( bbp_get_topic_id() ); 37 if ( $is_moderator_view ) { 38 $topic_url = add_query_arg( 'view', 'all', $topic_url ); 39 } 40 echo esc_url( $topic_url ); 41 ?>"><?php bbp_topic_title( bbp_get_topic_id() ); ?></a> 26 42 </span> 27 43 </div><!-- .bbp-meta --> … … 37 53 <span class="bbp-header"> 38 54 <?php esc_html_e( 'Forum:', 'wporg-forums' ); ?> 39 <a class="bbp-forum-permalink" href="<?php bbp_forum_permalink( bbp_get_reply_forum_id() ); ?>"><?php bbp_forum_title( bbp_get_reply_forum_id() ); ?></a><br /> 55 <a class="bbp-forum-permalink" href="<?php 56 $forum_url = bbp_get_forum_permalink( bbp_get_reply_forum_id() ); 57 if ( $is_moderator_view ) { 58 $forum_url = add_query_arg( 'view', 'all', $forum_url ); 59 } 60 echo esc_url( $forum_url ); 61 ?>"><?php bbp_forum_title( bbp_get_reply_forum_id() ); ?></a><br /> 40 62 <?php esc_html_e( 'In reply to:', 'wporg-forums' ); ?> 41 <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a> 63 <a class="bbp-topic-permalink" href="<?php 64 $topic_url = bbp_get_topic_permalink( bbp_get_reply_topic_id() ); 65 if ( $is_moderator_view ) { 66 $topic_url = add_query_arg( 'view', 'all', $topic_url ); 67 } 68 echo esc_url( $topic_url ); 69 ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a> 42 70 </span> 43 71 </div><!-- .bbp-meta -->
Note: See TracChangeset
for help on using the changeset viewer.