Ticket #2541: 2541.patch
| File 2541.patch, 1.7 KB (added by , 16 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-forums/bp-forums-templatetags.php
1042 1042 return apply_filters( 'bp_get_forum_directory_permalink', $bp->root_domain . '/' . $bp->forums->slug ); 1043 1043 } 1044 1044 1045 function bp_forum_directory_is_disabled() { 1046 global $bp; 1047 1048 if ( (int) $bp->site_options['bp-disable-forum-directory'] ) 1049 return true; 1050 1051 return false; 1052 } 1053 1045 1054 function bp_forums_tag_heat_map( $args = '' ) { 1046 1055 $defaults = array( 1047 1056 'smallest' => '10',