Changeset 4955
- Timestamp:
- 02/20/2017 09:29:40 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/sidebar.php
r4872 r4955 88 88 <?php endif; ?> 89 89 90 <?php elseif ( ! bbp_is_single_user() ) : ?>90 <?php elseif ( is_tax( 'topic-tag' ) ) : ?> 91 91 92 92 <?php 93 93 $term_subscription = ''; 94 if ( is_tax( 'topic-tag' ) &&function_exists( 'WordPressdotorg\Forums\Term_Subscription\get_subscription_link' ) ) {94 if ( function_exists( 'WordPressdotorg\Forums\Term_Subscription\get_subscription_link' ) ) { 95 95 $term_subscription = WordPressdotorg\Forums\Term_Subscription\get_subscription_link( get_queried_object()->term_id ); 96 96 } … … 99 99 } 100 100 ?> 101 102 <?php endif; ?> 103 104 <?php if ( ! bbp_is_single_user() ) : ?> 105 101 106 <div> 102 107 <h4><?php _e( 'Views', 'wporg-forums' ); ?></h4> 103 108 <ul class="topic-views"> 104 109 105 <?php foreach ( bbp_get_views() as $view => $args ) : ?> 110 <?php foreach ( bbp_get_views() as $view => $args ) : 111 if ( in_array( $view, array( 'theme', 'plugin', 'reviews', 'active' ) ) ) { 112 continue; 113 } 114 ?> 106 115 107 116 <li><a class="bbp-view-title" href="<?php bbp_view_url( $view ); ?>"><?php bbp_view_title( $view ); ?></a></li> … … 111 120 </ul> 112 121 </div> 122 123 <?php endif; ?> 124 125 <?php if ( bbp_is_single_view() && ! in_array( bbp_get_view_id(), array( 'theme', 'plugin', 'reviews', 'active' ) ) || is_tax( 'topic-tag' ) ) : ?> 113 126 114 127 <div>
Note: See TracChangeset
for help on using the changeset viewer.