Changeset 5134 for trunk/bp-core/bp-core-template.php
- Timestamp:
- 09/09/2011 09:10:47 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template.php
r5111 r5134 1244 1244 } 1245 1245 1246 /** 1247 * Is this a user's settings page? 1248 * 1249 * @package BuddyPress 1250 * 1251 * @return bool 1252 */ 1253 function bp_is_user_settings() { 1254 if ( bp_is_user() && bp_is_settings_component() ) 1255 return true; 1256 1257 return false; 1258 } 1259 1260 /** 1261 * Is this a user's General Settings page? 1262 * 1263 * @package BuddyPress 1264 * @since 1.5 1265 * 1266 * @return bool 1267 */ 1268 function bp_is_user_settings_general() { 1269 if ( bp_is_user_settings() && bp_is_current_action( 'general' ) ) 1270 return true; 1271 1272 return false; 1273 } 1274 1275 /** 1276 * Is this a user's Notification Settings page? 1277 * 1278 * @package BuddyPress 1279 * @since 1.5 1280 * 1281 * @return bool 1282 */ 1283 function bp_is_user_settings_notifications() { 1284 if ( bp_is_user_settings() && bp_is_current_action( 'notifications' ) ) 1285 return true; 1286 1287 return false; 1288 } 1289 1290 /** 1291 * Is this a user's Account Deletion page? 1292 * 1293 * @package BuddyPress 1294 * @since 1.5 1295 * 1296 * @return bool 1297 */ 1298 function bp_is_user_settings_account_delete() { 1299 if ( bp_is_user_settings() && bp_is_current_action( 'delete-account' ) ) 1300 return true; 1301 1302 return false; 1303 } 1304 1305 1246 1306 /** Groups ******************************************************************/ 1247 1307
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)