Changeset 10077 for trunk/src/bp-activity/bp-activity-template.php
- Timestamp:
- 08/31/2015 06:51:35 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-template.php
r9834 r10077 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Activity Template Functions. … … 14 13 * Output the activity component slug. 15 14 * 16 * @since BuddyPress (1.5.0)15 * @since 1.5.0 17 16 * 18 17 * @uses bp_get_activity_slug() … … 24 23 * Return the activity component slug. 25 24 * 26 * @since BuddyPress (1.5.0)25 * @since 1.5.0 27 26 * 28 27 * @uses apply_filters() To call the 'bp_get_activity_slug' hook. … … 35 34 * Filters the activity component slug. 36 35 * 37 * @since BuddyPress (1.5.0)36 * @since 1.5.0 38 37 * 39 38 * @param string $slug Activity component slug. … … 45 44 * Output the activity component root slug. 46 45 * 47 * @since BuddyPress (1.5.0)46 * @since 1.5.0 48 47 * 49 48 * @uses bp_get_activity_root_slug() … … 55 54 * Return the activity component root slug. 56 55 * 57 * @since BuddyPress (1.5.0)56 * @since 1.5.0 58 57 * 59 58 * @uses apply_filters() To call the 'bp_get_activity_root_slug' hook. … … 66 65 * Filters the activity component root slug. 67 66 * 68 * @since BuddyPress (1.5.0)67 * @since 1.5.0 69 68 * 70 69 * @param string $root_slug Activity component root slug. … … 76 75 * Output activity directory permalink. 77 76 * 78 * @since BuddyPress (1.5.0)77 * @since 1.5.0 79 78 * 80 79 * @uses bp_get_activity_directory_permalink() … … 86 85 * Return activity directory permalink. 87 86 * 88 * @since BuddyPress (1.5.0)87 * @since 1.5.0 89 88 * 90 89 * @uses trailingslashit() … … 100 99 * Filters the activity directory permalink. 101 100 * 102 * @since BuddyPress (1.5.0)101 * @since 1.5.0 103 102 * 104 103 * @param string $url Permalink url for the activity directory. … … 112 111 * This is responsible for loading a group of activity items and displaying them. 113 112 * 114 * @since BuddyPress (1.0.0)113 * @since 1.0.0 115 114 */ 116 115 class BP_Activity_Template { … … 118 117 * The loop iterator. 119 118 * 120 * @since BuddyPress (1.5.0)119 * @since 1.5.0 121 120 * @access public 122 121 * @var int … … 127 126 * The activity count. 128 127 * 129 * @since BuddyPress (1.5.0)128 * @since 1.5.0 130 129 * @access public 131 130 * @var int … … 136 135 * The total activity count. 137 136 * 138 * @since BuddyPress (1.5.0)137 * @since 1.5.0 139 138 * @access public 140 139 * @var int … … 145 144 * Array of activities located by the query. 146 145 * 147 * @since BuddyPress (1.5.0)146 * @since 1.5.0 148 147 * @access public 149 148 * @var array … … 154 153 * The activity object currently being iterated on. 155 154 * 156 * @since BuddyPress (1.5.0)155 * @since 1.5.0 157 156 * @access public 158 157 * @var object … … 163 162 * A flag for whether the loop is currently being iterated. 164 163 * 165 * @since BuddyPress (1.5.0)164 * @since 1.5.0 166 165 * @access public 167 166 * @var bool … … 172 171 * URL parameter key for activity pagination. Default: 'acpage'. 173 172 * 174 * @since BuddyPress (2.1.0)173 * @since 2.1.0 175 174 * @var string 176 175 */ … … 180 179 * The page number being requested. 181 180 * 182 * @since BuddyPress (1.5.0)181 * @since 1.5.0 183 182 * @access public 184 183 * @var int … … 189 188 * The number of items being requested per page. 190 189 * 191 * @since BuddyPress (1.5.0)190 * @since 1.5.0 192 191 * @access public 193 192 * @var int … … 198 197 * An HTML string containing pagination links. 199 198 * 200 * @since BuddyPress (1.5.0)199 * @since 1.5.0 201 200 * @access public 202 201 * @var string … … 207 206 * The displayed user's full name. 208 207 * 209 * @since BuddyPress (1.5.0)208 * @since 1.5.0 210 209 * @access public 211 210 * @var string … … 457 456 * Fires right before the rewinding of activity posts. 458 457 * 459 * @since BuddyPress (1.1.0)458 * @since 1.1.0 460 459 */ 461 460 do_action( 'activity_loop_end' ); … … 494 493 * Fires if the current activity item is the first in the activity loop. 495 494 * 496 * @since BuddyPress (1.1.0)495 * @since 1.1.0 497 496 */ 498 497 do_action('activity_loop_start'); … … 508 507 * template functions to display a list of activity items. 509 508 * 510 * @since BuddyPress (1.0.0)509 * @since 1.0.0 511 510 * 512 511 * @global object $activities_template {@link BP_Activity_Template} … … 713 712 * into bp-custom.php or your theme's functions.php. 714 713 * 715 * @since BuddyPress (1.6.0)714 * @since 1.6.0 716 715 * 717 716 * @param bool $value True if BuddyPress should enable afilter support. … … 748 747 * Filters whether or not there are activity items to display. 749 748 * 750 * @since BuddyPress (1.1.0)749 * @since 1.1.0 751 750 * 752 751 * @param bool $value Whether or not there are activity items to display. … … 760 759 * Determine if there are still activities left in the loop. 761 760 * 762 * @since BuddyPress (1.0.0)761 * @since 1.0.0 763 762 * 764 763 * @global object $activities_template {@link BP_Activity_Template} … … 775 774 * Get the current activity object in the loop. 776 775 * 777 * @since BuddyPress (1.0.0)776 * @since 1.0.0 778 777 * 779 778 * @global object $activities_template {@link BP_Activity_Template} … … 790 789 * Output the URL for the Load More link. 791 790 * 792 * @since BuddyPress (2.1.0)791 * @since 2.1.0 793 792 */ 794 793 function bp_activity_load_more_link() { … … 798 797 * Get the URL for the Load More link. 799 798 * 800 * @since BuddyPress (2.1.0)799 * @since 2.1.0 801 800 */ 802 801 function bp_get_activity_load_more_link() { … … 809 808 * Filters the Load More link URL. 810 809 * 811 * @since BuddyPress (2.1.0)810 * @since 2.1.0 812 811 * 813 812 * @param string $link The "Load More" link URL with appropriate query args. … … 821 820 * Output the activity pagination count. 822 821 * 823 * @since BuddyPress (1.0.0)822 * @since 1.0.0 824 823 * 825 824 * @global object $activities_template {@link BP_Activity_Template} … … 833 832 * Return the activity pagination count. 834 833 * 835 * @since BuddyPress (1.2.0)834 * @since 1.2.0 836 835 * 837 836 * @global object $activities_template {@link BP_Activity_Template} … … 860 859 * Output the activity pagination links. 861 860 * 862 * @since BuddyPress (1.0.0)861 * @since 1.0.0 863 862 * 864 863 * @uses bp_get_activity_pagination_links() … … 871 870 * Return the activity pagination links. 872 871 * 873 * @since BuddyPress (1.0.0)872 * @since 1.0.0 874 873 * 875 874 * @global object $activities_template {@link BP_Activity_Template} … … 884 883 * Filters the activity pagination link output. 885 884 * 886 * @since BuddyPress (1.0.0)885 * @since 1.0.0 887 886 * 888 887 * @param string $pag_links Output for the activity pagination links. … … 894 893 * Return true when there are more activity items to be shown than currently appear. 895 894 * 896 * @since BuddyPress (1.5.0)895 * @since 1.5.0 897 896 * 898 897 * @global object $activities_template {@link BP_Activity_Template} … … 919 918 * Filters whether there are more activity items to display. 920 919 * 921 * @since BuddyPress (1.5.0)920 * @since 1.5.0 922 921 * 923 922 * @param bool $has_more_items Whether or not there are more activity items to display. … … 929 928 * Output the activity count. 930 929 * 931 * @since BuddyPress (1.2.0)930 * @since 1.2.0 932 931 * 933 932 * @uses bp_get_activity_count() … … 940 939 * Return the activity count. 941 940 * 942 * @since BuddyPress (1.2.0)941 * @since 1.2.0 943 942 * 944 943 * @global object $activities_template {@link BP_Activity_Template} … … 953 952 * Filters the activity count for the activity template. 954 953 * 955 * @since BuddyPress (1.2.0)954 * @since 1.2.0 956 955 * 957 956 * @param int $activity_count The count for total activity. … … 963 962 * Output the number of activities per page. 964 963 * 965 * @since BuddyPress (1.2.0)964 * @since 1.2.0 966 965 * 967 966 * @uses bp_get_activity_per_page() … … 974 973 * Return the number of activities per page. 975 974 * 976 * @since BuddyPress (1.2.0)975 * @since 1.2.0 977 976 * 978 977 * @global object $activities_template {@link BP_Activity_Template} … … 987 986 * Filters the activity posts per page value. 988 987 * 989 * @since BuddyPress (1.2.0)988 * @since 1.2.0 990 989 * 991 990 * @param int $pag_num How many post should be displayed for pagination. … … 997 996 * Output the activities title. 998 997 * 999 * @since BuddyPress (1.0.0)998 * @since 1.0.0 1000 999 * 1001 1000 * @uses bp_get_activities_title() … … 1009 1008 * Return the activities title. 1010 1009 * 1011 * @since BuddyPress (1.0.0)1010 * @since 1.0.0 1012 1011 * 1013 1012 * @global string $bp_activity_title … … 1023 1022 * Filters the activities title for the activity template. 1024 1023 * 1025 * @since BuddyPress (1.0.0)1024 * @since 1.0.0 1026 1025 * 1027 1026 * @param string $bp_activity_title The title to be displayed. … … 1033 1032 * {@internal Missing Description} 1034 1033 * 1035 * @since BuddyPress (1.0.0)1034 * @since 1.0.0 1036 1035 * 1037 1036 * @uses bp_get_activities_no_activity() … … 1045 1044 * {@internal Missing Description} 1046 1045 * 1047 * @since BuddyPress (1.0.0)1046 * @since 1.0.0 1048 1047 * 1049 1048 * @global string $bp_activity_no_activity … … 1059 1058 * Filters the text used when there is no activity to display. 1060 1059 * 1061 * @since BuddyPress (1.0.0)1060 * @since 1.0.0 1062 1061 * 1063 1062 * @param string $bp_activity_no_activity Text to display for no activity. … … 1069 1068 * Output the activity ID. 1070 1069 * 1071 * @since BuddyPress (1.2.0)1070 * @since 1.2.0 1072 1071 * 1073 1072 * @uses bp_get_activity_id() … … 1080 1079 * Return the activity ID. 1081 1080 * 1082 * @since BuddyPress (1.2.0)1081 * @since 1.2.0 1083 1082 * 1084 1083 * @global object $activities_template {@link BP_Activity_Template} … … 1093 1092 * Filters the activity ID being displayed. 1094 1093 * 1095 * @since BuddyPress (1.2.0)1094 * @since 1.2.0 1096 1095 * 1097 1096 * @param int $id The activity ID. … … 1103 1102 * Output the activity item ID. 1104 1103 * 1105 * @since BuddyPress (1.2.0)1104 * @since 1.2.0 1106 1105 * 1107 1106 * @uses bp_get_activity_item_id() … … 1114 1113 * Return the activity item ID. 1115 1114 * 1116 * @since BuddyPress (1.2.0)1115 * @since 1.2.0 1117 1116 * 1118 1117 * @global object $activities_template {@link BP_Activity_Template} … … 1127 1126 * Filters the activity item ID being displayed. 1128 1127 * 1129 * @since BuddyPress (1.2.0)1128 * @since 1.2.0 1130 1129 * 1131 1130 * @param int $item_id The activity item ID. … … 1137 1136 * Output the activity secondary item ID. 1138 1137 * 1139 * @since BuddyPress (1.2.0)1138 * @since 1.2.0 1140 1139 * 1141 1140 * @uses bp_get_activity_secondary_item_id() … … 1148 1147 * Return the activity secondary item ID. 1149 1148 * 1150 * @since BuddyPress (1.2.0)1149 * @since 1.2.0 1151 1150 * 1152 1151 * @global object $activities_template {@link BP_Activity_Template} … … 1161 1160 * Filters the activity secondary item ID being displayed. 1162 1161 * 1163 * @since BuddyPress (1.2.0)1162 * @since 1.2.0 1164 1163 * 1165 1164 * @param int $secondary_item_id The activity secondary item ID. … … 1171 1170 * Output the date the activity was recorded. 1172 1171 * 1173 * @since BuddyPress (1.2.0)1172 * @since 1.2.0 1174 1173 * 1175 1174 * @uses bp_get_activity_date_recorded() … … 1182 1181 * Return the date the activity was recorded. 1183 1182 * 1184 * @since BuddyPress (1.2.0)1183 * @since 1.2.0 1185 1184 * 1186 1185 * @global object $activities_template {@link BP_Activity_Template} … … 1195 1194 * Filters the date the activity was recorded. 1196 1195 * 1197 * @since BuddyPress (1.2.0)1196 * @since 1.2.0 1198 1197 * 1199 1198 * @param int $date_recorded The activity's date. … … 1205 1204 * Output the display name of the member who posted the activity. 1206 1205 * 1207 * @since BuddyPress (2.1.0)1206 * @since 2.1.0 1208 1207 * 1209 1208 * @uses bp_get_activity_member_display_name() … … 1216 1215 * Return the display name of the member who posted the activity. 1217 1216 * 1218 * @since BuddyPress (2.1.0)1217 * @since 2.1.0 1219 1218 * 1220 1219 * @global object $activities_template {@link BP_Activity_Template} … … 1233 1232 * Filters the display name of the member who posted the activity. 1234 1233 * 1235 * @since BuddyPress (2.1.0)1234 * @since 2.1.0 1236 1235 * 1237 1236 * @param int $retval Display name for the member who posted. … … 1243 1242 * Output the activity object name. 1244 1243 * 1245 * @since BuddyPress (1.2.0)1244 * @since 1.2.0 1246 1245 * 1247 1246 * @uses bp_get_activity_object_name() … … 1254 1253 * Return the activity object name. 1255 1254 * 1256 * @since BuddyPress (1.2.0)1255 * @since 1.2.0 1257 1256 * 1258 1257 * @global object $activities_template {@link BP_Activity_Template} … … 1267 1266 * Filters the activity object name. 1268 1267 * 1269 * @since BuddyPress (1.2.0)1268 * @since 1.2.0 1270 1269 * 1271 1270 * @param string $activity_component The activity object name. … … 1277 1276 * Output the activity type. 1278 1277 * 1279 * @since BuddyPress (1.2.0)1278 * @since 1.2.0 1280 1279 * 1281 1280 * @uses bp_get_activity_type() … … 1288 1287 * Return the activity type. 1289 1288 * 1290 * @since BuddyPress (1.2.0)1289 * @since 1.2.0 1291 1290 * 1292 1291 * @global object $activities_template {@link BP_Activity_Template} … … 1301 1300 * Filters the activity type. 1302 1301 * 1303 * @since BuddyPress (1.2.0)1302 * @since 1.2.0 1304 1303 * 1305 1304 * @param string $activity_type The activity type. … … 1313 1312 * Just a wrapper for bp_activity_type(). 1314 1313 * 1315 * @since BuddyPress (1.2.0)1316 * @deprecated BuddyPress (1.5.0)1314 * @since 1.2.0 1315 * @deprecated 1.5.0 1317 1316 * 1318 1317 * @todo Properly deprecate in favor of bp_activity_type() and … … 1328 1327 * Just a wrapper for bp_get_activity_type(). 1329 1328 * 1330 * @since BuddyPress (1.2.0)1331 * @deprecated BuddyPress (1.5.0)1329 * @since 1.2.0 1330 * @deprecated 1.5.0 1332 1331 * 1333 1332 * @todo Properly deprecate in favor of bp_get_activity_type(). … … 1342 1341 * Output the activity user ID. 1343 1342 * 1344 * @since BuddyPress (1.1.0)1343 * @since 1.1.0 1345 1344 * 1346 1345 * @uses bp_get_activity_user_id() … … 1353 1352 * Return the activity user ID. 1354 1353 * 1355 * @since BuddyPress (1.1.0)1354 * @since 1.1.0 1356 1355 * 1357 1356 * @global object $activities_template {@link BP_Activity_Template} … … 1366 1365 * Filters the activity user ID. 1367 1366 * 1368 * @since BuddyPress (1.1.0)1367 * @since 1.1.0 1369 1368 * 1370 1369 * @param int $user_id The activity user ID. … … 1376 1375 * Output the activity user link. 1377 1376 * 1378 * @since BuddyPress (1.2.0)1377 * @since 1.2.0 1379 1378 * 1380 1379 * @uses bp_get_activity_user_link() … … 1387 1386 * Return the activity user link. 1388 1387 * 1389 * @since BuddyPress (1.2.0)1388 * @since 1.2.0 1390 1389 * 1391 1390 * @global object $activities_template {@link BP_Activity_Template} … … 1407 1406 * Filters the activity user link. 1408 1407 * 1409 * @since BuddyPress (1.2.0)1408 * @since 1.2.0 1410 1409 * 1411 1410 * @param string $link The activity user link. … … 1417 1416 * Output the avatar of the user that performed the action. 1418 1417 * 1419 * @since BuddyPress (1.1.0)1418 * @since 1.1.0 1420 1419 * 1421 1420 * @see bp_get_activity_avatar() for description of arguments. … … 1430 1429 * Return the avatar of the user that performed the action. 1431 1430 * 1432 * @since BuddyPress (1.1.0)1431 * @since 1.1.0 1433 1432 * 1434 1433 * @see bp_core_fetch_avatar() For a description of the arguments. … … 1509 1508 * bp_get_activity_avatar_object_group, and bp_get_activity_avatar_object_user. 1510 1509 * 1511 * @since BuddyPress (1.1.0)1510 * @since 1.1.0 1512 1511 * 1513 1512 * @param string $component Component being displayed. … … 1519 1518 * Filters the activity avatar item ID. 1520 1519 * 1521 * @since BuddyPress (1.2.10)1520 * @since 1.2.10 1522 1521 * 1523 1522 * @param int $item_id Item ID for the activity avatar. … … 1533 1532 * Filters the value returned by bp_core_fetch_avatar. 1534 1533 * 1535 * @since BuddyPress (1.1.3)1534 * @since 1.1.3 1536 1535 * 1537 1536 * @param array $value Array of arguments calculated for use with bp_core_fetch_avatar. … … 1552 1551 * Output the avatar of the object that action was performed on. 1553 1552 * 1554 * @since BuddyPress (1.2.0)1553 * @since 1.2.0 1555 1554 * 1556 1555 * @see bp_get_activity_secondary_avatar() for description of arguments. … … 1566 1565 * Return the avatar of the object that action was performed on. 1567 1566 * 1568 * @since BuddyPress (1.2.0)1567 * @since 1.2.0 1569 1568 * 1570 1569 * @see bp_core_fetch_avatar() for description of arguments. … … 1676 1675 * and bp_get_activity_secondary_avatar_object_user. 1677 1676 * 1678 * @since BuddyPress (1.2.10)1677 * @since 1.2.10 1679 1678 * 1680 1679 * @param string $object Component being displayed. … … 1685 1684 * Filters the activity secondary avatar item ID. 1686 1685 * 1687 * @since BuddyPress (1.2.10)1686 * @since 1.2.10 1688 1687 * 1689 1688 * @param int $item_id ID for the secondary avatar item. … … 1713 1712 * Filters the secondary avatar link for current activity. 1714 1713 * 1715 * @since BuddyPress (1.7.0)1714 * @since 1.7.0 1716 1715 * 1717 1716 * @param string $link Link to wrap the avatar image in. … … 1723 1722 * Filters the determined avatar for the secondary activity item. 1724 1723 * 1725 * @since BuddyPress (1.2.10)1724 * @since 1.2.10 1726 1725 * 1727 1726 * @param string $avatar Formatted HTML <img> element, or raw avatar URL. … … 1743 1742 * Output the activity action. 1744 1743 * 1745 * @since BuddyPress (1.2.0)1744 * @since 1.2.0 1746 1745 * 1747 1746 * @param array $args See bp_get_activity_action() … … 1755 1754 * Return the activity action. 1756 1755 * 1757 * @since BuddyPress (1.2.0)1756 * @since 1.2.0 1758 1757 * 1759 1758 * @global object $activities_template {@link BP_Activity_Template} … … 1779 1778 * Filters the activity action before the action is inserted as meta. 1780 1779 * 1781 * @since BuddyPress (1.2.10)1780 * @since 1.2.10 1782 1781 * 1783 1782 * @param array $value Array containing the current action, the current activity, and the $args array passed into the function. … … 1797 1796 * Filters the activity action after the action has been inserted as meta. 1798 1797 * 1799 * @since BuddyPress (1.2.0)1798 * @since 1.2.0 1800 1799 * 1801 1800 * @param array $value Array containing the current action, the current activity, and the $args array passed into the function. … … 1811 1810 * Output the activity content body. 1812 1811 * 1813 * @since BuddyPress (1.2.0)1812 * @since 1.2.0 1814 1813 * 1815 1814 * @uses bp_get_activity_content_body() … … 1822 1821 * Return the activity content body. 1823 1822 * 1824 * @since BuddyPress (1.2.0)1823 * @since 1.2.0 1825 1824 * 1826 1825 * @global object $activities_template {@link BP_Activity_Template} … … 1841 1840 * Filters the activity content body. 1842 1841 * 1843 * @since BuddyPress (1.2.0)1842 * @since 1.2.0 1844 1843 * 1845 1844 * @param array $value Array containing the current activity content body and the current activity. … … 1851 1850 * Does the activity have content? 1852 1851 * 1853 * @since BuddyPress (1.2.0)1852 * @since 1.2.0 1854 1853 * 1855 1854 * @global object $activities_template {@link BP_Activity_Template} … … 1870 1869 * Output the activity content. 1871 1870 * 1872 * @since BuddyPress (1.0.0)1873 * @deprecated BuddyPress (1.5.0)1871 * @since 1.0.0 1872 * @deprecated 1.5.0 1874 1873 * 1875 1874 * @todo properly deprecate this function. … … 1884 1883 * Return the activity content. 1885 1884 * 1886 * @since BuddyPress (1.0.0)1887 * @deprecated BuddyPress (1.5.0)1885 * @since 1.0.0 1886 * @deprecated 1.5.0 1888 1887 * 1889 1888 * @todo properly deprecate this function. … … 1913 1912 * as a link to the item's permalink). 1914 1913 * 1915 * @since BuddyPress (1.2.0)1914 * @since 1.2.0 1916 1915 * 1917 1916 * @global object $activities_template {@link BP_Activity_Template} … … 1940 1939 * Filters the activity item time since markup. 1941 1940 * 1942 * @since BuddyPress (1.2.0)1941 * @since 1.2.0 1943 1942 * 1944 1943 * @param array $value Array containing the time since markup and the current activity component. … … 1964 1963 * Filters the activity permalink to be added to the activity content. 1965 1964 * 1966 * @since BuddyPress (1.2.0)1965 * @since 1.2.0 1967 1966 * 1968 1967 * @param array $value Array containing the html markup for the activity permalink, after being parsed by sprintf and current activity component. … … 1979 1978 * Filters the activity content after activity metadata has been attached. 1980 1979 * 1981 * @since BuddyPress (1.2.0)1980 * @since 1.2.0 1982 1981 * 1983 1982 * @param string $content Activity content with the activity metadata added. … … 1989 1988 * Determine if the current user can delete an activity item. 1990 1989 * 1991 * @since BuddyPress (1.2.0)1990 * @since 1.2.0 1992 1991 * 1993 1992 * @global object $activities_template {@link BP_Activity_Template} … … 2038 2037 * Filters whether the current user can delete an activity item. 2039 2038 * 2040 * @since BuddyPress (1.5.0)2039 * @since 1.5.0 2041 2040 * 2042 2041 * @param bool $can_delete Whether the user can delete the item. … … 2049 2048 * Output the activity parent content. 2050 2049 * 2051 * @since BuddyPress (1.2.0)2050 * @since 1.2.0 2052 2051 * 2053 2052 * @see bp_get_activity_parent_content() for a description of arguments. … … 2063 2062 * Return the activity content. 2064 2063 * 2065 * @since BuddyPress (1.2.0)2064 * @since 1.2.0 2066 2065 * 2067 2066 * @global object $activities_template {@link BP_Activity_Template} … … 2110 2109 * Filters the activity parent content. 2111 2110 * 2112 * @since BuddyPress (1.2.0)2111 * @since 1.2.0 2113 2112 * 2114 2113 * @param string $content Content set to be displayed as parent content. … … 2120 2119 * Output the parent activity's user ID. 2121 2120 * 2122 * @since BuddyPress (1.7.0)2121 * @since 1.7.0 2123 2122 */ 2124 2123 function bp_activity_parent_user_id() { … … 2129 2128 * Return the parent activity's user ID. 2130 2129 * 2131 * @since BuddyPress (1.7.0)2130 * @since 1.7.0 2132 2131 * 2133 2132 * @global BP_Activity_Template $activities_template … … 2162 2161 * Filters the activity parent item's user ID. 2163 2162 * 2164 * @since BuddyPress (1.7.0)2163 * @since 1.7.0 2165 2164 * 2166 2165 * @param int $retval ID for the activity parent's user. … … 2172 2171 * Output whether or not the current activity is in a current user's favorites. 2173 2172 * 2174 * @since BuddyPress (1.2.0)2173 * @since 1.2.0 2175 2174 * 2176 2175 * @uses bp_get_activity_is_favorite() … … 2183 2182 * Return whether the current activity is in a current user's favorites. 2184 2183 * 2185 * @since BuddyPress (1.2.0)2184 * @since 1.2.0 2186 2185 * 2187 2186 * @global object $activities_template {@link BP_Activity_Template} … … 2196 2195 * Filters whether the current activity item is in the current user's favorites. 2197 2196 * 2198 * @since BuddyPress (1.2.0)2197 * @since 1.2.0 2199 2198 * 2200 2199 * @param bool $value Whether or not the current activity item is in the current user's favorites. … … 2206 2205 * Output the comment markup for an activity item. 2207 2206 * 2208 * @since BuddyPress (1.2.0)2207 * @since 1.2.0 2209 2208 * 2210 2209 * @todo deprecate $args param … … 2219 2218 * Get the comment markup for an activity item. 2220 2219 * 2221 * @since BuddyPress (1.2.0)2220 * @since 1.2.0 2222 2221 * 2223 2222 * @todo deprecate $args param … … 2249 2248 * split between here and the comment.php template. 2250 2249 * 2251 * @since BuddyPress (1.2.0)2250 * @since 1.2.0 2252 2251 * 2253 2252 * @param object $comment The activity object currently being recursed. … … 2272 2271 * Filters the opening tag for the template that lists activity comments. 2273 2272 * 2274 * @since BuddyPress (1.6.0)2273 * @since 1.6.0 2275 2274 * 2276 2275 * @param string $value Opening tag for the HTML markup to use. … … 2300 2299 * Filters the closing tag for the template that list activity comments. 2301 2300 * 2302 * @since BuddyPress (1.6.0)2301 * @since 1.6.0 2303 2302 * 2304 2303 * @param string $value Closing tag for the HTML markup to use. … … 2310 2309 * Utility function that returns the comment currently being recursed. 2311 2310 * 2312 * @since BuddyPress (1.5.0)2311 * @since 1.5.0 2313 2312 * 2314 2313 * @global object $activities_template {@link BP_Activity_Template} … … 2328 2327 * Filters the current comment being recursed. 2329 2328 * 2330 * @since BuddyPress (1.5.0)2329 * @since 1.5.0 2331 2330 * 2332 2331 * @param object|bool $current_comment The activity comment currently being displayed. False on failure. … … 2339 2338 * Output the ID of the activity comment currently being displayed. 2340 2339 * 2341 * @since BuddyPress (1.5.0)2340 * @since 1.5.0 2342 2341 * 2343 2342 * @uses bp_get_activity_comment_id() … … 2350 2349 * Return the ID of the activity comment currently being displayed. 2351 2350 * 2352 * @since BuddyPress (1.5.0)2351 * @since 1.5.0 2353 2352 * 2354 2353 * @global object $activities_template {@link BP_Activity_Template} … … 2366 2365 * Filters the ID of the activity comment currently being displayed. 2367 2366 * 2368 * @since BuddyPress (1.5.0)2367 * @since 1.5.0 2369 2368 * 2370 2369 * @param int|bool $comment_id ID for the comment currently being displayed. … … 2376 2375 * Output the ID of the author of the activity comment currently being displayed. 2377 2376 * 2378 * @since BuddyPress (1.5.0)2377 * @since 1.5.0 2379 2378 * 2380 2379 * @uses bp_get_activity_comment_user_id() … … 2387 2386 * Return the ID of the author of the activity comment currently being displayed. 2388 2387 * 2389 * @since BuddyPress (1.5.0)2388 * @since 1.5.0 2390 2389 * 2391 2390 * @global object $activities_template {@link BP_Activity_Template} … … 2403 2402 * Filters the ID of the author of the activity comment currently being displayed. 2404 2403 * 2405 * @since BuddyPress (1.5.0)2404 * @since 1.5.0 2406 2405 * 2407 2406 * @param int|bool $user_id ID for the author of the comment currently being displayed. … … 2413 2412 * Output the author link for the activity comment currently being displayed. 2414 2413 * 2415 * @since BuddyPress (1.5.0)2414 * @since 1.5.0 2416 2415 * 2417 2416 * @uses bp_get_activity_comment_user_link() … … 2424 2423 * Return the author link for the activity comment currently being displayed. 2425 2424 * 2426 * @since BuddyPress (1.5.0)2425 * @since 1.5.0 2427 2426 * 2428 2427 * @uses bp_core_get_user_domain() … … 2438 2437 * Filters the author link for the activity comment currently being displayed. 2439 2438 * 2440 * @since BuddyPress (1.5.0)2439 * @since 1.5.0 2441 2440 * 2442 2441 * @param string $user_link Link for the author of the activity comment currently being displayed. … … 2448 2447 * Output the author name for the activity comment currently being displayed. 2449 2448 * 2450 * @since BuddyPress (1.5.0)2449 * @since 1.5.0 2451 2450 * 2452 2451 * @uses bp_get_activity_comment_name() … … 2462 2461 * 'bp_activity_comment_name'. 2463 2462 * 2464 * @since BuddyPress (1.5.0)2463 * @since 1.5.0 2465 2464 * 2466 2465 * @global object $activities_template {@link BP_Activity_Template} … … 2483 2482 * Filters the name of the author for the activity comment. 2484 2483 * 2485 * @since BuddyPress (1.5.0)2484 * @since 1.5.0 2486 2485 * 2487 2486 * @param string $name Name to be displayed with the activity comment. … … 2493 2492 * Output the formatted date_recorded of the activity comment currently being displayed. 2494 2493 * 2495 * @since BuddyPress (1.5.0)2494 * @since 1.5.0 2496 2495 * 2497 2496 * @uses bp_get_activity_comment_date_recorded() … … 2504 2503 * Return the formatted date_recorded for the activity comment currently being displayed. 2505 2504 * 2506 * @since BuddyPress (1.5.0)2505 * @since 1.5.0 2507 2506 * 2508 2507 * @uses bp_core_time_since() … … 2517 2516 * Filters the recorded date of the activity comment currently being displayed. 2518 2517 * 2519 * @since BuddyPress (1.5.0)2518 * @since 1.5.0 2520 2519 * 2521 2520 * @param string|bool Date for the activity comment currently being displayed. … … 2527 2526 * Output the date_recorded of the activity comment currently being displayed. 2528 2527 * 2529 * @since BuddyPress (2.3.0)2528 * @since 2.3.0 2530 2529 * 2531 2530 * @uses bp_get_activity_comment_date_recorded() … … 2538 2537 * Return the date_recorded for the activity comment currently being displayed. 2539 2538 * 2540 * @since BuddyPress (2.3.0)2539 * @since 2.3.0 2541 2540 * 2542 2541 * @global object $activities_template {@link BP_Activity_Template} … … 2553 2552 * Filters the raw recorded date of the activity comment currently being displayed. 2554 2553 * 2555 * @since BuddyPress (2.3.0)2554 * @since 2.3.0 2556 2555 * 2557 2556 * @param string|bool Raw date for the activity comment currently being displayed. … … 2563 2562 * Output the 'delete' URL for the activity comment currently being displayed. 2564 2563 * 2565 * @since BuddyPress (1.5.0)2564 * @since 1.5.0 2566 2565 * 2567 2566 * @uses bp_get_activity_comment_delete_link() … … 2574 2573 * Gets the 'delete' URL for the activity comment currently being displayed. 2575 2574 * 2576 * @since BuddyPress (1.5.0)2575 * @since 1.5.0 2577 2576 * 2578 2577 * @uses wp_nonce_url() … … 2591 2590 * Filters the link used for deleting the activity comment currently being displayed. 2592 2591 * 2593 * @since BuddyPress (1.5.0)2592 * @since 1.5.0 2594 2593 * 2595 2594 * @param string $link Link to use for deleting the currently displayed activity comment. … … 2601 2600 * Output the content of the activity comment currently being displayed. 2602 2601 * 2603 * @since BuddyPress (1.5.0)2602 * @since 1.5.0 2604 2603 * 2605 2604 * @uses bp_get_activity_comment_content() … … 2617 2616 * comments only. 2618 2617 * 2619 * @since BuddyPress (1.5.0)2618 * @since 1.5.0 2620 2619 * 2621 2620 * @global object $activities_template {@link BP_Activity_Template} … … 2634 2633 * Filters the content of the current activity comment. 2635 2634 * 2636 * @since BuddyPress (1.2.0)2635 * @since 1.2.0 2637 2636 * 2638 2637 * @param string $content The content of the current activity comment. … … 2644 2643 * Output the activity comment count. 2645 2644 * 2646 * @since BuddyPress (1.2.0)2645 * @since 1.2.0 2647 2646 * 2648 2647 * @uses bp_activity_get_comment_count() … … 2655 2654 * Return the comment count of an activity item. 2656 2655 * 2657 * @since BuddyPress (1.2.0)2656 * @since 1.2.0 2658 2657 * 2659 2658 * @global object $activities_template {@link BP_Activity_Template} … … 2681 2680 * Filters the activity comment count. 2682 2681 * 2683 * @since BuddyPress (1.2.0)2682 * @since 1.2.0 2684 2683 * 2685 2684 * @param int $count The activity comment count. … … 2694 2693 * activity child has, and returns them. 2695 2694 * 2696 * @since BuddyPress (1.2.0)2695 * @since 1.2.0 2697 2696 * 2698 2697 * @uses bp_activity_recurse_comment_count() … … 2720 2719 * Filters the total number of comments for the current comment. 2721 2720 * 2722 * @since BuddyPress (2.1.0)2721 * @since 2.1.0 2723 2722 * 2724 2723 * @param int $new_count New total count for the current comment. … … 2732 2731 * Output the depth of the current activity comment. 2733 2732 * 2734 * @since BuddyPress (2.0.0)2733 * @since 2.0.0 2735 2734 */ 2736 2735 function bp_activity_comment_depth() { … … 2740 2739 * Return the current activity comment depth. 2741 2740 * 2742 * @since BuddyPress (2.0.0)2741 * @since 2.0.0 2743 2742 * 2744 2743 * @return int $depth Depth for the current activity comment. … … 2750 2749 * Filters the comment depth of the current activity comment. 2751 2750 * 2752 * @since BuddyPress (2.0.0)2751 * @since 2.0.0 2753 2752 * 2754 2753 * @param int $depth Depth for the current activity comment. … … 2760 2759 * Output the activity comment link. 2761 2760 * 2762 * @since BuddyPress (1.2.0)2761 * @since 1.2.0 2763 2762 * 2764 2763 * @uses bp_get_activity_comment_link() … … 2771 2770 * Return the activity comment link. 2772 2771 * 2773 * @since BuddyPress (1.2.0)2772 * @since 1.2.0 2774 2773 * 2775 2774 * @global object $activities_template {@link BP_Activity_Template} … … 2784 2783 * Filters the comment link for the current activity comment. 2785 2784 * 2786 * @since BuddyPress (1.2.0)2785 * @since 1.2.0 2787 2786 * 2788 2787 * @param string $value Constructed URL parameters with activity IDs. … … 2794 2793 * Output the activity comment form no JavaScript display CSS. 2795 2794 * 2796 * @since BuddyPress (1.2.0)2795 * @since 1.2.0 2797 2796 * 2798 2797 * @uses bp_get_activity_comment_form_nojs_display() … … 2805 2804 * Return the activity comment form no JavaScript display CSS. 2806 2805 * 2807 * @since BuddyPress (1.2.0)2806 * @since 1.2.0 2808 2807 * 2809 2808 * @global object $activities_template {@link BP_Activity_Template} … … 2825 2824 * Output the activity comment form action. 2826 2825 * 2827 * @since BuddyPress (1.2.0)2826 * @since 1.2.0 2828 2827 * 2829 2828 * @uses bp_get_activity_comment_form_action() … … 2836 2835 * Return the activity comment form action. 2837 2836 * 2838 * @since BuddyPress (1.2.0)2837 * @since 1.2.0 2839 2838 * 2840 2839 * @uses home_url() … … 2849 2848 * Filters the activity comment form action URL. 2850 2849 * 2851 * @since BuddyPress (1.2.0)2850 * @since 1.2.0 2852 2851 * 2853 2852 * @param string $value URL to use in the comment form's action attribute. … … 2859 2858 * Output the activity permalink ID. 2860 2859 * 2861 * @since BuddyPress (1.2.0)2860 * @since 1.2.0 2862 2861 * 2863 2862 * @uses bp_get_activity_permalink_id() … … 2870 2869 * Return the activity permalink ID. 2871 2870 * 2872 * @since BuddyPress (1.2.0)2871 * @since 1.2.0 2873 2872 * 2874 2873 * @uses apply_filters() To call the 'bp_get_activity_permalink_id' hook. … … 2881 2880 * Filters the activity action permalink ID. 2882 2881 * 2883 * @since BuddyPress (1.2.0)2882 * @since 1.2.0 2884 2883 * 2885 2884 * @param string $value Current action for the activity item. … … 2891 2890 * Output the activity thread permalink. 2892 2891 * 2893 * @since BuddyPress (1.2.0)2892 * @since 1.2.0 2894 2893 * 2895 2894 * @uses bp_get_activity_permalink_id() … … 2902 2901 * Return the activity thread permalink. 2903 2902 * 2904 * @since BuddyPress (1.2.0)2903 * @since 1.2.0 2905 2904 * 2906 2905 * @uses bp_activity_get_permalink() … … 2917 2916 * Filters the activity thread permalink. 2918 2917 * 2919 * @since BuddyPress (1.2.0)2918 * @since 1.2.0 2920 2919 * 2921 2920 * @param string $link The activity thread permalink. … … 2927 2926 * Output the activity comment permalink. 2928 2927 * 2929 * @since BuddyPress (1.8.0)2928 * @since 1.8.0 2930 2929 * 2931 2930 * @uses bp_get_activity_permalink_id() … … 2937 2936 * Return the activity comment permalink. 2938 2937 * 2939 * @since BuddyPress (1.8.0)2938 * @since 1.8.0 2940 2939 * 2941 2940 * @uses bp_activity_get_permalink() … … 2963 2962 * Filters the activity comment permalink. 2964 2963 * 2965 * @since BuddyPress (1.8.0)2964 * @since 1.8.0 2966 2965 * 2967 2966 * @param string $link Activity comment permalink. … … 2974 2973 * Output the activity favorite link. 2975 2974 * 2976 * @since BuddyPress (1.2.0)2975 * @since 1.2.0 2977 2976 * 2978 2977 * @uses bp_get_activity_favorite_link() … … 2985 2984 * Return the activity favorite link. 2986 2985 * 2987 * @since BuddyPress (1.2.0)2986 * @since 1.2.0 2988 2987 * 2989 2988 * @global object $activities_template {@link BP_Activity_Template} … … 3001 3000 * Filters the activity favorite link. 3002 3001 * 3003 * @since BuddyPress (1.2.0)3002 * @since 1.2.0 3004 3003 * 3005 3004 * @param string $value Constructed link for favoriting the activity comment. … … 3011 3010 * Output the activity unfavorite link. 3012 3011 * 3013 * @since BuddyPress (1.2.0)3012 * @since 1.2.0 3014 3013 * 3015 3014 * @uses bp_get_activity_unfavorite_link() … … 3022 3021 * Return the activity unfavorite link. 3023 3022 * 3024 * @since BuddyPress (1.2.0)3023 * @since 1.2.0 3025 3024 * 3026 3025 * @global object $activities_template {@link BP_Activity_Template} … … 3038 3037 * Filters the activity unfavorite link. 3039 3038 * 3040 * @since BuddyPress (1.2.0)3039 * @since 1.2.0 3041 3040 * 3042 3041 * @param string $value Constructed link for unfavoriting the activity comment. … … 3048 3047 * Output the activity CSS class. 3049 3048 * 3050 * @since BuddyPress (1.0.0)3049 * @since 1.0.0 3051 3050 * 3052 3051 * @uses bp_get_activity_css_class() … … 3059 3058 * Return the current activity item's CSS class. 3060 3059 * 3061 * @since BuddyPress (1.0.0)3060 * @since 1.0.0 3062 3061 * 3063 3062 * @global object $activities_template {@link BP_Activity_Template} … … 3075 3074 * Filters the available mini activity actions available as CSS classes. 3076 3075 * 3077 * @since BuddyPress (1.2.0)3076 * @since 1.2.0 3078 3077 * 3079 3078 * @param array $value Array of classes used to determine classes applied to HTML element. … … 3101 3100 * Filters the determined classes to add to the HTML element. 3102 3101 * 3103 * @since BuddyPress (1.0.0)3102 * @since 1.0.0 3104 3103 * 3105 3104 * @param string $value Classes to be added to the HTML element. … … 3111 3110 * Output the activity delete link. 3112 3111 * 3113 * @since BuddyPress (1.1.0)3112 * @since 1.1.0 3114 3113 * 3115 3114 * @uses bp_get_activity_delete_link() … … 3122 3121 * Return the activity delete link. 3123 3122 * 3124 * @since BuddyPress (1.1.0)3123 * @since 1.1.0 3125 3124 * 3126 3125 * @global object $activities_template {@link BP_Activity_Template} … … 3151 3150 * Filters the activity delete link. 3152 3151 * 3153 * @since BuddyPress (1.1.0)3152 * @since 1.1.0 3154 3153 * 3155 3154 * @param string $link Activity delete HTML link. … … 3161 3160 * Output the URL to delete a single activity stream item. 3162 3161 * 3163 * @since BuddyPress (2.1.0)3162 * @since 2.1.0 3164 3163 * 3165 3164 * @uses bp_get_activity_delete_link() … … 3171 3170 * Return the URL to delete a single activity item. 3172 3171 * 3173 * @since BuddyPress (2.1.0)3172 * @since 2.1.0 3174 3173 * 3175 3174 * @global object $activities_template {@link BP_Activity_Template} … … 3201 3200 * Filters the activity delete URL. 3202 3201 * 3203 * @since BuddyPress (2.1.0)3202 * @since 2.1.0 3204 3203 * 3205 3204 * @param string $url Activity delete URL. … … 3211 3210 * Output the activity latest update link. 3212 3211 * 3213 * @since BuddyPress (1.2.0)3212 * @since 1.2.0 3214 3213 * 3215 3214 * @see bp_get_activity_latest_update() for description of parameters. … … 3225 3224 * Return the activity latest update link. 3226 3225 * 3227 * @since BuddyPress (1.2.0)3226 * @since 1.2.0 3228 3227 * 3229 3228 * @uses bp_is_user_inactive() … … 3258 3257 * Filters the latest update excerpt. 3259 3258 * 3260 * @since BuddyPress (1.2.10)3259 * @since 1.2.10 3261 3260 * 3262 3261 * @param string $value The excerpt for the latest update. … … 3274 3273 * Filters the latest update excerpt with view link appended to the end. 3275 3274 * 3276 * @since BuddyPress (1.2.0)3275 * @since 1.2.0 3277 3276 * 3278 3277 * @param string $latest_update The latest update with "view" link appended to it. … … 3284 3283 * Output the activity filter links. 3285 3284 * 3286 * @since BuddyPress (1.1.0)3285 * @since 1.1.0 3287 3286 * 3288 3287 * @see bp_get_activity_filter_links() for description of parameters. … … 3298 3297 * Return the activity filter links. 3299 3298 * 3300 * @since BuddyPress (1.1.0)3299 * @since 1.1.0 3301 3300 * 3302 3301 * @uses wp_parse_args() … … 3370 3369 * Filters the activity filter link URL for the current activity component. 3371 3370 * 3372 * @since BuddyPress (1.1.0)3371 * @since 1.1.0 3373 3372 * 3374 3373 * @param string $link The URL for the current component. … … 3389 3388 * Filters all of the constructed filter links. 3390 3389 * 3391 * @since BuddyPress (1.1.0)3390 * @since 1.1.0 3392 3391 * 3393 3392 * @param string $value All of the links to be displayed to the user. … … 3399 3398 * Determine if a comment can be made on an activity item. 3400 3399 * 3401 * @since BuddyPress (1.2.0)3400 * @since 1.2.0 3402 3401 * 3403 3402 * @global object $activities_template {@link BP_Activity_Template} … … 3447 3446 * Filters whether a comment can be made on an activity item. 3448 3447 * 3449 * @since BuddyPress (1.5.0)3448 * @since 1.5.0 3450 3449 * 3451 3450 * @param bool $can_comment Status on if activity can be commented on. … … 3458 3457 * Determine whether a comment can be made on an activity reply item. 3459 3458 * 3460 * @since BuddyPress (1.5.0)3459 * @since 1.5.0 3461 3460 * 3462 3461 * @param bool|object $comment Activity comment. … … 3494 3493 * Filters whether a comment can be made on an activity reply item. 3495 3494 * 3496 * @since BuddyPress (1.5.0)3495 * @since 1.5.0 3497 3496 * 3498 3497 * @param bool $can_comment Status on if activity reply can be commented on. … … 3507 3506 * Defaults to true, but can be modified by plugins. 3508 3507 * 3509 * @since BuddyPress (1.5.0)3508 * @since 1.5.0 3510 3509 * 3511 3510 * @uses apply_filters() To call the 'bp_activity_can_favorite' hook. … … 3518 3517 * Filters whether or not users can favorite activity items. 3519 3518 * 3520 * @since BuddyPress (1.5.0)3519 * @since 1.5.0 3521 3520 * 3522 3521 * @param bool $value Whether or not favoriting is enabled. … … 3528 3527 * Output the total favorite count for a specified user. 3529 3528 * 3530 * @since BuddyPress (1.2.0)3529 * @since 1.2.0 3531 3530 * 3532 3531 * @see bp_get_total_favorite_count_for_user() for description of parameters. … … 3542 3541 * Return the total favorite count for a specified user. 3543 3542 * 3544 * @since BuddyPress (1.2.0)3543 * @since 1.2.0 3545 3544 * 3546 3545 * @uses bp_activity_total_favorites_for_user() … … 3569 3568 * Filters the total favorite count for a user. 3570 3569 * 3571 * @since BuddyPress (1.2.0)3570 * @since 1.2.0 3572 3571 * 3573 3572 * @param int|bool $retval Total favorite count for a user. False on no favorites. … … 3580 3579 * Output the total mention count for a specified user. 3581 3580 * 3582 * @since BuddyPress (1.2.0)3581 * @since 1.2.0 3583 3582 * 3584 3583 * @see bp_get_total_mention_count_for_user() for description of parameters. … … 3594 3593 * Return the total mention count for a specified user. 3595 3594 * 3596 * @since BuddyPress (1.2.0)3595 * @since 1.2.0 3597 3596 * 3598 3597 * @uses bp_get_user_meta() … … 3618 3617 * Filters the total mention count for a user. 3619 3618 * 3620 * @since BuddyPress (1.2.0)3619 * @since 1.2.0 3621 3620 * 3622 3621 * @param int|bool $retval Total mention count for a user. False on no mentions. … … 3628 3627 * Output the public message link for displayed user. 3629 3628 * 3630 * @since BuddyPress (1.2.0)3629 * @since 1.2.0 3631 3630 * 3632 3631 * @uses bp_get_send_public_message_link() … … 3639 3638 * Return the public message link for the displayed user. 3640 3639 * 3641 * @since BuddyPress (1.2.0)3640 * @since 1.2.0 3642 3641 * 3643 3642 * @uses is_user_logged_in() … … 3664 3663 * Filters the public message link for the displayed user. 3665 3664 * 3666 * @since BuddyPress (1.2.0)3665 * @since 1.2.0 3667 3666 * 3668 3667 * @param string $retval The URL for the public message link. … … 3674 3673 * Recurse through all activity comments and return the activity comment IDs. 3675 3674 * 3676 * @since BuddyPress (2.0.0)3675 * @since 2.0.0 3677 3676 * 3678 3677 * @param array $activity Array of activities generated from {@link bp_activity_get()}. … … 3702 3701 * Output the mentioned user display name. 3703 3702 * 3704 * @since BuddyPress (1.2.0)3703 * @since 1.2.0 3705 3704 * 3706 3705 * @see bp_get_mentioned_user_display_name() for description of parameters. … … 3716 3715 * Returns the mentioned user display name. 3717 3716 * 3718 * @since BuddyPress (1.2.0)3717 * @since 1.2.0 3719 3718 * 3720 3719 * @uses bp_core_get_user_displayname() … … 3738 3737 * Filters the mentioned user display name. 3739 3738 * 3740 * @since BuddyPress (1.2.0)3739 * @since 1.2.0 3741 3740 * 3742 3741 * @param string $name Display name for the mentioned user. … … 3749 3748 * Output button for sending a public message (an @-mention). 3750 3749 * 3751 * @since BuddyPress (1.2.0)3750 * @since 1.2.0 3752 3751 * 3753 3752 * @see bp_get_send_public_message_button() for description of parameters. … … 3763 3762 * Return button for sending a public message (an @-mention). 3764 3763 * 3765 * @since BuddyPress (1.2.0)3764 * @since 1.2.0 3766 3765 * 3767 3766 * @uses bp_get_send_public_message_link() … … 3804 3803 * Filters the public message button HTML. 3805 3804 * 3806 * @since BuddyPress (1.2.10)3805 * @since 1.2.10 3807 3806 * 3808 3807 * @param array $r Array of arguments for the public message button HTML. … … 3814 3813 * Output the activity post form action. 3815 3814 * 3816 * @since BuddyPress (1.2.0)3815 * @since 1.2.0 3817 3816 * 3818 3817 * @uses bp_get_activity_post_form_action() … … 3825 3824 * Return the activity post form action. 3826 3825 * 3827 * @since BuddyPress (1.2.0)3826 * @since 1.2.0 3828 3827 * 3829 3828 * @uses home_url() … … 3838 3837 * Filters the action url used for the activity post form. 3839 3838 * 3840 * @since BuddyPress (1.2.0)3839 * @since 1.2.0 3841 3840 * 3842 3841 * @param string $value URL to be used for the activity post form. … … 3853 3852 * <ul> or <ol> wrapper markup. 3854 3853 * 3855 * @since BuddyPress (1.7.0)3854 * @since 1.7.0 3856 3855 * 3857 3856 * @see bp_core_fetch_avatar() for a description of arguments. … … 3908 3907 * Filters the list of linked avatars for users who have commented on the current activity item. 3909 3908 * 3910 * @since BuddyPress (1.7.0)3909 * @since 1.7.0 3911 3910 * 3912 3911 * @param string $retval HTML markup for the list of avatars. … … 3920 3919 * Return the IDs of every user who's left a comment on the current activity item. 3921 3920 * 3922 * @since BuddyPress (1.7.0)3921 * @since 1.7.0 3923 3922 * 3924 3923 * @return bool|array An array of IDs, or false if none are found. … … 3934 3933 * Filters the list of user IDs for the current activity item. 3935 3934 * 3936 * @since BuddyPress (1.7.0)3935 * @since 1.7.0 3937 3936 * 3938 3937 * @param array $value Array of unique user IDs for the current activity item. … … 3944 3943 * Recurse through all activity comments and collect the IDs of the users who wrote them. 3945 3944 * 3946 * @since BuddyPress (1.7.0)3945 * @since 1.7.0 3947 3946 * 3948 3947 * @param array $comments Array of {@link BP_Activity_Activity} items. … … 3978 3977 * Filters the list of user IDs for the current activity comment item. 3979 3978 * 3980 * @since BuddyPress (2.1.0)3979 * @since 2.1.0 3981 3980 * 3982 3981 * @param array $user_ids Array of user IDs for the current activity comment item. … … 3989 3988 * Output the mentionname for the displayed user. 3990 3989 * 3991 * @since BuddyPress (1.9.0)3990 * @since 1.9.0 3992 3991 */ 3993 3992 function bp_displayed_user_mentionname() { … … 3997 3996 * Get the mentionname for the displayed user. 3998 3997 * 3999 * @since BuddyPress (1.9.0)3998 * @since 1.9.0 4000 3999 * 4001 4000 * @return string Mentionname for the displayed user, if available. … … 4006 4005 * Filters the mentionname for the displayed user. 4007 4006 * 4008 * @since BuddyPress (1.9.0)4007 * @since 1.9.0 4009 4008 * 4010 4009 * @param string $value The mentionanme for the displayed user. … … 4016 4015 * Echo a list of all registered activity types for use in dropdowns or checkbox lists. 4017 4016 * 4018 * @since BuddyPress (1.7.0)4017 * @since 1.7.0 4019 4018 * 4020 4019 * @param string $output Optional. Either 'select' or 'checkbox'. Default: 'select'. … … 4060 4059 * Two default hooks are bp_activity_types_list_select and bp_activity_types_list_checkbox. 4061 4060 * 4062 * @since BuddyPress (1.7.0)4061 * @since 1.7.0 4063 4062 * 4064 4063 * @param array $args Array of arguments passed into function. … … 4081 4080 * Output the sitewide activity feed link. 4082 4081 * 4083 * @since BuddyPress (1.0.0)4082 * @since 1.0.0 4084 4083 * 4085 4084 * @uses bp_get_sitewide_activity_feed_link() … … 4092 4091 * Returns the sitewide activity feed link. 4093 4092 * 4094 * @since BuddyPress (1.0.0)4093 * @since 1.0.0 4095 4094 * 4096 4095 * @uses home_url() … … 4105 4104 * Filters the sidewide activity feed link. 4106 4105 * 4107 * @since BuddyPress (1.0.0)4106 * @since 1.0.0 4108 4107 * 4109 4108 * @param string $value The feed link for sitewide activity. … … 4115 4114 * Output the member activity feed link. 4116 4115 * 4117 * @since BuddyPress (1.2.0)4116 * @since 1.2.0 4118 4117 * 4119 4118 * @uses bp_get_member_activity_feed_link() … … 4126 4125 * Output the member activity feed link. 4127 4126 * 4128 * @since BuddyPress (1.0.0)4129 * @deprecated BuddyPress (1.2.0)4127 * @since 1.0.0 4128 * @deprecated 1.2.0 4130 4129 * 4131 4130 * @todo properly deprecate in favor of bp_member_activity_feed_link(). … … 4138 4137 * Return the member activity feed link. 4139 4138 * 4140 * @since BuddyPress (1.2.0)4139 * @since 1.2.0 4141 4140 * 4142 4141 * @uses bp_is_profile_component() … … 4181 4180 * Filters the member activity feed link. 4182 4181 * 4183 * @since BuddyPress (1.0.0)4182 * @since 1.0.0 4184 4183 * 4185 4184 * @param string $link URL for the member activity feed. … … 4191 4190 * Return the member activity feed link. 4192 4191 * 4193 * @since BuddyPress (1.0.0)4194 * @deprecated BuddyPress (1.2.0)4192 * @since 1.0.0 4193 * @deprecated 1.2.0 4195 4194 * 4196 4195 * @todo properly deprecate in favor of bp_get_member_activity_feed_link(). … … 4208 4207 * Outputs the activity feed item guid. 4209 4208 * 4210 * @since BuddyPress (1.0.0)4209 * @since 1.0.0 4211 4210 * 4212 4211 * @uses bp_activity_feed_item_guid() … … 4219 4218 * Returns the activity feed item guid. 4220 4219 * 4221 * @since BuddyPress (1.2.0)4220 * @since 1.2.0 4222 4221 * 4223 4222 * @global object $activities_template {@link BP_Activity_Template} … … 4232 4231 * Filters the activity feed item guid. 4233 4232 * 4234 * @since BuddyPress (1.1.3)4233 * @since 1.1.3 4235 4234 * 4236 4235 * @param string $value Calculated md5 value for the activity feed item. … … 4242 4241 * Output the activity feed item title. 4243 4242 * 4244 * @since BuddyPress (1.0.0)4243 * @since 1.0.0 4245 4244 * 4246 4245 * @uses bp_get_activity_feed_item_title() … … 4253 4252 * Return the activity feed item title. 4254 4253 * 4255 * @since BuddyPress (1.0.0)4254 * @since 1.0.0 4256 4255 * 4257 4256 * @global object $activities_template {@link BP_Activity_Template} … … 4286 4285 * Filters the activity feed item title. 4287 4286 * 4288 * @since BuddyPress (1.0.0)4287 * @since 1.0.0 4289 4288 * 4290 4289 * @param string $title The title for the activity feed item. … … 4296 4295 * Output the activity feed item link. 4297 4296 * 4298 * @since BuddyPress (1.0.0)4297 * @since 1.0.0 4299 4298 * 4300 4299 * @uses bp_get_activity_feed_item_link() … … 4307 4306 * Return the activity feed item link. 4308 4307 * 4309 * @since BuddyPress (1.0.0)4308 * @since 1.0.0 4310 4309 * 4311 4310 * @global object $activities_template {@link BP_Activity_Template} … … 4324 4323 * Filters the activity feed item link. 4325 4324 * 4326 * @since BuddyPress (1.0.0)4325 * @since 1.0.0 4327 4326 * 4328 4327 * @param string $retval The URL for the activity feed item. … … 4334 4333 * Output the activity feed item date. 4335 4334 * 4336 * @since BuddyPress (1.0.0)4335 * @since 1.0.0 4337 4336 * 4338 4337 * @uses bp_get_activity_feed_item_date() … … 4345 4344 * Return the activity feed item date. 4346 4345 * 4347 * @since BuddyPress (1.0.0)4346 * @since 1.0.0 4348 4347 * 4349 4348 * @global object $activities_template {@link BP_Activity_Template} … … 4362 4361 * Filters the activity feed item date. 4363 4362 * 4364 * @since BuddyPress (1.0.0)4363 * @since 1.0.0 4365 4364 * 4366 4365 * @param string $retval The date for the activity feed item. … … 4372 4371 * Output the activity feed item description. 4373 4372 * 4374 * @since BuddyPress (1.0.0)4373 * @since 1.0.0 4375 4374 * 4376 4375 * @uses bp_get_activity_feed_item_description() … … 4383 4382 * Return the activity feed item description. 4384 4383 * 4385 * @since BuddyPress (1.0.0)4384 * @since 1.0.0 4386 4385 * 4387 4386 * @global object $activities_template {@link BP_Activity_Template} … … 4408 4407 * Filters the activity feed item description. 4409 4408 * 4410 * @since BuddyPress (1.0.0)4409 * @since 1.0.0 4411 4410 * 4412 4411 * @param string $content The description for the activity feed item. … … 4418 4417 * Template tag so we can hook activity feed to <head>. 4419 4418 * 4420 * @since BuddyPress (1.5.0)4419 * @since 1.5.0 4421 4420 * 4422 4421 * @uses bloginfo() … … 4435 4434 * Display available filters depending on the scope. 4436 4435 * 4437 * @since BuddyPress (2.1.0)4436 * @since 2.1.0 4438 4437 * 4439 4438 * @param string $context The current context. 'activity', 'member', … … 4447 4446 * Get available filters depending on the scope. 4448 4447 * 4449 * @since BuddyPress (2.1.0)4448 * @since 2.1.0 4450 4449 * 4451 4450 * @param string $context The current context. 'activity', 'member', … … 4499 4498 * Filters the options available in the activity filter dropdown. 4500 4499 * 4501 * @since BuddyPress (2.2.0)4500 * @since 2.2.0 4502 4501 * 4503 4502 * @param array $filters Array of filter options for the given context, in the following format: $option_value => $option_name. … … 4518 4517 * Filters the HTML markup result for the activity filter dropdown. 4519 4518 * 4520 * @since BuddyPress (2.1.0)4519 * @since 2.1.0 4521 4520 * 4522 4521 * @param string $output HTML output for the activity filter dropdown.
Note: See TracChangeset
for help on using the changeset viewer.