Changeset 2343 for trunk/bp-core/bp-core-templatetags.php
- Timestamp:
- 01/18/2010 08:00:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r2325 r2343 1035 1035 } 1036 1036 1037 function bp_profile_wire_can_post() {1038 global $bp;1039 1040 if ( bp_is_home() )1041 return true;1042 1043 if ( function_exists('friends_install') ) {1044 if ( friends_check_friendship( $bp->loggedin_user->id, $bp->displayed_user->id ) )1045 return true;1046 else1047 return false;1048 }1049 1050 return true;1051 }1052 1053 1037 function bp_nav_items() { 1054 1038 global $bp; … … 1395 1379 } 1396 1380 1397 function bp_is_wire_component() {1398 global $bp;1399 1400 if ( BP_WIRE_SLUG == $bp->current_action || in_array( BP_WIRE_SLUG, (array)$bp->action_variables ) )1401 return true;1402 1403 return false;1404 }1405 1406 1381 function bp_is_messages_component() { 1407 1382 global $bp; … … 1503 1478 } 1504 1479 1505 function bp_is_profile_wire() {1506 global $bp;1507 1508 if ( BP_XPROFILE_SLUG == $bp->current_component && 'wire' == $bp->current_action )1509 return true;1510 1511 return false;1512 }1513 1514 1480 function bp_is_user_groups() { 1515 1481 global $bp; … … 1553 1519 1554 1520 if ( BP_GROUPS_SLUG == $bp->current_component && $bp->is_single_item && 'admin' == $bp->current_action ) 1555 return true;1556 1557 return false;1558 }1559 1560 function bp_is_group_wire() {1561 global $bp;1562 1563 if ( BP_GROUPS_SLUG == $bp->current_component && $bp->is_single_item && 'wire' == $bp->current_action )1564 1521 return true; 1565 1522 … … 1796 1753 $bp_classes[] = 'blogs'; 1797 1754 1798 if ( bp_is_wire_component() && !bp_is_blog_page() )1799 $bp_classes[] = 'wire';1800 1801 1755 if ( bp_is_messages_component() && !bp_is_blog_page() ) 1802 1756 $bp_classes[] = 'messages'; … … 1865 1819 $bp_classes[] = 'group-forum'; 1866 1820 1867 if ( bp_is_group_wire() )1868 $bp_classes[] = 'group-wire';1869 1870 1821 if ( bp_is_group_admin_page() ) 1871 1822 $bp_classes[] = 'group-admin'; … … 1876 1827 if ( bp_is_group_home() ) 1877 1828 $bp_classes[] = 'group-home'; 1878 1879 if ( bp_is_profile_wire() )1880 $bp_classes[] = 'profile-wire';1881 1829 1882 1830 if ( bp_is_change_avatar() )
Note: See TracChangeset
for help on using the changeset viewer.