Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/09/2010 04:16:51 PM (15 years ago)
Author:
apeatling
Message:

Updating template based hooks.

File:
1 edited

Legend:

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

    r2197 r2284  
     1<?php do_action( 'bp_before_group_forum_content' ) ?>
     2
    13<?php if ( bp_is_group_forum_topic_edit() ) : ?>
    24    <?php locate_template( array( 'groups/single/forum/edit.php' ), true ) ?>
     
    810
    911    <div class="forums single-forum">
    10         <?php // 'forums/topic-loop.php' loaded here via AJAX. ?>
    11     </div>
     12        <?php
     13            // The loop will be loaded here via AJAX on page load to retain selected settings and not waste cycles.
     14            // If you're concerned about no-script functionality, uncomment the following line.
     15
     16            // locate_template( array( 'forums/forums-loop.php' ), true );
     17        ?>
     18    </div><!-- .forums -->
     19
     20    <?php do_action( 'bp_after_group_forum_content' ) ?>
    1221
    1322    <?php if ( ( is_user_logged_in() && 'public' == bp_get_group_status() ) || bp_group_is_member() ) : ?>
     
    1625            <div id="post-new-topic">
    1726
    18                 <?php do_action( 'groups_forum_new_topic_before' ) ?>
     27                <?php do_action( 'bp_before_group_forum_post_new' ) ?>
    1928
    2029                <?php if ( !bp_group_is_member() ) : ?>
     
    3443                <input type="text" name="topic_tags" id="topic_tags" value="" />
    3544
    36                 <?php do_action( 'groups_forum_new_topic_after' ) ?>
     45                <?php do_action( 'bp_after_group_forum_post_new' ) ?>
    3746
    3847                <div class="submit">
     
    4150
    4251                <?php wp_nonce_field( 'bp_forums_new_topic' ) ?>
    43             </div>
     52            </div><!-- #post-new-topic -->
    4453        </form>
    4554
Note: See TracChangeset for help on using the changeset viewer.