- Timestamp:
- 09/27/2015 06:04:27 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r10048 r10150 1 1 <?php 2 3 2 /** 4 3 * Functions of BuddyPress's Legacy theme 4 * 5 * @since 1.7.0 5 6 * 6 7 * @package BuddyPress 7 8 * @subpackage BP_Theme_Compat 8 * @since BuddyPress (1.7) 9 */ 10 11 // Exit if accessed directly 9 */ 10 11 // Exit if accessed directly. 12 12 defined( 'ABSPATH' ) || exit; 13 13 … … 28 28 * See @link BP_Theme_Compat() for more. 29 29 * 30 * @since BuddyPress (1.7)30 * @since 1.7.0 31 31 * 32 32 * @package BuddyPress … … 40 40 * The main BuddyPress (Legacy) Loader 41 41 * 42 * @since BuddyPress (1.7)42 * @since 1.7.0 43 43 * 44 44 * @uses BP_Legacy::setup_globals() … … 55 55 * needs are. 56 56 * 57 * @since BuddyPress (1.7)57 * @since 1.7.0 58 58 * @access private 59 59 */ … … 70 70 * Setup the theme hooks 71 71 * 72 * @since BuddyPress (1.7)72 * @since 1.7.0 73 73 * @access private 74 74 * … … 201 201 * Fires after all of the BuddyPress theme compat actions have been added. 202 202 * 203 * @since BuddyPress (1.7.0)203 * @since 1.7.0 204 204 * 205 205 * @param BP_Legacy $this Current BP_Legacy instance. … … 211 211 * Load the theme CSS 212 212 * 213 * @since BuddyPress (1.7)214 * @since BuddyPress (2.3.0)Support custom CSS file named after the current theme or parent theme.213 * @since 1.7.0 214 * @since 2.3.0 Support custom CSS file named after the current theme or parent theme. 215 215 * 216 216 * @uses wp_enqueue_style() To enqueue the styles … … 275 275 * Enqueue the required JavaScript files 276 276 * 277 * @since BuddyPress (1.7)277 * @since 1.7.0 278 278 */ 279 279 public function enqueue_scripts() { … … 292 292 * Filters core JavaScript strings for internationalization before AJAX usage. 293 293 * 294 * @since BuddyPress (2.0.0)294 * @since 2.0.0 295 295 * 296 296 * @param array $value Array of key/value pairs for AJAX usage. … … 372 372 * and theme authors should not attempt to use what follows. 373 373 * 374 * @since BuddyPress (1.8)374 * @since 1.8.0 375 375 * @access private 376 376 * @param string $file A filename like buddypress.css … … 436 436 * Put some scripts in the header, like AJAX url for wp-lists 437 437 * 438 * @since BuddyPress (1.7)438 * @since 1.7.0 439 439 */ 440 440 public function head_scripts() { … … 459 459 * The no-js class is removed by the JavaScript created in buddypress.js. 460 460 * 461 * @since BuddyPress (1.7)461 * @since 1.7.0 462 462 */ 463 463 public function add_nojs_body_class( $classes ) { … … 473 473 * These localizations require information that may not be loaded even by init. 474 474 * 475 * @since BuddyPress (1.7)475 * @since 1.7.0 476 476 */ 477 477 public function localize_scripts() { … … 481 481 * Outputs sitewide notices markup in the footer. 482 482 * 483 * @since BuddyPress (1.7)483 * @since 1.7.0 484 484 * 485 485 * @see https://buddypress.trac.wordpress.org/ticket/4802 … … 501 501 * Add secondary avatar image to this activity stream's record, if supported. 502 502 * 503 * @since BuddyPress (1.7)503 * @since 1.7.0 504 504 * 505 505 * @param string $action The text of this activity … … 530 530 * @see https://buddypress.trac.wordpress.org/ticket/6065 531 531 * 532 * @since BuddyPress (2.2.0)532 * @since 2.2.0 533 533 * 534 534 * @param array $templates … … 542 542 * Filters whether or not we are looking at a directory to determine if to return early. 543 543 * 544 * @since BuddyPress (2.2.0)544 * @since 2.2.0 545 545 * 546 546 * @param bool $value Whether or not we are viewing a directory. … … 608 608 * the behavior of bp-default. 609 609 * 610 * @since BuddyPress (2.0.0)610 * @since 2.0.0 611 611 * @todo Deprecate 612 612 * … … 624 624 * the Groups directory navigation. 625 625 * 626 * @since BuddyPress (2.2.0)626 * @since 2.2.0 627 627 * 628 628 * @uses bp_group_create_nav_item() to output the create a Group nav item … … 639 639 * the behavior of bp-default. 640 640 * 641 * @since BuddyPress (2.0.0)641 * @since 2.0.0 642 642 * @todo Deprecate 643 643 * … … 655 655 * the Sites directory navigation. 656 656 * 657 * @since BuddyPress (2.2.0)657 * @since 2.2.0 658 658 * 659 659 * @uses bp_blog_create_nav_item() to output the Create a Site nav item … … 678 678 * 679 679 * @return string Query string for the component loops 680 * @since BuddyPress (1.2)680 * @since 1.2.0 681 681 */ 682 682 function bp_legacy_theme_ajax_querystring( $query_string, $object ) { … … 760 760 * Filters the AJAX query string for the component loops. 761 761 * 762 * @since BuddyPress (1.7.0)762 * @since 1.7.0 763 763 * 764 764 * @param string $query_string The query string we are working with. … … 777 777 * 778 778 * @return string Prints template loop for the specified object 779 * @since BuddyPress (1.2)779 * @since 1.2.0 780 780 */ 781 781 function bp_legacy_theme_object_template_loader() { … … 820 820 * 821 821 * @return string Prints template loop for the Messages component 822 * @since BuddyPress (1.6)822 * @since 1.6.0 823 823 */ 824 824 function bp_legacy_theme_messages_template_loader() { … … 830 830 * Load group invitations loop to handle pagination requests sent via AJAX. 831 831 * 832 * @since BuddyPress (2.0.0)832 * @since 2.0.0 833 833 */ 834 834 function bp_legacy_theme_invite_template_loader() { … … 840 840 * Load group membership requests loop to handle pagination requests sent via AJAX. 841 841 * 842 * @since BuddyPress (2.0.0)842 * @since 2.0.0 843 843 */ 844 844 function bp_legacy_theme_requests_template_loader() { … … 853 853 * for the Activity component) and 'feed_url' (URL to the relevant RSS feed). 854 854 * 855 * @since BuddyPress (1.2)855 * @since 1.2.0 856 856 */ 857 857 function bp_legacy_theme_activity_template_loader() { … … 892 892 * Filters the feed URL for when activity is requested via AJAX. 893 893 * 894 * @since BuddyPress (1.7.0)894 * @since 1.7.0 895 895 * 896 896 * @param string $feed_url URL for the feed to be used. … … 907 907 * 908 908 * @return string HTML 909 * @since BuddyPress (1.2)909 * @since 1.2.0 910 910 */ 911 911 function bp_legacy_theme_post_update() { … … 970 970 * @global BP_Activity_Template $activities_template 971 971 * @return string HTML 972 * @since BuddyPress (1.2)972 * @since 1.2.0 973 973 */ 974 974 function bp_legacy_theme_new_activity_comment() { … … 1046 1046 * 1047 1047 * @return mixed String on error, void on success 1048 * @since BuddyPress (1.2)1048 * @since 1.2.0 1049 1049 */ 1050 1050 function bp_legacy_theme_delete_activity() { … … 1083 1083 * 1084 1084 * @return mixed String on error, void on success 1085 * @since BuddyPress (1.2)1085 * @since 1.2.0 1086 1086 */ 1087 1087 function bp_legacy_theme_delete_activity_comment() { … … 1120 1120 * 1121 1121 * @return mixed String on error, void on success 1122 * @since BuddyPress (1.6)1122 * @since 1.6.0 1123 1123 */ 1124 1124 function bp_legacy_theme_spam_activity() { … … 1165 1165 * 1166 1166 * @return string HTML 1167 * @since BuddyPress (1.2)1167 * @since 1.2.0 1168 1168 */ 1169 1169 function bp_legacy_theme_mark_activity_favorite() { … … 1184 1184 * 1185 1185 * @return string HTML 1186 * @since BuddyPress (1.2)1186 * @since 1.2.0 1187 1187 */ 1188 1188 function bp_legacy_theme_unmark_activity_favorite() { … … 1204 1204 * 1205 1205 * @return string HTML 1206 * @since BuddyPress (1.5)1206 * @since 1.5.0 1207 1207 */ 1208 1208 function bp_legacy_theme_get_single_activity_content() { … … 1224 1224 * Fires before the return of an activity's full, non-excerpted content via a POST request. 1225 1225 * 1226 * @since BuddyPress (1.7.0)1226 * @since 1.7.0 1227 1227 * 1228 1228 * @param string $activity Activity content. Passed by reference. … … 1242 1242 * Invites a friend to join a group via a POST request. 1243 1243 * 1244 * @since BuddyPress (1.2)1244 * @since 1.2.0 1245 1245 * @todo Audit return types 1246 1246 */ … … 1325 1325 * 1326 1326 * @return string HTML 1327 * @since BuddyPress (1.2)1327 * @since 1.2.0 1328 1328 */ 1329 1329 function bp_legacy_theme_ajax_addremove_friend() { … … 1378 1378 * 1379 1379 * @return mixed String on error, void on success 1380 * @since BuddyPress (1.2)1380 * @since 1.2.0 1381 1381 */ 1382 1382 function bp_legacy_theme_ajax_accept_friendship() { … … 1397 1397 * 1398 1398 * @return mixed String on error, void on success 1399 * @since BuddyPress (1.2)1399 * @since 1.2.0 1400 1400 */ 1401 1401 function bp_legacy_theme_ajax_reject_friendship() { … … 1416 1416 * 1417 1417 * @return string HTML 1418 * @since BuddyPress (1.2)1418 * @since 1.2.0 1419 1419 */ 1420 1420 function bp_legacy_theme_ajax_joinleave_group() { … … 1486 1486 * 1487 1487 * @return mixed String on error, void on success 1488 * @since BuddyPress (1.2)1488 * @since 1.2.0 1489 1489 */ 1490 1490 function bp_legacy_theme_ajax_close_notice() { … … 1511 1511 * 1512 1512 * @return string HTML 1513 * @since BuddyPress (1.2)1513 * @since 1.2.0 1514 1514 */ 1515 1515 function bp_legacy_theme_ajax_messages_send_reply() { … … 1566 1566 * 1567 1567 * @return mixed String on error, void on success 1568 * @since BuddyPress (1.2)1568 * @since 1.2.0 1569 1569 */ 1570 1570 function bp_legacy_theme_ajax_message_markunread() { … … 1591 1591 * 1592 1592 * @return mixed String on error, void on success 1593 * @since BuddyPress (1.2)1593 * @since 1.2.0 1594 1594 */ 1595 1595 function bp_legacy_theme_ajax_message_markread() { … … 1616 1616 * 1617 1617 * @return string HTML 1618 * @since BuddyPress (1.2)1618 * @since 1.2.0 1619 1619 */ 1620 1620 function bp_legacy_theme_ajax_messages_delete() { … … 1641 1641 * Displays friends only, unless BP_MESSAGES_AUTOCOMPLETE_ALL is defined. 1642 1642 * 1643 * @since BuddyPress (1.2.0)1643 * @since 1.2.0 1644 1644 * 1645 1645 * @return string HTML. … … 1650 1650 * Filters the max results default value for ajax messages autocomplete results. 1651 1651 * 1652 * @since BuddyPress (1.5.0)1652 * @since 1.5.0 1653 1653 * 1654 1654 * @param int $value Max results for autocomplete. Default 10. … … 1691 1691 * AJAX callback to set a message's star status. 1692 1692 * 1693 * @since BuddyPress (2.3.0)1693 * @since 2.3.0 1694 1694 */ 1695 1695 function bp_legacy_theme_ajax_messages_star_handler() {
Note: See TracChangeset
for help on using the changeset viewer.