Changeset 11899
- Timestamp:
- 03/18/2018 09:56:44 PM (7 years ago)
- Location:
- trunk/src/bp-templates/bp-nouveau
- Files:
-
- 105 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/buddypress-functions.php
r11855 r11899 3 3 * Functions of BuddyPress's "Nouveau" template pack. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 * 7 7 * @buddypress-template-pack { … … 30 30 * See @link BP_Theme_Compat() for more. 31 31 * 32 * @since 1.0.032 * @since 3.0.0 33 33 */ 34 34 class BP_Nouveau extends BP_Theme_Compat { … … 43 43 * Return the instance of this class. 44 44 * 45 * @since 1.0.045 * @since 3.0.0 46 46 */ 47 47 public static function get_instance() { … … 58 58 * The BP Nouveau constructor. 59 59 * 60 * @since 1.0.060 * @since 3.0.0 61 61 */ 62 62 public function __construct() { … … 73 73 * BP Nouveau global variables. 74 74 * 75 * @since 1.0.075 * @since 3.0.0 76 76 */ 77 77 protected function setup_globals() { … … 91 91 * Includes! 92 92 * 93 * @since 1.0.093 * @since 3.0.0 94 94 */ 95 95 protected function includes() { … … 133 133 * Setup the Template Pack features support. 134 134 * 135 * @since 1.0.0135 * @since 3.0.0 136 136 */ 137 137 protected function setup_support() { … … 163 163 * Setup the Template Pack common actions. 164 164 * 165 * @since 1.0.0165 * @since 3.0.0 166 166 */ 167 167 protected function setup_actions() { … … 210 210 * Fires after all of the BuddyPress theme compat actions have been added. 211 211 * 212 * @since 1.0.0212 * @since 3.0.0 213 213 * 214 214 * @param BP_Nouveau $this Current BP_Nouveau instance. … … 220 220 * Enqueue the template pack css files 221 221 * 222 * @since 1.0.0222 * @since 3.0.0 223 223 */ 224 224 public function enqueue_styles() { … … 276 276 * Register Template Pack JavaScript files 277 277 * 278 * @since 1.0.0278 * @since 3.0.0 279 279 */ 280 280 public function register_scripts() { … … 339 339 * Enqueue the required JavaScript files 340 340 * 341 * @since 1.0.0341 * @since 3.0.0 342 342 */ 343 343 public function enqueue_scripts() { … … 364 364 * The no-js class is removed by the JavaScript created in buddypress.js. 365 365 * 366 * @since 1.0.0366 * @since 3.0.0 367 367 * 368 368 * @param array $classes Array of classes to append to body tag. … … 379 379 * These localizations require information that may not be loaded even by init. 380 380 * 381 * @since 1.0.0381 * @since 3.0.0 382 382 */ 383 383 public function localize_scripts() { … … 462 462 * Filters core JavaScript strings for internationalization before AJAX usage. 463 463 * 464 * @since 1.0.0464 * @since 3.0.0 465 465 * 466 466 * @param array $value Array of key/value pairs for AJAX usage. … … 475 475 * @see https://buddypress.trac.wordpress.org/ticket/6065 476 476 * 477 * @since 1.0.0477 * @since 3.0.0 478 478 * 479 479 * @param array $templates Array of templates. … … 545 545 * Add our special 'buddypress' div wrapper to the theme compat template part. 546 546 * 547 * @since 1.0.0547 * @since 3.0.0 548 548 * 549 549 * @see bp_buffer_template_part() … … 569 569 * Define the directory nav items 570 570 * 571 * @since 1.0.0571 * @since 3.0.0 572 572 */ 573 573 public function setup_directory_nav() { … … 601 601 * We'll handle template notices from BP Nouveau. 602 602 * 603 * @since 1.0.0603 * @since 3.0.0 604 604 */ 605 605 public function neutralize_core_template_notices() { … … 610 610 * Set the BP Uri for the customizer in case of Ajax requests. 611 611 * 612 * @since 1.0.0612 * @since 3.0.0 613 613 * 614 614 * @param string $path the BP Uri. … … 639 639 * Get a unique instance of BP Nouveau 640 640 * 641 * @since 1.0.0641 * @since 3.0.0 642 642 * 643 643 * @return BP_Nouveau the main instance of the class -
trunk/src/bp-templates/bp-nouveau/buddypress/activity/comment-form.php
r11856 r11899 3 3 * BP Nouveau Activity Comment form template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/activity/entry.php
r11856 r11899 6 6 * each activity. 7 7 * 8 * @since 1.0.08 * @since 3.0.0 9 9 */ 10 10 -
trunk/src/bp-templates/bp-nouveau/buddypress/activity/widget.php
r11861 r11899 3 3 * BP Nouveau Activity Widget template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/blogs/blogs-loop.php
r11861 r11899 5 5 * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter(). 6 6 * 7 * @since 1.0.07 * @since 3.0.0 8 8 */ 9 9 -
trunk/src/bp-templates/bp-nouveau/buddypress/blogs/create.php
r11855 r11899 3 3 * BuddyPress - Blogs Create 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/blogs/index.php
r11686 r11899 3 3 * BuddyPress - Blogs Directory 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/common/filters/directory-filters.php
r11686 r11899 3 3 * BP Nouveau Component's filters template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/common/filters/groups-screens-filters.php
r11686 r11899 3 3 * BP Nouveau Groups screens filters 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/common/filters/user-screens-filters.php
r11686 r11899 3 3 * BP Nouveau User screens filters 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/common/js-templates/invites/index.php
r11855 r11899 6 6 * dealing with invites. 7 7 * 8 * @since 1.0.08 * @since 3.0.0 9 9 */ 10 10 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php
r11894 r11899 6 6 * dealing with user's private messages. 7 7 * 8 * @since 1.0.08 * @since 3.0.0 9 9 */ 10 10 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/common/nav/directory-nav.php
r11861 r11899 3 3 * BP Nouveau Component's directory nav template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/common/notices/template-notices.php
r11855 r11899 3 3 * BP Nouveau temptate notices template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/common/search-and-filters-bar.php
r11855 r11899 3 3 * BP Nouveau Search & filters bar 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/common/search/search-form.php
r11686 r11899 3 3 * BP Object search form 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/create-invites.php
r11856 r11899 5 5 * This template include provides the standard BP invites step screen content 6 6 * 7 * @since 1.0.07 * @since 3.0.0 8 8 */ 9 9 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/groups-loop.php
r11861 r11899 5 5 * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter(). 6 6 * 7 * @since 1.0.07 * @since 3.0.0 8 8 */ 9 9 -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/index.php
r11686 r11899 3 3 * BP Nouveau - Groups Directory 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/activity.php
r11856 r11899 3 3 * BuddyPress - Groups Activity 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/admin.php
r11686 r11899 3 3 * BuddyPress - Groups Admin 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/delete-group.php
r11686 r11899 3 3 * BP Nouveau Group's delete group template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/edit-details.php
r11855 r11899 3 3 * BP Nouveau Group's edit details template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/group-avatar.php
r11856 r11899 3 3 * BP Nouveau Group's avatar template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/group-cover-image.php
r11856 r11899 3 3 * BP Nouveau Group's cover image template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/group-settings.php
r11855 r11899 3 3 * BP Nouveau Group's edit settings template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/manage-members.php
r11855 r11899 3 3 * BP Nouveau Group's manage members template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/admin/membership-requests.php
r11686 r11899 3 3 * BP Nouveau Group's membership requests template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/cover-image-header.php
r11855 r11899 3 3 * BuddyPress - Groups Cover Image Header. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/default-front.php
r11856 r11899 3 3 * BP Nouveau Default group's front template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/group-header.php
r11855 r11899 3 3 * BuddyPress - Groups Header 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/home.php
r11861 r11899 3 3 * BuddyPress - Groups Home 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/members-loop.php
r11861 r11899 3 3 * Group Members Loop template 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/members.php
r11686 r11899 3 3 * BuddyPress - Groups Members 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/parts/admin-subnav.php
r11861 r11899 3 3 * BuddyPress Single Groups Admin Navigation 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/parts/header-item-actions.php
r11896 r11899 3 3 * BuddyPress - Groups Header item-actions. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/parts/item-nav.php
r11861 r11899 3 3 * BuddyPress Single Groups item Navigation 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/plugins.php
r11686 r11899 3 3 * BuddyPress - Groups plugins 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/request-membership.php
r11855 r11899 3 3 * BuddyPress - Groups Request Membership 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/requests-loop.php
r11861 r11899 3 3 * BuddyPress - Groups Requests Loop 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/send-invites.php
r11855 r11899 3 3 * BuddyPress - Groups Send Invites 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 // Runs do_action & calls common/js-templates/invites/index -
trunk/src/bp-templates/bp-nouveau/buddypress/members/members-loop.php
r11856 r11899 5 5 * Querystring is set via AJAX in _inc/ajax.php - bp_legacy_theme_object_filter() 6 6 * 7 * @since 1.0.07 * @since 3.0.0 8 8 */ 9 9 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/register.php
r11686 r11899 3 3 * BuddyPress - Members/Blogs Registration forms 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/activity.php
r11855 r11899 3 3 * BuddyPress - Users Activity 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/blogs.php
r11856 r11899 3 3 * BuddyPress - Users Blogs 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/cover-image-header.php
r11856 r11899 3 3 * BuddyPress - Users Cover Image Header 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/default-front.php
r11856 r11899 3 3 * BP Nouveau Default user's front template. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/friends.php
r11855 r11899 3 3 * BuddyPress - Users Friends 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/friends/requests.php
r11861 r11899 3 3 * BuddyPress - Members Friends Requests 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/groups.php
r11856 r11899 3 3 * BuddyPress - Users Groups 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/groups/invites.php
r11861 r11899 3 3 * BuddyPress - Members Single Group Invites 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/member-header.php
r11855 r11899 3 3 * BuddyPress - Users Header 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/notifications.php
r11856 r11899 3 3 * BuddyPress - Users Notifications 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/notifications/notifications-loop.php
r11861 r11899 3 3 * BuddyPress - Members Notifications Loop 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/parts/item-nav.php
r11861 r11899 3 3 * BuddyPress Single Members item Navigation 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/parts/item-subnav.php
r11861 r11899 3 3 * BuddyPress Single Members item Sub Navigation 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/parts/profile-visibility.php
r11861 r11899 3 3 * BuddyPress - Members Single Profile Edit Field visibility 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/plugins.php
r11855 r11899 6 6 * support to their plugins for the members component. 7 7 * 8 * @since 1.0.08 * @since 3.0.0 9 9 */ 10 10 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile.php
r11856 r11899 3 3 * BuddyPress - Users Profile 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/change-avatar.php
r11855 r11899 3 3 * BuddyPress - Members Profile Change Avatar 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/change-cover-image.php
r11686 r11899 3 3 * BuddyPress - Members Profile Change Cover Image 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/edit.php
r11861 r11899 3 3 * BuddyPress - Members Single Profile Edit 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/profile-loop.php
r11861 r11899 3 3 * BuddyPress - Members Profile Loop 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/profile/profile-wp.php
r11861 r11899 3 3 * BuddyPress - Members Single Profile WP 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/capabilities.php
r11861 r11899 3 3 * BuddyPress - Members Settings ( Capabilities ) 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/delete-account.php
r11855 r11899 3 3 * BuddyPress - Members Settings ( Delete Account ) 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/general.php
r11855 r11899 3 3 * BuddyPress - Members Settings ( General ) 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/group-invites.php
r11861 r11899 3 3 * BuddyPress - Members Settings ( Group Invites ) 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 ?> -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/notifications.php
r11855 r11899 3 3 * BuddyPress - Members Settings ( Notifications ) 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/profile.php
r11861 r11899 3 3 * BuddyPress - Members Settings ( Profile ) 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/includes/activity/ajax.php
r11858 r11899 3 3 * Activity Ajax functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 81 81 * Mark an activity as a favourite via a POST request. 82 82 * 83 * @since 1.0.083 * @since 3.0.0 84 84 * 85 85 * @return string JSON reply … … 121 121 * Un-favourite an activity via a POST request. 122 122 * 123 * @since 1.0.0123 * @since 3.0.0 124 124 * 125 125 * @return string JSON reply … … 157 157 * Clear mentions if the directory tab is clicked 158 158 * 159 * @since 1.0.0159 * @since 3.0.0 160 160 * 161 161 * @return string JSON reply … … 178 178 * Deletes an Activity item/Activity comment item received via a POST request. 179 179 * 180 * @since 1.0.0180 * @since 3.0.0 181 181 * 182 182 * @return string JSON reply. … … 250 250 * Used for the 'Read More' link on long activity items. 251 251 * 252 * @since 1.0.0252 * @since 3.0.0 253 253 * 254 254 * @return string JSON reply … … 288 288 * Fires before the return of an activity's full, non-excerpted content via a POST request. 289 289 * 290 * @since 1.0.0290 * @since 3.0.0 291 291 * 292 292 * @param string $activity Activity content. Passed by reference. … … 306 306 * Posts new Activity comments received via a POST request. 307 307 * 308 * @since 1.0.0308 * @since 3.0.0 309 309 * 310 310 * @global BP_Activity_Template $activities_template … … 410 410 * This is used within the activity post form autocomplete field. 411 411 * 412 * @since 1.0.0412 * @since 3.0.0 413 413 * 414 414 * @return string JSON reply … … 446 446 * Processes Activity updates received via a POST request. 447 447 * 448 * @since 1.0.0448 * @since 3.0.0 449 449 * 450 450 * @return string JSON reply … … 546 546 * AJAX spam an activity item or comment. 547 547 * 548 * @since 1.0.0548 * @since 3.0.0 549 549 * 550 550 * @return string JSON reply. -
trunk/src/bp-templates/bp-nouveau/includes/activity/functions.php
r11856 r11899 3 3 * Activity functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Register Scripts for the Activity component 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 * 16 16 * @param array $scripts The array of scripts to register. … … 40 40 * Enqueue the activity scripts 41 41 * 42 * @since 1.0.042 * @since 3.0.0 43 43 */ 44 44 function bp_nouveau_activity_enqueue_scripts() { … … 53 53 * Localize the strings needed for the Activity Post form UI 54 54 * 55 * @since 1.0.055 * @since 3.0.0 56 56 * 57 57 * @param array $params Associative array containing the JS Strings needed by scripts. … … 92 92 * Filter to include specific Action buttons. 93 93 * 94 * @since 1.0.094 * @since 3.0.0 95 95 * 96 96 * @param array $value The array containing the button params. Must look like: … … 173 173 174 174 /** 175 * @since 1.0.0175 * @since 3.0.0 176 176 */ 177 177 function bp_nouveau_get_activity_directory_nav_items() { … … 278 278 * Use this filter to introduce your custom nav items for the activity directory. 279 279 * 280 * @since 1.0.0280 * @since 3.0.0 281 281 * 282 282 * @param array $nav_items The list of the activity directory nav items. … … 289 289 * instead of the output. 290 290 * 291 * @since 1.0.0291 * @since 3.0.0 292 292 * 293 293 * @param string $output string HTML output … … 306 306 * Get Dropdown filters of the activity component 307 307 * 308 * @since 1.0.0308 * @since 3.0.0 309 309 * 310 310 * @return array the filters … … 336 336 337 337 /** 338 * @since 1.0.0338 * @since 3.0.0 339 339 */ 340 340 function bp_nouveau_activity_secondary_avatars( $action, $activity ) { … … 355 355 356 356 /** 357 * @since 1.0.0357 * @since 3.0.0 358 358 */ 359 359 function bp_nouveau_activity_scope_newest_class( $classes = '' ) { … … 428 428 429 429 /** 430 * @since 1.0.0430 * @since 3.0.0 431 431 */ 432 432 … … 447 447 448 448 /** 449 * @since 1.0.0449 * @since 3.0.0 450 450 */ 451 451 function bp_nouveau_activity_allowed_tags( $activity_allowedtags = array() ) { … … 461 461 * Get the activity query args for the widget. 462 462 * 463 * @since 1.0.0463 * @since 3.0.0 464 464 * 465 465 * @return array The activity arguments. … … 476 476 * Filter to edit the activity widget arguments 477 477 * 478 * @since 1.0.0478 * @since 3.0.0 479 479 * 480 480 * @param array $args The activity arguments. … … 486 486 * Register notifications filters for the activity component. 487 487 * 488 * @since 1.0.0488 * @since 3.0.0 489 489 */ 490 490 function bp_nouveau_activity_notification_filters() { -
trunk/src/bp-templates/bp-nouveau/includes/activity/loader.php
r11855 r11899 3 3 * BP Nouveau Activity 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Activity Loader class 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 class BP_Nouveau_Activity { … … 18 18 * Constructor 19 19 * 20 * @since 1.0.020 * @since 3.0.0 21 21 */ 22 22 public function __construct() { … … 30 30 * Globals 31 31 * 32 * @since 1.0.032 * @since 3.0.0 33 33 */ 34 34 protected function setup_globals() { … … 39 39 * Include needed files 40 40 * 41 * @since 1.0.041 * @since 3.0.0 42 42 */ 43 43 protected function includes() { … … 67 67 * Register do_action() hooks 68 68 * 69 * @since 1.0.069 * @since 3.0.0 70 70 */ 71 71 protected function setup_actions() { … … 90 90 * Register add_filter() hooks 91 91 * 92 * @since 1.0.092 * @since 3.0.0 93 93 */ 94 94 protected function setup_filters() { … … 110 110 * Launch the Activity loader class. 111 111 * 112 * @since 1.0.0112 * @since 3.0.0 113 113 */ 114 114 function bp_nouveau_activity( $bp_nouveau = null ) { -
trunk/src/bp-templates/bp-nouveau/includes/activity/template-tags.php
r11855 r11899 3 3 * Activity Template tags 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Before Activity's directory content legacy do_action hooks wrapper 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 function bp_nouveau_before_activity_directory_content() { … … 33 33 * After Activity's directory content legacy do_action hooks wrapper 34 34 * 35 * @since 1.0.035 * @since 3.0.0 36 36 */ 37 37 function bp_nouveau_after_activity_directory_content() { … … 66 66 * Enqueue needed scripts for the Activity Post Form 67 67 * 68 * @since 1.0.068 * @since 3.0.0 69 69 */ 70 70 function bp_nouveau_before_activity_post_form() { … … 84 84 * Load JS Templates for the Activity Post Form 85 85 * 86 * @since 1.0.086 * @since 3.0.0 87 87 */ 88 88 function bp_nouveau_after_activity_post_form() { … … 102 102 * Display the displayed user activity post form if needed 103 103 * 104 * @since 1.0.0104 * @since 3.0.0 105 105 * 106 106 * @return string HTML. … … 130 130 * Fire specific hooks into the activity entry template 131 131 * 132 * @since 1.0.0132 * @since 3.0.0 133 133 * 134 134 * @param string $when Optional. Either 'before' or 'after'. … … 155 155 * Checks if an activity of the loop has some content. 156 156 * 157 * @since 1.0.0157 * @since 3.0.0 158 158 * 159 159 * @return bool True if the activity has some content. False Otherwise. … … 166 166 * Output the Activity content into the loop. 167 167 * 168 * @since 1.0.0168 * @since 3.0.0 169 169 */ 170 170 function bp_nouveau_activity_content() { … … 184 184 * Output the action buttons inside an Activity Loop. 185 185 * 186 * @since 1.0.0186 * @since 3.0.0 187 187 * 188 188 * @param array $args See bp_nouveau_wrapper() for the description of parameters. … … 218 218 * 219 219 * @todo This function is too large and needs refactoring and reviewing. 220 * @since 1.0.0220 * @since 3.0.0 221 221 */ 222 222 function bp_nouveau_get_activity_entry_buttons( $args ) { … … 497 497 * Filter to add your buttons, use the position argument to choose where to insert it. 498 498 * 499 * @since 1.0.0499 * @since 3.0.0 500 500 * 501 501 * @param array $buttons The list of buttons. … … 542 542 * Leave a chance to adjust the $return 543 543 * 544 * @since 1.0.0544 * @since 3.0.0 545 545 * 546 546 * @param array $return The list of buttons ordered. … … 555 555 * Output Activity Comments if any 556 556 * 557 * @since 1.0.0557 * @since 3.0.0 558 558 */ 559 559 function bp_nouveau_activity_comments() { … … 572 572 * Note: This is an adaptation of the bp_activity_recurse_comments() BuddyPress core function 573 573 * 574 * @since 1.0.0574 * @since 3.0.0 575 575 * 576 576 * @param object $comment The activity object currently being recursed. … … 629 629 * Ouptut the Activity comment action string 630 630 * 631 * @since 1.0.0631 * @since 3.0.0 632 632 */ 633 633 function bp_nouveau_activity_comment_action() { … … 638 638 * Get the Activity comment action string 639 639 * 640 * @since 1.0.0640 * @since 3.0.0 641 641 */ 642 642 function bp_nouveau_get_activity_comment_action() { … … 645 645 * Filter to edit the activity comment action. 646 646 * 647 * @since 1.0.0647 * @since 3.0.0 648 648 * 649 649 * @param string $value HTML Output … … 664 664 * Load the Activity comment form 665 665 * 666 * @since 1.0.0666 * @since 3.0.0 667 667 */ 668 668 function bp_nouveau_activity_comment_form() { … … 680 680 * Output the action buttons for the activity comments 681 681 * 682 * @since 1.0.0682 * @since 3.0.0 683 683 * 684 684 * @param array $args Optional. See bp_nouveau_wrapper() for the description of parameters. … … 711 711 * Get the action buttons for the activity comments 712 712 * 713 * @since 1.0.0713 * @since 3.0.0 714 714 * 715 715 * @param array $args Optional. See bp_nouveau_wrapper() for the description of parameters. … … 832 832 * Filter to add your buttons, use the position argument to choose where to insert it. 833 833 * 834 * @since 1.0.0834 * @since 3.0.0 835 835 * 836 836 * @param array $buttons The list of buttons. … … 884 884 * Leave a chance to adjust the $return 885 885 * 886 * @since 1.0.0886 * @since 3.0.0 887 887 * 888 888 * @param array $return The list of buttons ordered. -
trunk/src/bp-templates/bp-nouveau/includes/activity/widgets.php
r11856 r11899 3 3 * BP Nouveau Activity widgets 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * A widget to display the latest activities of your community! 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 class BP_Latest_Activities extends WP_Widget { … … 18 18 * Construct the widget. 19 19 * 20 * @since 1.0.020 * @since 3.0.0 21 21 */ 22 22 public function __construct() { … … 35 35 * Register the widget. 36 36 * 37 * @since 1.0.037 * @since 3.0.0 38 38 */ 39 39 public static function register_widget() { … … 44 44 * Display the widget content. 45 45 * 46 * @since 1.0.046 * @since 3.0.0 47 47 * 48 48 * @param array $args Widget arguments. … … 115 115 * Update the widget settings. 116 116 * 117 * @since 1.0.0117 * @since 3.0.0 118 118 * 119 119 * @param array $new_instance The new instance settings. … … 142 142 * Display the form to set the widget settings. 143 143 * 144 * @since 1.0.0144 * @since 3.0.0 145 145 * 146 146 * @param array $instance Settings for this widget. -
trunk/src/bp-templates/bp-nouveau/includes/ajax.php
r11876 r11899 3 3 * Common functions only loaded on AJAX requests. 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 13 13 * 14 14 * @return string Prints template loop for the specified object 15 * @since 1.0.015 * @since 3.0.0 16 16 */ 17 17 function bp_nouveau_ajax_object_template_loader() { … … 126 126 * Register AJAX hooks. 127 127 * 128 * @since 1.0.0128 * @since 3.0.0 129 129 * 130 130 * @param array $ajax_actions { -
trunk/src/bp-templates/bp-nouveau/includes/blogs/ajax.php
r11856 r11899 3 3 * Blogs Ajax functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 -
trunk/src/bp-templates/bp-nouveau/includes/blogs/functions.php
r11855 r11899 3 3 * Blogs functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 10 10 11 11 /** 12 * @since 1.0.012 * @since 3.0.0 13 13 */ 14 14 function bp_nouveau_get_blogs_directory_nav_items() { … … 65 65 * Use this filter to introduce your custom nav items for the blogs directory. 66 66 * 67 * @since 1.0.067 * @since 3.0.0 68 68 * 69 69 * @param array $nav_items The list of the blogs directory nav items. … … 75 75 * Get Dropdown filters for the blogs component 76 76 * 77 * @since 1.0.077 * @since 3.0.0 78 78 * 79 79 * @param string $context 'directory' or 'user' … … 97 97 * or 'bp_blogs_directory_order_options' 98 98 * 99 * @since 1.0.099 * @since 3.0.0 100 100 * 101 101 * @param array the blogs filters. … … 118 118 * Catch the arguments for buttons 119 119 * 120 * @since 1.0.0120 * @since 3.0.0 121 121 * 122 122 * @param array $buttons The arguments of the button that BuddyPress is about to create. … … 135 135 * Add settings to the customizer for the blogs component. 136 136 * 137 * @since 1.0.0137 * @since 3.0.0 138 138 * 139 139 * @param array $settings the settings to add. … … 156 156 * Add controls for the settings of the customizer for the blogs component. 157 157 * 158 * @since 1.0.0158 * @since 3.0.0 159 159 * 160 160 * @param array $controls the controls to add. … … 177 177 * Inline script to toggle the signup blog form 178 178 * 179 * @since 1.0.0179 * @since 3.0.0 180 180 * 181 181 * @return string Javascript output … … 210 210 * Adds a class if blog item has a latest post. 211 211 * 212 * @since 1.2.0212 * @since 3.0.0 213 213 */ 214 214 function bp_nouveau_blog_loop_item_has_lastest_post( $classes ) { -
trunk/src/bp-templates/bp-nouveau/includes/blogs/loader.php
r11686 r11899 3 3 * BP Nouveau Blogs 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Blogs Loader class 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 class BP_Nouveau_Blogs { … … 18 18 * Constructor 19 19 * 20 * @since 1.0.020 * @since 3.0.0 21 21 */ 22 22 public function __construct() { … … 30 30 * Globals 31 31 * 32 * @since 1.0.032 * @since 3.0.0 33 33 */ 34 34 protected function setup_globals() { … … 39 39 * Include needed files 40 40 * 41 * @since 1.0.041 * @since 3.0.0 42 42 */ 43 43 protected function includes() { … … 62 62 * Register do_action() hooks 63 63 * 64 * @since 1.0.064 * @since 3.0.0 65 65 */ 66 66 protected function setup_actions() { … … 80 80 * Register add_filter() hooks 81 81 * 82 * @since 1.0.082 * @since 3.0.0 83 83 */ 84 84 protected function setup_filters() { … … 96 96 * Launch the Blogs loader class. 97 97 * 98 * @since 1.0.098 * @since 3.0.0 99 99 */ 100 100 function bp_nouveau_blogs( $bp_nouveau = null ) { -
trunk/src/bp-templates/bp-nouveau/includes/blogs/template-tags.php
r11686 r11899 3 3 * Blogs Template tags 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 13 13 * before the blogs directory content 14 14 * 15 * @since 1.0.015 * @since 3.0.0 16 16 */ 17 17 function bp_nouveau_before_blogs_directory_content() { … … 33 33 * Fires before the display of the blogs listing content. 34 34 * 35 * @since 1.1.0 (BuddyPress)35 * @since 3.0.0 (BuddyPress) 36 36 */ 37 37 do_action( 'bp_before_directory_blogs_content' ); … … 48 48 * Template tag to wrap all Legacy actions that was used after the blogs directory content 49 49 * 50 * @since 1.0.050 * @since 3.0.0 51 51 */ 52 52 function bp_nouveau_after_blogs_directory_content() { … … 54 54 * Fires inside and displays the blogs content. 55 55 * 56 * @since 1.1.0 (BuddyPress)56 * @since 3.0.0 (BuddyPress) 57 57 */ 58 58 do_action( 'bp_directory_blogs_content' ); … … 61 61 * Fires after the display of the blogs listing content. 62 62 * 63 * @since 1.1.0 (BuddyPress)63 * @since 3.0.0 (BuddyPress) 64 64 */ 65 65 do_action( 'bp_after_directory_blogs_content' ); … … 83 83 * Fire specific hooks into the blogs create template 84 84 * 85 * @since 1.0.085 * @since 3.0.0 86 86 * 87 87 * @param string $when Optional. Either 'before' or 'after'. … … 108 108 * Fire an isolated hook inside the blogs loop 109 109 * 110 * @since 1.0.0110 * @since 3.0.0 111 111 */ 112 112 function bp_nouveau_blogs_loop_item() { … … 122 122 * Output the action buttons inside the blogs loop. 123 123 * 124 * @since 1.0.0124 * @since 3.0.0 125 125 * 126 126 * @param array $args See bp_nouveau_wrapper() for the description of parameters. … … 139 139 * Fires inside the blogs action listing area. 140 140 * 141 * @since 1.1.0141 * @since 3.0.0 142 142 */ 143 143 do_action( 'bp_directory_blogs_actions' ); … … 154 154 * Get the action buttons for the current blog in the loop. 155 155 * 156 * @since 1.0.0156 * @since 3.0.0 157 157 * 158 158 * @param string $type Type of Group of buttons to get. … … 256 256 * Filter to add your buttons, use the position argument to choose where to insert it. 257 257 * 258 * @since 1.0.0258 * @since 3.0.0 259 259 * 260 260 * @param array $buttons The list of buttons. … … 288 288 * Leave a chance to adjust the $return 289 289 * 290 * @since 1.0.0290 * @since 3.0.0 291 291 * 292 292 * @param array $return The list of buttons ordered. … … 302 302 * Check if the Sites has a latest post 303 303 * 304 * @since 1.0.0304 * @since 3.0.0 305 305 * 306 306 * @return bool True if the sites has a latest post. False otherwise. -
trunk/src/bp-templates/bp-nouveau/includes/classes.php
r11856 r11899 3 3 * Common Classes 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Builds a group of BP_Button 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 class BP_Buttons_Group { … … 26 26 * Constructor 27 27 * 28 * @since 1.0.028 * @since 3.0.0 29 29 * 30 30 * @param array $args Optional array having the following parameters { … … 93 93 * Sort the Buttons of the group according to their position attribute 94 94 * 95 * @since 1.0.095 * @since 3.0.0 96 96 * 97 97 * @param array the list of buttons to sort. … … 127 127 * Get the BuddyPress buttons for the group 128 128 * 129 * @since 1.0.0129 * @since 3.0.0 130 130 * 131 131 * @param bool $sort whether to sort the buttons or not. … … 159 159 * Update the group of buttons 160 160 * 161 * @since 1.0.0161 * @since 3.0.0 162 162 * 163 163 * @param array $args See the __constructor for a description of this argument. … … 181 181 * Adds a widget to move avatar/item nav into the sidebar 182 182 * 183 * @since 1.0184 * 185 * @uses 183 * @since 3.0.0 184 * 185 * @uses WP_Widget 186 186 */ 187 187 class BP_Nouveau_Object_Nav_Widget extends WP_Widget { … … 189 189 * Constructor 190 190 * 191 * @since 1.0191 * @since 3.0.0 192 192 */ 193 193 public function __construct() { … … 207 207 * Register the widget 208 208 * 209 * @since 1.0209 * @since 3.0.0 210 210 */ 211 211 public static function register_widget() { … … 216 216 * Displays the output, the button to post new support topics 217 217 * 218 * @since 1.0 219 * 220 * @param mixed $args Arguments 218 * @since 3.0.0 219 * 220 * @param mixed $args Arguments 221 * @param unknown $instance 221 222 */ 222 223 public function widget( $args, $instance ) { … … 265 266 * Update the new support topic widget options (title) 266 267 * 267 * @since 1.0268 * @since 3.0.0 268 269 * 269 270 * @param array $new_instance The new instance options … … 282 283 * Output the new support topic widget options form 283 284 * 284 * @since 1.0285 * @since 3.0.0 285 286 * 286 287 * @param $instance Instance -
trunk/src/bp-templates/bp-nouveau/includes/customizer-controls.php
r11856 r11899 3 3 * Customizer controls 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 16 16 * https://developer.wordpress.org/themes/advanced-topics/customizer-api/#putting-the-pieces-together 17 17 * 18 * @since 1.0.018 * @since 3.0.0 19 19 */ 20 20 class BP_Nouveau_Nav_Customize_Control extends WP_Customize_Control { … … 27 27 * Render the control's content. 28 28 * 29 * @since 1.0.029 * @since 3.0.0 30 30 */ 31 31 public function render_content() { -
trunk/src/bp-templates/bp-nouveau/includes/customizer.php
r11855 r11899 3 3 * Code to hook into the WP Customizer 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 9 9 * Add a specific panel for the BP Nouveau Template Pack. 10 10 * 11 * @since 1.0.011 * @since 3.0.0 12 12 * 13 13 * @param WP_Customize_Manager $wp_customize WordPress customizer. … … 337 337 * Enqueue needed JS for our customizer Settings & Controls 338 338 * 339 * @since 1.0.0339 * @since 3.0.0 340 340 */ 341 341 function bp_nouveau_customizer_enqueue_scripts() { -
trunk/src/bp-templates/bp-nouveau/includes/friends/ajax.php
r11889 r11899 3 3 * Friends Ajax functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 50 50 * Friend/un-friend a user via a POST request. 51 51 * 52 * @since 1.0.052 * @since 3.0.0 53 53 * 54 54 * @return string HTML -
trunk/src/bp-templates/bp-nouveau/includes/friends/loader.php
r11686 r11899 3 3 * BP Nouveau Friends 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Friends Loader class 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 class BP_Nouveau_Friends { … … 18 18 * Constructor 19 19 * 20 * @since 1.0.020 * @since 3.0.0 21 21 */ 22 22 public function __construct() { … … 30 30 * Globals 31 31 * 32 * @since 1.0.032 * @since 3.0.0 33 33 */ 34 34 protected function setup_globals() { … … 39 39 * Include needed files 40 40 * 41 * @since 1.0.041 * @since 3.0.0 42 42 */ 43 43 protected function includes() { … … 59 59 * Register do_action() hooks 60 60 * 61 * @since 1.0.061 * @since 3.0.0 62 62 */ 63 63 protected function setup_actions() { … … 72 72 * Register add_filter() hooks 73 73 * 74 * @since 1.0.074 * @since 3.0.0 75 75 */ 76 76 protected function setup_filters() { … … 92 92 * Register notifications filters for the friends component. 93 93 * 94 * @since 1.0.094 * @since 3.0.0 95 95 */ 96 96 public function notification_filters() { … … 117 117 * Launch the Friends loader class. 118 118 * 119 * @since 1.0.0119 * @since 3.0.0 120 120 */ 121 121 function bp_nouveau_friends( $bp_nouveau = null ) { -
trunk/src/bp-templates/bp-nouveau/includes/functions.php
r11855 r11899 3 3 * Common functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 22 22 * across page loads. 23 23 * 24 * @since 1.2.024 * @since 3.0.0 25 25 * 26 26 * @param string $query_string Query string for the current request. … … 139 139 * Filters the AJAX query string for the component loops. 140 140 * 141 * @since 1.0.0141 * @since 3.0.0 142 142 * 143 143 * @param string $query_string The query string we are working with. … … 153 153 154 154 /** 155 * @since 1.0.0155 * @since 3.0.0 156 156 * 157 157 * @return string … … 216 216 * Output HTML content into a wrapper. 217 217 * 218 * @since 1.0.0218 * @since 3.0.0 219 219 * 220 220 * @param array $args { … … 286 286 * Register the 2 sidebars for the Group & User default front page 287 287 * 288 * @since 1.0.0288 * @since 3.0.0 289 289 */ 290 290 function bp_nouveau_register_sidebars() { … … 349 349 350 350 /** 351 * @since 1.0.0351 * @since 3.0.0 352 352 * 353 353 * @return bool … … 358 358 359 359 /** 360 * @since 1.0.0360 * @since 3.0.0 361 361 * 362 362 * @return bool … … 369 369 * BP Nouveau will not use this hooks anymore 370 370 * 371 * @since 1.0.0371 * @since 3.0.0 372 372 * 373 373 * @return array the list of disused legacy hooks … … 605 605 * Parse an html output to a list of component's directory nav item. 606 606 * 607 * @since 1.0.0607 * @since 3.0.0 608 608 * 609 609 * @param string $hook The hook to fire. … … 675 675 * Run specific "select filter" hooks to catch the options and build an array out of them 676 676 * 677 * @since 1.0.0677 * @since 3.0.0 678 678 * 679 679 * @param string $hook … … 708 708 * Get Dropdawn filters for the current component of the one passed in params 709 709 * 710 * @since 1.0.0710 * @since 3.0.0 711 711 * 712 712 * @param string $context 'directory', 'user' or 'group' … … 769 769 * This is necessary when we need to get these very early. 770 770 * 771 * @since 1.0.0771 * @since 3.0.0 772 772 * 773 773 * @param string $option the index of the setting to get. … … 810 810 * Get the BP Nouveau Appearance settings. 811 811 * 812 * @since 1.0.0812 * @since 3.0.0 813 813 * 814 814 * @param string $option Leave empty to get all settings, specify a value for a specific one. … … 885 885 * or the list of corresponding css classes. 886 886 * 887 * @since 1.0.0887 * @since 3.0.0 888 888 * 889 889 * @param string $type 'option' to get the labels, 'classes' to get the classes … … 909 909 * Sanitize a list of slugs to save it as an array 910 910 * 911 * @since 1.0.0911 * @since 3.0.0 912 912 * 913 913 * @param string $option A comma separated list of nav items slugs. … … 923 923 * BP Nouveau's callback for the cover image feature. 924 924 * 925 * @since 1.0.0925 * @since 3.0.0 926 926 * 927 927 * @param array $params Optional. The current component's feature parameters. … … 1109 1109 * All user feedback messages are available here 1110 1110 * 1111 * @since 1.0.01111 * @since 3.0.0 1112 1112 * 1113 1113 * @param string $feedback_id The ID of the message. … … 1304 1304 * Filter here if you wish to edit the message just before being displayed 1305 1305 * 1306 * @since 1.0.01306 * @since 3.0.0 1307 1307 * 1308 1308 * @param array $feedback_messages … … 1314 1314 * Get the signup fields for the requested section 1315 1315 * 1316 * @since 1.0.01316 * @since 3.0.0 1317 1317 * 1318 1318 * @param string $section Optional. The section of fields to get 'account_details' or 'blog_details'. … … 1331 1331 * do_action( 'bp_account_details_fields' ) or do_action( 'blog_details' ) hooks instead. 1332 1332 * 1333 * @since 1.0.01333 * @since 3.0.0 1334 1334 * 1335 1335 * @param array $value The list of fields organized into sections. … … 1420 1420 * Get Some submit buttons data. 1421 1421 * 1422 * @since 1.0.01422 * @since 3.0.0 1423 1423 * 1424 1424 * @param string $action The action requested. … … 1435 1435 * Filter the Submit buttons to add your own. 1436 1436 * 1437 * @since 1.0.01437 * @since 3.0.0 1438 1438 * 1439 1439 * @param array $value The list of submit buttons. … … 1537 1537 * Reorder a BuddyPress item nav according to a given list of nav item slugs 1538 1538 * 1539 * @since 1.0.01539 * @since 3.0.0 1540 1540 * 1541 1541 * @param object $nav The BuddyPress Item Nav object to reorder -
trunk/src/bp-templates/bp-nouveau/includes/groups/ajax.php
r11858 r11899 3 3 * Groups Ajax functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 27 27 * Join or leave a group when clicking the "join/leave" button via a POST request. 28 28 * 29 * @since 1.0.029 * @since 3.0.0 30 30 * 31 31 * @return string HTML … … 239 239 240 240 /** 241 * @since 1.0.0241 * @since 3.0.0 242 242 */ 243 243 function bp_nouveau_ajax_get_users_to_invite() { … … 334 334 335 335 /** 336 * @since 1.0.0336 * @since 3.0.0 337 337 */ 338 338 function bp_nouveau_ajax_send_group_invites() { … … 419 419 420 420 /** 421 * @since 1.0.0421 * @since 3.0.0 422 422 */ 423 423 function bp_nouveau_ajax_remove_group_invite() { -
trunk/src/bp-templates/bp-nouveau/includes/groups/classes.php
r11856 r11899 3 3 * Groups classes 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Query to get members that are not already members of the group 13 13 * 14 * @since 1.014 * @since 3.0.0 15 15 */ 16 16 class BP_Nouveau_Group_Invite_Query extends BP_User_Query { … … 19 19 * 20 20 * @var null|array Null if not yet defined, otherwise an array of ints 21 * @since 1.021 * @since 3.0.0 22 22 */ 23 23 protected $group_member_ids; … … 26 26 * Set up action hooks 27 27 * 28 * @since 1.028 * @since 3.0.0 29 29 */ 30 30 public function setup_hooks() { … … 36 36 * Exclude group members from the user query as it's not needed to invite members to join the group. 37 37 * 38 * @since 1.038 * @since 3.0.0 39 39 */ 40 40 public function build_exclude_args() { … … 62 62 * Get the members of the queried group 63 63 * 64 * @since 1.064 * @since 3.0.0 65 65 * 66 66 * @return array $ids User IDs of relevant group member ids … … 106 106 107 107 /** 108 * @since 1.0.0108 * @since 3.0.0 109 109 */ 110 110 public function build_meta_query( BP_User_Query $bp_user_query ) { … … 124 124 125 125 /** 126 * @since 1.0.0126 * @since 3.0.0 127 127 */ 128 128 public static function get_inviter_ids( $user_id = 0, $group_id = 0 ) { … … 143 143 * buddypress()->groups->nav. 144 144 * 145 * @since 1.0.0145 * @since 3.0.0 146 146 */ 147 147 class BP_Nouveau_Customizer_Group_Nav extends BP_Core_Nav { … … 174 174 * Overrides BP_Core_Nav::__isset() to avoid looking into its nav property. 175 175 * 176 * @since 1.0.0176 * @since 3.0.0 177 177 * 178 178 * @param string $key The property. … … 189 189 * Overrides BP_Core_Nav::__isset() to avoid looking into its nav property. 190 190 * 191 * @since 1.0.0191 * @since 3.0.0 192 192 * 193 193 * @param string $key The property. … … 208 208 * Overrides BP_Core_Nav::__isset() to avoid adding a value to its nav property. 209 209 * 210 * @since 1.0.0210 * @since 3.0.0 211 211 * 212 212 * @param string $key The property. … … 221 221 * Setup a temporary nav with only the needed parameters. 222 222 * 223 * @since 1.0.0223 * @since 3.0.0 224 224 */ 225 225 protected function setup_nav() { … … 315 315 * Front template: do not look into group's template hierarchy. 316 316 * 317 * @since 1.0.0317 * @since 3.0.0 318 318 * 319 319 * @param array $templates The list of possible group front templates. … … 331 331 * Get the original order for the group navigation. 332 332 * 333 * @since 1.0.0333 * @since 3.0.0 334 334 * 335 335 * @return array a list of nav items slugs ordered. … … 343 343 * Get the list of nav items ordered according to the Site owner preferences. 344 344 * 345 * @since 1.0.0345 * @since 3.0.0 346 346 * 347 347 * @return array the nav items ordered. -
trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php
r11855 r11899 3 3 * Groups functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 32 32 * Register Scripts for the Groups component 33 33 * 34 * @since 1.0.034 * @since 3.0.0 35 35 * 36 36 * @param array $scripts The array of scripts to register … … 54 54 * Enqueue the groups scripts 55 55 * 56 * @since 1.0.056 * @since 3.0.0 57 57 */ 58 58 function bp_nouveau_groups_enqueue_scripts() { … … 77 77 * Can all members be invited to join any group? 78 78 * 79 * @since 1.0.079 * @since 3.0.0 80 80 * 81 81 * @param bool $default False to allow. True to disallow. … … 87 87 * Filter to remove the All members nav, returning true 88 88 * 89 * @since 1.0.089 * @since 3.0.0 90 90 * 91 91 * @param bool $default True to disable the nav. False otherwise. … … 97 97 * Localize the strings needed for the Group's Invite UI 98 98 * 99 * @since 1.0.099 * @since 3.0.0 100 100 * 101 101 * @param array $params Associative array containing the JS Strings needed by scripts … … 143 143 144 144 /** 145 * @since 1.0.0145 * @since 3.0.0 146 146 */ 147 147 function bp_nouveau_groups_get_inviter_ids( $user_id, $group_id ) { … … 154 154 155 155 /** 156 * @since 1.0.0156 * @since 3.0.0 157 157 */ 158 158 function bp_nouveau_prepare_group_potential_invites_for_js( $user ) { … … 211 211 212 212 /** 213 * @since 1.0.0213 * @since 3.0.0 214 214 */ 215 215 function bp_nouveau_get_group_potential_invites( $args = array() ) { … … 264 264 265 265 /** 266 * @since 1.0.0266 * @since 3.0.0 267 267 * @todo I don't see any reason why to restrict group invites to friends.. 268 268 */ … … 284 284 285 285 /** 286 * @since 1.0.0286 * @since 3.0.0 287 287 */ 288 288 function bp_nouveau_group_setup_nav() { … … 321 321 322 322 /** 323 * @since 1.0.0323 * @since 3.0.0 324 324 */ 325 325 function bp_nouveau_groups_invites_custom_message( $message = '' ) { … … 346 346 * Format a Group for a json reply 347 347 * 348 * @since 1.0.0348 * @since 3.0.0 349 349 */ 350 350 function bp_nouveau_prepare_group_for_js( $item ) { … … 372 372 * Group invites restriction settings navigation. 373 373 * 374 * @since 1.0.0374 * @since 3.0.0 375 375 */ 376 376 function bp_nouveau_groups_invites_restriction_nav() { … … 397 397 * Group invites restriction settings Admin Bar navigation. 398 398 * 399 * @since 1.0.0399 * @since 3.0.0 400 400 * 401 401 * @param array $wp_admin_nav The list of settings admin subnav items. … … 421 421 * Group invites restriction screen. 422 422 * 423 * @since 1.0.0423 * @since 3.0.0 424 424 */ 425 425 function bp_nouveau_groups_screen_invites_restriction() { … … 452 452 * Filters the template to load for the Group Invites settings screen. 453 453 * 454 * @since 1.0.0454 * @since 3.0.0 455 455 * 456 456 * @param string $template Path to the Group Invites settings screen template to load. … … 460 460 461 461 /** 462 * @since 1.0.0462 * @since 3.0.0 463 463 */ 464 464 function bp_nouveau_get_groups_directory_nav_items() { … … 516 516 * Use this filter to introduce your custom nav items for the groups directory. 517 517 * 518 * @since 1.0.0518 * @since 3.0.0 519 519 * 520 520 * @param array $nav_items The list of the groups directory nav items. … … 526 526 * Get Dropdown filters for the groups component 527 527 * 528 * @since 1.0.0528 * @since 3.0.0 529 529 * 530 530 * @param string $context 'directory' or 'user' … … 548 548 * or 'bp_groups_directory_order_options' 549 549 * 550 * @since 1.0.0550 * @since 3.0.0 551 551 * 552 552 * @param array the members filters. … … 570 570 * Catch the arguments for buttons 571 571 * 572 * @since 1.0.0572 * @since 3.0.0 573 573 * 574 574 * @param array $button The arguments of the button that BuddyPress is about to create. … … 590 590 * Catch the content hooked to the 'bp_group_header_meta' action 591 591 * 592 * @since 1.0.0592 * @since 3.0.0 593 593 * 594 594 * @return string|bool HTML Output if hooked. False otherwise. … … 616 616 * Display the Widgets of Group extensions into the default front page? 617 617 * 618 * @since 1.0.0618 * @since 3.0.0 619 619 * 620 620 * @return bool True to display. False otherwise. … … 629 629 * Display description of the Group into the default front page? 630 630 * 631 * @since 1.0.0631 * @since 3.0.0 632 632 * 633 633 * @return bool True to display. False otherwise. … … 646 646 * Add sections to the customizer for the groups component. 647 647 * 648 * @since 1.0.0648 * @since 3.0.0 649 649 * 650 650 * @param array $sections the Customizer sections to add. … … 672 672 * Add settings to the customizer for the groups component. 673 673 * 674 * @since 1.0.0674 * @since 3.0.0 675 675 * 676 676 * @param array $settings the settings to add. … … 749 749 * Add controls for the settings of the customizer for the groups component. 750 750 * 751 * @since 1.0.0751 * @since 3.0.0 752 752 * 753 753 * @param array $controls the controls to add. … … 819 819 * Add the default group front template to the front template hierarchy. 820 820 * 821 * @since 1.0.0821 * @since 3.0.0 822 822 * 823 823 * @param array $templates The list of templates for the front.php template part. … … 848 848 * Locate a single group template into a specific hierarchy. 849 849 * 850 * @since 1.0.0850 * @since 3.0.0 851 851 * 852 852 * @param string $template The template part to get (eg: activity, members...). … … 901 901 * Load a single group template part 902 902 * 903 * @since 1.0.0903 * @since 3.0.0 904 904 * 905 905 * @param string $template The template part to get (eg: activity, members...). … … 931 931 * Are we inside the Current group's default front page sidebar? 932 932 * 933 * @since 1.0.0933 * @since 3.0.0 934 934 * 935 935 * @return bool True if in the group's home sidebar. False otherwise. … … 942 942 * Filter the Latest activities Widget to only keep the one of the group displayed 943 943 * 944 * @since 1.0.0944 * @since 3.0.0 945 945 * 946 946 * @param array $args The Activities Template arguments. … … 958 958 * Filter the Groups widget to only keep the displayed group. 959 959 * 960 * @since 1.0.0960 * @since 3.0.0 961 961 * 962 962 * @param array $args The Groups Template arguments. … … 973 973 * Filter the Members widgets to only keep members of the displayed group. 974 974 * 975 * @since 1.0.0975 * @since 3.0.0 976 976 * 977 977 * @param array $args The Members Template arguments. … … 994 994 * Init the Group's default front page filters as we're in the sidebar 995 995 * 996 * @since 1.0.0996 * @since 3.0.0 997 997 */ 998 998 function bp_nouveau_groups_add_home_widget_filters() { … … 1007 1007 * Remove the Group's default front page filters as we're no more in the sidebar 1008 1008 * 1009 * @since 1.0.01009 * @since 3.0.0 1010 1010 */ 1011 1011 function bp_nouveau_groups_remove_home_widget_filters() { … … 1020 1020 * Get the hook, nonce, and eventually a specific template for Core Group's create screens. 1021 1021 * 1022 * @since 1.0.01022 * @since 3.0.0 1023 1023 * 1024 1024 * @param string $id The screen id … … 1047 1047 * Get the hook and nonce for Core Group's manage screens. 1048 1048 * 1049 * @since 1.0.01049 * @since 3.0.0 1050 1050 * 1051 1051 * @param string $id The screen id … … 1076 1076 * Register notifications filters for the groups component. 1077 1077 * 1078 * @since 1.0.01078 * @since 3.0.0 1079 1079 */ 1080 1080 function bp_nouveau_groups_notification_filters() { -
trunk/src/bp-templates/bp-nouveau/includes/groups/loader.php
r11855 r11899 3 3 * BP Nouveau Groups 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Groups Loader class 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 class BP_Nouveau_Groups { … … 18 18 * Constructor 19 19 * 20 * @since 1.0.020 * @since 3.0.0 21 21 */ 22 22 public function __construct() { … … 30 30 * Globals 31 31 * 32 * @since 1.0.032 * @since 3.0.0 33 33 */ 34 34 protected function setup_globals() { … … 40 40 * Include needed files 41 41 * 42 * @since 1.0.042 * @since 3.0.0 43 43 */ 44 44 protected function includes() { … … 64 64 * Register do_action() hooks 65 65 * 66 * @since 1.0.066 * @since 3.0.0 67 67 */ 68 68 protected function setup_actions() { … … 92 92 * Register add_filter() hooks 93 93 * 94 * @since 1.0.094 * @since 3.0.0 95 95 */ 96 96 protected function setup_filters() { … … 135 135 * with the current group's default front page. 136 136 * 137 * @since 1.0.0137 * @since 3.0.0 138 138 * 139 139 * @param string $sidebar_index The Sidebar identifier. … … 154 154 * the current group displayed in account. 155 155 * 156 * @since 1.0.0156 * @since 3.0.0 157 157 * 158 158 * @param string $sidebar_index The Sidebar identifier. … … 173 173 * Launch the Groups loader class. 174 174 * 175 * @since 1.0.0175 * @since 3.0.0 176 176 */ 177 177 function bp_nouveau_groups( $bp_nouveau = null ) { -
trunk/src/bp-templates/bp-nouveau/includes/groups/template-tags.php
r11896 r11899 3 3 * Groups Template tags 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 13 13 * before the groups directory content 14 14 * 15 * @since 1.0.015 * @since 3.0.0 16 16 */ 17 17 function bp_nouveau_before_groups_directory_content() { … … 42 42 * after the groups directory content 43 43 * 44 * @since 1.0.044 * @since 3.0.0 45 45 */ 46 46 function bp_nouveau_after_groups_directory_content() { … … 77 77 * Fire specific hooks into the groups create template. 78 78 * 79 * @since 1.0.079 * @since 3.0.0 80 80 * 81 81 * @param string $when Optional. Either 'before' or 'after'. … … 102 102 * Fire specific hooks into the single groups templates. 103 103 * 104 * @since 1.0.0104 * @since 3.0.0 105 105 * 106 106 * @param string $when Optional. Either 'before' or 'after'. … … 127 127 * Fire an isolated hook inside the groups loop 128 128 * 129 * @since 1.0.0129 * @since 3.0.0 130 130 */ 131 131 function bp_nouveau_groups_loop_item() { … … 141 141 * Display the current group activity post form if needed 142 142 * 143 * @since 1.0.0143 * @since 3.0.0 144 144 */ 145 145 function bp_nouveau_groups_activity_post_form() { … … 166 166 * Load the Group Invites UI. 167 167 * 168 * @since 1.0.0168 * @since 3.0.0 169 169 * 170 170 * @return string HTML Output. … … 191 191 * Gets the displayed user group invites preferences 192 192 * 193 * @since 1.0.0193 * @since 3.0.0 194 194 * 195 195 * @return int Returns 1 if user chose to restrict to friends, 0 otherwise. … … 202 202 * Outputs the group creation numbered steps navbar 203 203 * 204 * @since 1.0.0204 * @since 3.0.0 205 205 * 206 206 * @todo This output isn't localised correctly. … … 243 243 * @since 1.0.0 244 244 */ 245 246 245 do_action( 'groups_creation_tabs' ); 247 246 } … … 250 249 * Load the requested Create Screen for the new group. 251 250 * 252 * @since 1.0.0251 * @since 3.0.0 253 252 */ 254 253 function bp_nouveau_group_creation_screen() { … … 259 258 * Load the requested Manage Screen for the current group. 260 259 * 261 * @since 1.0.0260 * @since 3.0.0 262 261 */ 263 262 … … 444 443 * Output the action buttons for the displayed group 445 444 * 446 * @since 1.0.0445 * @since 3.0.0 447 446 * 448 447 * @param array $args Optional. See bp_nouveau_wrapper() for the description of parameters. … … 481 480 * Output the action buttons inside the groups loop. 482 481 * 483 * @since 1.0.0482 * @since 3.0.0 484 483 * 485 484 * @param array $args Optional. See bp_nouveau_wrapper() for the description of parameters. … … 513 512 * Output the action buttons inside the invites loop of the displayed user. 514 513 * 515 * @since 1.0.0514 * @since 3.0.0 516 515 * 517 516 * @param array $args Optional. See bp_nouveau_wrapper() for the description of parameters. … … 545 544 * Output the action buttons inside the requests loop of the group's manage screen. 546 545 * 547 * @since 1.0.0546 * @since 3.0.0 548 547 * 549 548 * @param array $args Optional. See bp_nouveau_wrapper() for the description of parameters. … … 577 576 * Output the action buttons inside the manage members loop of the group's manage screen. 578 577 * 579 * @since 1.0.0578 * @since 3.0.0 580 579 * 581 580 * @param array $args Optional. See bp_nouveau_wrapper() for the description of parameters. … … 617 616 * or the current displayed group. 618 617 * 619 * @since 1.0.0618 * @since 3.0.0 620 619 * 621 620 * @param array $args Optional. See bp_nouveau_wrapper() for the description of parameters. … … 977 976 * Filter to add your buttons, use the position argument to choose where to insert it. 978 977 * 979 * @since 1.0.0978 * @since 3.0.0 980 979 * 981 980 * @param array $buttons The list of buttons. 982 981 * @param int $group The current group object. 983 * @par em string $type Whether we're displaying a groups loop or a groups single item.982 * @param string $type Whether we're displaying a groups loop or a groups single item. 984 983 */ 985 984 $buttons_group = apply_filters( 'bp_nouveau_get_groups_buttons', $buttons, $group, $type ); … … 1018 1017 * Leave a chance to adjust the $return 1019 1018 * 1020 * @since 1.0.01019 * @since 3.0.0 1021 1020 * 1022 1021 * @param array $return The list of buttons. … … 1032 1031 * Does the group has meta. 1033 1032 * 1034 * @since 1.0.01033 * @since 3.0.0 1035 1034 * 1036 1035 * @return bool True if the group has meta. False otherwise. … … 1043 1042 * Does the group have extra meta? 1044 1043 * 1045 * @since 1.0.01044 * @since 3.0.0 1046 1045 * 1047 1046 * @return bool True if the group has meta. False otherwise. … … 1054 1053 * Display the group meta. 1055 1054 * 1056 * @since 1.0.01055 * @since 3.0.0 1057 1056 * 1058 1057 * @return string HTML Output. … … 1079 1078 * Get the group meta. 1080 1079 * 1081 * @since 1.0.01080 * @since 3.0.0 1082 1081 * 1083 1082 * @return array The group meta. … … 1127 1126 * Filter to add/remove Group meta. 1128 1127 * 1129 * @since 1.0.01128 * @since 3.0.0 1130 1129 * 1131 1130 * @param array $meta The list of meta to output. … … 1142 1141 * Load the appropriate content for the single group pages 1143 1142 * 1144 * @since 1.0.01143 * @since 3.0.0 1145 1144 */ 1146 1145 function bp_nouveau_group_template_part() { … … 1219 1218 * Use the appropriate Group header and enjoy a template hierarchy 1220 1219 * 1221 * @since 1.0.01220 * @since 3.0.0 1222 1221 */ 1223 1222 function bp_nouveau_group_header_template_part() { … … 1252 1251 * reach the Customizer section where it's possible to do it. 1253 1252 * 1254 * @since 1.0.01253 * @since 3.0.0 1255 1254 * 1256 1255 * @return string HTML Output … … 1270 1269 * reach the Customizer section where it's possible to do it. 1271 1270 * 1272 * @since 1.0.01271 * @since 3.0.0 1273 1272 * 1274 1273 * @return string HTML Output … … 1287 1286 * Output the group description excerpt 1288 1287 * 1289 * @since 1.0.01288 * @since 3.0.0 1290 1289 * 1291 1290 * @param object $group Optional. The group being referenced. … … 1306 1305 * Checks if the group loop is set as a 'Grid' layout and returns a reduced excerpt. 1307 1306 * 1308 * @since 1.0.01307 * @since 3.0.0 1309 1308 * 1310 1309 * @param object $group Optional. The group being referenced. … … 1339 1338 * Filters the excerpt of a group description. 1340 1339 * 1341 * @since 1.0.01340 * @since 3.0.0 1342 1341 * 1343 1342 * @param string $value Excerpt of a group description. -
trunk/src/bp-templates/bp-nouveau/includes/members/functions.php
r11856 r11899 3 3 * Members functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Enqueue the members scripts 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 function bp_nouveau_members_enqueue_scripts() { … … 34 34 * Get the nav items for the Members directory 35 35 * 36 * @since 1.0.036 * @since 3.0.0 37 37 * 38 38 * @return array An associative array of nav items. … … 75 75 * Use this filter to introduce your custom nav items for the members directory. 76 76 * 77 * @since 1.0.077 * @since 3.0.0 78 78 * 79 79 * @param array $nav_items The list of the members directory nav items. … … 85 85 * Get Dropdown filters for the members component 86 86 * 87 * @since 1.0.087 * @since 3.0.0 88 88 * 89 89 * @param string $context Optional. … … 124 124 * Recommended, filter here instead of adding an action to 'bp_members_directory_order_options' 125 125 * 126 * @since 1.0.0126 * @since 3.0.0 127 127 * 128 128 * @param array the members filters. … … 137 137 * Catch the arguments for buttons 138 138 * 139 * @since 1.0.0139 * @since 3.0.0 140 140 * 141 141 * @param array $buttons The arguments of the button that BuddyPress is about to create. … … 158 158 * and in the members loop. 159 159 * 160 * @since 1.0.0160 * @since 3.0.0 161 161 * 162 162 * @return string|false HTML Output if hooked. False otherwise. … … 198 198 * Add the default user front template to the front template hierarchy 199 199 * 200 * @since 1.0.0200 * @since 3.0.0 201 201 * 202 202 * @param array $templates The list of templates for the front.php template part. … … 222 222 * Only locate global user's front templates 223 223 * 224 * @since 1.0.0224 * @since 3.0.0 225 225 * 226 226 * @param array $templates The User's front template hierarchy. … … 238 238 * Locate a single member template into a specific hierarchy. 239 239 * 240 * @since 1.0.0240 * @since 3.0.0 241 241 * 242 242 * @param string $template The template part to get (eg: activity, groups...). … … 291 291 * Load a single member template part 292 292 * 293 * @since 1.0.0293 * @since 3.0.0 294 294 * 295 295 * @param string $template The template part to get (eg: activity, groups...). … … 321 321 * Display the User's WordPress bio info into the default front page? 322 322 * 323 * @since 1.0.0323 * @since 3.0.0 324 324 * 325 325 * @return bool True to display. False otherwise. … … 334 334 * Are we inside the Current user's default front page sidebar? 335 335 * 336 * @since 1.0.0336 * @since 3.0.0 337 337 * 338 338 * @return bool True if in the group's home sidebar. False otherwise. … … 345 345 * Filter the Latest activities Widget to only keep the one of displayed user 346 346 * 347 * @since 1.0.0347 * @since 3.0.0 348 348 * 349 349 * @param array $args The Activities Template arguments. … … 360 360 * Filter the Groups widget to only keep the groups the displayed user is a member of. 361 361 * 362 * @since 1.0.0362 * @since 3.0.0 363 363 * 364 364 * @param array $args The Groups Template arguments. … … 375 375 * Filter the Members widgets to only keep members of the displayed group. 376 376 * 377 * @since 1.0.0377 * @since 3.0.0 378 378 * 379 379 * @param array $args The Members Template arguments. … … 395 395 * Init the Member's default front page filters as we're in the sidebar 396 396 * 397 * @since 1.0.0397 * @since 3.0.0 398 398 */ 399 399 function bp_nouveau_members_add_home_widget_filters() { … … 408 408 * Remove the Member's default front page filters as we're no more in the sidebar 409 409 * 410 * @since 1.0.0410 * @since 3.0.0 411 411 */ 412 412 function bp_nouveau_members_remove_home_widget_filters() { … … 421 421 * Get the WP Profile fields for all or a specific user 422 422 * 423 * @since 1.0.0423 * @since 3.0.0 424 424 * 425 425 * @param WP_User $user The user object. Optional. … … 442 442 * Build the Member's nav for the our customizer control. 443 443 * 444 * @since 1.0.0444 * @since 3.0.0 445 445 * 446 446 * @return array The Members single item primary nav ordered. -
trunk/src/bp-templates/bp-nouveau/includes/members/loader.php
r11856 r11899 3 3 * BP Nouveau Members 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Members Loader class 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 class BP_Nouveau_Members { … … 18 18 * Constructor 19 19 * 20 * @since 1.0.020 * @since 3.0.0 21 21 */ 22 22 public function __construct() { … … 30 30 * Globals 31 31 * 32 * @since 1.0.032 * @since 3.0.0 33 33 */ 34 34 protected function setup_globals() { … … 40 40 * Include needed files 41 41 * 42 * @since 1.0.042 * @since 3.0.0 43 43 */ 44 44 protected function includes() { … … 50 50 * Register do_action() hooks 51 51 * 52 * @since 1.0.052 * @since 3.0.0 53 53 */ 54 54 protected function setup_actions() { … … 82 82 * Register add_filter() hooks 83 83 * 84 * @since 1.0.084 * @since 3.0.0 85 85 */ 86 86 protected function setup_filters() { … … 93 93 * with the displayed user's default front page. 94 94 * 95 * @since 1.0.095 * @since 3.0.0 96 96 * 97 97 * @param string $sidebar_index The Sidebar identifier. … … 112 112 * the displayed user in account. 113 113 * 114 * @since 1.0.0114 * @since 3.0.0 115 115 * 116 116 * @param string $sidebar_index The Sidebar identifier. … … 131 131 * Launch the Members loader class. 132 132 * 133 * @since 1.0.0133 * @since 3.0.0 134 134 */ 135 135 function bp_nouveau_members( $bp_nouveau = null ) { -
trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php
r11856 r11899 3 3 * Members template tags 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 13 13 * before the members directory content 14 14 * 15 * @since 1.0.015 * @since 3.0.0 16 16 */ 17 17 function bp_nouveau_before_members_directory_content() { … … 49 49 * after the members directory content 50 50 * 51 * @since 1.0.051 * @since 3.0.0 52 52 */ 53 53 function bp_nouveau_after_members_directory_content() { … … 84 84 * Fire specific hooks into the single members templates 85 85 * 86 * @since 1.0.0 87 * @since 1.2.0 (BuddyPress) for the 'activity_content', 'blogs_content', 'header_meta', 88 * 'friends_content', 'groups_content', 'home_content', 'plugin_template' 89 * 'friend_requests_content' suffixes. 90 * @since 1.5.0 (BuddyPress) for the 'settings_template' suffix. 91 * 92 * @param string $when 'before' or 'after' 93 * @param string $suffix Use it to add terms at the end of the hook name 86 * @since 3.0.0 87 * 88 * @param string $when 'before' or 'after' 89 * @param string $suffix Use it to add terms at the end of the hook name 94 90 */ 95 91 function bp_nouveau_member_hook( $when = '', $suffix = '' ) { … … 113 109 * Template tag to wrap the notification settings hook 114 110 * 115 * @since 1.0.0111 * @since 3.0.0 116 112 */ 117 113 function bp_nouveau_member_email_notice_settings() { … … 127 123 * Output the action buttons for the displayed user profile 128 124 * 129 * @since 1.0.0125 * @since 3.0.0 130 126 * 131 127 * @param array $args See bp_nouveau_wrapper() for the description of parameters. … … 176 172 * Output the action buttons in member loops 177 173 * 178 * @since 1.0.0174 * @since 3.0.0 179 175 * 180 176 * @param array $args See bp_nouveau_wrapper() for the description of parameters. … … 219 215 * Get the action buttons for the displayed user profile 220 216 * 221 * @since 1.0.0217 * @since 3.0.0 222 218 * 223 219 * @return array … … 477 473 * Filter to add your buttons, use the position argument to choose where to insert it. 478 474 * 479 * @since 1.0.0475 * @since 3.0.0 480 476 * 481 477 * @param array $buttons The list of buttons. … … 508 504 * Leave a chance to adjust the $return 509 505 * 510 * @since 1.0.0506 * @since 3.0.0 511 507 * 512 508 * @param array $return The list of buttons ordered. … … 522 518 * Does the member has meta. 523 519 * 524 * @since 1.0.0520 * @since 3.0.0 525 521 * 526 522 * @return bool True if the member has meta. False otherwise. … … 533 529 * Display the member meta. 534 530 * 535 * @since 1.0.0531 * @since 3.0.0 536 532 * 537 533 * @return string HTML Output. … … 544 540 * Get the member meta. 545 541 * 546 * @since 1.0.0542 * @since 3.0.0 547 543 * 548 544 * @return array The member meta. … … 588 584 * Filter to add/remove Member meta. 589 585 * 590 * @since 1.0.0586 * @since 3.0.0 591 587 * 592 588 * @param array $meta The list of meta to output. … … 603 599 * Load the appropriate content for the single member pages 604 600 * 605 * @since 1.0.0601 * @since 3.0.0 606 602 */ 607 603 function bp_nouveau_member_template_part() { … … 651 647 * Use the appropriate Member header and enjoy a template hierarchy 652 648 * 653 * @since 1.0.0649 * @since 3.0.0 654 650 * 655 651 * @return string HTML Output … … 686 682 * reach the Customizer section where it's possible to do it. 687 683 * 688 * @since 1.0.0684 * @since 3.0.0 689 685 * 690 686 * @return string HTML Output … … 704 700 * reach the Customizer section where it's possible to do it. 705 701 * 706 * @since 1.0.0702 * @since 3.0.0 707 703 * 708 704 * @return string HTML Output … … 721 717 * Display the Member description making sure linefeeds are taking in account 722 718 * 723 * @since 1.0.0719 * @since 3.0.0 724 720 * 725 721 * @param int $user_id Optional. … … 757 753 * Display the Edit profile link (temporary). 758 754 * 759 * @since 1.0.0755 * @since 3.0.0 760 756 * 761 757 * @todo replace with Ajax feature … … 771 767 * @todo replace with Ajax featur 772 768 * 773 * @since 1.0.0769 * @since 3.0.0 774 770 * 775 771 * @return string HTML Output … … 797 793 * before and after the WP User's Profile. 798 794 * 799 * @since 1.0.0795 * @since 3.0.0 800 796 */ 801 797 function bp_nouveau_wp_profile_hooks( $type = 'before' ) { … … 841 837 * Does the displayed user has WP profile fields? 842 838 * 843 * @since 1.0.0839 * @since 3.0.0 844 840 * 845 841 * @return bool True if user has profile fields. False otherwise. … … 886 882 * Check if there are still profile fields to output. 887 883 * 888 * @since 1.0.0884 * @since 3.0.0 889 885 * 890 886 * @return bool True if the profile field exists. False otherwise. … … 906 902 * Set the current profile field and iterate into the loop. 907 903 * 908 * @since 1.0.0904 * @since 3.0.0 909 905 */ 910 906 function bp_nouveau_wp_profile_field() { … … 918 914 * Output the WP profile field ID. 919 915 * 920 * @since 1.0.0916 * @since 3.0.0 921 917 */ 922 918 function bp_nouveau_wp_profile_field_id() { … … 926 922 * Get the WP profile field ID. 927 923 * 928 * @since 1.0.0924 * @since 3.0.0 929 925 * 930 926 * @return int the profile field ID. … … 938 934 * Output the WP profile field label. 939 935 * 940 * @since 1.0.0936 * @since 3.0.0 941 937 */ 942 938 function bp_nouveau_wp_profile_field_label() { … … 947 943 * Get the WP profile label. 948 944 * 949 * @since 1.0.0945 * @since 3.0.0 950 946 * 951 947 * @return string the profile field label. … … 959 955 * Output the WP profile field data. 960 956 * 961 * @since 1.0.0957 * @since 3.0.0 962 958 */ 963 959 function bp_nouveau_wp_profile_field_data() { … … 984 980 * Get the WP profile field data. 985 981 * 986 * @since 1.0.0982 * @since 3.0.0 987 983 * 988 984 * @return string the profile field data. -
trunk/src/bp-templates/bp-nouveau/includes/messages/ajax.php
r11855 r11899 3 3 * Messages Ajax functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 29 29 30 30 /** 31 * @since 1.0.031 * @since 3.0.0 32 32 */ 33 33 function bp_nouveau_ajax_messages_send_message() { … … 89 89 90 90 /** 91 * @since 1.0.091 * @since 3.0.0 92 92 */ 93 93 function bp_nouveau_ajax_messages_send_reply() { … … 178 178 179 179 /** 180 * @since 1.0.0180 * @since 3.0.0 181 181 */ 182 182 function bp_nouveau_ajax_get_user_message_threads() { … … 290 290 291 291 /** 292 * @since 1.0.0292 * @since 3.0.0 293 293 */ 294 294 function bp_nouveau_ajax_messages_thread_read() { … … 320 320 321 321 /** 322 * @since 1.0.0322 * @since 3.0.0 323 323 */ 324 324 function bp_nouveau_ajax_get_thread_messages() { … … 416 416 417 417 /** 418 * @since 1.0.0418 * @since 3.0.0 419 419 */ 420 420 function bp_nouveau_ajax_delete_thread_messages() { … … 449 449 450 450 /** 451 * @since 1.0.0451 * @since 3.0.0 452 452 */ 453 453 function bp_nouveau_ajax_star_thread_messages() { … … 536 536 537 537 /** 538 * @since 1.0.0538 * @since 3.0.0 539 539 */ 540 540 function bp_nouveau_ajax_readunread_thread_messages() { … … 599 599 600 600 /** 601 * @since 1.0.0601 * @since 3.0.0 602 602 */ 603 603 function bp_nouveau_ajax_dismiss_sitewide_notice() { -
trunk/src/bp-templates/bp-nouveau/includes/messages/functions.php
r11856 r11899 3 3 * Messages functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Enqueue styles for the Messages UI (mentions). 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 * 16 16 * @param array $styles Optional. The array of styles to enqueue. … … 35 35 * Register Scripts for the Messages component 36 36 * 37 * @since 1.0.037 * @since 3.0.0 38 38 * 39 39 * @param array $scripts The array of scripts to register … … 64 64 * Enqueue the messages scripts 65 65 * 66 * @since 1.0.066 * @since 3.0.0 67 67 */ 68 68 function bp_nouveau_messages_enqueue_scripts() { … … 80 80 * Localize the strings needed for the messages UI 81 81 * 82 * @since 1.0.082 * @since 3.0.0 83 83 * 84 84 * @param array $params Associative array containing the JS Strings needed by scripts … … 124 124 125 125 /** 126 * @since 1.0.0126 * @since 3.0.0 127 127 */ 128 128 function bp_nouveau_message_search_form() { … … 138 138 * Filters the private message component search form. 139 139 * 140 * @since 1.0.0140 * @since 3.0.0 141 141 * 142 142 * @param string $search_form_html HTML markup for the message search form. … … 147 147 148 148 /** 149 * @since 1.0.0149 * @since 3.0.0 150 150 */ 151 151 function bp_nouveau_messages_adjust_nav() { … … 179 179 180 180 /** 181 * @since 1.0.0181 * @since 3.0.0 182 182 */ 183 183 function bp_nouveau_messages_adjust_admin_nav( $admin_nav ) { … … 204 204 205 205 /** 206 * @since 1.0.0206 * @since 3.0.0 207 207 */ 208 208 function bp_nouveau_add_notice_notification_for_user( $notifications, $user_id ) { … … 239 239 240 240 /** 241 * @since 1.0.0241 * @since 3.0.0 242 242 */ 243 243 function bp_nouveau_format_notice_notification_for_user( $array ) { … … 253 253 254 254 /** 255 * @since 1.0.0255 * @since 3.0.0 256 256 */ 257 257 function bp_nouveau_unregister_notices_widget() { … … 262 262 * Add active sitewide notices to the BP template_message global. 263 263 * 264 * @since 1.0.0264 * @since 3.0.0 265 265 */ 266 266 function bp_nouveau_push_sitewide_notices() { … … 300 300 301 301 /** 302 * @since 1.0.0302 * @since 3.0.0 303 303 */ 304 304 function bp_nouveau_mce_buttons( $buttons = array() ) { … … 320 320 321 321 /** 322 * @since 1.0.0322 * @since 3.0.0 323 323 */ 324 324 function bp_nouveau_messages_at_on_tinymce_init( $settings, $editor_id ) { … … 332 332 333 333 /** 334 * @since 1.0.0334 * @since 3.0.0 335 335 */ 336 336 function bp_nouveau_get_message_date( $date ) { … … 369 369 370 370 /** 371 * @since 1.0.0371 * @since 3.0.0 372 372 */ 373 373 function bp_nouveau_messages_get_bulk_actions() { … … 401 401 * Register notifications filters for the messages component. 402 402 * 403 * @since 1.0.0403 * @since 3.0.0 404 404 */ 405 405 function bp_nouveau_messages_notification_filters() { -
trunk/src/bp-templates/bp-nouveau/includes/messages/loader.php
r11868 r11899 3 3 * BP Nouveau Messages 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Messages Loader class 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 class BP_Nouveau_Messages { … … 18 18 * Constructor 19 19 * 20 * @since 1.0.020 * @since 3.0.0 21 21 */ 22 22 public function __construct() { … … 30 30 * Globals 31 31 * 32 * @since 1.0.032 * @since 3.0.0 33 33 */ 34 34 protected function setup_globals() { … … 39 39 * Include needed files 40 40 * 41 * @since 1.0.041 * @since 3.0.0 42 42 */ 43 43 protected function includes() { … … 62 62 * Register do_action() hooks 63 63 * 64 * @since 1.0.064 * @since 3.0.0 65 65 */ 66 66 protected function setup_actions() { … … 85 85 * Register add_filter() hooks 86 86 * 87 * @since 1.0.087 * @since 3.0.0 88 88 */ 89 89 protected function setup_filters() { … … 124 124 * Launch the Messages loader class. 125 125 * 126 * @since 1.0.0126 * @since 3.0.0 127 127 */ 128 128 function bp_nouveau_messages( $bp_nouveau = null ) { -
trunk/src/bp-templates/bp-nouveau/includes/messages/template-tags.php
r11686 r11899 3 3 * Messages template tags 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Fire specific hooks into the private messages template. 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 * 16 16 * @param string $when Optional. Either 'before' or 'after'. … … 41 41 * Load the new Messages User Interface 42 42 * 43 * @since 1.0.043 * @since 3.0.0 44 44 */ 45 45 function bp_nouveau_messages_member_interface() { -
trunk/src/bp-templates/bp-nouveau/includes/notifications/functions.php
r11686 r11899 3 3 * Notifications functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Register Scripts for the Notifications component 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 * 16 16 * @param array $scripts The array of scripts to register … … 35 35 * Enqueue the notifications scripts 36 36 * 37 * @since 1.0.037 * @since 3.0.0 38 38 */ 39 39 function bp_nouveau_notifications_enqueue_scripts() { … … 50 50 * plugins/components register their filters. 51 51 * 52 * @since 1.0.O52 * @since 3.0.0 53 53 */ 54 54 function bp_nouveau_notifications_init_filters() { … … 62 62 * Hook here to register your custom notification filters 63 63 * 64 * @since 1.0.064 * @since 3.0.0 65 65 */ 66 66 do_action( 'bp_nouveau_notifications_init_filters' ); … … 70 70 * Register new filters for the notifications screens. 71 71 * 72 * @since 1.0.072 * @since 3.0.0 73 73 * 74 74 * @param array $args { … … 105 105 * Get one or all notifications filters. 106 106 * 107 * @since 1.0.0107 * @since 3.0.0 108 108 * 109 109 * @param string $id The notificication component action to get the filter of. … … 131 131 * Sort Notifications according to their position arguments. 132 132 * 133 * @since 1.0.0133 * @since 3.0.0 134 134 * 135 135 * @param array $filters The notifications filters to order. … … 170 170 * Add a dashicon to Notifications action links 171 171 * 172 * @since 1.0.0172 * @since 3.0.0 173 173 * 174 174 * @param string $link The action link. … … 200 200 * Edit the Mark Unread action link to include a dashicon 201 201 * 202 * @since 1.0.0202 * @since 3.0.0 203 203 * 204 204 * @param string $link The Mark Unread action link. … … 212 212 * Edit the Mark Read action link to include a dashicon 213 213 * 214 * @since 1.0.0214 * @since 3.0.0 215 215 * 216 216 * @param string $link The Mark Read action link. … … 224 224 * Edit the Delete action link to include a dashicon 225 225 * 226 * @since 1.0.0226 * @since 3.0.0 227 227 * 228 228 * @param string $link The Delete action link. -
trunk/src/bp-templates/bp-nouveau/includes/notifications/loader.php
r11856 r11899 3 3 * BP Nouveau Notifications 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Notifications Loader class 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 class BP_Nouveau_Notifications { … … 18 18 * Constructor 19 19 * 20 * @since 1.0.020 * @since 3.0.0 21 21 */ 22 22 public function __construct() { … … 30 30 * Globals 31 31 * 32 * @since 1.0.032 * @since 3.0.0 33 33 */ 34 34 protected function setup_globals() { … … 39 39 * Include needed files 40 40 * 41 * @since 1.0.041 * @since 3.0.0 42 42 */ 43 43 protected function includes() { … … 51 51 * Register do_action() hooks 52 52 * 53 * @since 1.0.053 * @since 3.0.0 54 54 */ 55 55 protected function setup_actions() { … … 80 80 * Register add_filter() hooks 81 81 * 82 * @since 1.0.082 * @since 3.0.0 83 83 */ 84 84 protected function setup_filters() { … … 93 93 * Launch the Notifications loader class. 94 94 * 95 * @since 1.0.095 * @since 3.0.0 96 96 */ 97 97 function bp_nouveau_notifications( $bp_nouveau = null ) { -
trunk/src/bp-templates/bp-nouveau/includes/notifications/template-tags.php
r11686 r11899 3 3 * Notifications template tags 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Display the notifications filter options. 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 function bp_nouveau_notifications_filters() { … … 21 21 * Get the notifications filter options. 22 22 * 23 * @since 1.0.023 * @since 3.0.0 24 24 * 25 25 * @return string HTML output. … … 57 57 * Filter to edit the options output. 58 58 * 59 * @since 1.0.059 * @since 3.0.0 60 60 * 61 61 * @param string $output The options output. … … 68 68 * Outputs the order action links. 69 69 * 70 * @since 1.0.070 * @since 3.0.0 71 71 */ 72 72 function bp_nouveau_notifications_sort_order_links() { … … 92 92 * Output the dropdown for bulk management of notifications. 93 93 * 94 * @since 1.0.094 * @since 3.0.0 95 95 */ 96 96 function bp_nouveau_notifications_bulk_management_dropdown() { -
trunk/src/bp-templates/bp-nouveau/includes/template-tags.php
r11856 r11899 3 3 * Common template tags 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Fire specific hooks at various places of templates 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 * 16 16 * @param array $pieces The list of terms of the hook to join. … … 34 34 * Fire plugin hooks in the plugins.php template (Groups and Members single items) 35 35 * 36 * @since 1.0.036 * @since 3.0.0 37 37 * 38 38 * @param string The suffix of the hook. … … 58 58 * once we'll need other friends template tags. 59 59 * 60 * @since 1.0.060 * @since 3.0.0 61 61 * 62 62 * @param string The suffix of the hook. … … 79 79 * Add classes to style the template notice/feedback message 80 80 * 81 * @since 1.0.081 * @since 3.0.0 82 82 */ 83 83 function bp_nouveau_template_message_classes() { … … 95 95 * Get the template notice/feedback message type 96 96 * 97 * @since 1.0.097 * @since 3.0.0 98 98 * 99 99 * @return string The type of the notice. Defaults to error. … … 115 115 * Checks if a template notice/feedback message is set 116 116 * 117 * @since 1.0.0117 * @since 3.0.0 118 118 * 119 119 * @return bool True if a template notice is set. False otherwise. … … 137 137 * 138 138 * 139 * @since 1.0.0139 * @since 3.0.0 140 140 * 141 141 * @return bool True if a template notice needs a dismiss button. False otherwise. … … 163 163 * Currently template_notices(BP) will take $type = 'clear' if button set to true. 164 164 * 165 * @since 1.0.0165 * @since 3.0.0 166 166 */ 167 167 function bp_nouveau_dismiss_button_type() { … … 179 179 * Displays a template notice/feedback message. 180 180 * 181 * @since 1.0.0181 * @since 3.0.0 182 182 */ 183 183 function bp_nouveau_template_message() { … … 188 188 * Get the template notice/feedback message and make sure core filter is applied. 189 189 * 190 * @since 1.0.0190 * @since 3.0.0 191 191 * 192 192 * @return string HTML Output. … … 222 222 * Template tag to display feedback notices to users, if there are to display 223 223 * 224 * @since 1.0.0224 * @since 3.0.0 225 225 */ 226 226 function bp_nouveau_template_notices() { … … 254 254 * Fires after the display of any template_notices feedback messages. 255 255 * 256 * @since 1.1.0256 * @since 3.0.0 257 257 */ 258 258 do_action( 'bp_core_render_message' ); … … 262 262 * Fires towards the top of template pages for notice display. 263 263 * 264 * @since 1.0.0264 * @since 3.0.0 265 265 */ 266 266 do_action( 'template_notices' ); … … 270 270 * Displays a feedback message to the user. 271 271 * 272 * @since 1.0.0272 * @since 3.0.0 273 273 * 274 274 * @param string $feedback_id The ID of the message to display … … 296 296 * Filter here if you wish to use a different templates than the notice one. 297 297 * 298 * @since 1.0.0298 * @since 3.0.0 299 299 * 300 300 * @param string path to your template part. … … 314 314 * Template tag to wrap the before component loop 315 315 * 316 * @since 1.0.0316 * @since 3.0.0 317 317 */ 318 318 function bp_nouveau_before_loop() { … … 334 334 * Template tag to wrap the after component loop 335 335 * 336 * @since 1.0.0336 * @since 3.0.0 337 337 */ 338 338 function bp_nouveau_after_loop() { … … 356 356 * @param string $position 357 357 * 358 * @since 1.0.0358 * @since 3.0.0 359 359 */ 360 360 function bp_nouveau_pagination( $position ) { … … 439 439 * Fires after the component directory list. 440 440 * 441 * @since 1.1.0441 * @since 3.0.0 442 442 */ 443 443 do_action( $bottom_hook ); … … 474 474 * Fires before the component directory list. 475 475 * 476 * @since 1.1.0476 * @since 3.0.0 477 477 */ 478 478 do_action( $top_hook ); … … 483 483 * Display the component's loop classes 484 484 * 485 * @since 1.0.0485 * @since 3.0.0 486 486 * 487 487 * @return string CSS class attributes (escaped). … … 494 494 * Get the component's loop classes 495 495 * 496 * @since 1.0.0496 * @since 3.0.0 497 497 * 498 498 * @return string space separated value of classes. … … 562 562 * NB: you can also directly add classes into the template parts. 563 563 * 564 * @since 1.0.0564 * @since 3.0.0 565 565 * 566 566 * @param array $classes The list of classes. … … 576 576 * Checks if the layout preferences is set to grid (2 or more columns). 577 577 * 578 * @since 1.0.0578 * @since 3.0.0 579 579 * 580 580 * @return bool True if loop is displayed in grid mod. False otherwise. … … 590 590 * Returns the number of columns of the layout preferences. 591 591 * 592 * @since 1.0.0592 * @since 3.0.0 593 593 * 594 594 * @return int The number of columns. … … 607 607 * Filter number of columns for this grid. 608 608 * 609 * @since 1.0.0609 * @since 3.0.0 610 610 * 611 611 * @param int $columns The number of columns. … … 618 618 * Checks if activity, members, groups, blogs has the vert nav layout selected 619 619 * 620 * @since 1.0.0620 * @since 3.0.0 621 621 * 622 622 * @return bool. … … 632 632 * Get the full size avatar args. 633 633 * 634 * @since 1.0.0634 * @since 3.0.0 635 635 * 636 636 * @return array The avatar arguments. … … 662 662 * Init the Navigation Loop and check it has items. 663 663 * 664 * @since 1.0.0664 * @since 3.0.0 665 665 * 666 666 * @param array $args { … … 756 756 * Use the $n param to check for your custom object. 757 757 * 758 * @since 1.0.0758 * @since 3.0.0 759 759 * 760 760 * @param array $nav The list of item navigations generated by the BP_Core_Nav API. … … 785 785 * Checks there are still nav items to display. 786 786 * 787 * @since 1.0.0787 * @since 3.0.0 788 788 * 789 789 * @return bool True if there are still items to display. False otherwise. … … 805 805 * Sets the current nav item and prepare the navigation loop to iterate to next one. 806 806 * 807 * @since 1.0.0807 * @since 3.0.0 808 808 */ 809 809 function bp_nouveau_nav_item() { … … 817 817 * Displays the nav item ID. 818 818 * 819 * @since 1.0.0819 * @since 3.0.0 820 820 */ 821 821 function bp_nouveau_nav_id() { … … 826 826 * Retrieve the ID attribute of the current nav item. 827 827 * 828 * @since 1.0.0828 * @since 3.0.0 829 829 * 830 830 * @return string the ID attribute. … … 845 845 * Filter to edit the ID attribute of the nav. 846 846 * 847 * @since 1.0.0847 * @since 3.0.0 848 848 * 849 849 * @param string $id The ID attribute of the nav. … … 857 857 * Displays the nav item classes. 858 858 * 859 * @since 1.0.0859 * @since 3.0.0 860 860 */ 861 861 function bp_nouveau_nav_classes() { … … 866 866 * Retrieve a space separated list of classes for the current nav item. 867 867 * 868 * @since 1.0.0868 * @since 3.0.0 869 869 * 870 870 * @return string List of classes. … … 909 909 * NB: you can also directly add classes into the template parts. 910 910 * 911 * @since 1.0.0911 * @since 3.0.0 912 912 * 913 913 * @param string $value A space separated list of classes. … … 927 927 * Displays the nav item scope. 928 928 * 929 * @since 1.0.0929 * @since 3.0.0 930 930 */ 931 931 function bp_nouveau_nav_scope() { … … 936 936 * Retrieve the specific scope for the current nav item. 937 937 * 938 * @since 1.0.0938 * @since 3.0.0 939 939 * 940 940 * @return string the specific scope of the nav. … … 955 955 * Filter to add your own scope. 956 956 * 957 * @since 1.0.0957 * @since 3.0.0 958 958 * 959 959 * @param array $scope Contains the key and the value for your scope. … … 974 974 * Displays the nav item URL. 975 975 * 976 * @since 1.0.0976 * @since 3.0.0 977 977 */ 978 978 function bp_nouveau_nav_link() { … … 983 983 * Retrieve the URL for the current nav item. 984 984 * 985 * @since 1.0.0985 * @since 3.0.0 986 986 * 987 987 * @return string The URL for the nav item. … … 1007 1007 * Filter to edit the URL of the nav item. 1008 1008 * 1009 * @since 1.0.01009 * @since 3.0.0 1010 1010 * 1011 1011 * @param string $link The URL for the nav item. … … 1019 1019 * Displays the nav item link ID. 1020 1020 * 1021 * @since 1.0.01021 * @since 3.0.0 1022 1022 */ 1023 1023 function bp_nouveau_nav_link_id() { … … 1028 1028 * Retrieve the id attribute of the link for the current nav item. 1029 1029 * 1030 * @since 1.0.01030 * @since 3.0.0 1031 1031 * 1032 1032 * @return string The link id for the nav item. … … 1050 1050 * Filter to edit the link id attribute of the nav. 1051 1051 * 1052 * @since 1.0.01052 * @since 3.0.0 1053 1053 * 1054 1054 * @param string $link_id The link id attribute for the nav item. … … 1062 1062 * Displays the nav item link title. 1063 1063 * 1064 * @since 1.0.01064 * @since 3.0.0 1065 1065 */ 1066 1066 function bp_nouveau_nav_link_title() { … … 1071 1071 * Retrieve the title attribute of the link for the current nav item. 1072 1072 * 1073 * @since 1.0.01073 * @since 3.0.0 1074 1074 * 1075 1075 * @return string The link title for the nav item. … … 1094 1094 * Filter to edit the link title attribute of the nav. 1095 1095 * 1096 * @since 1.0.01096 * @since 3.0.0 1097 1097 * 1098 1098 * @param string $title The link title attribute for the nav item. … … 1106 1106 * Displays the nav item link html text. 1107 1107 * 1108 * @since 1.0.01108 * @since 3.0.0 1109 1109 */ 1110 1110 function bp_nouveau_nav_link_text() { … … 1115 1115 * Retrieve the html text of the link for the current nav item. 1116 1116 * 1117 * @since 1.0.01117 * @since 3.0.0 1118 1118 * 1119 1119 * @return string The html text for the nav item. … … 1138 1138 * Filter to edit the html text of the nav. 1139 1139 * 1140 * @since 1.0.01140 * @since 3.0.0 1141 1141 * 1142 1142 * @param string $link_text The html text of the nav item. … … 1150 1150 * Checks if the nav item has a count attribute. 1151 1151 * 1152 * @since 1.0.01152 * @since 3.0.0 1153 1153 * 1154 1154 * @return bool … … 1170 1170 * Filter to edit whether the nav has a count attribute. 1171 1171 * 1172 * @since 1.0.01172 * @since 3.0.0 1173 1173 * 1174 1174 * @param bool $value True if the nav has a count attribute. False otherwise … … 1182 1182 * Displays the nav item count attribute. 1183 1183 * 1184 * @since 1.0.01184 * @since 3.0.0 1185 1185 */ 1186 1186 function bp_nouveau_nav_count() { … … 1191 1191 * Retrieve the count attribute for the current nav item. 1192 1192 * 1193 * @since 1.0.01193 * @since 3.0.0 1194 1194 * 1195 1195 * @return int The count attribute for the nav item. … … 1221 1221 * Filter to edit the count attribute for the nav item. 1222 1222 * 1223 * @since 1.0.01223 * @since 3.0.0 1224 1224 * 1225 1225 * @param int $count The count attribute for the nav item. … … 1235 1235 * Displays the directory nav class. 1236 1236 * 1237 * @since 1.0.01237 * @since 3.0.0 1238 1238 */ 1239 1239 function bp_nouveau_directory_type_navs_class() { … … 1247 1247 * Gets user selection Customizer options. 1248 1248 * 1249 * @since 1.0.01249 * @since 3.0.0 1250 1250 * 1251 1251 * @return string … … 1280 1280 * NB: you can also directly add classes to the class attr. 1281 1281 * 1282 * @since 1.0.01282 * @since 3.0.0 1283 1283 * 1284 1284 * @param array $nav_wrapper_classes The list of classes. … … 1292 1292 * Displays the directory nav item list class. 1293 1293 * 1294 * @since 1.0.01294 * @since 3.0.0 1295 1295 */ 1296 1296 function bp_nouveau_directory_list_class() { … … 1301 1301 * Gets the directory nav item list class. 1302 1302 * 1303 * @since 1.0.01303 * @since 3.0.0 1304 1304 */ 1305 1305 function bp_nouveau_get_directory_list_class() { … … 1310 1310 * Displays the directory nav item object (data-bp attribute). 1311 1311 * 1312 * @since 1.0.01312 * @since 3.0.0 1313 1313 */ 1314 1314 function bp_nouveau_directory_nav_object() { … … 1325 1325 * @see BP_Component::setup_nav(). 1326 1326 * 1327 * @since 1.0.01327 * @since 3.0.0 1328 1328 * 1329 1329 * @return array … … 1345 1345 * Output main BuddyPress container classes. 1346 1346 * 1347 * @since 1.0.01347 * @since 3.0.0 1348 1348 * 1349 1349 * @return string CSS classes … … 1356 1356 * Returns the main BuddyPress container classes. 1357 1357 * 1358 * @since 1.0.01358 * @since 3.0.0 1359 1359 * 1360 1360 * @return string CSS classes … … 1445 1445 * Output single item nav container classes 1446 1446 * 1447 * @since 1.0.01447 * @since 3.0.0 1448 1448 * 1449 1449 * @return string CSS classes … … 1456 1456 * Returns the single item nav container classes 1457 1457 * 1458 * @since 1.0.01458 * @since 3.0.0 1459 1459 * 1460 1460 * @return string CSS classes … … 1510 1510 * Output single item subnav container classes. 1511 1511 * 1512 * @since 1.0.01512 * @since 3.0.0 1513 1513 * 1514 1514 * @return string CSS classes … … 1521 1521 * Returns the single item subnav container classes. 1522 1522 * 1523 * @since 1.0.01523 * @since 3.0.0 1524 1524 * 1525 1525 * @return string CSS classes … … 1560 1560 * Output the groups create steps classes. 1561 1561 * 1562 * @since 1.0.01562 * @since 3.0.0 1563 1563 * 1564 1564 * @return string CSS classes … … 1571 1571 * Returns the groups create steps customizer option choice class. 1572 1572 * 1573 * @since 1.0.01573 * @since 3.0.0 1574 1574 * 1575 1575 * @return string CSS classes … … 1594 1594 * Get the search primary object 1595 1595 * 1596 * @since 1.0.01596 * @since 3.0.0 1597 1597 * 1598 1598 * @param string $object Optional. The primary object. … … 1617 1617 * Get The list of search objects (primary + secondary). 1618 1618 * 1619 * @since 1.0.01619 * @since 3.0.0 1620 1620 * 1621 1621 * @param array $objects Optional. The list of objects. … … 1647 1647 * Output the search form container classes. 1648 1648 * 1649 * @since 1.0.01649 * @since 3.0.0 1650 1650 */ 1651 1651 function bp_nouveau_search_container_class() { … … 1659 1659 * Output a selector ID. 1660 1660 * 1661 * @since 1.0.01661 * @since 3.0.0 1662 1662 * 1663 1663 * @param string $suffix Optional. A string to append at the end of the ID. … … 1674 1674 * Output the name attribute of a selector. 1675 1675 * 1676 * @since 1.0.01676 * @since 3.0.0 1677 1677 * 1678 1678 * @param string $suffix Optional. A string to append at the end of the name. … … 1696 1696 * Output the default search text for the search object 1697 1697 * 1698 * @since 1.0.01698 * @since 3.0.0 1699 1699 * 1700 1700 * @param string $text Optional. The default search text for the search object. … … 1723 1723 * Get the search form template part and fire some do_actions if needed. 1724 1724 * 1725 * @since 1.0.01725 * @since 3.0.0 1726 1726 */ 1727 1727 function bp_nouveau_search_form() { … … 1785 1785 * IDs/labels for group/activity & similar screens. 1786 1786 * 1787 * @since 1.0.01787 * @since 3.0.0 1788 1788 */ 1789 1789 function bp_nouveau_current_object() { … … 1814 1814 * Output data filter container's ID attribute value. 1815 1815 * 1816 * @since 1.0.01816 * @since 3.0.0 1817 1817 */ 1818 1818 function bp_nouveau_filter_container_id() { … … 1823 1823 * Get data filter container's ID attribute value. 1824 1824 * 1825 * @since 1.0.01825 * @since 3.0.0 1826 1826 * 1827 1827 * @param string … … 1849 1849 * Output data filter's ID attribute value. 1850 1850 * 1851 * @since 1.0.01851 * @since 3.0.0 1852 1852 */ 1853 1853 function bp_nouveau_filter_id() { … … 1858 1858 * Get data filter's ID attribute value. 1859 1859 * 1860 * @since 1.0.01860 * @since 3.0.0 1861 1861 * 1862 1862 * @param string … … 1884 1884 * Output data filter's label. 1885 1885 * 1886 * @since 1.0.01886 * @since 3.0.0 1887 1887 */ 1888 1888 function bp_nouveau_filter_label() { … … 1893 1893 * Get data filter's label. 1894 1894 * 1895 * @since 1.0.01895 * @since 3.0.0 1896 1896 * 1897 1897 * @param string … … 1911 1911 * Output data filter's data-bp-filter attribute value. 1912 1912 * 1913 * @since 1.0.01913 * @since 3.0.0 1914 1914 */ 1915 1915 function bp_nouveau_filter_component() { … … 1921 1921 * Output the <option> of the data filter's <select> element. 1922 1922 * 1923 * @since 1.0.01923 * @since 3.0.0 1924 1924 */ 1925 1925 function bp_nouveau_filter_options() { … … 1930 1930 * Get the <option> of the data filter's <select> element. 1931 1931 * 1932 * @since 1.0.01932 * @since 3.0.0 1933 1933 * 1934 1934 * @return string … … 1961 1961 * Get a link to reach a specific section into the customizer 1962 1962 * 1963 * @since 1.0.01963 * @since 3.0.0 1964 1964 * 1965 1965 * @param array $args Optional. The argument to customize the Customizer link. … … 2022 2022 * Fire specific hooks into the register template 2023 2023 * 2024 * @since 1.0.02024 * @since 3.0.0 2025 2025 * 2026 2026 * @param string $when 'before' or 'after' … … 2054 2054 * Fire specific hooks into the activate template 2055 2055 * 2056 * @since 1.0.02056 * @since 3.0.0 2057 2057 * 2058 2058 * @param string $when 'before' or 'after' … … 2082 2082 * Output the signup form for the requested section 2083 2083 * 2084 * @since 1.0.02084 * @since 3.0.0 2085 2085 * 2086 2086 * @param string $section Optional. The section of fields to get 'account_details' or 'blog_details'. … … 2244 2244 * Output a submit button and the nonce for the requested action. 2245 2245 * 2246 * @since 1.0.02246 * @since 3.0.0 2247 2247 * 2248 2248 * @param string $action The action to get the submit button for. Required. … … 2282 2282 * @param string $type optional: the type of error message e.g 'error'. 2283 2283 * 2284 * @since 1.0.02284 * @since 3.0.0 2285 2285 */ 2286 2286 function nouveau_error_template( $message = '', $type = '' ) { -
trunk/src/bp-templates/bp-nouveau/includes/xprofile/functions.php
r11686 r11899 3 3 * xProfile functions 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Register Scripts for the xProfile component 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 * 16 16 * @param array $scripts The array of scripts to register … … 35 35 * Enqueue the xprofile scripts 36 36 * 37 * @since 1.0.037 * @since 3.0.0 38 38 */ 39 39 function bp_nouveau_xprofile_enqueue_scripts() { -
trunk/src/bp-templates/bp-nouveau/includes/xprofile/loader.php
r11855 r11899 3 3 * BP Nouveau xProfile 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * xProfile Loader class 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 class BP_Nouveau_xProfile { … … 18 18 * Constructor 19 19 * 20 * @since 1.0.020 * @since 3.0.0 21 21 */ 22 22 public function __construct() { … … 30 30 * Globals 31 31 * 32 * @since 1.0.032 * @since 3.0.0 33 33 */ 34 34 protected function setup_globals() { … … 39 39 * Include needed files 40 40 * 41 * @since 1.0.041 * @since 3.0.0 42 42 */ 43 43 protected function includes() { … … 49 49 * Register do_action() hooks 50 50 * 51 * @since 1.0.051 * @since 3.0.0 52 52 */ 53 53 protected function setup_actions() { … … 59 59 * Register add_filter() hooks 60 60 * 61 * @since 1.0.061 * @since 3.0.0 62 62 */ 63 63 protected function setup_filters() { … … 70 70 * Launch the xProfile loader class. 71 71 * 72 * @since 1.0.072 * @since 3.0.0 73 73 */ 74 74 function bp_nouveau_xprofile( $bp_nouveau = null ) { -
trunk/src/bp-templates/bp-nouveau/includes/xprofile/template-tags.php
r11856 r11899 3 3 * xProfile Template tags 4 4 * 5 * @since 1.0.05 * @since 3.0.0 6 6 */ 7 7 … … 12 12 * Fire specific hooks into the single members xprofile templates. 13 13 * 14 * @since 1.0.014 * @since 3.0.0 15 15 * 16 16 * @param string $when Optional. Either 'before' or 'after'. … … 38 38 * Template tag to output the field visibility markup in edit and signup screens. 39 39 * 40 * @since 1.0.040 * @since 3.0.0 41 41 */ 42 42 function bp_nouveau_xprofile_edit_visibilty() { … … 53 53 * Fires after the visibility options for a field. 54 54 * 55 * @since 1.1.055 * @since 3.0.0 56 56 */ 57 57 do_action( 'bp_custom_profile_edit_fields' ); … … 62 62 * profile fields added to it for the registration screen. 63 63 * 64 * @since 1.0.064 * @since 3.0.0 65 65 */ 66 66 function bp_nouveau_base_account_has_xprofile() {
Note: See TracChangeset
for help on using the changeset viewer.