Skip to:
Content

BuddyPress.org

Opened 44 hours ago

Closed 44 hours ago

#8521 closed task (fixed)

Migrate the `BP_Core_Friends_Widget` Legacy Widget as a Widget Block

Reported by: imath Owned by: imath
Milestone: 9.0.0 Priority: normal
Severity: normal Version:
Component: Friends Keywords: has-patch
Cc:

Description

Merge the BP Blocks plugin's 'bp/friends' Block into Core.

Attachments (1)

8521.patch (71.9 KB) - added by imath 44 hours ago.

Download all attachments as: .zip

Change History (2)

@imath
44 hours ago

#1 @imath
44 hours ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 13002:

Merge the BP Blocks plugin's 'bp/friends' Block

  • introduce the bp_get_dynamic_template_part() function which let you use a JavaScript template inside PHP thanks to the bp_core_replace_tokens_in_text() function.
  • Adds a new assets/widgets/friends.php JavaScript template to our two template packs.
  • Adds a new Core JavaScript file which acts like a parent class to all dynamic widgets front-end scripts (friends, groups, members).
  • Add this front-end script to the Friends component.
  • Adapt Grunt sass tasks.
  • Add the Block JavaScript source files into src/js/bp-friends/js/blocks.
  • Add the Block Scss source file into src/bp-friends/sass.
  • Generate the development files to ease testing.

Fixes #8521

Note: See TracTickets for help on using tickets.