Changeset 7521 for trunk/bp-core/bp-core-template.php
- Timestamp:
- 11/07/2013 05:15:51 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template.php
r7520 r7521 1437 1437 1438 1438 /** 1439 * Check whether the current page is part of the Notifications component. 1440 * 1441 * @since BuddyPress (1.9.0) 1442 * 1443 * @return bool True if the current page is part of the Notifications component. 1444 */ 1445 function bp_is_notifications_component() { 1446 if ( bp_is_current_component( 'notifications' ) ) { 1447 return true; 1448 } 1449 1450 return false; 1451 } 1452 1453 /** 1439 1454 * Check whether the current page is part of the Settings component. 1440 1455 * … … 1746 1761 if ( bp_is_user_friends() && bp_is_current_action( 'requests' ) ) 1747 1762 return true; 1763 1764 return false; 1765 } 1766 1767 /** 1768 * Is this a user's notifications page? 1769 * 1770 * Eg http://example.com/members/joe/notifications/ (or a subpage thereof). 1771 * 1772 * @since BuddyPress (1.9.0) 1773 * 1774 * @return bool True if the current page is a user's Notifications page. 1775 */ 1776 function bp_is_user_notifications() { 1777 if ( bp_is_user() && bp_is_notifications_component() ) { 1778 return true; 1779 } 1748 1780 1749 1781 return false;
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)