Changeset 7926 for trunk/bp-core/bp-core-template.php
- Timestamp:
- 02/18/2014 07:37:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template.php
r7663 r7926 1492 1492 1493 1493 /** 1494 * Is the current page the activity directory ? 1495 * 1496 * @since BuddyPress (2.0.0) 1497 * 1498 * @return True if the current page is the activity directory. 1499 */ 1500 function bp_is_activity_directory() { 1501 if ( ! bp_displayed_user_id() && bp_is_activity_component() && ! bp_current_action() ) 1502 return true; 1503 1504 return false; 1505 } 1506 1507 /** 1494 1508 * Is the current page a single activity item permalink? 1495 1509 * … … 1504 1518 1505 1519 /** User **********************************************************************/ 1520 1521 /** 1522 * Is the current page the members directory ? 1523 * 1524 * @since BuddyPress (2.0.0) 1525 * 1526 * @return True if the current page is the members directory. 1527 */ 1528 function bp_is_members_directory() { 1529 if ( ! bp_is_user() && bp_is_members_component() ) 1530 return true; 1531 1532 return false; 1533 } 1506 1534 1507 1535 /** … … 1847 1875 1848 1876 /** 1877 * Is the current page the groups directory ? 1878 * 1879 * @since BuddyPress (2.0.0) 1880 * 1881 * @return True if the current page is the groups directory. 1882 */ 1883 function bp_is_groups_directory() { 1884 if ( bp_is_groups_component() && ! bp_current_action() && ! bp_current_item() ) 1885 return true; 1886 1887 return false; 1888 } 1889 1890 /** 1849 1891 * Does the current page belong to a single group? 1850 1892 * … … 2047 2089 function bp_is_create_blog() { 2048 2090 if ( bp_is_blogs_component() && bp_is_current_action( 'create' ) ) 2091 return true; 2092 2093 return false; 2094 } 2095 2096 /** 2097 * Is the current page the blogs directory ? 2098 * 2099 * @since BuddyPress (2.0.0) 2100 * 2101 * @return True if the current page is the blogs directory. 2102 */ 2103 function bp_is_blogs_directory() { 2104 if ( is_multisite() && bp_is_blogs_component() && ! bp_current_action() ) 2049 2105 return true; 2050 2106
Note: See TracChangeset
for help on using the changeset viewer.