Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/25/2011 11:18:23 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Set first tabs on members and forums directories to the component root slug. Add supporting member_slug functions. Add proper empty() check to current_group is_member.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/forums/index.php

    r3927 r3930  
    2121            <form action="" method="post" id="forums-search-form" class="dir-form">
    2222
    23                 <h3><?php _e( 'Group Forums Directory', 'buddypress' ); ?><?php if ( is_user_logged_in() ) : ?> &nbsp;<a class="button" href="#new-topic" id="new-topic-button"><?php _e( 'New Topic', 'buddypress' ); ?></a><?php endif; ?></h3>
     23                <h3><?php _e( 'Group Forums Directory', 'buddypress' ); ?><?php if ( is_user_logged_in() ) : ?> &nbsp;<a class="button show-hide-new" href="#new-topic" id="new-topic-button"><?php _e( 'New Topic', 'buddypress' ); ?></a><?php endif; ?></h3>
    2424
    2525                <div id="forums-dir-search" class="dir-search" role="search">
     
    3636                <div class="item-list-tabs" role="navigation">
    3737                    <ul>
    38                         <li class="selected" id="forums-all"><a href="<?php bp_root_domain(); ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() ); ?></a></li>
     38                        <li class="selected" id="forums-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_forums_root_slug() ); ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() ); ?></a></li>
    3939
    4040                        <?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.