Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/24/2011 11:23:26 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Add order-by sub-navigation to group forums. And code clean-up of forum.php and group-header.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/groups/single/forum.php

    r3771 r3899  
    1 <?php do_action( 'bp_before_group_forum_content' ) ?>
     1<?php
    22
    3 <?php if ( bp_is_group_forum_topic_edit() ) : ?>
    4     <?php locate_template( array( 'groups/single/forum/edit.php' ), true ) ?>
     3do_action( 'bp_before_group_forum_content' );
    54
    6 <?php elseif ( bp_is_group_forum_topic() ) : ?>
    7     <?php locate_template( array( 'groups/single/forum/topic.php' ), true ) ?>
     5if ( bp_is_group_forum_topic_edit() ) :
     6    locate_template( array( 'groups/single/forum/edit.php' ), true );
    87
    9 <?php else : ?>
     8elseif ( bp_is_group_forum_topic() ) :
     9    locate_template( array( 'groups/single/forum/topic.php' ), true );
     10
     11else : ?>
     12
     13    <div class="item-list-tabs" id="subnav" role="navigation">
     14        <ul>
     15
     16            <?php do_action( 'bp_forums_directory_group_sub_types' ); ?>
     17
     18            <li id="forums-order-select" class="last filter">
     19
     20                <?php _e( 'Order By:', 'buddypress' ); ?>
     21
     22                <select>
     23                    <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
     24                    <option value="popular"><?php _e( 'Most Posts', 'buddypress' ); ?></option>
     25                    <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
     26
     27                    <?php do_action( 'bp_forums_directory_order_options' ); ?>
     28
     29                </select>
     30            </li>
     31        </ul>
     32    </div>
    1033
    1134    <div class="forums single-forum" role="main">
     35
    1236        <?php locate_template( array( 'forums/forums-loop.php' ), true ) ?>
     37
    1338    </div><!-- .forums.single-forum -->
    1439
Note: See TracChangeset for help on using the changeset viewer.