Skip to:
Content

BuddyPress.org

Ticket #2541: 2541.patch

File 2541.patch, 1.7 KB (added by boonebgorges, 16 years ago)
  • bp-themes/bp-default/groups/single/forum/topic.php

     
    1818
    1919                <div id="topic-meta">
    2020                        <h3><?php bp_the_topic_title() ?> (<?php bp_the_topic_total_post_count() ?>)</h3>
    21                         <a class="button" href="<?php bp_forum_permalink() ?>/">&larr; <?php _e( 'Group Forum', 'buddypress' ) ?></a> &nbsp; <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() ?>/">&larr; <?php _e( 'Group Forum', 'buddypress' ) ?></a><?php if ( !bp_forum_directory_is_disabled() ) : ?> &nbsp; <a class="button" href="<?php bp_forum_directory_permalink() ?>/"><?php _e( 'Group Forum Directory', 'buddypress') ?></a><?php endif; ?>
    2222
    2323                        <div class="admin-links">
    2424                                <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
  • bp-forums/bp-forums-templatetags.php

     
    10421042                return apply_filters( 'bp_get_forum_directory_permalink', $bp->root_domain . '/' . $bp->forums->slug );
    10431043        }
    10441044
     1045function 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
    10451054function bp_forums_tag_heat_map( $args = '' ) {
    10461055        $defaults = array(
    10471056                'smallest' => '10',