Ticket #2541: 2541-1.patch
| File 2541-1.patch, 2.7 KB (added by , 15 years ago) |
|---|
-
bp-themes/bp-default/groups/single/forum/topic.php
18 18 19 19 <div id="topic-meta"> 20 20 <h3><?php bp_the_topic_title() ?> (<?php bp_the_topic_total_post_count() ?>)</h3> 21 <a class="button" href="<?php bp_forum_permalink() ?>/">← <?php _e( 'Group Forum', 'buddypress' ) ?></a> < a class="button" href="<?php bp_forum_directory_permalink() ?>/"><?php _e( 'Group Forum Directory', 'buddypress') ?></a>21 <a class="button" href="<?php bp_forum_permalink() ?>/">← <?php _e( 'Group Forum', 'buddypress' ) ?></a> <?php if ( !bp_forum_directory_is_disabled() ) : ?><a class="button" href="<?php bp_forum_directory_permalink() ?>/"><?php _e( 'Group Forum Directory', 'buddypress') ?></a><?php endif; ?> 22 22 23 23 <div class="admin-links"> 24 24 <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?> -
bp-themes/bp-default/functions.php
478 478 * @since 1.3 479 479 */ 480 480 function bp_dtheme_main_nav( $args ) { 481 global $bp; 482 483 $pages_args = array( 484 'title_li' => '', 485 'depth' => '0', 486 'exclude' => bp_dtheme_page_on_front() 487 ); 488 489 if ( bp_forum_directory_is_disabled() ) { 490 if ( !empty( $pages_args['exclude'] ) ) 491 $pages_args['exclude'] .= ','; 492 $pages_args['exclude'] .= $bp->pages->forums->id; 493 } 494 481 495 ?> 482 496 <ul id="nav"> 483 497 <li<?php if ( is_front_page() ) : ?> class="selected"<?php endif; ?>> 484 498 <a href="<?php echo home_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a> 485 499 </li> 486 500 487 <?php wp_list_pages( 'title_li=&depth=0&exclude=' . bp_dtheme_page_on_front() );?>501 <?php wp_list_pages( $pages_args ) ?> 488 502 <?php do_action( 'bp_nav_items' ); ?> 489 503 </ul><!-- #nav --> 490 504 <?php -
bp-forums/bp-forums-templatetags.php
1062 1062 return apply_filters( 'bp_get_forum_directory_permalink', $bp->root_domain . '/' . $bp->forums->slug ); 1063 1063 } 1064 1064 1065 function bp_forum_directory_is_disabled() { 1066 global $bp; 1067 1068 if ( !empty( $bp->site_options['bp-disable-forum-directory'] ) ) 1069 return true; 1070 1071 return false; 1072 } 1073 1065 1074 function bp_forums_tag_heat_map( $args = '' ) { 1066 1075 $defaults = array( 1067 1076 'smallest' => '10',