Changeset 5047 for trunk/bp-core/bp-core-template.php
- Timestamp:
- 08/29/2011 10:43:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template.php
r5030 r5047 1135 1135 } 1136 1136 1137 /** 1138 * Is this a user's forums page? 1139 * 1140 * @package BuddyPress 1141 * 1142 * @return bool 1143 */ 1137 1144 function bp_is_user_forums() { 1138 global $bp;1139 1140 1145 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 */ 1159 function 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 */ 1174 function bp_is_user_forums_replied_to() { 1175 if ( bp_is_current_component( 'forums' ) && bp_is_current_action( 'replies' ) ) 1141 1176 return true; 1142 1177
Note: See TracChangeset
for help on using the changeset viewer.