Skip to:
Content

BuddyPress.org

Changeset 3928


Ignore:
Timestamp:
01/25/2011 10:53:11 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Add New Topic and Forum Directory links to Group Forum subnav. Adjust button class and global.js to work with either method.

Location:
trunk/bp-themes/bp-default
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/global.js

    r3812 r3928  
    589589
    590590    /* Hit the "New Topic" button on the forums directory page */
    591     jq('a#new-topic-button').click( function() {
     591    jq('a.show-hide-new').click( function() {
    592592        if ( !jq('div#new-topic-post').length )
    593593            return false;
  • trunk/bp-themes/bp-default/groups/single/forum.php

    r3899 r3928  
    1111else : ?>
    1212
    13     <div class="item-list-tabs" id="subnav" role="navigation">
     13    <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    1414        <ul>
     15
     16            <li>
     17                <a href="#post-new" class="show-hide-new">&darr; <?php _e( 'New Topic', 'buddypress' ) ?></a>
     18            </li>
     19
     20            <?php if ( !bp_forum_directory_is_disabled() ) : ?>
     21
     22                <li>
     23                    <a href="<?php bp_forum_directory_permalink() ?>"><?php _e( 'Forum Directory', 'buddypress') ?></a>
     24                </li>
     25
     26            <?php endif; ?>
    1527
    1628            <?php do_action( 'bp_forums_directory_group_sub_types' ); ?>
  • trunk/bp-themes/bp-default/groups/single/forum/topic.php

    r3912 r3928  
    55    <form action="<?php bp_forum_topic_action() ?>" method="post" id="forum-topic-form" class="standard-form">
    66
    7         <div class="item-list-tabs" id="subnav" role="navigation">
     7        <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    88            <ul>
    99                <li>
    10                     <a href="#post-topic-reply">&darr; <?php _e( 'Reply', 'buddypress' ) ?></a>
     10                    <a href="#post-topic-reply" class="show-hide-new">&darr; <?php _e( 'New Reply', 'buddypress' ) ?></a>
    1111                </li>
    1212
Note: See TracChangeset for help on using the changeset viewer.