Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/29/2011 10:43:45 PM (14 years ago)
Author:
boonebgorges
Message:

Fixes total found topic count for Started Topics and Replied To tabs on user profiles. Adds template tags to check whether you're looking at Started Topics or Replied To. Fixes class name in members/single/forums.php so that AJAX pagination works correctly. Fixes #3431

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r5030 r5047  
    11351135}
    11361136
     1137/**
     1138 * Is this a user's forums page?
     1139 *
     1140 * @package BuddyPress
     1141 *
     1142 * @return bool
     1143 */
    11371144function bp_is_user_forums() {
    1138     global $bp;
    1139 
    11401145    if ( bp_is_current_component( 'forums' ) )
     1146        return true;
     1147
     1148    return false;
     1149}
     1150
     1151/**
     1152 * Is this a user's "Topics Started" page?
     1153 *
     1154 * @package BuddyPress
     1155 * @since 1.5
     1156 *
     1157 * @return bool
     1158 */
     1159function bp_is_user_forums_started() {
     1160    if ( bp_is_current_component( 'forums' ) && bp_is_current_action( 'topics' ) )
     1161        return true;
     1162
     1163    return false;
     1164}
     1165
     1166/**
     1167 * Is this a user's "Replied To" page?
     1168 *
     1169 * @package BuddyPress
     1170 * @since 1.5
     1171 *
     1172 * @return bool
     1173 */
     1174function bp_is_user_forums_replied_to() {
     1175    if ( bp_is_current_component( 'forums' ) && bp_is_current_action( 'replies' ) )
    11411176        return true;
    11421177
Note: See TracChangeset for help on using the changeset viewer.